LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
LinkBack Search this Thread
Old 12-10-2008, 05:23 AM   #16
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62

About "change color" part.

First, I can't guranatee it is 100% correct, I just took a brief look at the source of xmatrix.

When XPM and GDK_PIXBUF are available (see your warnings), it looks like (can't give 100% gurantee, because didn't check thoroughly) xmatrix uses color from *.xpm images that are compiled into program. So you'll just have to recolor images in gimp and recompile. xmatrix uses matrix1.xpm, matrix2.xpm, matrix1b.xpm, matrix2b.xpm, which are located in xscreensaver-5.07/hacks/images folder. Images are compiled into program, so you'll have to recompile program once you recolor.

If xpm or gdk_pixbuf aren't available, it uses another set of images - matrix1.xbm, matrix2.xbm, matrix1b.xbm, matrix2b.xbm images, which are monochrome. Which means that colormap that makes letters green should be located somewhere inside of program, and you'll have to dig through program logic to find it. I recommend you to get xpm library and gdk_pixbuf, because in this case recoloring should be easier.
 
Old 12-10-2008, 06:01 AM   #17
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,368

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
ErV, you hit the nail on the head!
 
Old 12-10-2008, 06:04 AM   #18
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Rep: Reputation: 285Reputation: 285Reputation: 285
Compiles fine on slackware

You need to change this:

Code:
          unsigned char a = ~g;
           g = 0xFF;
To this:

Code:
          unsigned char a = ~b;
           b = 0xFF;
In hacks/glx/glmatrix.c
 
Old 12-10-2008, 06:30 AM   #19
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,368

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
The ErV's solution works for me, having changed XPM images with Gimp. Anyway you have to change also the color of the "System Failure" box, which is coded in xmatrix.c. The dive's solution works too, but it is for the GL version of the Matrix screensaver (indeed, much easier in this case).

I can't imagine the face of Tuttle when he wakes up!
 
Old 12-13-2008, 06:43 AM   #20
BFesko
LQ Newbie
 
Registered: Dec 2008
Location: Hobart, Indiana, US
Distribution: Debian "Etch" 4.0r5
Posts: 8

Original Poster
Rep: Reputation: 0
Okay, I still don't know what I'm doing. Go figure.

When I do a ./configure, I get this still:

#################################################################

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/>.

#################################################################

Warning: There is already an installed dpkg of xscreensaver
version "4.24-5" on this system.

The dpkg was installed in /usr/bin/,
with demos in /usr/lib/xscreensaver/.

#################################################################

I'm not sure how to install the libraries. I have tried to do so via Synaptic by checking everything that starts with GTK, GDK, XPM and jpeg. Of course something tells me this isn't the right way to go about it.

With regards to the OpenGL 3D library, I had to download and install version 2.3.1 of libdrm as the distro DVDs only have 2.0.2-0.1 included.

Help!!! (Okay, BFesko... don't panic yet.)
 
Old 12-13-2008, 07:11 AM   #21
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
OMG.......
 
Old 12-13-2008, 07:39 AM   #22
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,368

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
You still miss some dependency: in synaptic look for libgdk-pixbuf2, libgdk-pixbuf-dev, libgtk2.0-dev, libjpeg62, libjpeg62-dev, libxpm4, libxpm-dev, libgl1-mesa-dev and accept further dependencies. The last one is the free implementation of the OpenGL libraries. If xscreensaver still complains about the OpenGL 3D library not found, you can always disable the compilation of those screensavers that require it passing the --without-gl option to the configure script.
 
Old 12-13-2008, 07:43 AM   #23
BFesko
LQ Newbie
 
Registered: Dec 2008
Location: Hobart, Indiana, US
Distribution: Debian "Etch" 4.0r5
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

Tuttle,

That's what I was saying. LOL

Anyways, I think I've got it.

Since a message that I was getting from './configure' was that I already had xscreensaver 4-.24 installed, I decided to download from the web the source code for that version of xscreensaver. Not sure if that is what made a difference, but I then made the gimp edits of the matrix*.xpm files using filters/colorify and then compiled.

Despite the fact I was having warnings with './configure' and some trouble with 'make', xmatrix.c compiled and I deleted the original xmatrix file and replaced it with the newly compiled one.

Success! Now I just have to play around with the colorify a bit to get exactly the effect I want.

My thanks to Tuttle, colucix, and ErV (you did indeed hit the nail on the head). You folks are wonderful!

P.S. Still not sure what I was doing with the libraries, but at least I have a solid binary 2 Disc (had to burn at a slower speed to ensure image integrity).
 
  


Reply

Tags
color, screensaver, text


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How change text color using linux in text mode only runlevel 3? Xavius Linux - General 7 05-07-2009 02:19 AM
Constantly changing text color on the console jpanski Linux - Newbie 2 01-09-2008 02:35 PM
Changing Terminal Text Color By Recompiling Kernel kwikness Slackware 6 07-21-2007 11:27 AM
Changing the color of the boot sequence text r00tNinj4 Debian 7 06-16-2006 10:47 AM
Changing text color in C++ Brakki Programming 3 04-21-2004 04:24 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration