Debian 9.2 試安裝只有290M 的鏡像。
[]
[]
選擇Install
[]
選擇Eglish
[]
默認區域設置,因爲不能選擇中國,選擇中國會出現上圖2,所以我們先選擇United States
[]
keymap to user: Default
[]
Hostname:debian Default
[]
Domain name: Default,空
[]
Password:
[]
Re-enter password:
[]
new user: 新用戶名
[]
Username: 新用戶名的賬號
[]
Password:新用戶賬號的密碼
[]
Re-password:
[]
稍等片刻
[]
Select your time zone: Eastern
[]
Partition disks 硬盤分區 Default
[]
Select disk to partition: Default
[]
Partitioning scheme: Default
[]
Finish partitioning and write changes to disk
[]
Yes
[]
稍等 Installing
[]
Configure the package manager
[]
這裏有問題了, 選擇China的話好像後面就選擇不了安裝SSH的選項,還有出現等下的Bad archive mirror問題
所以這裏我選了United States。 選擇United States 跳過下面選擇China的Go Back圖-5張
[]
Go Back
[]
Go Back
[]
【】
選擇United States
[]
選擇 ftp.us.debian.org
[]
Yes
[]
稍等
[]
這裏就可以選擇SSH 等其他的software
[]
Yes
[]
選擇 /dev/sda
[]
Continue
[]
重啓
[]
SSH 就是可以的了
然後就是配置IP地址了:
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
ipaddress 192.168.0.123
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8
.如果安裝了resolvconf接着在gateway的下面一行添加
DNS配置文件地址
/etc/resolv.conf
添加實際的dns地址:
nameserver 8.8.8.8
開啓SSH root 用戶遠程登錄:
vi /etc/ssh/sshd_config
PermitRootLogin yes
systemctl restart sshd