Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I run a laptop at work which has a secondary monitor and gets its IP via DHCP. I also have a linux box under my desk which is static IP. This, too, has a monitor.
I got sick of switching keyboards all the time, and tried to find a software solution to my problem, before I invested in a KVM.
Synergy is a neat little tool which creates a 1-pixel wide vnc window on the edge of your screen, so when you mouse to the edge, you get control over the other computer.
I have tried setting up the linux box as a the server, and the laptop as the client. This results in me not being able to access both laptop screens, only the master. This is not ideal. So, setting the laptop as the master, and the linux box as the client works a treat.
However, since the laptop is DHCP, when I boot up, I get a new IP most days. So, I still have to log into the linux box, and restart synergyc
Now, I thought I might be able to get around this using ssh.
I could ssh into the linux box, kill synergyc, restart with my new ip. However, I get the following error messages:
chewy@toaster:~$ synergyc -f -1 <ip_address>
INFO: synergyc.cpp,708: Synergy client 1.2.7 on Linux 220.127.116.11-gg5vb7 #1 SMP Tue Nov 29 11:33:51 PST 2005 i686
DEBUG: CXWindowsScreen.cpp,776: XOpenDisplay(":0.0")
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
WARNING: synergyc.cpp,337: cannot open secondary screen: unable to open screen
So, if I muck about with xhost (xhost +, for example) it works. However, I can't run xhost + from the remote command line, because I get 'cannot open display ""'. So, I still need to do something manually from the linux box. Not wanting to leave xhost + active, I do xhost - afterwards.
I've since discovered xauth, but again, can't get this working.
What I -really- want to do is have a cronjob, which picks up the ip address of my laptop automatically (done this bit) and restarts synergyc when it detects a new ip (done this bit, too).
The problem is the same as that with ssh = I get the cookie denied stuff, and nothing I can do with xauth seems to make it work.
So, basically, how can I set up a cronjob with permission to set up a process that requires usage of x?