新装linux 系统后 基本的设置(ubuntu)
网络配置:
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.132
netmask 255.255.255.0
gateway 192.168.1.1
sudo /etc/init.d/networking restart
查看DNS设置
vi /etc/resolv.conf
如果能看到 nameserver xxx.xxx.xxx.xxx
sudo apt-get update
openssh安装配置:
sudo apt-get install openssh-server
sudo vi /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
gcc安装:
sudo apt-get install build-essential
安装man手册:
sudo apt-get install manpages
sudo apt-get install manpages-posix
sudo apt-get install manpages-posix-dev
sudo apt-get install manpages-dev
sudo apt-get install manpages-zh
安装gdb:
sudo apt-get install gdb
开启root:
sudo passwd
嗅探工具:
sudo apt-get install ksniffer
sudo aptitude install wireshark