主题 : ubuntu的软件安装(转)
级别: 七朵秋菊
UID: 24767
精华: 0
发帖: 10736
威望: 14054 点
无痕币: 2518 WHB
贡献值: 0 点
在线时间: 8513(时)
注册时间: 2008-04-28
最后登录: 2018-01-01

0 ubuntu的软件安装(转)

ubuntu的软件安装大概有几种方式:

1。deb包的安装方式

deb是debian系Linux的包管理方式,ubuntu是属于debian系的Linux发行版,所以默认支持这种软件安装方式,当下载到一个deb格式的软件后,在终端输入这个命令就能安装:

sudo dpkg -i *.deb


2。编译安装方式

(小贴士:使用编译安装前,需要先建立编译环境,使用以下命令建立基本的编译环境:sudo apt-get install build-essential)

在linux的世界,有很多软件只提供了源代码给你,需要你自己进行编译安装,一般开源的软件都会使用tar.gz压缩档来进行发布,当然也有其他的形式。拿到源代码的压缩文档,把它解压到/tmp目录下,进入/tmp/软件目录,然后执行以下三个命令:

1 ./configure

2 make

3 sudo make install

在第一步./configure时可能会提示说有某某软件找不到,例如提示“libgnome”这个开发包找不到,那就把libgnome这个关键词 copy,然后打开新立得软件管理器,在里面搜索libgnome这个关键词,就会找到libgnome相关的项目,把前面有个ubuntu符号的 libgnome包(注意:同样需要安装dev包,但可以不装doc包)全部安装,通过这个方法把./configure过程中缺失的开发包都全部装上就 OK了,第一步能顺利通过,第二,三步基本问题不大。

以上就是一般初学ubuntu的朋友必须掌握的编译安装的基本方法!


3。apt-get安装方法

ubuntu世界有许多软件源,在系统安装篇已经介绍过如何添加源,apt-get的基本软件安装命令是:

sudo apt-get install 软件名


4。新立得软件包管理

打开:系统--系统管理--新立得软件包管理,这个工具其实跟apt一样,可以搜索,下载,安装ubuntu源里的软件,具体安装方式很简单,看着界面应该会懂,就不详细介绍了


5。二进制包的安装方式

有不少不开源的商业软件都会采用这种方式发布Linux软件,例如google earth,拿到二进制软件后,把它放到/tmp目录,在终端下进入安装目录,在安装目录下执行:

./软件名

然后按照一步步提示,就能安装该软件


6。rpm包的安装方式

rpm包是deb包外最常见的一种包管理方式,但ubuntu同样可以使用rpm的软件资源^_^,首先我们需要安装一个rpm转deb的软件

sudo apt-get install alien

然后就可以对rpm格式的软件转换成deb格式了:

alien -d *.rpm

然后就可以用deb的安装方式进行软件安装

也可以不需转换而直接对rpm包进行安装:

alien -i *.rpm

更多的alien使用方法可以用-h参数查看相应说明文档


7。其它安装方式

其他安装方式一般还有脚本安装方式,这类软件,你会在软件安装目录下发现类似后缀名的文件,如: .sh .py .run等等,有的甚至连后缀名都没有,直接只有一个INSTALL文件,对于这种软件,可尝试以下几种方式安装

最简单的就是直接在软件目录下输入: ./软件名* (注意有一个*号,那是一般可以通配所有后缀名)

或者: sh 软件名.sh

或者: python 软件名.py


OK,介绍完ubuntu的基本软件安装方法后,我们就可以开始安装一些常用软件了


1。学电脑打字的练习软件^_^

sudo apt-get install tuxtype ktouch


2。安装RAR zip压缩/解压缩程序

安装

sudo apt-get install rar unrar p7zip

建立软链接

sudo ln -fs /usr/bin/rar /usr/bin/unrar

这样,以后只要在命令行输入unrar,就可以解压或者压缩文件了,安装完成后,归档管理器也同时集成了rar组件。


3。安装词霸星际译王(比金山词霸好用^_^)

(1)安装主程序

sudo apt-get install stardict stardict-common

然后到下面链接下载词典文件:

http://stardict.sourceforge.net/Dictionaries_zh_CN.php

然后把词典文件解压到以下路径即可

/usr/share/stardict/dic


4。多媒体

首先安装多媒体编码器

sudo apt-get install gstreamer0.8-plugins gstreamer0.8-lame

然后安装解码器跟播放器

sudo apt-get install gstreamer0.10-*

sudo apt-get install libxine-extracodecs totem-xine mplayer mplayer-fonts mozilla-mplayer


