6.10 新手指南,常用软件使用说明,软件推荐

Ubuntu Start

1 安装ubuntu

注意事项:

1.1 分区

方法1:找到一个准备安装的分区,删除,让安装系统对删除的分区自动分区

方法2:手动分区,10G空间建议如下

交换分区,分区类型swap,大小为实际内存大小或者设置为512M即可,如果要使用ubuntu休眠功能,建议设大点如1G

/ 5G

/home2G,可能会占用较大空间

/opt 2G//常用软件安装到此

后三个分区文件系统格式均为reiserfs即可。

1.2 安装系统引导

安装到MBR即可。

2 安装后配置

说明:以下编辑文件用vim命令,初学者可以用如windows记事本一样的gedit代替。

2.1 更改下载源地址

deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse

#ubuntu7.04

# deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse

# deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse

# deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse

# deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse

# deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse

# deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse

安装好后把源地址改为上面的cn99,这个源速度比较快

sudo vim /etc/apt/sources.list

2.2 网络配置

说明:初学者可以用,系统──》系统管理──》联网,来配置

2.2.1 ADSL上网配置命令

sudo pppoeconf按照提示配置

启动pon dsl-provider

关闭poff dsl-provider

如果有问题请参考更详细的pppoeconf使用说明

2.2.2 命令行配置IP

如果直接通过内网上网,需要配置IP

sudo vim /etc/network/interfaces

2.2.2.1 DHCP

DHCP配置如下(假设通过eth1上网)

# The primary network interface - use DHCP to find our address
auto eth1
iface eth1 inet dhcp //指定为dhcp

然后重启

sudo /etc/init.d/networking restart

2.2.2.2 Static IP

静态IP地址配置如下(假设通过eth0上网)

# The primary network interface
auto eth0
iface eth0 inet static //指定为static
address 192.168.3.90 //IP地址
gateway 192.168.3.1 //网关
netmask 255.255.255.0 //子网掩码

同样需要重启

sudo /etc/init.d/networking restart

2.2.2.3 DNS

如果有必要配置DNS

sudo vim /etc/resolv.conf

nameserver 192.168.3.2

3 常用软件说明



全部安装默认已经安装了大部分的常用软件。如办公软件openoffice、音乐播放器、文本编辑器、网络浏览器,还有常用的系统工具如网络配置等等。

其他软件安装说明和介绍如下。

3.1 下载安装命令

sudo apt-get update//更新源命令
sudo apt-get dist-upgrade//下载更新命令

apt-cache search gaim|grep client// 查找软件命令,从源上搜索软件名为gaim,软件说明中有client字样的软件

apt-get install gaim//安装软件命令

apt-get remove gaim//卸载软件命令

当然也可以用系统-系统管理-新得立软件包管理器进行同样操作。

3.2 系统软件

sudo apt-get install language-pack-gnome-zh language-pack-kde-zh language-pack-zh openoffice.org-l10n-zh-cn mozilla-firefox-locale-zh-cn

安装系统简体中文语言包(系统──》系统管理──》语言支持──》选择中文也可以实现此功能)

sudo apt-get install alien sun-java6-jdk

安装rpm包转deb包工具alien,jdk



3.3 office工具

sudo apt-get install stardict stardict-langdao-ce-gb stardict-langdao-ec-gb stardict-oxford-gb stardict-xiandaihanyucidian stardict-hanyuchengyucidian openoffice.org wxmaxima maxima scilab evince xpdf xpdf-chinese-simplified xpdf-chinese-traditional acroread vim-full vim-gui-common vim-runtime vim-python

chmsee openoffice.org-gtk tomboy bluefish gimp wine

--星际译王,和几部词典

--openoffice开源办公软件

--maxima是数值计算程序,wxmaxima是其图形前端

--scilab是科学计算程序,类似于Matlab,不过体积要小得多,据说源上下载安装的界面有点丑

—-evince是PDF文档查看工具,xpdf xpdf-chinese-simplified xpdf-chinese-traditional三个组件用于解决部分中文PDF文档出现乱码的问题。
—-acroread是Adobe官方的PDF阅读器,兼容性勿庸置疑。
—-vim-full vim-gui-common vim-runtime vim-python是Vim的完整组件,系统默认安装的功能非常少。
—-chmsee是CHM文档的查看工具,另外也可以安装kchmviewer,支持查找功能。
—-openoffice.org-gtk是这样一个组件,当你在像Fluxbox这样的窗口管理器下或者KDE这种非Gnome的环境中使用Openoffice时,openoffice的界面会显得非常难看,装了这个组件可以使Ooo和Gnome主题保持一致。
—-tomboy:桌面便笺工具。
—-bluefish:网页编写工具。
—-gimp:类似于Photoshop的东西,现在PS没有Linux版本,不过据说可以用Crossover安装PS。
—-wine:安装Windows程序必备。
—-Emacs23:源上的是Emacs21,马上22也该出来了,cvs源码编译的Emacs23,这个版本解决了很多问题,包括21中对Unicode支持不好的问题。

3.4 网络工具

sudo apt-get install firefox thunderbird

—-thunderbird是和Firefox同出一源的电子邮件工具,不过我用它来阅读新闻组和RSS新闻,它是Linux下对中文新闻组支持最好的工具。

其他网络工具:

gaim支持msn等协议的客户端。

eva,qq客户端,最新版本Eva支持登录输入验证码。

gftp,支持文件夹传送。

3.5 多媒体工具

sudo apt-get install mplayer w32codecs amarok k3b mozilla-mplayer

—mplayer就不用说了,Linux最强大的多媒体播放器,据说由于知识产权的原因,7.04的源中没有再提供其解码器w32codecs的下载, 可以到其官网上下载all-20061022.tar.bz2和windows-all-20061022.zip两个包,解压后前者mv到 /usr/lib/codecs,后者mv到/usr/lib/win32目录中即可,这两个目录如果没有就建立它。
—-k3b:基于KDE的很好用的光盘刻录程序。
—-mozilla-mplayer:firefox的mplayer插件,使FF支持播放网页中的内嵌媒体。

4 系统设置

1、使系统允许root用户登录
Ubuntu中默认不允许root用户登录,因为这实在没什么必要,在Gnome下可以使用用户和组设置工具设置允许root用户登录,轻量环境中没有该工具,使用命令设置:

sudo passwd root

以后要锁住该用户,使用

sudo passwd -l root

如果需要再次解锁,使用

sudo passwd -u root

2、去掉终端中的PC喇叭响铃
在终端上方向箭头移动到头或者到底的时候,主机喇叭就会响,很难听,使用如下方法禁用它:

sudo vim /etc/inputrc

将代码:

set bell-style none

前面的“#”去掉。

5 软件使用

5.1 thunderbird使用注意事项

1.附件为中文时,其他的邮件客户端如foxmail可能无法正确认识并读取?
在使用Thunderbird 1.5.0.10时,可以做如下设置:
a 、 选择"编辑"--"首选项"--"高级"--"常规",
b、再选择"常规"右下角的"配置编辑器"按钮,就可以打开Thunderbird的
"about:config"窗口,
c、最后,选择"mail.strictly_mime.parm_folding",将其值设置为0或1

2.如何在邮件中加入个性签名?
邮件/新闻帐户设置,选中要附加签名的帐户,选中“附加此签名”,并选择设置签名文件。如果签名是HTML格式的,还要保证您是以HTML格式发送邮件。如果您的帐户拥有多个标识,也可以点击“管理标识”按钮,为每个标识设置不同的签名,方法大体相同。

3.回复的时候,默认的光标位置在引用信息之后,如何设置到前面?签名如何设置到引用内容之前?
a、选择编辑-> 邮件/新闻帐户设置
b、选择通讯录(Composition & Addressing)
里 面有选项: 回复时自动引用源消息(Automatically quote the original message when replying),选取了该选项之后,可以选择在引用内容之前回复(start my reply above the quote),然后确定即可。

c、再选择”附加我的签名在引用内容之前”

4.转发邮件不以附件方式?

首选项->编写->常规中的"转发消息:内联"。

5.2 cxoffice和msoffice

Ubuntu默认安装了OpenOffice办公套装,你可以用它编辑文档、表格、幻灯片,也可以打开MS的office文档。

实际上MsOffice也可以安装到linux上(如果你已经投资了ms office 现在换成了linux),这要用到cxoffice这个模拟器。

1.安装

sudo apt-get install crossover-pro

2.安装后菜单中有cxoffice->install windows software,选择安装office2003即可。

5.3 wine和vss on linux

我们在公司中经常要用到VSS版本服务器,这是微软的产品(虽然版本服务器现在大部分采用cvs和subversion,而且它们更优秀)。它基于微软的局域网协议,所以linux上没有它的客户端。

但我们同样可以用以下方法变通的在linux上使用vss的客户端(参考了一篇国外的文章):

1.install both Linux and NT on your computer,install vss on your NT system,get access to your installation of vss in Linux



这个步骤实际上是需要windows上vss客户端软件mount在linux上的路径,我在windows xp上安装vss客户端路径在linux上的mount点为/media/win_e/vss。或者最简单的方法是你拷贝一份别人安装的vss客户端目录 到自己的linux上即可(应该如此,虽然我没这样试过)。

2.get access to the vss repository over the network in Linux

mkdir /machine/directory

我们要访问到VSS仓库通过网络,用smbfs工具,默认Ubuntu上已经安装

mount网络节点的脚本vss.sh内容如下:

#!/bin/sh

# Mount/unmount vss directory.



case "$1" in

start) echo -n "Mounting vss directory"

mount -t smbfs -o uid=1000,username='***',password=*** '//10.0.7.91/JRTUVSS' /machine/directory

echo "."

;;

stop) echo -n "Unmounting vss directory"

umount /machine/directory > /dev/null 2>&1

echo "."

;;

*) echo "Usage: /etc/init.d/vss start|stop"

exit 1

;;

esac

exit 0

内容易懂,对照更改即可。

要每次随系统启动而mount,方法如下:

That file should be saved as, say, /etc/init.d/vss, and you should protect it from prying eyes with

chmod 750 /etc/init.d/vss

To cause that script to be invoked automatically, you can call it from /etc/rc.local, or via symlinks, e.g.

ln -s /etc/init.d/vss /etc/rc0.d/K20vss

ln -s /etc/init.d/vss /etc/rc1.d/K20vss

ln -s /etc/init.d/vss /etc/rc2.d/S20vss

ln -s /etc/init.d/vss /etc/rc3.d/S20vss

ln -s /etc/init.d/vss /etc/rc5.d/S20vss

ln -s /etc/init.d/vss /etc/rc6.d/K20vss

3.安装wine

sudo apt-get install wine

终端中输入winecfg弹出,设置Drives标签页,点击add,设置path=/machine/directory/,type=Network share

4.set unix-specific options in vss

Tell VSS that you want all your text files to use LF rather than CRLF as a line terminator by adding the line

EOL = n

in your personal ss.ini file, which is located in /machine/directory/users/username/ss.ini. This is a bit of a kludge, as it affects your Windows vss sessions, too. Anyone know a better way?

5.run vss from Wine

/usr/bin下编写ssexp脚本,内容如下:

#!/bin/sh

ssUser=***

export ssUser

ssPWD=***

export ssPWD

ssDir=d:/

export ssDir

#wine -- /media/win_e/vss/win32/ssexp.exe "$@

wine /media/win_e/vss/win32/ssexp.exe -s$ssDir -y$ssUser,$ssPWD -i-y

至此,你可以重启机器然后运行ssexp即可看到熟悉的vss界面,有点丑?自己设置一下字体将就着吧:)。





5.4 ies4linux和ie6

用什么软件都是专业的好。

登录网上银行时我们有时必须要用到IE,firefox不支持activex控件,听说这是微软有专利的独家产品。

用cxoffice装ie6可以打开浏览浏览网页没有问题,但是打开网上银行还有其他应用还是不行。用什么软件都是专业的好。下面推荐用ies4linux软件装ie6,据说都能装ie7了。

需要先安装wine和cabextract

sudo apt-get install wine cabextract

下载ies4linux

http://www.tatanka.com.br/ies4linux/downloads/ies4linux-2.1beta2.tar.gz

解压后

cd ies4linux-*
./ies4linux

下面都一步一步走下去,最后搞定,看桌面上是不是有一个IE图标?

下面介绍登录网上银行注意事项:

打开之后发现模拟效果非常好,键入

www.icbc.com.cn

