您的位置:首页 > 其它

部署 Ubuntu Server 开发虚拟机点滴 ubuntu-12.04.1-server

2012-10-20 09:02 429 查看

GUI

光秃秃的server实在讨厌,还是来个GUI操作起来方便嘛~在shell里输入:sudo apt-get install x-window-system-core #安装x-windows的基础sudo apt-get install gdm #安装登录管理器 还可以为kdm/xdmsudo apt-get install ubuntu-desktop #安装Ubuntu的桌面 还可以为Kubunut-desktop/ Xubuntu-desktopsudo 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.3netmask 255.255.255.0gateway 192.168.1.1完成后保存需要联网的话,然后命令行下在打sudo vi /etc/resolv.conf 设置DNS服务器,打开文件后写上你自己的DNSnameserver 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-freedeb http://mirror.dlut.edu.cn/debian unstable main contrib non-freedeb http://mirror.dlut.edu.cn/debian-non-US unstable/non-US main contrib non-freedeb http://mirror.dlut.edu.cn/debian-security stable/updates maindeb http://debian.ustc.edu.cn/debian sid main non-free contribdeb-src http://dean.ustc.edu.cn/debian sid main non-free contribdeb http://debian.ustc.edu.cn/debian-non-US sid/non-US main non-free contribdeb 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包了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: