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.
As part of my learning process with Linux (Debian 4.0r5 "Etch") I am doing various things to customize my environment. I have had great success in modifying things like the Grub splash screen, Gnome splash screen, etc. I would now like to change the text color of my xmatrix screensaver from green to blue if at all possible. Any insight on how to do this is greatly appreciated.
I would first suggest you try to compile something first, reading source code is very tricky for a beginner!
Find some software that you want, get the source code for it, unpack it then try to compile it by following the instructions in the README and INSTALL files provided.
Try compiling mplayer, the outdated versions will be fine as a beginners exercise
Since there is no option of the xmatrix command to change the color (except for a -install to use a custom palette, but I sincerely don't know how it works) the suggestion by Tuttle was to download the source code, edit the proper C program, make the necessary modifications and recompile it. This is equal to do a new installation of the entire xscreensaver package (xmatrix is part of it) or eventually to substitute the only xmatrix executable with the newly compiled one. A kind of hack that can mess an installed package.
Anyway, you have to begin by downloading the source. First determine who is the developer, then go to the website and look for the source code. You can start by retrieving information about the installed package and see if there is the author name and eventually the URL of his/her website. You can retrieve such information also from the debian packages site: http://packages.debian.org/etch/xscreensaver. See the "Copyright file" in the menu on the right.
Then you have to extract the source, modify the source code (maybe there is a xmatrix.c file) and compile it. Most likely you have to satisfy some dependency, e.g. you have to install some devel package to make the graphic libraries and header files available to the compilation. It may be a nightmare, especially if you're new to linux!
Personally I would spend my time to learn something more useful or less complicate. You can go to the GNU website, download the source code of some application you've not installed yet and try to compile it. And eventually install in /usr/local. Just a thought. Good luck!
Edit: beaten by Tuttle! Just out of curiosity, have not RTFM a slightly different meaning?!
Wow, very impressive! The minixpm_to_ximage function is defined by the xscreensaver source itself. Really strange it could not find it. Try to configure again using --without-xpm.
Just another hint. I suggest to not install after successful compilation. Just locate the xmatrix executable inside the source directory and execute it from there. Just to test and to avoid messing up the already installed package.
Goodnight, Tuttle! Here in Italy is launch time... indeed we are at the antipodes!
The function minixpm_to_ximage is defined in utils/minixpm.h. The header is included in minixpm.c and the resulting compiled object minixpm.o should contain the definition as well. The programs in the utils directory should be compiled at the very beginning of the make step. So check for the first lines of output and see if there is some problem in the compilation of minixpm.c or if it is actually compiled.
Since you may have a long output and maybe you can't scroll it to the beginning, use the tee command to save the output to a file. I suggest to follow these steps now:
$ cd xscreensaver-5.07
$ make distclean
$ make 2>&1 | tee make.log
then you will have a file make.log to check later. See if there is a line similar to the following and if there are some strange messages immediately after:
Prior to reading the last two posts, I got the "brilliant" idea to try and compile xmatrix.c by itself. I had some problems, made some progress, met some major speedbumps and abandoned the idea. Oh well... it was just a thought.
From what I can discern, minixpm.c is getting compiled. I don't see anything unusual (from whatever I know of usual) after the instruction to compile it. I have copied and pasted part of the output (before the next gcc statement) here:
I am going to try and see if I can omit 'blitspin' and see what happens there.
Thanks for sticking with me on this one. Y'all let me know when you figure we need bail on this though (something tells me y'all are like me and don't like to give up, however). This has been a wonderful learning experience for me to this point. Thank you.
Warning: The GTK libraries do not seem to be available; the
`xscreensaver-demo' program requires them.
Warning: The GDK-Pixbuf library was not found.
Warning: The XPM library was not found.
Some of the demos will not use images as much as they could.
You should consider installing GDK-Pixbuf and re-running
configure. (GDK-Pixbuf is recommended over XPM, as it
provides support for more image formats.)
Note: The JPEG library was not found.
This means that it won't be possible for the image-manipulating
display modes to load files from disk; and it also means that
the `webcollage' program will be much slower.
Note: The OpenGL 3D library was not found.
Those demos which use 3D will not be built or installed.
You might want to consider installing OpenGL and
re-running configure. If your vendor doesn't ship
their own implementation of OpenGL, you can get a free
version at <http://www.mesa3d.org/>. For general OpenGL
info, see <http://www.opengl.org/>.