1、配置IP地址:

vi/etc/network/interface                                    ///需要编辑的配置文件路径

iface eth3 inetstatic                                            ///指定接口和地址获取方式

address 192.168.19.131                                              ///配置IP地址

netmask255.255.255.0                                              ///配置网络掩码

gateway 192.168.19.254                                            ///配置网关

 

2、配置DNS

vim/etc/resolvconf/resolv.conf.d/base                      ///需要编辑的配置文件路径

nameserver202.102.224.68                                       ///原内容为空,添加nameserver

 

3、连网安装ssh服务的方法:

sudo apt-get  update                                                 ///更新源

 

sudo apt-getinstall openssh-server

 

启动或重启SSH服务:

sudo /etc/init.d/ssh stop

sudo/etc/init.d/ssh start

 

4、图形安装:

sudo apt-getupdate                                         ///更新源

sudo apt-getupgrade                                        ///更新已经安装的包

 

sudo apt-getinstall ubuntu-desktop    ///标准安装

sudo apt-getinstall --no-install-recommends ubuntu-desktop ///简单安装

取消GUI自动启动: update-rc.d-fgdm remove  ///可用startx启动桌面

恢复GUI自动启动: update-rc.dgdm defaults

 

乌班图在图形状态下进入终端的命令是 crtl + alt + t