1.进入单用户模式:

重启Ubuntu按e进入grub界面,选择 (recovery mode)”这一行按“e ”进入编辑页面.

Ubuntu14.4 系统进入单用户模式及配置网卡

 将“ro recovery nomodeset”改为“rw single init=/bin/bash”,然后按ctrl+x 启动

进入root shell  输入"passwd root "修改root用户密码.  完成后使用"ctrl+alt+del" 重启.

2.配置网卡/dns

Ubuntu系统的网络配置文件: /etc/network/interfaces 

编辑(vi /etc/network/interfaces )添加网卡信息:

将dhcp 一行屏蔽

# The primary network interface

auto eth0

#iface eth0 inet dhcp

添加和静态ip有关的参数

# This file describes the network interfaces available on your systemauto eth0

auto eth0

iface eth0 inet static

Ubuntu14.4 系统进入单用户模式及配置网卡

重启网卡使设定生效:/etc/init.d/networking restart

执行下面两个命令也可以:

$  ifdown eth0

$  ifup eth0

相关文章:

  • 2021-10-22
  • 2021-12-10
  • 2021-04-28
  • 2021-10-20
  • 2021-08-02
  • 2021-07-16
猜你喜欢
  • 2021-08-24
  • 2021-03-31
  • 2021-06-06
  • 2022-12-23
  • 2021-07-07
  • 2021-04-15
  • 2021-12-08
相关资源
相似解决方案