<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[雨的印记]]></title> 
<link>http://www.sungyism.com/index.php</link> 
<description><![CDATA[蒋孟的blog]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[雨的印记]]></copyright>
<item>
<link>http://www.sungyism.com/read.php/88.htm</link>
<title><![CDATA[ubuntu的root密码 如何设定/改变/启用 root 使用者的密码?]]></title> 
<author>sungyism &lt;sungyism@hotmail.com&gt;</author>
<category><![CDATA[手记]]></category>
<pubDate>Sun, 13 Dec 2009 21:41:30 +0000</pubDate> 
<guid>http://www.sungyism.com/read.php/88.htm</guid> 
<description>
<![CDATA[ 
	ubuntu的root密码 / ubuntu 下如何以root用户登录<br/>如何设定/改变/启用 root 使用者的密码?<br/>sudo passwd root<br/>为了启用 root 帐号 (也就是 设置一个口令) 使用: <br/>sudo passwd root<br/>当你使用完毕后屏蔽 root 帐号 使用: <br/>sudo passwd -l root<br/>这个将锁住 root 帐号. <br/>如何在终端机模式下切换到 root 身份?<br/>sudo -s -H<br/><br/><br/>1、先解除root锁定，为root用户设置密码<br/>打开终端输入：sudo passwd<br/><br/>Password: <--- 输入你当前用户的密码<br/><br/>Enter new UNIX password: <--- 新的Root用户密码<br/><br/>Retype new UNIX password: <--- 重复新的Root用户密码<br/><br/>passwd：已成功更新密码<br/><br/>2、更改登陆，允许root登录<br/>打开 系统＞系统管理＞登录窗口）<br/><br/>点“安全”选项页，选择“允许本地管理员登录”。<br/><br/>3、注销当前用户，以root登陆<br/> <br/>对于network-manager，可以彻底卸载之代码:sudo apt-get remove network-manager --purge注意：删除network-manager后，nm-applet就没有了，可改用面板上的网络监视器，在面板上点右键添加即可。下面提到的更改生效，都要用到重启网络服务命令，当然重启电脑也是ok的,重启网络服务代码:sudo /etc/init.d/networking restart有时候虽只有一个网络接口，但网络连接（logical name:）是eth1 或为eth2甚至为eth更大的数字，这点也很讨厌，影响一些程序的默认使用解决：1：代码:sudo lshw -C network或者代码:ifconfig -a得到网卡的mac地址(serial)，注意不要和1394的serial搞混比如我的是：00:88:88:ff:12:612备份代码:sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bak3接着编辑：代码:gksu gedit /etc/udev/rules.d/70-persistent-net.rules 删除里面的所有内容,如果内容为空当然不用删除再加入下面的内容，注意颜色部分要和你个人情况和期望一致,mac不能填错，一定要写真实的物理mac,直接抄我的无效：引用:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR&#123;address&#125;=="00:88:88:ff:12:61", ATTR&#123;type&#125;=="1", KERNEL=="eth*", NAME="eth0"最后重启网络服务,面板上的网络监视器如果此前启用，删了再添加一次补充应用：可以在多个网卡时，用户指定网卡logical name:接着可以配制网卡了手工编辑配制文件：代码:sudo gedit /etc/network/interfaces引用:auto loauto eth0iface lo inet loopbackiface eth0 inet staticaddress 192.168.0.8netmask 255.255.255.0gateway 192.168.0.254broadcast 192.168.0.255mtu 1300#wireless-key 3311220088#wireless-essid ubuntu上面为静态ip的设定，对应内容分别是ip地址，子网掩码，网关，广播地址，mtu值，最后为无线网卡相关的key 和ssid，需要可以打开如果是dhcp,则可写为：代码:auto loauto eth0iface lo inet loopbackiface eth0 inet dhcp#wireless-key 3311220088#wireless-essid ubuntu再进行dns的修改：代码:gedit /etc/resolv.conf内容格式如下：代码:nameserver 208.67.220.220nameserver 208.67.222.222完成以上设定后，基本上网络就可以用了，如果在上面设定的基础上更改mac地址,比如我要把上面提到的物理地址00:88:88:ff:12:61改为：00:88:88:ff:12:68则在/etc/rc.local下加入以下代码（注意在exit 0之前）代码:sudo ifdown eth0sudo ifconfig eth0 hw ether 00:88:88:ff:12:68sudo ifup eth0接着，如果还想在上面的基础上给一个网卡指定多个ip地址，则可以：代码:sudo gedit /etc/sysconfig/network-scripts/ifcfg-eth0:0内容如下：代码:DEVICE=eth0:0ONBOOT=yesBOOTPROTO=staticIPADDR=192.168.1.88NETMASK=255.255.255.0或者：代码:sudo ifconfig eth0:0 192.168.1.88 netmask 255.255.255.0 up另外，手工加路由方法：（颜色部分可以按需修改）引用:route add -host 202.100.69.8 dev eth0route add default gw 202.100.69.8 ubuntu网卡设定，大概就是这些，有空再补充。*************************************************************************************************************也可以在又上角点击网络连接的图标--edit connections--选中auto eth0进行edit--在IPV4 settings里面设置：address：192.168.1.156network:255.255.255.0gateway:192.168.1.2然后sudo /etc/init.d/networking restart<br/> <br/>
]]>
</description>
</item><item>
<link>http://www.sungyism.com/read.php/88.htm#blogcomment7</link>
<title><![CDATA[[评论] ubuntu的root密码 如何设定/改变/启用 root 使用者的密码?]]></title> 
<author>hertwe &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 07 Feb 2010 06:45:09 +0000</pubDate> 
<guid>http://www.sungyism.com/read.php/88.htm#blogcomment7</guid> 
<description>
<![CDATA[ 
	你的博客写的真好!<a href="http://www.jkzhoucheng.cn/iko/iko.html" target="_blank">IKO轴承</a>
]]>
</description>
</item><item>
<link>http://www.sungyism.com/read.php/88.htm#blogcomment9</link>
<title><![CDATA[[评论] ubuntu的root密码 如何设定/改变/启用 root 使用者的密码?]]></title> 
<author>金龙 &lt;fangwen@9696e.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 08 Feb 2010 12:54:25 +0000</pubDate> 
<guid>http://www.sungyism.com/read.php/88.htm#blogcomment9</guid> 
<description>
<![CDATA[ 
	不错不错。
]]>
</description>
</item><item>
<link>http://www.sungyism.com/read.php/88.htm#blogcomment13</link>
<title><![CDATA[[评论] ubuntu的root密码 如何设定/改变/启用 root 使用者的密码?]]></title> 
<author>fawet &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 12 Mar 2010 02:12:53 +0000</pubDate> 
<guid>http://www.sungyism.com/read.php/88.htm#blogcomment13</guid> 
<description>
<![CDATA[ 
	哈哈!顶贴!<a href="http://www.jkzhoucheng.cn/zarf/zarf.html" target="_blank">ZARF组合轴承</a>
]]>
</description>
</item>
</channel>
</rss>