Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, March 16, 2009

running X applications from linux


this is just a quick way to run linux applications on an X session from another linux/opensolaris client. i mean you want to run an x application - such as gimp, rhytmbox etc.- on linux box inside an X session in an X environment, which looks like this.

so todo that i first ssh -X to linux box,


ssh -X mediapc


then i run Xephyr - or you can run Xnest, but xephyr is a little bit faster -, then run an xterm with blackbox.

Xephyr -screen 1150x750 :2 &
xterm -display :2 -e blackbox &



or you can put them in a shell script like this

aybars@ubuntu:~$ cat ./xepstart
#!/bin/bash
Xephyr -screen 1150x750 :2 &
sleep 2
xterm -display :2 -e blackbox &


you need to wait/sleep for a couple of seconds for X to initialize. or if you like gnome, you can say


aybars@ubuntu:~$ cat ./xepstart
#!/bin/bash
Xephyr -screen 1150x750 :2 &
sleep 2
xterm -display :2 -e gnome-session &


to install xephyr on ubuntu

sudo apt-get install xserver-xephyr

running nx client from linux

i don't know if you ever used nomachine-nx to access your linux machines, its much better in performance compared to vnc.

there is a client for solaris/sparc, but as you may guess, it doesn't work on intel/amd platform.

anyway there are efforts on making an opensolaris nxclient for intel platform, you can try to compile it

http://blogs.sun.com/xavier/entry/freenx_opensolaris

or you can try to install a precompiled one for solaris:

http://www.kraftek.com/blog/index.php?/archives/227-NX+freenx-server-binary-tarball-for-Solaris-10-x86.html

or there is one without dependencies only for opensolaris
http://www.opensolaris.org/os/project/awards/awards_land/Entries/ (the second one,Port NX+freenx to Solaris x86), i don't remember if this one had client in tar.gz.

or you can try this one

http://opensolaris.org/jive/thread.jspa?threadID=83962, there is a link to

anyway, i was unlucky i couldn't get neither them working, - i didn't spend too much time to be honest -, so as a workaround, i make


aybars@opensolaris:~$ ssh -X 192.168.1.64
aybars@ubuntu:~$ /usr/NX/bin/nxclient &


it works as expected.

mount linux nfs shae from open solaris

although i am not quite sure why but mounting an nfs share from open solaris needs version parameter, something like this.


sudo mount -F nfs -o vers=3 mediapc:/home/aybars /media/mediapc/



if you say

aybars@opensolaris:~$ sudo mount -F nfs -o vers=4 192.168.1.64:/home/aybars /media/mediapc/
nfs mount: 192.168.1.64:/home/aybars: No such file or directory


if you want to know more on this subject,
http://blogs.sun.com/macrbg/entry/solaris_nfsv4_client_mount_from