Vbox上Ubuntu初始安装配置

Vbox上Ubuntu初始安装配置




sudo apt-get install openssh-server
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

sudo vi /etc/apt/sources.list

删除原有内容,加入


deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ubuntu-desktop
sudo apt-get install vnc4server
sudo apt-get install kvm
sudo apt-get install virt-manager
sudo apt-get install virt-viewer
sudo apt-get install qemu-system

vncserver :1
vi  ~/.vnc/xstartup

最后一行替换为gnome-session &

gnome-session &





crontab -e

加入
@reboot /usr/bin/vncserver :1



Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *