跳至主要内容

博文

目前显示的是 五月, 2007的博文

FreeBSD中Opera不能输入中文的解决

最近也装了个BSD的桌面玩玩,结果在Opera中居然不能输入中文,郁闷得要死。但是当我把.cshrc中setenv LC_*的设置去掉后就可以了。于是在想是不是因为我把LC设成了zh_CN.eucCN的原因,偶然的在freeBSDchina.org发现setenv LC_COLLATE POSIX 就可以了。果然啊,过几天查一下LC_COLLATE是什么东西 。

◢ FreeBSD pptp 安裝步驟 ◣

底下各步驟必須以 root 權限執行。 請安裝 /usr/ports/security/sudo,或 su 成 root 身份執行, 不具 root 身份者, 請勿亂踹。 步驟 1: 安裝 vpn 的用戶端(client):請先利用 ports 安裝pptpclient# cd /usr/ports # make search key=pptp 之後可以找到pptpclient所在之位置,切換到該目錄下 # sudo make all install clean 步驟 2: 設定ppp.conf: 設定前請先參考 /usr/local/share/examples/pptpclient/README檔案,然後把 /usr/local/share/examples/pptpclient/ppp.conf 複製到 /etc/ppp 目錄下。 本校提供 mail.nctu.edu.tw 及 faculty.nctu.edu.tw 的信箱做為教職員使用 VPN 的認證,請在 /etc/ppp/ppp.conf 將認證的信箱,密碼設定好。 # cp /etc/ppp/ppp.conf /etc/ppp/ppp.conf.orig <------ 將原始設定檔備份 # cp /usr/local/share/examples/pptpclient/ppp.conf /etc/ppp/ppp.conf # cd /etc/ppp/ # vi ppp.conf mail: ------------------------------------------------- 識別標籤 (自行命名) set authname yryeh@mail.nctu.edu.tw2 ----- 帳號 set authkey 12345 -------------------------------- 密碼 set timeout 0 set ifaddr 0 0 add 211.76.248.0/24 HISADDR -------------- 連接 VPN 後取得的網段 alias enable yes faculty: ---------------------------------------------- 識別標籤 (自行命名) set authname yryeh@facult

TP-Link (Realtek RTL8139)网卡终于可以用了freebsd

由于测试了很多方法都无法让 FreeBSD 6.2 R使用我的Marvell Yukon网卡,于是只好自己去买了一个 Realtek 8139网卡(PCIMA卡 )可惜插上卡后 系统提示 :cbb0:no driver ...还有提示:rl0: can`t map port memory。 难道是我的主板问题?可是在XP下用的很好,那就肯定是 FreeBSD 6.2的问题。 起先是以为ACPI的问题,因为FreeBSD 6.2对我的这个 ACPI支持不是很好,于是我禁用了ACPI,结果依然不行。 于是从rl0: can`t map port memory入手分析,从字面意思分析,系统是能识别我的网卡了,只是为网卡分配的资源不正确,可能是 IRQ冲突等等。于是,开始调整系统: #sysctl hw.cbb.start_32_io=0x6000 结果!!!!我的网卡果真能用了!注意。0x6000可以换成其他的比如0x4000。 小注:其实从FreeBSD 5.4开始,PCIMA卡可以热插拔了。

How to dial PPTP vpn from a FreeBSD box?

由于公司的网络是vpn的,在XP下可以轻松实现连接,但是最近我要转到BSD下,却一直没有好的解决办法 。刚才看到了delphij老大的文章,受益匪浅,转过来,留着自己消化 How to dial PPTP vpn from a FreeBSD box? This is useful when you want to connect remote "Local" network through a PPTP vpn. First, install the ports/net/pptpclient, by doing: cd /usr/ports/net/pptpclient make all install clean && rehash The next step is to set it up. cd /etc/ppp mv ppp.conf ppp.conf.original cp usr/local/share/examples/pptpclient/ppp.conf . chmod 640 ppp.conf vi ppp.conf Please note that the suggested steps above will remove all your existing ppp configurations. Here we do some initial setup: VPN: set authname [Your username here] set authkey [Your password here] set timeout 0 set ifaddr 0 0 add [Destination address here] HISADDR alias enable yes Please note that if your VPN connects to many places, you can add more add [foo] HISADDR here. When VPN is dialed up, HISADDR is replaced with PPP protocol with the remote gateway(typically, the server) address. Then it will