Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th May 2006, 10:16 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Lightbulb Adding the xscreensaver batch & customizing screensaver options in gnome-screensaver

Hey,
I got really annoyed and pleased but the new change of gnome-screensaver from xscreensaver in FC5. It's a great improvement with a better UI, but there's no xscreensaver screensavers listed, and you can't customize them!

I finally found a way to do it. It's a little confusing, but if you ever need help I have a full example at the bottom.

WARNING: This will update some Gnome libs to development versions. It's usually stable, but can cause some problems.

Edit: (- PRE -) update gnome-screensaver to version 2.15
For it to work the best, use gnome-screensaver 2.15:
Code:
su -
yum --enablerepo=development update gnome-screensaver libgnome
(1) Install the xscreensaver 'savers & convert them to .desktop files:

The reason your xscreensaver 'savers aren't listed is because xscreensaver uses .xml configuration files, and gnome-screensaver uses .desktop files. Two formats = not compatible = not listed
Forunately, there IS a tool provided with gnome-screensaver that easily converts them. So let's do that:
Code:
su -
yum install xscreensaver xscreensaver-extras xscreensaver-gl-extras
cd /usr/share/applications/screensavers
/usr/libexec/gnome-screensaver/migrate-xscreensaver-config.sh /usr/share/xscreensaver/config/*.xml
Now, the xscreensaver 'savers are installed. If that's all you wanted to do, then skip to step 3. If you want to customize your new 'savers with options, then please read step 2 first.

(2) Copy & edit your own screensaver theme:

The next step is to edit the .desktop file to create your own, customized theme. Let's first find the name of the screensaver you want to edit:
Code:
gnome-screensaver-preferences
Once you find one you like (keep in mind the "Preview" shows the unmodified one), take it's name down. Now, type:
Code:
su -
cd /usr/share/applications/screensavers
cp xscreensaver-[ thatname ].desktop xscreensaver-[ thatname ]-custom.desktop
gedit xscreensaver-[ thatname ]-custom.desktop &
Where [ thatname ] is the name of the screensaver you like without capitals, only lowercase.. So basically you're putting together:
- "xscreensaver-" at the beginning no matter what
- The screensaver name in lowercase
- Then ".desktop" or "-custom.desktop on the end depending on the the command.
For example, if I like Xmatrix, then I'd have to use:
Code:
cp xscreensaver-xmatrix.desktop xscreensaver-xmatrix-custom.desktop
gedit xscreensaver-xmatrix-custom.desktop
So, you see a file with a bunch of sensless gibberish popup, don't worry. It's normal... See the line that looks like this:
Code:
Name=[ thatname ]
Change it to:
Code:
Name=[ thatname ]-custom
Next, you can change the "Comment=blablabla" line in any way you want. Personally, I'd just leave it and add on a "Same as original, but customized." to the end. Just be sure not to start a newline, make sure your added part stays on one line.

(That wasn't clear... The text can move to the next line, as in because there's no space left in your window - but don't hit <enter> ever.)

This is the more complicated part. See the line that says:
Code:
Exec=namehere -root
Remembering that name, go back to your terminal and type:
Code:
cd /usr/libexec/xscreensaver
./name --help
Where name is that name you saw on the Exec= line. It will list you all the options. Choose the ones you want, and their values, then run it again to test:
Code:
./name -arg value -arg 1 -arg value
When you have it the way you like it, then go back to your .desktop file that's being edited and change your Exec= line to look like this:
Code:
Exec=name -root -your options -go here
Save & quit the editor.

(3) Choose your custom screensaver

To finalize it, start your screensaver preferences. Choose your custom 'saver and enjoy it!


(Example) I want to add and edit Xmatrix.
The bolded part if the things that I had to change, add or pay close attention to while doing the process.

Step 1:

Code:
yum install xscreensaver xscreensaver-extras xscreensaver-gl-extras
cd /usr/share/applications/screensavers
/usr/libexec/gnome-screensaver/migrate-xscreensaver-config.sh /usr/share/xscreensaver/config/*.xml
Step 2:

Code:
su -
cd /usr/share/applications/screensavers
cp xscreensaver-xmatrix.desktop xscreensaver-xmatrix-custom.desktop
I now change the two lines to look like:
Code:
Name=Xmatrix-custom
and:
Code:
Comment=Draws dropping characters similar to what is seen on the computer monitors in "The Matrix". See also "glmatrix" for a 3D rendering of the similar effect that appeared in the title sequence of the movie. Written by Jamie Zawinski. Same as original, but customized.
I continue typing:
Code:
cd /usr/libexec/xscreensaver
./xmatrix --help
I liked it like this:
Code:
./xmatrix -phone 555-341-2687 -density 25 -delay 25000
So I'd change my Exec line to:
Code:
Exec=xmatrix -root -phone 555-341-2687 -density 25 -delay 25000
Notice how I don't transfer the ./ before xmatrix, and how I added -root.

Step 3: I simply select "Xmatrix-custom" in screensaver preferences.

Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)

Last edited by Firewing1; 6th July 2006 at 03:13 AM.
  #2  
Old 29th June 2006, 11:04 PM
dewangpm Offline
Registered User
 
Join Date: Jul 2005
Posts: 140
Quote:
Originally Posted by Firewing1


Edit: (- PRE -) update gnome-screensaver to version 2.15
For it to work the best, use gnome-screensaver 2.15:
Code:
su -
yum --enablerepo=development update gnome-screensaver libgnome
(1) Install the xscreensaver 'savers & convert them to .desktop files:

The reason your xscreensaver 'savers aren't listed is because xscreensaver uses .xml configuration files, and gnome-screensaver uses .desktop files. Two formats = not compatible = not listed
Forunately, there IS a tool provided with gnome-screensaver that easily converts them. So let's do that:
Code:
su -
yum install xscreensaver xscreensaver-extras xscreensaver-gl-extras
cd /usr/share/applications/screensavers
/usr/libexec/gnome-screensaver/migrate-xscreensaver-config.sh /usr/share/xscreensaver/config/*.xml
Now, the xscreensaver 'savers are installed. If that's all you wanted to do, then skip to step 3. If you want to customize your new 'savers with options, then please read step 2 first.

Firewing1
Dear Firewing1:

I did EXACTLY as stated above AND now when I go system >>>preferences>>>screensavers to my surprize NOTHING COMES UP. Just says starting screensaver and nothing happens then. Please help me ! I have gnome-screensaver 2.15.3 installed. Before following your instructions atleast I had access to a few screensavers.

Will you help me to solve this problem? Please sir

dewangpm

Last edited by dewangpm; 2nd March 2008 at 03:55 PM.
  #3  
Old 29th June 2006, 11:16 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
What happens if you type
Code:
gnome-screensaver-preferences
into a terminal? if you see a message similar to:
Symbol Lookup: g_type_register_static: symbol not found
then type this into a terminal to fix it:
Code:
su -
yum --enablerepo=development update libgnome libgnomeui
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
  #4  
Old 30th June 2006, 02:35 AM
dewangpm Offline
Registered User
 
Join Date: Jul 2005
Posts: 140
YOU HAVE PERFECTLY DETECTED THE PROBLEM !

To answer your question: This happens
[Parth@localhost ~]$ gnome-screensaver-preferences
gnome-screensaver-preferences: symbol lookup error: gnome-screensaver-preference s: undefined symbol: g_type_register_static_simple

then I followed your suggestion (su - and yum --enablerepo=development update libgnome libgnomeui)
that installed total 14 different packages (18MB). Now, when I go to system >>>preferences>>>screensavers, the expected window appears. SCREENSAVERS also appear after set time. CORDIAL THANKS TO YOU SIR !

DEWANG

Last edited by dewangpm; 30th June 2006 at 01:20 PM.
  #5  
Old 3rd July 2006, 12:56 PM
gwvenus Offline
Registered User
 
Join Date: Mar 2005
Posts: 18
Hi Firewing1,
I followed your post and everything works great except I have to start xscreensavers manually.
I get an error message "The x screensaver daemon dosen't seem to be running on display *:0.0*.
Launch it now?
Thanks for all your great posts.
Gary
  #6  
Old 3rd July 2006, 04:29 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Did you remove gnome-screensaver? I can image that would happen if you're trying to run xscreensaver as a program, and not the screensavers... Gnome-screensaver can launch the xscreensaver screensavers without actually needing the daemon...
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
  #7  
Old 3rd July 2006, 05:44 PM
gwvenus Offline
Registered User
 
Join Date: Mar 2005
Posts: 18
Hi Firewing1,
At first I removed gnome screensaver and installed xscreensaver but the xscreensaver daemon wouldn't autostart so I followed your tutorial and installed all the xscreensavers in gnome. Works great!
Thanks,
Gary
  #8  
Old 5th July 2006, 08:54 PM
bigjosh Offline
Registered User
 
Join Date: Aug 2005
Age: 29
Posts: 24
After updating libgnome and libgnomeui, upon restart all my panels are blank and the custom screensavers are blank.
  #9  
Old 5th July 2006, 09:28 PM
smfinley Offline
Retired Community Manager
 
Join Date: Jul 2004
Posts: 1,334
"yum -y install xscreensaver-extras xscreensaver-gl-extras xscreensaver-base" followed by "yum -y remove gnome-screensaver" as root will give you a configurable screen saver menu in Gnome in FC5.
__________________
Stanton Finley
stanton-finley.net
  #10  
Old 5th July 2006, 11:12 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Yes, but then you're missing the nice, easy to use interface of gnome-screensaver. Not to mention gnome-screensaver has a better looking "unlock" dialog with mroe options like user switching.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
  #11  
Old 5th July 2006, 11:55 PM
bigjosh Offline
Registered User
 
Join Date: Aug 2005
Age: 29
Posts: 24
any suggestions on how to correct the blank panels?
  #12  
Old 6th July 2006, 12:14 AM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Try running gnome-panel from the terminal:
Code:
killall -SIGKILL gnome-panel && gnome-panel
See if errors come up. If not, then I would try updating to the newest gnome-panel:
Code:
su -
yum --enablerepo=development update gnome-panel
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
  #13  
Old 6th July 2006, 12:21 AM
bigjosh Offline
Registered User
 
Join Date: Aug 2005
Age: 29
Posts: 24
Quote:
Originally Posted by Firewing1
See if errors come up. If not, then I would try updating to the newest gnome-panel:
Code:
su -
yum --enablerepo=development update gnome-panel
Firewing1
I tried that, and it updated 20 other packages as well. No luck.
  #14  
Old 6th July 2006, 02:09 AM
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 39
Posts: 4,175
Firewing

Please add a disclaimer to the top post stating by following these instructions you'll be updating your system to a development system and my become unstable.
the language for the gnome panel has changed to squares
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
  #15  
Old 6th July 2006, 02:30 AM
bigjosh Offline
Registered User
 
Join Date: Aug 2005
Age: 29
Posts: 24
Jim: Off topic, but where in Western NY are you from? I was just in Canandaigua on business.
Closed Thread

Tags
adding, batch, customizing, gnomescreensaver, options, screensaver, xscreensaver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC5: replacing gnome-screensaver w/ xscreensaver? psychobyte Using Fedora 5 20th January 2008 02:21 PM
FC5: using xscreensaver programs in gnome-screensaver bababooey182 Using Fedora 8 7th April 2006 05:42 PM


Current GMT-time: 08:31 (Saturday, 30-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat