View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Starting Synergy after X
PostPosted: Fri Jun 11, 2004 7:17 pm 
Offline
Joined: Fri Jun 11, 2004 6:57 pm
Posts: 3
Firstly, what a a totally fantastic system. I have tried installing Myth on Redhat 9.0, Fedora Core 1 and 2 all with no luck and now i'm running KnoppMyth with Nova-T DVB drivers with no problems..... well just one small one :wink: !

The missues hates to see keyboards and mice lying around so a search on these forums turned up a fantastic app to share a keyboard and mouse between systems http://synergy2.sourceforge.net/. I have an XP workstation running the server portion of Synergy and can connect from my KnoppMyth box when run in an Xterm with no problems. I would like to run the app on boot and have tried adding the required lines:

Code:
/usr/bin/killall synergyc
 /usr/local/bin/synergyc 192.168.0.18


to the /home/mythtv/.fvwm/.fvwm2rc file.

This works ok when I restart fvwm after exiting mythfrontend but not when it initially boots into Myth. I have tried adding these lines to the Xsessions file after moving them around in /.fvwm/.fvwm2rc.

As you can probably tell I'm rather new to all this Linux lark and have Googled all previous stumbling blocks but this one has got me stumped (and its late!) Any help would be much appreciated[url][/url]


Top
 Profile  
 
PostPosted: Sun Jun 13, 2004 12:15 am 
Offline
Joined: Thu May 20, 2004 1:38 pm
Posts: 20
Location: Dallas, TX
Specifically in file /etc/gdm/Session/fvwm file just add '/usr/local/bin/synergyc 192.168.0.18' above 'exec /usr/bin/fvwm'

I run x0rfbserver there.

-cyrus


Last edited by cyrus007 on Mon Jun 14, 2004 1:43 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 13, 2004 3:25 am 
Offline
Joined: Fri Jun 11, 2004 6:57 pm
Posts: 3
Hi Cyrus, thanks for the reply.

I tried adding 'exec /usr/bin/synergyc 192.168.0.18 &' before exec /usr/bin/fvwm and got a cryptic message from X before going into mythfrontend saying that my session only lasted 10 seconds and I should sort the problem with /usr/bin/fvwm or check disk space. I then tried putting that line after /usr/bin/fvwm and nothing happened.

According to the Synergy docs, some window managers (Debian) specifically block any third party apps until login for security so it should be run after a user has logged in. Forgive me for stepping back into M$ Windows but something like the 'Startup' group.


Top
 Profile  
 
PostPosted: Mon Jun 14, 2004 1:42 pm 
Offline
Joined: Thu May 20, 2004 1:38 pm
Posts: 20
Location: Dallas, TX
I was a bit wrong (edited now), should be 'exec /usr/local/bin/synergyc 192.168.0.18' and no & at the end as it spawns a daemon by default. You might need to add a sleep statement between the two lines as it seems synergy client needs some time to sync up with the server.

Have you run both the server and client with the -f option (foreground) to see they are working fine ? Only after that should you run them as daemons.

It is a good Debian policy. By entering the line in /etc/gdm/Session it implies that the process runs after the user logs in so it is running after login check and before fvwm spawns mythfrontend. 'ps axf' should show the hierarchy as:
Code:
gdm
 |-> X:0.0
        |-> synergyc
        |-> fvwm
                |-> mythfrontend

BR
-Cyrus


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 5:45 pm 
Offline
Joined: Fri Jun 11, 2004 6:57 pm
Posts: 3
Hello, again thank you for your reply

I have now changed the line in /etc/gdm/Session/fvwm to exec /usr/bin/synergyc 192.168.0.18 (path typo on my part when creating this post) as you have suggested and still get the same error. I also tried a sleep command 'sleep 10' between starting synergy and running fvwm but that now stops me from loggin on at all! SSH into the box and running ps afx shows synergy listed but on a lower level than gdm.

Code:
  704 ?        S      0:00 /usr/local/sbin/lircd
  734 ?        S      0:00 /usr/sbin/cron
  757 ?        S      0:00 /usr/bin/gdm
  766 ?        S      0:00  \_ /usr/bin/gdm
  853 ?        S<L    0:01      \_ /usr/bin/X11/X :0 -deferglyphs 16 -nolisten t
  864 ?        S      0:00      \_ /usr/bin/gdm
  792 tty1     S      0:00 /sbin/getty 38400 tty1
  793 tty2     S      0:00 /sbin/getty 38400 tty2
  794 tty3     S      0:00 /sbin/getty 38400 tty3
  795 tty4     S      0:00 /sbin/getty 38400 tty4
  796 tty5     S      0:00 /sbin/getty 38400 tty5
  797 tty6     S      0:00 /sbin/getty 38400 tty6
  799 ?        SW     0:00 [kdvb-fe-0:0]
  801 ?        SW<    0:00 [kapmd]
  821 ?        SW     0:00 [kdvb-fe-1:0]
  863 ?        S      0:00 /usr/bin/synergyc 192.168.0.18
  865 ?        S      0:00  \_ /usr/bin/synergyc 192.168.0.18
  866 ?        S      0:00      \_ /usr/bin/synergyc 192.168.0.18


(this was after several login attempts which resulted in the error again and a restart of X)

I did run both client and server in the foreground (-f) beforehand and yes it all worked beautifully.

I should imagine this is a really simple problem but not knowing very much about Linux does not help (although I am thoroughly enjoying the ride!!) At least I have successfully added another DVB card to the system and now have two Nova T DVB cards and a PVR 350 (getting the 350 working on TV out is the last step!)

TIA
Rutger


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 1:48 am 
Offline
Joined: Mon Aug 08, 2005 6:00 am
Posts: 10
Location: UK, up north!
Hi,
are there any special steps you needed to take to get the Nova T card working?

Does this look like the same card:-
http://www.ebuyer.com/customer/products ... _uid=27669

Thanks
Mike


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu