Workaround for X Forward Issues After “su/sudo”

November 19th, 2010

Sometimes you need to run X applications from a console. You have :
– X11 Forwarding enabled on server side and requested on client connection
– X server is started on the client side
– DISPLAY variable set
You test X server (xclock, xterm…) and all is fine… Then for a reason or another you need to change the current user and… X Forwarding no longer works…

Despite all stuff set any application requiring X hangs or fails with messages like this :

Xlib: connection to "localhost:11.0" refused by server and/or Error: Can't open display: 192.168.XXX.XXX:0.0 and/or Error: Couldn't find per display information

etc… And xhost + command did not help…

Here is a “worth-to-try” workaround (solution ?) that helped me a lot yet :

1. Connection as first user

user1@server $ echo $DISPLAY && xauth -i list
localhost:10.0
server/unix:11  MIT-MAGIC-COOKIE-1  9b5c0501c1cc11048d94e318377d3a6f
server/unix:10  MIT-MAGIC-COOKIE-1  3cd5ca881727145e1d53434385af2199

Note accurately the DISPLAY result and the whole line matching it, ie the line which has the same display number (here “10″).

2. You perform some user changes (here root then user2) :

user1@server $ su -
Password:******
NOTE: You are super-user
root@server # su - user2

3. As user you want run X apps with then use 1st user information you grabbed :

user2@server $ export DISPLAY=localhost:10.0
user2@server $ xauth -i add server/unix:10  MIT-MAGIC-COOKIE-1  3cd5ca881727145e1d53434385af2199

4. Now try :

user2@server $ xclock
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset

Then It should work =)

Read the rest of this entry »

TV Mosaic : Next Version (0.4.1 ?) to Support (Basic) Network Streaming

November 9th, 2010

Network Streaming is a request I received several times…
So I’m Working on this. First tests are encouraging… It seems work yet with HTTP input.
It needs to be stuffed but here is a first DEMO.

TV Mosaic 0.4.0 is Out !

November 6th, 2010

10 months after last version

the new one is available !

tvmosaic_logo

 

 

 

 

Here is the definitive changelog :

- Implementation of Electronic Program Guide (EPG) via XMLTV Standard (new parameters/options…). Applies to Recording as well.
- Some GUI modifications (like main window which is slightly smaller to fit 1024×768 display etc…)
- Faster DVB Tuner Existence Check
- Configuration tool is now separated program
- Timer Daemon now installed and started/handled by Root/System (requieres /etc/mplayer/channels.conf synchronized with user channels.conf file)
- Timer Daemon reliability increased
- Mencoder log now easily available in Timer for troubleshooting (double-clicks on Job in GUI and -v option in Client)
- New -o option for Timer Client to show Output Directory content and Disk Usage
- Timer Bug Fix when job is in UNKNOWN state (was stuck)
- Timer Clean Up now applies to UNKNOWN Jobs as well
- Output Directory free space information available in Timer
- Bug crash on open directory with inexistant browser fixed
- Many other things & code changed…

Download is still HERE !

Any feedback is welcomed. Enjoy ! =)

TV Mosaic : 0.3.2 Will Finally Be 0.4.0 Version !

November 2nd, 2010

So much changes and new stuff in this version make me think this is a major release…
So a major release number better reflects the reality…
0.4.0 version to be released very soon…

Finalizing Next TV Mosaic Version…

October 26th, 2010
TV_Mosaic_0.3.2

TV_Mosaic_0.3.2

Ten months after last release I’m currently terminating latest development for the next TV Mosaic version which could be the 0.3.2 version.

The main new feature is the EPG implementation but here is the full change log for now :

Generic :
- Implementation of Electronic Program Guide (EPG) via XMLTV Standard (new parameters/options…). Applies to Recording as well.
- Some GUI modifications (like main window which is slightly smaller to fit 1024×768 display)
- Faster DVB Tuner Existence Check

Conf :
- Configuration tool is now separated program

Timer :
- Daemon now installed and started/handled by Root/System (requieres /etc/mplayer/channels.conf synchronized with user channels.conf file)
- Daemon reliability increased
- Mencoder log now easily available for troubleshooting (double-clicks on Job in GUI and -v option in Client)
- New -o option for Client to show Output Directory content and Disk Usage
- Bug Fix when job is in UNKNOWN state (was stuck)
- Clean Up now apply to UNKNOWN Jobs as well

Bug Fixes :
Bug crash on open directory with inexistant browser fixed

Stay Tuned… =)