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 包括一个国际化工具。可以从源码中提取翻译表,从传统源码 (/ /po)中收集这些提取出来的信息并且可以将翻译融合到 .xml, .desktop和.oaf 文件中。就需要安装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 六、多媒体配置 我们来讲讲怎么在ubuntu dapper中安装各种解码器: 首先安装gstreamer的解码器,gstreamer是gnome主推的多媒体平台。在dapper中进行了重大升级,目前是0.10。但是默认没有安装完全,导致mp3等不能播放。所以,我们要安装 gstreamer0.10 . sudo apt-get install gstreamer0.10-* 这条语句会把所有的gstreamer0.10的包安装上。 然 后我们安装xine的解码器 libxine-extracodecs ,xine是另外一个多媒体平台,功能非常强大。我们还把系统自带的totem卸载,改为使用xine后端的totem,这样才可以播放rmvb等视频。 顺便安装上mplayer这个强大的播放器,我一般用它来播放dvd。注意如果是 amd的CPU,需要安装mplayer-k7,当然,大家也可以直接安装mplayer,这个比较通用。 sudo apt-get install libxine-extracodecs totem-xine mplayer-686 ffmpeg lame faad sox mjpegtools libxine-main1 七、当前的ubuntu系统的内核版本是: ty@tonylinux:~$ uname -r 2.6.15-27-386 八、当前的ubuntu系统中并没有minicom,可以安装: 安装办法:sudo apt-get install minicom 九、ubuntu linux本身没有英文翻译软件,可以如下安装: sudo apt-get install stardict 运行该软件的办法是:stardict 在ubuntu linux系统中,所有的软件都安装在/usr/share目录下。 设置模式 更多请访问D:/gjun/web/Ubuntu Linux发行版新手指南_玉麒麟——JKirin.htm |
Ubuntu Linux发行版新手指南
最新推荐文章于 2024-09-13 15:13:36 发布