Linux
瘋狂的毛驢
这个作者很懒,什么都没留下…
展开
-
vi/vim个人配置文件
"显示行号set nu"代码高亮set syntax=on" 自动缩进set autoindentset cindent" Tab键的宽度set tabstop=4" 统一缩进为4set softtabstop=4set shiftwidth=4" 用空格代替制表符set expandtab" 高亮显示匹配的括号set showmatch转载 2015-09-30 10:22:35 · 341 阅读 · 0 评论 -
xxx is not in the sudoers file. This incident will be reported.解決方法
我们通常都是以普通用户登录linux, 在执行sudo时候会遇到 xxx is not in the sudoers file. This incident will be reported。解决方法如下1、首先要切换到root账户$su -(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,转载 2015-09-30 10:56:09 · 891 阅读 · 0 评论 -
Fedora下vnc配置和开机启动
1.确认是否已经安装了vncserver[root@localhost ~]# rpm -qa | grep vnctigervnc-server-1.0.1-3.fc12.i686tigervnc-1.0.1-3.fc12.i686gtk-vnc-0.3.10-1.fc12.i686VNC服务使用的端口号与桌面号相关,VNC使用TCP端口从5900开始,对应关系如下桌原创 2015-09-30 13:55:57 · 2223 阅读 · 0 评论 -
在LINUX服务器下查看公网IP地址
在LINUX服务器下查看公网IP地址,可以使用下面的方法:curl http://members.3322.org/dyndns/getipcurl icanhazip.com转载 2016-06-21 11:07:21 · 3181 阅读 · 0 评论