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!
Notices
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.
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.
Registered: Dec 2008
Posts: 1
Changing Text Color of xmatrix Screensvr
Tuttle,
I appreciate your reply. However, as a n00b, I am not sure how to find the source code and recompile. Could you possibly explain to me how to do this in simpler terms? I would greatly appreciate.
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?!
haha! indeed colucix, maybe the one beginning with F?.... BFesko, I think you have had more information than you can handle for today, we all deserve a beer!
I edited the foreground color in xmatrix.c to be the color of my choice.
I was able to ./configure with little trouble after installing some necessary dependencies, however I got an error message returned after doing a 'make' command:
xpm-pixmap.c:308: undefined reference to `minixpm_to_ximage'
collect2: ld returned 1 exit status
make[1]: *** [blitspin] Error 1
make[1]: Leaving directory
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!
hmm... is it possible only the 'blitspin' screensaver is affected? I have never compiled xscreensaver from source, can you omit compiling the 'blitspin' executable? It's one of the less exciting ones!
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:
Code:
$ cd xscreensaver-5.07
$ make distclean
$ ./configure
$ 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/>.
I have tried to install these libraries, but I've been running into trouble with my second binary DVD. I think I need to do an integrity check on it and probably burn a new one.
I'll get back to y'all once I get past this hiccup. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.