- 博客(4)
- 收藏
- 关注
转载 在LINUX服务器下查看公网IP地址
在LINUX服务器下查看公网IP地址,可以使用下面的方法:curl http://members.3322.org/dyndns/getipcurl icanhazip.com
2016-06-21 11:07:21 3181
原创 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
转载 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
转载 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人