菜鸟乐园 Ubuntu Linux发行版新手指南Ubuntu系统是基于Linux的系统,他所有的软件的更新是通过命令:apt-get install来安装。
一、 实现中文输入 该命令是为了完成gcc编译器的建立,该ubuntu是debian的变种,debian倾向于用打包文件 来执行,而普通的linux是基于源码编译的,通过gcc,make来完成的。 sudo apt-get install build-essential 该命令是对编译环境打一些补丁。 apt-get build-dep vim-gtk 该命令是为了初始化scim中文。 sudo apt-get install scim-pinyin im-switch im-switch -z en_US -s scim-pinyin 到此为止,环境已经支持中文。
二、 在 Ubuntu 中, 传统 UNIX 'root' 被屏蔽了 (也就是 你不能使用 root 来登录). 用 root 权限执行命令, 在每个命令前面加上 'sudo' 命令。 启动一个 root shell (例如 一个你可以运行 root 命令的窗口) 使用: sudo -s
三、 无线网卡驱动不起来: 查看系统的无线设备的设置: iwconfig, 端口ath0去自动获得ip dhclient ath0 自动让ath0扫描可用的无线网络 sudo iwlist ath0 scan
ath0 Scan completed : Cell 01 - Address: 00:0C:41:9D:3D:2D ESSID:"linksys" Mode:Master Frequency:2.437 GHz (Channel 6) Quality=53/94 Signal level=-42 dBm Noise level=-95 dBm Encryption key:on Bit Rates:1 Mb/s; 2 Mb/s; 5 Mb/s; 6 Mb/s; 9 Mb/s 11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:bcn_int=100
禁用网络 sudo ifdown ath0 激活网络 sudo idup ath0 设置无线网络的通道,该通道应该与AP一致 sudo iwconfig ath0 channel 6 设置essid sudo iwconfig ath0 essid linksys 设置模式 sudo iwconfig ath0 mode managed 我们用ifconfig命令来看到的所有的接口不一定是已经被激活的,就像ath0,我发现,即使ath0没有被激活也会在里面显示。 我在配置无线网络的时候就碰到了怎么也获得不了ip的情况,但是我在系统--》网络中已经激活了该网络,其实这个时候,可能要做几个操作。 调试无线网络: 1、首先我们要在系统--》系统系统管理--》联网的连接中看到自己的无线设备,就像我的无线设备是ath0,选择其属性,在打开的对话框中选上启用该连接,连接设置的配置中选为dhcp,不用填其他的项目,然后将其激活。
2、用sudo iwlist ath0 scan命令扫描所有的无线网络。 ath0 Scan completed : Cell 01 - Address: 00:0C:41:9D:3D:2D ESSID:"linksys" Mode:Master Frequency:2.437 GHz (Channel 6) Quality=48/94 Signal level=-47 dBm Noise level=-95 dBm Encryption key:on Bit Rates:1 Mb/s; 2 Mb/s; 5 Mb/s; 6 Mb/s; 9 Mb/s 11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:bcn_int=100 3、用获得的AP信息来对ath0进行设置: ty@tonylinux:~$ sudo iwconfig ath0 essid linksys ty@tonylinux:~$ sudo iwconfig ath0 mode managed ty@tonylinux:~$ sudo iwconfig ath0 channel 6 ty@tonylinux:~$ sudo iwconfig ath0 enc 15ADE315F326F81545C51EA031 其中channel必须与你用扫描命令看到的通道一致。 4、获得dhcp client ip sudo dhclient ath0 Internet Systems Consortium DHCP Client V3.0.3 Copyright 2004-2005 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/ath0/00:0f:20:95:67:9e Sending on LPF/ath0/00:0f:20:95:67:9e Sending on Socket/fallback DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPACK from 192.168.1.1 bound to 192.168.1.108 -- renewal in 34542 seconds. 5、用ifconfig就可以看到获得ip ty@tonylinux:~$ ifconfig ath0 Link encap:Ethernet HWaddr 00:0F:20:95:67:9E UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:783 errors:545 dropped:0 overruns:0 frame:545 TX packets:1017 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:200 RX bytes:571504 (558.1 KiB) TX bytes:261708 (255.5 KiB) Interrupt:11 Memory:f8b20000-f8b30000
eth0 Link encap:Ethernet HWaddr 00:08:02:DA:56:7E UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:11
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:22 errors:0 dropped:0 overruns:0 frame:0 TX packets:22 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1184 (1.1 KiB) TX bytes:1184 (1.1 KiB)
到此结束。
四、在编译quodlibet-0.24(mp3播放器)发现没有intltool. intltool 包括一个国际化工具。可以从源码中提取翻译表,从传统源码 ( 下载地址:
http://www.huihoo.com/gnu_linux/lfs/blfs-1.0/gnome/intltool.html
五、rhythmbox媒体播放器,本身不支持mp3播放,但是可以安装一个插件:
sudo apt-get install gstreamer0.10-fluendo-mp3
sudo apt-get install w32codecs
即可,但是该播放器不支持中文,
要想支持中文:需要在/etc/profile中增加几个环境变量:
首先
sudo gedit /etc/profile
然后,在文件中增加两行,申明两个环境变量。保存退出,即可。
export GST_ID3_TAG_ENCODING=GBK:UTF-8:GB18030
export GST_ID3V2_TAG_ENCODING=GBK:UTF-8:GB18030
更多相关文章
|
推荐文章
精彩文章
|