虚拟机MAC改变后,无法启动,并报错:“Device eth0 does not seem to be present”
出现该问题,是由于MAC地址变更后,操作系统仍然保留原来MAC地址作为eth0,并且将新的MAC地址识别为新的网卡导致的,可以删除文件“/etc/udev/rules.d/70-persistent-net.rule”中老MAC的信息,并把新MAC中的eth1改成eth0,通过start_udev重新加载udev,然后重启网卡恢复:“service network restart”
2. Change language
gedit /etc/default/locale –> change what do you want
reboot
3. Script couldn’t run on linux “bad interpreter: No such file or directory”
that should dos format, need change to unix format
vi xxx
check format by “:set ff” or “:set fileformat”
change format by “:set ff=unix” or “:set fileformat=unix”
:wq
4. Enable ssh service
sudo apt-get install openssh-server
gedit /etc/ssh/sshd_config –> “PermitRootLogin yes”
restart by “/etc/init.d/ssh restart”
check by “ps -ef|grep ssh”
reboot
5. Disable firewall
check whether enable by “ufw status”
disable by “ufw disable”