Posts

Showing posts with the label X

[Level 2] Allow remote display in Ubuntu 12.04/10.04

If you want to allow remote display in Ubuntu 12.04, you have do the following steps: 1. remove "-nolisten tcp" from /etc/X11/xinit/xserverrc #[before] $ cat /etc/X11/xinit/xserverrc exec /usr/bin/X -nolisten tcp "$@" #[after] $ cat /etc/X11/xinit/xserverrc exec /usr/bin/X "$@" 2. add "xserver-allow-tcp=true" into /etc/lightdm/lightdm.conf #[before] [SeatDefaults] user-session=ubuntu greeter-session=unity-greeter #[after] [SeatDefaults] user-session=ubuntu greeter-session=unity-greeter xserver-allow-tcp=true 3. restart X 4. allow remote x connection local> xhost + 5. ssh remote server and set DISPLAY local> ssh remote_server remote> export DISPLAY=local_ip:0.0 remote> xclock in 10.04, you have to change above step 2 as the following: 2-10.04: add "DisallowTCP=false" in "security" section. #[before] $ cat /etc/gdm/custom.conf [daemon] TimedLoginEnable=false AutomaticLoginEnable=true TimedLogin=stanley Aut...

[Level 1] Remote UI display in local Ubuntu X.

If you want to display remote UI to your local X. You can use ssh -X to login remote server. Ex. local# ssh -X user@remote_host remote# echo $DISPLAY local_host:10.0 remote# xclock Then you can see xclock on your local X Wish this helps. regards, Stanley Huang

[Level 2] How to display GUI to remote host.

If you want to display GUI from remote host to local host. You can enable it as following steps: 1. enable gdm tcp listener. local# vi /etc/gdm/gdm.schemas ... <schema> <key> security/DisallowTCP < key > <signature > b <signature > <default> false <default> <schema> ...   PS. default is true. 2. restart local gdm. local# pkill -HUP X 3. enable remote session. local# xhost + 4. setting remote display remote# export DISPLAY=local_ip:0.0 or login remote server with ssh -X local# ssh -X remote-host 5. try with xclock remote# xclock Wish this helps. regards, Stanley Huang

[Level 2] Use ffmpeg to record desktop in Ubuntu.

You can use ffmpeg to record your desktop. 1. install ffmpeg first. # atp-get install ffmpeg 2. use command to record. # ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg 3. play it # vlc /tmp/out.mpg with this helps. regards, Stanley Huang

[Level 2] Xrandr on OpenSolaris in EeePC.

I install OpenSolaris on my EeePC, but I got a problem  about VGA output (for projector). My OpenSolaris can only support 800x600 resolution, but I think it could be higher. Then my colleague told me that I modify the file "/etc/X11/xorg.conf". In normal case, the steps as the following: 1. check your device. # xrandr Screen 0: minimum 320 x 200, current 800 x 480, maximum 800 x 800 VGA disconnected (normal left inverted right x axis y axis) LVDS connected 800x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm    800x480        60.0*+    640x480        85.0     72.8     75.0     59.9     720x400        85.0     640x400        85.1     640x350        85.1  TV...