![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
DeeFOX
架构师之路
展开
-
Cygwin下安装配置SSH服务器
安装wget利用cygwin的安装程序,在win cmd界面:setup.exe -q -P wget进入cygwin命令行,从google code下载源码并打包成文件放在/bin目录上wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg -P /bin/如果上面的地址连不上就用下面这个:wget https://raw原创 2015-01-15 00:02:41 · 455 阅读 · 0 评论 -
VNC远程时黑屏不接收鼠标点击信息
我用的时X11VNC,具体的安装和使用、配置过程可以很简单地在网上查到,个人感觉比VNC4Server方便易用(可能是技术太菜的原因)但是今天在Win8上用VNCViewer连接的时候发现一只卡在黑屏处不能进入登录界面,想这样:(后来又不知道怎么可以了,所以暂时没有接图)ssh过去以后,命令行发现没有xstartup命令。。。百度了一下,发现可以用命令“x11vnc -display :0原创 2015-01-19 00:45:46 · 2699 阅读 · 0 评论 -
linux创建新用户
1、创建新用户su root 或者直接在本用户下新terminal:sudo useradd -d /home/ -m 2、若(*** is not in the sudoers file. This incident will be reported)出现添加新用户为sudoers参考:3、若忘记在useradd时候指定shell,因为使用 useradd 添加用户时, 默认配给原创 2015-01-16 00:21:38 · 466 阅读 · 0 评论 -
linux添加用户到sudoers/用户可以sudo
1、更改/etc/sudoers为可修改文件:sudo chmod u+w /etc/sudoers2、修改/etc/sudoerssudo vi /etc/sudoers3、添加权限:在 root ALL=(ALL:ALL) ALL 下面增加一行: ALL=(ALL:ALL) ALL保存退出4、将/etc/sudoers权限改回来:sudo chmod原创 2015-01-16 00:38:59 · 483 阅读 · 0 评论 -
linux修改用户shell
修改用户的 Shell如果你没有管理员权限, 那么你只能修改自己的 Shell, 输入 chsh 命令.$ chsh这时你会获得提醒, 要求输入新的 Shell 应用路径. 如果你要换成 bash, 请输入 /bin/bash 并回车确认.Enter the new value, or press ENTER for the defaultLog转载 2015-01-16 00:30:05 · 1827 阅读 · 0 评论 -
llinux节点间ssh无密码登录
1、安装ssh打开命令行Ctrl+Alt+t:sudo apt-get install openssh-server,openssh-client2、关闭防火墙:http://blog.csdn.net/scut_flyaway/article/details/427227913、生成.ssh文件ssh localhost4、在.ssh/中生成id_rsa.pubcd .s原创 2015-01-15 00:14:23 · 418 阅读 · 0 评论 -
ubuntu关闭防火墙命令
关闭ubuntu防火墙ufw disable卸载iptables(可以不卸载)apt-get remove iptables原创 2015-01-15 00:23:07 · 1323 阅读 · 0 评论 -
windows远程桌面 登录 ubuntu
今天想配置win:vncviewer+ubuntu:vncserver,在win上远程登录ubuntu,但是不成功,参考了几篇博客,还是在登录以后出现命令行/Termial加灰色底面/桌面(灰底)的情况(参考博客:http://bbs.csdn.net/topics/370157009,http://blog.itpub.net/35489/viewspace-84455/),貌似用这个方法可以:原创 2015-01-15 00:39:24 · 478 阅读 · 0 评论 -
Ubuntu下 ssh : connect to host localhost port 22:Connection refused
转:http://asyty.iteye.com/blog/1440141Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused 造成这个错误的原因可能是ssh-server未安装或者未启动。ubuntu 14.10 默认安装openss转载 2015-01-15 00:19:33 · 443 阅读 · 0 评论 -
ubuntu更新时提示/boot空间不足 解决方案
1、ubuntu更新首先最好重新设置数据源:在“软件和更新”那里设置,最好选择163的源(题主在广州)2、ubuntu更新时提示/boot空间不足控制台使用命令:df -l发现/boot已用99%3、查看自己系统的内核版本:1 2 annhe@ubuntu:~$ uname -a Linux ubuntu 3.2.0-25-generic #原创 2015-04-07 15:24:25 · 943 阅读 · 0 评论