lost and found ( for me ? )

CentOS 6.2 64bit : set up freenx server



# cat /etc/centos-release
CentOS release 6.2 (Final)

# uname -ri
2.6.32-220.7.1.el6.x86_64 x86_64


[ install freenx server on CentOS 6 ]

install freenx and nx via yum
# yum install freenx nx –y


[ configuration ]

config files are sotred under /etc/nxserver directory.
# pwd
/etc/nxserver

# ls
client.id_dsa.key  node.conf.sample  passwords.orig         users.id_dsa
node.conf          passwords         server.id_dsa.pub.key  users.id_dsa.pub


inisital setup


edit node.conf like this:
# cat node.conf
ENABLE_PASSDB_AUTHENTICATION="0"
ENABLE_SSH_AUTHENTICATION="1"
ENABLE_CLIPBOARD="both"
NX_LOG_LEVEL=4
NX_LOGFILE=/var/log/nx/nxserver.log
COMMAND_MD5SUM="md5sum"

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

restart nxserver
# /etc/init.d/freenx-server restart


[ intall NX client for Windows on Windows 7 ]

download nx client from http://www.nomachine.com/download-package.php?Prod_Id=3655

I have installed NX client 3.5.0-7 for windows

launch NX client -> configure


configuration files ( NX client for windows ) for nx session are stored \user\user name\.nx\config folder

Here’s centos6-1.nxs file.  I configured keyboard layout as jp.

<!DOCTYPE NXClientSettings>
<NXClientSettings application="nxclient" version="1.3" >
<group name="Advanced" >
<option key="Cache size" value="16" />
<option key="Cache size on disk" value="64" />
<option key="Current keyboard" value="true" />
<option key="Custom keyboard layout" value="jp" />
<option key="Disable DirectDraw" value="false" />
<option key="Disable ZLIB stream compression" value="false" />
<option key="Disable deferred updates" value="false" />
<option key="Enable HTTP proxy" value="false" />
<option key="Enable SSL encryption" value="true" />
<option key="Enable response time optimisations" value="false" />
<option key="Grab keyboard" value="false" />
<option key="HTTP proxy host" value="" />
<option key="HTTP proxy port" value="8080" />
<option key="HTTP proxy username" value="" />
<option key="Remember HTTP proxy password" value="false" />
<option key="Restore cache" value="true" />
<option key="StreamCompression" value="" />
</group>
<group name="Environment" >
<option key="Font server host" value="" />
<option key="Font server port" value="7100" />
<option key="Use font server" value="false" />
</group>
<group name="General" >
<option key="Automatic reconnect" value="true" />
<option key="Command line" value="" />
<option key="Custom Unix Desktop" value="console" />
<option key="Desktop" value="gnome" />
<option key="Disable SHM" value="false" />
<option key="Disable emulate shared pixmaps" value="false" />
<option key="Link speed" value="adsl" />
<option key="Remember password" value="false" />
<option key="Resolution" value="1024x880" />
<option key="Resolution height" value="880" />
<option key="Resolution width" value="1024" />
<option key="Server host" value="IP address" />
<option key="Server port" value="22" />
<option key="Session" value="unix" />
<option key="Spread over monitors" value="false" />
<option key="Use default image encoding" value="1" />
<option key="Use render" value="true" />
<option key="Use taint" value="true" />
<option key="Virtual desktop" value="false" />
<option key="XAgent encoding" value="true" />
<option key="displaySaveOnExit" value="true" />
<option key="xdm broadcast port" value="177" />
<option key="xdm list host" value="localhost" />
<option key="xdm list port" value="177" />
<option key="xdm mode" value="server decide" />
<option key="xdm query host" value="localhost" />
<option key="xdm query port" value="177" />
</group>
<group name="Images" >
<option key="Disable JPEG Compression" value="0" />
<option key="Disable all image optimisations" value="false" />
<option key="Disable backingstore" value="false" />
<option key="Disable composite" value="false" />
<option key="Image Compression Type" value="3" />
<option key="Image Encoding Type" value="0" />
<option key="Image JPEG Encoding" value="false" />
<option key="JPEG Quality" value="6" />
<option key="RDP Image Encoding" value="3" />
<option key="RDP JPEG Quality" value="6" />
<option key="RDP optimization for low-bandwidth link" value="false" />
<option key="Reduce colors to" value="" />
<option key="Use PNG Compression" value="true" />
<option key="VNC JPEG Quality" value="6" />
<option key="VNC images compression" value="3" />
</group>
<group name="Login" >
<option key="Auth" value="EMPTY_PASSWORD" />
<option key="Guest Mode" value="false" />
<option key="Guest password" value="" />
<option key="Guest username" value="" />
<option key="Login Method" value="nx" />
<option key="Public Key" value="-----BEGIN DSA PRIVATE KEY-----
zzzzz
-----END DSA PRIVATE KEY-----
" />
<option key="User" value="zzz" />
</group>
<group name="Services" >
<option key="Audio" value="false" />
<option key="IPPPort" value="631" />
<option key="IPPPrinting" value="false" />
<option key="Shares" value="true" />
</group>
<group name="VNC Session" >
<option key="Display" value="0" />
<option key="Remember" value="false" />
<option key="Server" value="" />
</group>
<group name="Windows Session" >
<option key="Application" value="" />
<option key="Authentication" value="2" />
<option key="Color Depth" value="8" />
<option key="Domain" value="" />
<option key="Image Cache" value="true" />
<option key="Password" value="EMPTY_PASSWORD" />
<option key="Remember" value="true" />
<option key="Run application" value="false" />
<option key="Server" value="" />
<option key="User" value="" />
</group>
<group name="share chosen" >
<option key="Share number" value="0" />
</group>
</NXClientSettings>


connect to the centos from windows machine.

[ keymap setting ]

I can’t enter underscore via NX session

to solve this , edit .xmodmap file.
$ xmodmap -pke > .Xmodmap


add the “backslach underscore” in keycode 123.
$ egrep 123 ~/.Xmodmap
keycode 123 = backslash underscore


terminate NX session and connect again
You could enter underscore.



If you want to start freenx-server when booting the OS , configure system services with chkconfig command like this:

# chkconfig freenx-server --list
freenx-server   0:off   1:off   2:on    3:on    4:on    5:on    6:off

# chkconfig freenx-server off
# chkconfig freenx-server on

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.