2015年1月16日 星期五

ubuntu 常用資訊

[network]
檢查抓到哪些網路裝置
ls /sys/class/net

啟用
ifconfig eth0 up

promisc mode
ifconfig eth0 promisc on

寫入設定檔
/etc/network/interface

auto eth0
iface eth0 inet dhcp
---
iface eth0 inet manual
up ip link set $IFACE promisc on
---
iface eth0 inet static
address 1.1.1.1
gateway 1.1.1.254
netmask 255.255.255.0
network 1.1.1.0
broadcast 1.1.1.255
---
DNS
dns-nameservers 8.8.8.8

[更新]
apt update
apt upgrade

[安裝軟體]
apt install xxxxx

待整理.......