然后进入个人网上银行,它会提示说当前安全设置禁止执行ActiveX,不管它,然后出现登录的界面,这个时候输入验证码的地方是无法输入的。什么都不管直接单击登录按钮,之后会提示说没有安装网银组件,要求下载并安装。下载安装就是了。

需要注意的是这里应该是在它提示下载安装之后自动给出的链接中下载安装,如果先下载这个组件,然后在终端中使用wine安装的话会安装到wine 的 目录中,而刚才使用ies4linux安装的时候是安装到主目录下的.ies4linux目录中了,所以独立安装不会使网银生效。

然后再打开网银登录页面,这时候验证码输入框就可以输入了,之后卡号、密码。

搞定!

5.5 java环境配置

http://ubuntu.group.javaeye.com/group/blog/40448

这位同学介绍的已经狠详细了。

5.6 ubuntu字体

整不好。供参考。

http://blog.csdn.net/ggjjzhzz/archive/2007/03/24/1540059.aspx

http://wiki.ubuntu.org.cn/%E4%BD%BF%E7%94%A8%E9%9B%85%E9%BB%91%E5%AD%97%E4%BD%93%E7%BE%8E%E5%8C%96%E6%B1%89%E5%AD%97#preview

第二篇ubuntu wiki社区一篇文章介绍的特别的好, 我原来就是按照里面介绍的方法安装的微软雅黑字体,可惜听说地址搬迁,原来的联接已经失效了。

实话说,微软雅黑字体一般。

5.7 ubuntu主题

我下载了apple mac类似主题名字叫Neu和OSX,安装后图标字体比默认的颜色深点,不那么刺眼,相对来说比较清晰好看。

主题包是tar.gz文件直接用主题管理器安装即可。

5.8 squid和socks5、proxychains



HTTP代理服务器squid:

1. sudo apt-get install squid

2. vi /etc/squid/squid.conf

3. 行首加入下面代码(假定局域网机器地址都是192.168.1.x)

代码:


acl myacl 192.168.1.0/24

http_access allow myacl

4./etc/init.d/squid restart

另供参考:

http://www.chinaunix.net/jh/38/571529.html

Socks5代理服务器:

正式版的socks5安装一直未能成功。

sourceforge网站的ss5下载安装后使用QQ总会出现问题,怀疑协议不兼容。

代理链proxychains:

解决apt-get不支持代理

sudo apt-get install proxychains

配置proxychains



# proxychains.conf VER 2.0

#

# HTTP, SOCKS4, SOCKS5 tunneling proxifier.

#

# The option below identifies how the ProxyList is treated.

# only one option should be uncommented at time,

# otherwise the last appearing option will be accepted

#

# Dynamic - Each connection will be done via chained proxies

# all proxies chained in the order as they appear in the list

# at least one proxy must be online to play in chain

# (dead proxies are skipped)

# otherwise EINTR is returned to the app

#

# Strict - Each connection will be done via chained proxies

# all proxies chained in the order as they appear in the list

# all proxies must be online to play in chain

# otherwise EINTR is returned to the app

#

# Random - Each connection will be done via random proxy

# (or proxy chain, see chain_len) from the list

# this option is good for scans



#dynamic_chain

#strict_chain

random_chain



# Make sense only if random_chain

chain_len = 1



# Quiet mode (no output)

quiet_mode



# Write stats about good proxies to proxychains.stats

#write_stats



#Some timeouts in milliseconds

#

tcp_read_time_out 15000

tcp_connect_time_out 10000



[ProxyList]

# ProxyList format

# type host port [user pass]

# (values separated by 'tab' or 'blank')

#

#

# Examples:

#

# socks5 192.168.67.78 1080 lamer secret

# http 192.168.89.3 8080 justu hidden

# socks4 192.168.1.49 1080

# http 192.168.39.93 8080

#

#

# proxy types: http, socks4, socks5

# ( auth types supported: "basic"-http "user/pass"-socks )

#

#socks5 192.168.1.4 1080

#socks4 10.5.81.143 1080

#http 192.168.203.18 8080

socks5 some_ip 1080

然后在需要使用代理的时候

sudo proxychains apt-get install doxygen

6 其他软件



6.1 tofrodos

安装后用fromdos命令,unix和dos文件格式转换。

6.2 vbox,vbox shared folder

前者为免费开源的相当不错的虚拟机软件,功能相当于vmware;后者为vbox host共享目录给guest的软件。

