lost and found ( for me ? )

Ubuntu 11.10 : FreeNX


Ubuntu11.10 ( NX server : unity-2d ) ---- Win7 ( NX client )

# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 11.10"
# uname -ri
3.0.0-14-server x86_64

[ install NX server on Ubuntu 11.10 ]

download server ,node and client deb packages from http://www.nomachine.com/download-package.php?Prod_Id=3592
# ls
nxclient_3.5.0-7_amd64.deb  nxserver_3.5.0-9_amd64.deb
nxnode_3.5.0-7_amd64.deb

install these deb packages.
# dpkg -i nxclient_3.5.0-7_amd64.deb
# dpkg -i nxnode_3.5.0-7_amd64.deb
# dpkg -i nxserver_3.5.0-9_amd64.deb

configuration files are stored under /usr/NX/etc
# ls /usr/NX/etc/
administrators.db         node.cfg             profiles.db.lock
administrators.db.lock    node.lic             profiles.db.sample
administrators.db.sample  nodes.db             server-debian.cfg.sample
guests.db                 nodes.db.lock        server.cfg
guests.db.lock            passwords.db         server.lic
guests.db.sample          passwords.db.lock    users.db
keys                      passwords.db.sample  users.db.lock
node-debian.cfg.sample    profiles.db          users.db.sample

binary files are installed under /usr/NX/bin directory.
# ls /usr/NX/bin/
nxagent   nxesd   nxnode   nxsensor  nxservice  nxssh   nxuexec
nxclient  nxkill  nxprint  nxserver  nxspool    nxstat

[ NX server : ubuntu 11.10 ]

# egrep -v ^# /usr/NX/etc/server.cfg | egrep -v ^$
ConfigFileVersion = "2.0"
EnableClipboard = "both"
EnablePasswordDB = "0"
EnableStatistics = "1"

node.cfg
# egrep -v ^# /usr/NX/etc/node.cfg | egrep -v ^$
ConfigFileVersion = "2.0"
CommandFuser = "/bin/fuser"
CommandXmodmap = "/usr/bin/xmodmap"
CUPSBinPath = "/usr/bin"
CUPSSbinPath = "/usr/sbin"
EnableCUPSSupport = "1"
MountShareProtocol = "none"
CommandStartGnome = "/etc/gdm/Xsession gnome-session"

start the NX server with the startup script.
# /usr/NX/scripts/init/nxserver start
Trying to start NX server:
NX> 122 Service started.
NX> 999 Bye.
Trying to start NX statistics:
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 999 Bye.

[ NX client : Windows 7 ]

download the NX client and install it.

configure the NX session for the Ubuntu

edit the NX client configuration ( *.nxs ) to use Japanese keyboard layout.
<option key="Custom keyboard layout" value="jp" />

the configuration files are stored under C:\Users\Username\.nx\config folder.

[ connect to the NX server ]



[ tips ]

1. can’t enter underscore
$ xmodmap -pke > ~/.Xmodmap


edit .Xmodmap
$ egrep 123 .Xmodmap
keycode 123 = backslash underscore

$ echo "can enter _"
can enter _


2. enter Japanese characters via NX serssion

install ibus-mozc
# apt-get install ibus-mozc


add the following lines in ~/.bashrc
export LANG="ja_JP.utf-8"
export LC_TYPE="ja_JP.utf-8"
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus



3. start NX server when booting
# cp /usr/NX/scripts/init/nxserver /etc/init.d/
# # update-rc.d nxserver defaults

No comments:

Post a Comment

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