更新了文泉驿
Ubuntu配置记录-2:关于开发环境的配置

Ubuntu配置记录-1 网络与源

Tiger Soldier posted @ 2008年4月04日 03:50 in linux with tags ubuntu h3c apt , 3213 阅读

把Ubuntu重装了一遍,配置起来挺麻烦的,于是干脆记录一下,以免以后又忘记。

安装完成后,最重要的是网络问题。学校使用802.1x认证,需要特殊的软件来登录。我用的是华为的H3C。
以下是别人给的一份文档,很有用,我就不自己写了XD

在Ubuntu Linux下面使用H3C认证客户端上网,这需要华为公司专门为Linux开发的软件h3c802.1xclient.tar.gz
1)下载了H3C后,解压文件:

$sudo tar –xvzf h3c802.1xclient.tar.gz

这会解压到当前目录下,生成一个h3c802.1xClient目录。

或者可以指定解压路径:

$sudo tar –C h3c802.1xclient.tar.gz [path]

2)转到此目录下:$cd h3c802.1xClient

运行里面的pre.ps文件:

$sudo ./pre.ps

再运行里面的linux1x文件(可以查看里面的说明文档):

$sudo linux1x

3)如果里面的链接库缺少H3C必要的libstdc++-libc6.2-2.so.3文件,会报错.

根据提示信息,先转到链接库目录:

$cd lib

在里面找到一个相似的文件,与所需的文件建立硬链接:

$sudo ln libc.so.6 libstdc++-libc6.2-2.so.3

4)再次运行linux1x文件,可以上网了!:

$sudo linux1x [-p|-d|-k]

其中,参数-p表示注销当前帐号信息,重新验证;-d表示通过验证后返回控制

台继续执行其他命令;-k表示断开网络连接。

5)PS:经常出现这种情况--不知道什么时候网络断了,而用户无法及时得知。解决办法之一是:按

下Ctrl+Alt+F1切换到命令行控制台,使用任何一个本地帐户登录联网,然后输入命令:

$ping [学校服务器代理(202.116.64.226)]。

在此命令下,如果网络畅通,会一直有数据包返回。

在运行时千万不能忘了sudo,我之前就是因为忘了sudo导致老是提示“ERROR! Can't initial authentication program !”,搞得我还以为软件坏了OTL……

然后就是设置更新的源,用官方的源会慢死的……

apt的源列表文件保存在/etc/apt/source.list文件中,可以用任意文本编辑器编辑,注意要用root权限来编辑,也就是用sudo。编辑前最好保存一份复本:

$sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

然后就可以编辑了:

$sudo gedit /etc/apt/sources.list

因为在教育网里,所以用中科大的源会很爽:

deb http://debian.ustc.edu.cn/ubuntu/ gutsy main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ gutsy-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ gutsy-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ gutsy-updates main restricted universe multiverse

另外cn99也很重要:

deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse

把这两个源加到source.list的最前端就行,不用像有些教程说的那样要把其它的覆盖掉。

这些源都是用于Ubuntu 7.10(Gutsy)的,要给其他版本添加源的应该把gutsy换成相应的代号就行了吧(中科大的源我就是这么干的XD)。
Bihar Board Model Pa 说:
Sep 15, 2022 04:09:50 PM

Bihar Board Model Paper 2023 Class 11 Pdf Download for First Year Intermediate Arts, Science & Commerce Stream Question Bank by Every SCERT & NCERT Hindi Medium, English Medium & Urdu Medium Student of Bihar Patna Board can download BSEB 11th Model Paper 2023 or BSEB Intermediate Model Set 2023 for Paper-1 & Paper-2 Exam at Bihar Board Model Paper Class 11 Bihar School Examination, Patna Board and various private school teaching staff have designed and suggested the Intermediate Education First Year of STD-11 or Higher Secondary Education 11th Standard Arts, Science and Commerce Stream study & learning material as Bihar Board 11th Class Model Paper 2023.

Best WiFi Names 说:
Feb 03, 2023 06:18:01 PM

Are you getting yourself a new WiFi router, then you might be happy because now you are able to set up your best WiFi names to your liking which is a funny act but a please to do indeed. Best WiFi Names Well as you already know that the reason why people be objective about finding the best WiFi names for their new connections or routers is that they want some cool or funny names that make them feel nice and at the same time when your friends, family.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter