Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 recently installed mandrake 10.1 on a third box that I was able to acquire for a good price. The point of the box was to set up a server, but also learn a bit about linux. I am fairly confortable with shell, at least I can get around, set permissions, compile c programs, etc. But I am no way an expert.
Here is the problem. Last year I discovered a program called win2vnc, which enabled me to move my mouse "off" my windows monitor and onto my ibook running a VNC server. I am aware that the same guy wrote x2vnc first as a linux based program that does the same thing. I downloaded the program (do a google search for x2vnc to find it) and tried to do the install the way that the readme file said. ./configure then make. I get hoards of errors when I do the make, the first two of which are:
./x2vnc.h:28:22: X11/Xlib.h: No such file or directory
./x2vnc.h:29:21: X11/Xmd.h: No such file or directory
I assume I'm missing these libraries, and so I was wondering if any of you had any suggestions about where I could find these. I tried a search on SourceForge, but I couldn't tell which one I might need. Any help would be great
Thanks for the reply, but any idea what it would be called? I did a search in rpmdrake for X development in the descriptions and it found a few, but none seemed to be the right one. I have updated the list of packages online if that matters at all.
Any idea what might have cause this one? I did find the ld file in the bin folder, and I did a search for lX11. No luck. The man page for ld suggests that after the -l it is looking for an achive. Where might this be, or where can I get it?
In addition to the include files (*.h) which are needed to compile, eventually it wants to link to the libraries and resolve the symbols that those include files are referencing, and it looks like either the library is not installed, or it can't be found as the name "libX11.so". I would have to think the lib was installed along with the include files, so hopefully it's a naming/path issue. First take a look in /usr/X11R6/lib and see if libX11.so (a symlink to the real lib) is there and points to something valid, then take a look at your /etc/ld.so.conf file to see if that path is present in it, if not, add it and run ldconfig to update it's cache, you may just want to run ldconfig anyway. If the make is trying to link in the symbols statically, then the library would typically have a dot a extension, "libX11.a". In any case, if you're using mdk's pkg mgr to search for the package, you'll want to search on libX11.so and/or libX11.a
there is a file in the /usr/X11R6/lib folder called libX11.so, no file ending in .a Well, there are files ending in .a for other libraries, but none for the libX11. So I did a search and sure enough found a package with the .a file there. I installed it and now its in there. Doing a make still causes the same error. I am not sure how to check if libX11.so points to something vaild or not. Doing a cat libX11.so spits out a BUNCH of garbage text which makes me think that it is something compiled. I also have no idea how to "run ldconfig"
I tried going to the folder and typing ldconfig, I tried ./ldconfig, I guess I don't know enough to try anything else. So again I am stuck. Thanks for your continuing help.
Some options are different from yours but that's because we ./configure'd on different machines, it didn't seem to have any issue with the -lX11 on my machine, the lack of "-L/usr/X11R6/lib" in your command line is curious. Perhaps it's time to try the alternate build option from the readme:
2) edit Imakefile, run 'xmkmf', then 'make'
Of course, I tried running x2vnc right after compiling and as expected it was a bit of a let down, this is since I don't have any vnc stuff running, so you want to get that going first (assuming the compile works). I can also recommend an inexpensive KVM switch, I use one to share keyboard/mouse/monitor between 2 boxes and it's fast and effective while placing no strain on network bandwidth.
Success!!! I avoided the other install (xmkmf) before because I didn't have the program installed and I had forgotten about it since learning how to search and install. I installed it and ran the program no problem. Thank you so much for all your help. This was a huge learning experience.
Ayway I am using a KVM switch. It goes between my Windows and Linux boxes. I have the windows version of this program working to control third computer (ibook) and i just wanted to be able to control the ibook from both so that it didn't matter which computer was up, I could still move the mouse over to the ibook.