GUI
光禿禿的server實在討厭,還是來個GUI操作起來方便嘛~
在shell里輸入:
sudo apt-get install x-window-system-core #安裝x-windows的基礎
sudo apt-get install gdm #安裝登錄管理器 還可以為kdm/xdm
sudo apt-get install ubuntu-desktop #安裝Ubuntu的桌面 還可以為Kubunut-desktop/ Xubuntu-desktop
sudo apt-get install gnome-core #安裝GNOME的一些基礎
重啟之后進入系統便有GUI了
http://my.oschina.net/jing31/blog/6593
網絡
網卡設置成NAT模式是最簡單的方法,但需要向外拷貝文件時有些麻煩,此時可以采用如下方法配置真是IP
sudo vi /etc/network/interfaces 修改網卡配置文件,打工文件后填下面內容:
auto eth0 (啟用網卡)
iface eth0 inet static ( 設置為靜態IP)
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
完成后保存
需要聯網的話,然后命令行下在打
sudo vi /etc/resolv.conf 設置DNS服務器,打開文件后寫上你自己的DNS
nameserver 219.150.32.132(主DNS)
nameserver 222.85.85.85 (備DNS)
完成后保存
設置完成IP后還要sudo /etc/init.d/networking restart (重啟網絡)
VMWare tools
為了提高虛擬機性能,需要安裝這個工具vmware tools,步驟如下:
sudo apt-get install build-essential //安裝主要編譯工具 gcc, g++, make
sudo apt-get install linux-headers-3.0.2.0-29-generic-pae
安裝必須的一些組件包
運行vmware_install.pl 這個安裝包
http://blog.csdn.net/liguohui/article/details/7685049安裝包
apt-get autoclean僅刪除不再能被下載的包. 另外apt-get clean也可刪除/var/cache/apt/archives/ 和 /var/cache/apt/archives/partial/目錄下所有包(鎖定的除外)。
的:/etc/apt/sources.list文件里保存着一些服務器的設置,在這些服務器上有大量的可以用於Debian的軟件,sources.list例子
deb ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable contrib main non-free
deb http://mirror.dlut.edu.cn/debian unstable main contrib non-free
deb http://mirror.dlut.edu.cn/debian-non-US unstable/non-US main contrib non-free
deb http://mirror.dlut.edu.cn/debian-security stable/updates main
deb http://debian.ustc.edu.cn/debian sid main non-free contrib
deb-src http://dean.ustc.edu.cn/debian sid main non-free contrib
deb http://debian.ustc.edu.cn/debian-non-US sid/non-US main non-free contrib
deb http://debian.ustc.edu.cn/debian-uo sid marillat java misc ustc
Mysql安裝
GUI下在軟件中心可以安裝mysql server client和工具
也可以使用命令行如下安裝
http://www.cnblogs.com/168cuiyuan/archive/2012/08/30/2663358.html
Netbeans/Eclipse安裝
從netbean eclipse的官網下載對應的文件安裝即可
脫機安裝
如果有的部署機器不能聯網該怎樣部署安裝呢?
1、從安裝iso文件的pool/main中找到對應deb文件包,使用dpkg安裝,這個對於依賴比較少的很簡單
2、對於依賴比較多的軟件,使用這種方法
1)在一個可聯網的干凈虛擬機上,使用sudo apt-get install ***,安裝需要的軟件,在/var/cache/apt/archives/可以看到所有的包
2)把以上的包拷貝到不能聯網的機器上的一個目錄下,使用sudo dpkg * 安裝即可
對於linux常用的rpm包的安裝,可以采用如上的方法先把alien安裝好,然后就可以安裝rpm包了。