vnc登陆linux密码不能输入法,CentOS 5.5配置VNC服务及客户端连接后输入法切换问题...

一、在Linux服务器中,我们通常是通过ssh进行远程操作,偶尔需要有桌面支持或图形化安装相关软件时,则需要远程到服务器桌面或将输出图形调到客户端。

Linux下的远程工具通常用到的有xmanager、vnc。以下将简单介绍vnc的应用。

step1:安装vnc并启动vnc

[root@www.linuxidc.com ~]# rpm -qa |grep vnc#需安装以下两个包vnc-4.1.2-14.el5_6.6

vnc-server-4.1.2-14.el5_6.6

[root@www.linuxidc.com ~]#service vncserver start  #启动vnc服务

Starting VNC server: no displays configured [  OK  ]

step2:修改 /etc/sysconfig/vncservers 配置文件,添加tghfly和test用户,设置会话窗口,并使用gnome桌面

[root@www.linuxidc.com ~]# grep -v "#" /etc/sysconfig/vncservers

VNCSERVERS="1:tghfly 2:test"     #1表示登录会话窗口,tghfly表示登录用户

VNCSERVERARGS[1]="-geometry 1280x768"   #远程桌面窗口大小为1280x768

VNCSERVERARGS[2]="-geometry 1280x768"

step3:创建系统用户tghfly和test,并设置密码

[root@www.linuxidc.com ~]# useradd tghfly

[root@www.linuxidc.com ~]#passwd tghfly

Changing password for user tghfly.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

[root@www.linuxidc.com ~]#useradd test

[root@www.linuxidc.com ~]# passwd test

Changing password for user test.

New UNIX password:

BAD PASSWORD: it is too short

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

step4:切换到tghfly和test,设置远程登录密码,生成远程认证文件

[root@www.linuxidc.com ~]# su - tghfly

[www.linuxidc.com@linuxidc ~]$ vncserver#使用vncserver设置当前用户远程登录密码

You will require a password to access your desktops.

Password:

Verify:

xauth:  creating new authority file /home/tghfly/.Xauthority

New 'hongwb.com.cn:1 (tghfly)' desktop is hongwb.com.cn:1

Creating default startup script /home/tghfly/.vnc/xstartup

Starting applications specified in /home/tghfly/.vnc/xstartup

Log file is /home/tghfly/.vnc/hongwb.com.cn:1.log0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值