Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old April 30th, 2008   #1
wedgiey1
5 Cups of Ubuntu
 
Join Date: Apr 2008
Beans: 18
Autostart Synergy w/ Sudo

Help! I'm in BRAND new to Ubuntu. I decided to try it out on my secondary machine because windows needed a format. I used multiplicity before and saw that Synergy does the same thing. There is a bug with Synergy and the newest Ubuntu (8.0.4?) that causes so much lag it renders Synergy un-usable. The work-around to this is to run the synergy client (synergyc) with 'sudo'.

I follow the autostart directions exactly and it works (with lots of lag). The instructions say to use this script (/etc/X11/Xsession.d/85synergyc):

/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc <HOST NAME>

This works, but with the lag as mentioned above. I tried changing it to:

/usr/bin/killall synergyc
sleep 1
sudo /usr/bin/synergyc <HOST NAME>

&

/usr/bin/killall synergyc
sleep 1
/usr/bin/sudo synergyc <HOST NAME>

I'm sure these attempts are laughable because neither worked. Any help would be greatly appreciated.

Signed,
Linux Newb,
Wedgiey1
wedgiey1 is offline   Reply With Quote
Old April 30th, 2008   #2
swoll1980
May the Ubuntu Be With You!
 
swoll1980's Avatar
 
Join Date: Jun 2007
Location: The Mistake by the Lake
Beans: 1,639
Send a message via AIM to swoll1980 Send a message via Yahoo to swoll1980
Re: Autostart Synergy w/ Sudo

when I want to autostart I go to system>preferences>sessions then create new then add the program that I want to autostart for sudo add a gksu then a space then the program path
__________________
Quote:
Originally Posted by Homer J. Simpson
"Dinner is the perfect break between work, and drunk."
OMG I Quit Smoking!
swoll1980 is offline   Reply With Quote
Old April 30th, 2008   #3
wedgiey1
5 Cups of Ubuntu
 
Join Date: Apr 2008
Beans: 18
Re: Autostart Synergy w/ Sudo

I looked into this too; is there a way to make it run as the root that way?
wedgiey1 is offline   Reply With Quote
Old April 30th, 2008   #4
swoll1980
May the Ubuntu Be With You!
 
swoll1980's Avatar
 
Join Date: Jun 2007
Location: The Mistake by the Lake
Beans: 1,639
Send a message via AIM to swoll1980 Send a message via Yahoo to swoll1980
Re: Autostart Synergy w/ Sudo

gksu then a space then path to program
__________________
Quote:
Originally Posted by Homer J. Simpson
"Dinner is the perfect break between work, and drunk."
OMG I Quit Smoking!
swoll1980 is offline   Reply With Quote
Old April 30th, 2008   #5
wedgiey1
5 Cups of Ubuntu
 
Join Date: Apr 2008
Beans: 18
Re: Autostart Synergy w/ Sudo

I'll try this; to make certain though, do I run the "85synergyc" that I created? Or just the 'synergyc' command? And can I add arguments to the end of it? Lol, sorry for all the dumb questions, but this is all very new to me.
wedgiey1 is offline   Reply With Quote
Old April 30th, 2008   #6
swoll1980
May the Ubuntu Be With You!
 
swoll1980's Avatar
 
Join Date: Jun 2007
Location: The Mistake by the Lake
Beans: 1,639
Send a message via AIM to swoll1980 Send a message via Yahoo to swoll1980
Re: Autostart Synergy w/ Sudo

if the script you created opens the program just point the path to the script if you need to run the script and then open the program I think you put one of these (>) in between them like /path/to/script>/path/to/program don't quote me on that though
__________________
Quote:
Originally Posted by Homer J. Simpson
"Dinner is the perfect break between work, and drunk."
OMG I Quit Smoking!
swoll1980 is offline   Reply With Quote

Bookmarks

Tags
autostart, client, sudo, synergy, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:21 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry