2016年1月6日 星期三

Debian server setup

Debian server setup flow:

Install VM tool
Add the following line to the /etc/apt/sources.list file.
deb http://ftp.debian.org/debian/ jessie main contrib

apt-get update
apt-get install open-vm-tools


network config:
# vi /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet static
address 172.xxx
netmask 255.255.0.0
gateway 172.xxx
dns-nameservers 172.xxx  168.95.1.1 168.95.192.1
dns-search xxx

# /etc/init.d/networking stop
# /etc/init.d/networking start
# /etc/init.d/networking restart
or
service networking restart


Enable alias "ll"
vi ~/.bashrc
source ~/.bashrc   or   . ~/.bashrc    without logout&in


Enable SSH root login on Debian Linux Server
# vi /etc/ssh/sshd_config
PermitRootLogin without-password =>  PermitRootLogin yes
# /etc/init.d/ssh restart



Debain 7.3 安裝 VM tool
需要 gcc make linux-header 元件
apt-get install make gcc linux-headers-`uname -r` build-essential


mount /dev/cdrom /media/cdrom
複製VMwareTools-9.4.0-1280544.tar.gz至/usr/local (或其他目錄)

解開tarball
tar -zxvf /media/cdrom/VMwareTools-9.4.0-1280544.tar.gz

./vmware-tools-distrib/vmware-install.pl -d

(-d 表示套用預設值)
確認VM tool版本
# sudo vmware-toolbox-cmd -v

移除檔案
# rm -rf vmware-tools-distrib
http://blogs.yyes.chc.edu.tw/post/2/2930

沒有留言:

張貼留言