随笔 - 210  文章 - 0 评论 - 351 trackbacks - 3

1)安装图形化界面

    sudo apt-get install xinit

    sudo apt-get install gnome

2)启用root账号

    ① sudo passwd root

    ② 修改/etc/gdm3/custom.conf       

[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true  

3)修改网卡地址

    

    ① 修改配置

      vi /etc/network/interfaces

# The primary network interface
auto ens33   # 可以到/proc/sys/net/ipv4/conf查看有哪些网卡
iface ens33 inet static
address 192.168.202.158
netmask 255.255.255.0
gateway 192.168.202.2
dns-nameserver 192.168.202.5
dns-search shark.com

② 重启networking服务

   systemctl restart networking

4)配置xmanager能远程图形界面登录

    修改/etc/gdm3/custom.conf       

[xdmcp]
Enable=true
Port=177

但是始终没有成功

5) 禁用IPV6

    配置/etc/sysctl.conf    在 /etc/sysctl.conf 增加下面几行,并重启。

 
#disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
 
重启服务器
6)  apt 安装源
     修改/etc/apt/source.list
    deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
 
7) 关于网络代理
① 全局代理 setting-->NETWORK-->proxy
② 环境变量http_proxy ftp_proxy https_proxy
③ apt 下载源代理 设置/etc/apt/apt.conf       

Acquire::http::proxy "http://10.35.2.33:3128/";
Acquire::https::proxy "https://10.35.2.33:3128/";
Acquire::ftp::proxy "ftp://10.35.2.33:3128/";

 
posted on 2017-02-26 15:08 Shark Xu 阅读(...) 评论(...) 编辑 收藏
为汶川地震死难者哀悼!