一、其实我个人认为这没有多大必要,因为当你需要 root 的权限时,使用 sudo
便可以了。如果你实在需要在 Ubuntu 中启用 root 帐号的话,那么不妨执行下面的操作: 1.重新设置 root 的密码: $sudo passwd
root#按照提示输入两次新的密码,并加以确认。 2....
分类:
其他好文 时间:
2014-05-23 05:59:34
阅读次数:
237
用户没权限sudo:root登录,cd /etc/chmod u+w sudoersvi
/etc/sudoers添加 username ALL=(ALL) ALL , 保存退出chmod u-w sudoers---中文字体乱码:sudo
dpkg-reconfigure locales选择zh_...
分类:
系统相关 时间:
2014-05-23 04:05:00
阅读次数:
422
On using the sudo command if we see the
errorThis means that the user as whom we have logged in and are trying to run
the command "sudo" does not have...
分类:
其他好文 时间:
2014-05-22 00:57:35
阅读次数:
272
MAC下没有wget工具,不习惯curl,使用起来还是很不方便的。下载了一个wget源码吧,编译安装。sudo curl -O
http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gzsudo tar zxvf wget-1.15.tar.gzcd
wget-1.1....
分类:
其他好文 时间:
2014-05-21 23:41:11
阅读次数:
264
1.下载JLink-linux-V422A.tgz,解压,安装。1.1
查看readme文档,安文档一步步安装。1.1.1 安装libusb sudo apt-get-install libusb-dev1.1.2
安装readline库 sudo apt-get-install libr...
分类:
系统相关 时间:
2014-05-21 20:24:28
阅读次数:
431
裝好ssh後,發覺無法用root登入,可是sshd_config接正確。後來發現原因在於,Ubuntu沒有root帳號,但是可以透過sudo
-s拿到root權限。su root 密碼怎樣打也行不通,不過sudo -s卻可以。總之就是要用sudo -s 後 執行passwd
建立帳號ref.http...
分类:
其他好文 时间:
2014-05-21 18:13:49
阅读次数:
296
Iptables防火墙配置
安装防火墙
sudo apt-get install iptables
查看状态
sudo iptables --list
sudo iptables -A OUTPUT -p tcp --dport 80 -j DROP
浏览器不能上网
清除防火墙设置
Sudo iptables -F
Sudo iptables -D OUTPUT...
分类:
其他好文 时间:
2014-05-21 16:18:12
阅读次数:
316
Apache2 iptables
安装指令:sudo apt-get install apache2
2.产生的启动和停止文件是:/etc/init.d/apache2
3.启动:sudo apache2ctl -k start
4,停止:sudo apache2ctl -k stop
5,重新启动:sudo apache2ctl -k restart
...
分类:
其他好文 时间:
2014-05-21 14:05:17
阅读次数:
206
1.安装squid3
sudo apt-get install squid3
2,配置squid3
sudo cd /etc/squid3
sudo vim squid.conf
/http_access
N为向下查找 找到http_access deny all 把deny改成allow
3启动squid3
Sudo service squid3 start
关闭
S...
分类:
其他好文 时间:
2014-05-21 11:02:53
阅读次数:
270
首先去官网http://source.android.com/source/initializing.html可以看到完整的安装教程。不过一般情况下,按照这个教程是无法一步到位的,因为中途肯定会遇到很多问题。这里我把我遇到的问题以及相应的解决方案总结一下:
1、sudo apt-get inst.....
分类:
移动开发 时间:
2014-05-21 03:15:03
阅读次数:
392