Linux 服务器的远程控制技术及实战(2)

作者:佚名 来源:站长之家 时间:2008-11-03 12:37:00 



一、FreeNX服务器端安装

1、下载软件:

下载freenx、nx、expect、nc

2、安装软件:


           

  #rpm -ivh nc-1.10-18 RPM for i386

  #rpm -i nx-1.4.0-0.fdr.4.i386.rpm

  #rpm -i expect-5.4.2.1-1.i386.rpm

  #rpm -i freenx-0.3.1-0.fdr.0.noarch.rpm


3、配置nxserver


           

  # /usr/bin/nxsetup ——install

  Setting up /etc/nxserver ……done

  Setting up /var/lib/nxserver/db ……done

  Setting up /var/log/nxserver.log ……done

  Setting up known_hosts and authorized_keys2 ……done

  Setting up permissions ……done

  Ok, nxserver is ready. 

  PAM authentication enabled:

  All users will be able to login with their normal passwords.

  PAM authentication will be done through SSH.

  Please ensure that SSHD on localhost accepts password authentication.

  You can change this behaviour in the /etc/nxserver/node.conf file.

  Have Fun!


4、添加用户和密码


           

  # nxserver ——adduser x1

  NX> 100 NXSERVER - Version 1.4.0-44 OS (GPL)

  NX> 1000 NXNODE - Version 1.4.0-44 OS (GPL)

  NX> 716 Public key added to: /home/x1/.ssh/authorized_keys2

  NX> 1001 Bye.

  NX> 999 Bye

  [root@host tmp]# nxserver ——passwd x1

  NX> 100 NXSERVER - Version 1.4.0-44 OS (GPL)

  New password:

  Password changed.

  NX> 999 Bye


说明:x1用户必须是服务器已经存在的用户。

5、修改权限


           

  #nxsetup ——install ——setup-nomachine-key

  chmod 666 /dev/urandom

  # chmod 666 /dev/null

  # chmod 640 /var/lib/nxserver/home/.ssh/authorized_keys2


6、启动、查看、停止nx命令


           

  # nxserver ——start: 启动NX服务器

  nxserver ——stop: 停止NX服务器

  nxserver ——status: 查看NX服务器

  nxserver ——restart: 重新启动NX服务器

  nxserver ——help: 查看帮助信息


如果你在使用 iptables防火墙,你必需打开相应端口:


           

  # iptables -A INPUT -i lo -s 127.0.0.1 -j ACCEPT

  #iptables -A INPUT -p tcp ——dport 22 -j ACCEPT

  #iptables -A OUTPUT -p udp ——sport 22 -j ACCEPT

  # iptables -A INPUT -p tcp ——dport 5000 -j ACCEPT

  #iptables -A OUTPUT -p udp ——sport 5000 -j ACCEPT


说明:NxFree服务器完全依赖于SSH进行工作,所以请先确保Linux服务器的Openssh配置无误。

标签:
0
投稿

猜你喜欢

  • 如何拥有像淘宝那样的平台

    2010-03-03 16:44:00
  • 关键词匹配度-怎么发布文章才会有流量

    2007-09-23 08:56:00
  • 利用Google打造成功的网站

    2007-08-14 09:08:00
  • 大型媒体网站提升网站流量的三大SEM技巧

    2009-02-04 09:41:00
  • Google工程师解释Googlebot抓取网页的原理

    2009-02-10 18:04:00
  • 用DNS服务器技术检查排除网络故障

    2009-08-27 14:29:00
  • IIS报Service Unavailable错的解决方案

    2008-04-22 13:52:00
  • 增强WEB服务器IIS安全性的五个简单有效措施

    2008-10-10 09:07:00
  • 放弃谷歌Web服务的10大理由

    2010-08-11 17:12:00
  • 2010年建站系统TOP10

    2010-10-19 12:30:00
  • Vista系统下IIS的HTTP 500错误解决办法

    2008-12-22 08:37:00
  • Sun Java系统Web服务器:关键任务的选择

    2008-01-04 10:33:00
  • 最有创意的100大个性网名

    2009-07-20 14:48:00
  • IT时代周刊:百度搜索公正性彻底调查

    2008-10-28 20:42:00
  • 保障WEB服务器安全的三方面利器

    2009-07-23 10:28:00
  • 服装类网站的搜索引擎优化方案

    2008-03-05 11:40:00
  • Godaddy主机读写权限设置(windows主机)

    2010-04-11 13:18:00
  • 个人站长如何应付Google Adsense变化

    2007-11-19 13:24:00
  • 新网站被google,百度收录的小技巧

    2009-08-11 14:44:00
  • 与好友一起玩转幸运棋牌 体验不一样的社交应用

    2009-10-15 17:34:00
  • asp之家 网站运营 m.aspxhome.com