6.3 wlassistant

7.04里面已经有无线网络自动识别功能。

6.4 vsftpd

ftp服务器软件。

6.5 alien

rpm包到deb包转换工具,deb包可以用dpkg安装。

6.6 rpm

直接安装rpm包,不经过dpkg。

6.7 firefox插件

DownThemAll!和FlashGot:多线程下载工具

IE View:不支持的页面让IE打开

MediaWrap:让mplayer打开网页中的在线音乐

MIME Edit:编辑文件打开方式

6.8 fctix

小企鹅输入法。

6.9 rar

解压rar文件和压缩成rar文件。

6.10 subversion

版本管理器。

6.11 java,db软件

DbVisualizer:数据库客户端工具

jad:java反编译工具

6.12 tar,unzip,gzip,zip

系统自带,压缩解压缩工具。

6.13 电影播放机totem,rhythmbox解码器

gstreamer:是gnome主推的多媒体平台。

sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse

xine:是另外一个多媒体平台,功能非常强大。我们把系统自带的totem卸载,改为使用xine后端的totem,这样就可以播放rmvb等视频了。
sudo apt-get install libxine-extracodecs totem-xine ffmpeg lame faad sox mjpegtools libxine-main1

6.14 totem,rhythmbox,amarok显示歌曲名中文乱码

由于歌曲名没有按照规范的编码格式来写,可以用一个小工具批量转换编码

sudo apt-get install python-mutagen

sudo find . -iname "*.mp3" -execdir mid3iconv -e GBK {} /;

如果歌曲所在文件系统非linux文件系统格式,必须在歌曲所在文件系统挂载为gb2312编码再转换方能成功。

7 参考

7.1 常用命令



df -h

查看磁盘空间

sudo mount /media/usbdisk/软件库/装机软件/Office/ 2003.ISO /mnt -o loop,iocharset=gb2312

mount映像iso文件

rm -rf .cxoffice/

删除文件夹

ln -sf /opt/.cxoffice .cxoffice

加一个链接

sudo route add -net 10.0.19.0 netmask 255.255.255.0 gw 10.0.18.254

加一个路由

/usr/share/applications/eclipse.desktop

加一个桌面快捷方式

/var/lib/locales

支持语言编码

sudo gedit /etc/fstab

编辑挂载的分区

stty erase

telnet下把Backspace键生效

fromdos ant

转换dos格式成unix格式

apt-cache search chinese | grep man

查找软件

sudo apt-get install manpages-zh

安装软件

locale

查看本地语言

/proc

more里面文件即可查看硬件信息

sudo chown -R root:root /usr/share/LumaQQ/

修改文件夹所属组

sudo chown weish.root .cxoffice/ -R

修改文件夹所属组

chmod 755 fileName

修改文件权限

chmod -R 755/777 directoryName

修改目录包括子目录权限

chmod +x fileName

添加可执行权限

./shellFileName

执行shell脚本

source fileName(如/etc/fstab)

使修改的系统文件立即生效

ssh/sftp

安全访问协议,22端口

sudo mount -a

重新mount

sudo gedit squid.conf

修改squid配置文件

sudo /etc/init.d/squid restart

启动

sudo gedit /etc/proxychains.conf

修改proxychains配置文件

gcc error:sudo apt-get install libc6-dev

gcc make错误,有时是因为缺少libc 6-dev

top

系统资源进程查看

vmstat

系统资源查看

lsusb

列出usb设备

gnome-***-***

gnome桌面的诸多管理器命令

apt-get --download-only install foo

aptitude download <packages>

只下载而不安装

/usr/share/fonts

此处建立文件夹存放字体

sudo fc-cache -f -v

然后刷新字体缓存

sudo gedit /etc/fonts/language-selector.conf

sudo gedit /etc/X11/xorg.conf

#sudo gedit /etc/fonts/fonts.conf

配置字体和安装字体处

7.2 推荐软件

kivio画图工具,类似visio

planner项目管理工具,类似project

argouml软件uml图工具

Dia类似visio

Ksnapshot截图工具

Quarry,GnuGo围棋游戏,前者是围棋游戏界面

frozen-bubble 泡泡游戏

kfind搜索工具

klipper剪贴板工具

 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值