mplayer的解码器到下面链接下载相应版本:

http://www.mplayerhq.hu/MPlayer/releases/codecs/

下载解码器压缩包,解压到/usr/lib/codecs ,默认是没有codecs目录的,需要自己新建目录:

sudo mkdir /usr/lib/codecs


然后打开mplayer的属性项,在vedio里面选择xv X11/xv插件,然后下面的Enable double buffering和Enable frame dropping两项都选上。


5。安装即时通讯工具

eva : Linux下用于上QQ的软件,安装方法:

sudo apt-get install eva

kopete:可通过此软件上MSN:

sudo apt-get install kopete

skype: 到以下链接下载:

http://www.skype.com/download/skype/linux/choose/

飞信:看此帖:

http://forum.ubuntu.org.cn/viewtopic.php?t=107009


6。多线程下载工具:

multiget:下载链接:http://multiget.sourceforge.net/


axel: sudo apt-get install axel


7。电驴工具:

amule: sudo apt-get install amule amule-common amule-utils


8。bt工具:

奔流:下载链接:http://forum.ubuntu.org.cn/viewtopic.php?t=108816


9。桌面美化工具

emerald: sudo apt-get install emerald

这个工具可以帮你改变边框的风格,例如可以弄成vista那样的毛玻璃效果也可以

avant-window-navigator: sudo apt-get install avant-window-navigator

这个工具可以做出一个类似OSX系统的dock面板效果

在系统启动时开启emerald和awn的方法

打开系统--首选项--会话,选择添加,在名称填入“emerald”,命令中填入“emerald --replace&”,然后再添加,名称填入“awn”,命令输入“avant-window-navigator -replace&”,然后ctrl+alt+backspace重启X,就会发现emerald跟awn能随机启动了。


通过这两个工具美化后的桌面效果可看这个视频:

http://luckiss.blogcn.com/diary,13060944.shtml


10。FTP客户端gFTP

sudo apt-get install gftp


11。pdf,chm阅读器

sudo apt-get install kpdf gnochm

当然也可以到adobe的网站下载adobe reader8.0 for Linux


12。rpm转deb工具

sudo apt-get install alien


13。Google Earth

下载链接:http://earth.google.com/download-earth.html


14。思维导图软件:

sudo apt-get install freemind vym kdissert Semantik


15。数据库软件:

sudo apt-get install mysql-admin mysql-client mysql-gui-tools-common mysql-query-browser mysql-server


16。屏幕录像软件:

sudo apt-get install xvidcap


17。mp3播放器

以下是个人比较推荐的播放器

sudo apt-get install audicious amarok ryhthmbox xmms2 xmms2-plugin-all gxmms2 xmms2-scrobbler


18。防火墙firestarter

sudo apt-get install firestarter

如果运行firestarter发现打开不了,就按以下方法解决:

编辑/etc/firestarter/firestarter.sh

根据本机ifconfig的输出信息来修改以下几行代码:

IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \ -f 1`

MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`

BCAST=`/sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 | cut -d \ -f 1`

将后两行代码中grep搜索的英文字符串改为相应中文字符串即可。

IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \ -f 1`

MASK=`/sbin/ifconfig $IF | grep 掩码: | cut -d : -f 4`

BCAST=`/sbin/ifconfig $IF |grep 广播: | cut -d : -f 3 | cut -d \ -f 1`


19。虚拟软件

wine:sudo apt-get install wine

virtualbox: 下载链接:http://www.virtualbox.org/wiki/Downloads

1)到 virtualBox主页下载二进制的allplatform的安装包,

不要sudo apt-get安装,否则下载的是OSE(open source edition)版本,使用有麻烦。

2)添加使用用户到 vboxusers 用户组,vboxusers 是安装 vbox 时自动建立的组:

sudo adduser 用户名 vboxusers

3)重启ubuntu

4)安装XP,此时鼠标切换有问题,没关系,先装好XP再说。

5)进入XP系统之后,在虚拟机中选择安装附加软件包GuestAdditions,这时,鼠标就可以在主客机之间自由切换了。

6)这时,退出XP系统,在“设置”中设置共享文件夹:

填上共享名称,选择某个要共享的目录即可(请注意,不能共享用户主目录)。

启动客户机,打开我的电脑,选择 “工具” -- “映射网络驱动器”,

完成之后,我们即可像使用本地磁盘一样使用该共享文件夹.

7)其他一些常见问题:

(1)系统内核更新之后,vbox 无法启动,这时我们只需要重新安装下头文件并重新编译 vbox 内核模块即可:

sudo apt-get install linux-headers-`uname -r`

sudo /etc/init.d/vboxdrv setup

(2)运行QQ就跳出客户机。安装完之后,禁止QQ开机启动,并删除QQ安装目录下的npkcrypt.sys文件就可以了。

(3)不能用USB设备。由于系统自身usbfs权限限制,需要root权限运行VirtualBox才能加载USB设备;即:

sudo VirtualBox

让GUEST识别USB设备,最简单的办法如下:

$ sudo gedit /etc/fstab

在末尾加上

# the USB group

# 对所有用户开放USB设备的读写权限

none /proc/bus/usb usbfs devmode=666 0 0

virtualbox+深度精简XP的运行效果见此视频:

http://luckiss.blogcn.com/diary,13060944.shtml


20。网络电视

sudo apt-get install vlc

电视节目列表请看此文章:

http://forum.ubuntu.org.cn/viewtopic.php?t=109855

在ubuntu下看网络高清电视的视频演示,见以下视频的后半部分:

http://luckiss.blogcn.com/diary,13060944.shtml


21。矢量绘图和3D建模软件

sudo apt-get install inkscape blender


22。蓝牙设备

先安装以下软件:

sudo apt-get install bluetooth bluez-audio bluez-cups bluez-gnome bluez-utils libbluetooth2 python-bluez gnome-bluetooth gnome-phone-manager

然后配置/etc/bluetooth/hcid.conf


代码:


#

# HCI daemon configuration file.

#


# HCId options

options {

# Automatically initialize new devices

autoinit yes;


# Security Manager mode

# none - Security manager disabled

# auto - Use local PIN for incoming connections

# user - Always ask user for a PIN

#

#修改成auto模式

security auto;


# Pairing mode

# none - Pairing disabled

# multi - Allow pairing with already paired devices

# once - Pair once and deny successive attempts

pairing multi;


# Default PIN code for incoming connections

# 默认PIN码,与手机匹配时使用

passkey "1234";

}


# Default settings for HCI devices

device {

# Local device name

# %d - device id

# %h - host name

# 设置PC端的蓝牙名称,可随意设置

name "%h-%d";


# Local device class

class 0x3e0100;


# Default packet type

#pkt_type DH1,DM1,HV1;


# Inquiry and Page scan

iscan enable; pscan enable;

discovto 0;


# Default link mode

# none - no specific policy

# accept - always accept incoming connections

# master - become master on incoming connections,

# deny role switch on outgoing connections

lm accept;


# Default link policy

# none - no specific policy

# rswitch - allow role switch

# hold - allow hold mode

# sniff - allow sniff mode

# park - allow park mode

lp rswitch,hold,sniff,park;

}

配置完成后,重启蓝牙服务

sudo /etc/init.d/bluetooth restart

手机连接PC端蓝牙设备,完成匹配,匹配时需要输入hcid.conf中的匹配码


配置/etc/bluetooth/rfcomm.conf


代码:


#

# RFCOMM configuration file.

#


rfcomm0 {

# Automatically bind the device at startup

bind yes;


# Bluetooth address of the device

# 手机端的蓝牙地址可以通过hcitool scan获得

device 00:18:0F:8B:B0:63;


# RFCOMM channel for the connection

channel 1;


# Description of the connection

comment "NOKIA N73 Bluetooth device";

}


最后,开启蓝牙文件共享服务

gnome-obex-server 用来接收手机端发送过来的文件

gnome-obex-send 发送文件到手机端,在gnome里也可以选择文件点右键发送到手机(发送为选择Bluetooth)

gnome-phone-manmager 启用后选择手机设置,可以通过PC端给朋友发短信


23。如何添加程序菜单

要添加程序菜单,新手们都会皱眉,看上面lumaqq、avast的添加菜单的步骤,真是……

不过不怕,这其实是很轻松就可搞掂的事。

1)打开:系统--首选项--主菜单

如果没有这项的话,就需要安装alacarte: sudo apt-get install alacarte

2)选择要添加到的序列;

3)打开:文件-新建条止/新建菜单

4)在“名称”处填上菜单名,再在“命令”后,从“浏览”处找到要行的文件;

5)需要的话,再选择个图标;

6)最后,确定下去啦。。。。。

原文地址 http://luckiss.blogcn.com/index.shtml  

道道非常道 玄玄原非玄
Total 0.031363(s) query 3, Time now is:05-19 04:34, Gzip enabled 粤ICP备07514325号-1
Powered by PHPWind v7.3.2 Certificate Code © 2003-13 秋无痕论坛