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

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包了。 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值