Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: HowTo: Create your own Screensaver using native Ubuntu tools.

  1. #1
    Join Date
    Oct 2007
    Location
    Australia
    Beans
    1,715
    Distro
    Ubuntu Development Release

    HowTo: Create your own Screensaver using native Ubuntu tools.

    HowTo: Create your own Screensaver using native Ubuntu tools.

    What's the point of this tutorial?

    This tutorial is it is here for those who wish to work with what is already installed on their system and wish to have a screen background that changes at predetermined intervals. It is for those who want to understand the already natively available AND installed system. It has been tested on Ubuntu 10.04 Lucid Lynx which is the current LTS. I will not, because I don't have any earlier versions installed anymore, be testing this on anything prior to Ubuntu 10.04. As each new version is released I will test it and report any difficulties found. If you have difficulties please feel free to let me know what they are and we can work through them together. It is based on the script and setup for the background named "Cosmos" which comes pre-installed in Ubuntu 10.04.

    Please note: This is just 1 way of doing this, there are many more ways and formats possible. Choose what is the best for you. This tutorial isn't here to dictate to anyone what is the best method for you to use. Instead, as has already been stated, it is here for those who wish to work with what is already installed on their system. If you find something others can use you could create a Tutorial on it to help others. Please do not turn this tutorial into a "my way is the best way" discussion, instead treat it like the technical tutorial it is and leave discussion about other methods to other threads.

    Note: I do not know if this will work in Kubuntu, Xubuntu, or any other variant other than Ubuntu. IF you try this in anything other than Ubuntu 10.04 and it works please let us know so we can add the information to this thread and give you the credit for your hard work in testing this in an untested variant.

    1: Preliminary work.
    Follow the instructions in this thread.

    2: Finding the required files.
    Taken from this thread.

    Now you have your slideshow setup and in the right place you need to go to Places > Search for Files. Search for Cosmos and you will find:
    • cosmos-slideshow.desktop (a configuration file in /usr/share/applications/screensavers)
    • cosmos (the folder containing the Cosmos backgrounds which you will have noticed is used as the basis of the slideshow background)
    • cosmos.xml (again used as the basis for the background slideshow)
    .

    3: Modifying the file.
    Open cosmos-slideshow.desktop by opening a terminal and typing or pasting.
    Code:
    gksudo gedit /usr/share/applications/screensavers/cosmos-slideshow.desktop
    Now you have that open change the following ITALIC entries to suit your screensaver.

    Code:
    [Desktop Entry]
    Name=Cosmos
    Comment=Display a slideshow of pictures of the cosmos
    Exec=/usr/lib/gnome-screensaver/gnome-screensaver/slideshow --location=/usr/share/backgrounds/cosmos
    TryExec=/usr/lib/gnome-screensaver/gnome-screensaver/slideshow
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=GNOME;Screensaver;
    OnlyShowIn=GNOME;
    X-Ubuntu-Gettext-Domain=gnome-screensaver
    Save the file with A NEW NAME, this is so you don't lose cosmos.

    4: Telling Ubuntu that you have a new Screensaver.
    Now that you have done that press Alt-F2 and in the dialogue box type in gconf-editor. Go Apps > gnome-screensaver. On the opposite pane you should see a list go down until you see "mode", tap on mode twice and you will get another dialogue box appear, enter single into the Value line and click ok. Open the Screensaver preferences choose you new screensaver and your done.

    Test it out and let us know how you go.

    If you have any hints or suggestions regarding this format please feel free to make them and I will adjust this post accordingly.
    Ubuntu User 23142 | Wiki | Laptop | HowTo:Create a background slideshow and Screensaver | Reconditioning pre-loved PCs and installing Ubuntu to give away to good homes.

  2. #2
    Join Date
    Apr 2009
    Location
    Panama
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    Cool thanks, it would be grat if you add screenshots

  3. #3
    Join Date
    Oct 2007
    Location
    Australia
    Beans
    1,715
    Distro
    Ubuntu Development Release

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    The relevant screenshots are in the Preliminary work thread. I'll grab some for you though and add them when I have a little time.
    Ubuntu User 23142 | Wiki | Laptop | HowTo:Create a background slideshow and Screensaver | Reconditioning pre-loved PCs and installing Ubuntu to give away to good homes.

  4. #4
    Join Date
    Sep 2010
    Location
    Belgium (Antwerp)
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    hi I did all the steps you've mentioned (including a new script for background slide show).
    But only the last step isn't correct I suppose; I've been trying the gconf-editor command and in the side pane I've found the mode option. But when I go to the screensaver preference there is no new screensaver shown. So the OS doesn't add the new screensaver in the option list. How do I add this screensaver in the option list of preferences ?

    I really enjoyed this work out !!! Hopefully there is a solution for this...

    great topic!!

  5. #5
    Join Date
    Oct 2007
    Location
    Australia
    Beans
    1,715
    Distro
    Ubuntu Development Release

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    Hi Joris, I haven't come across the issue your referring to myself but will test it out again in the next few days and get back to you with what I find. It will take a couple of days at least as my "playing" machine is currently getting a huge work-over (8 different versions of Linux will be installed. 3 Ubuntu, 3 Debian, 1 Mint-LMDE, and 1 Linux From Scratch LFS).

    Thanks for posting and I will b in touch soon with what I find.

    Cheers.
    Ubuntu User 23142 | Wiki | Laptop | HowTo:Create a background slideshow and Screensaver | Reconditioning pre-loved PCs and installing Ubuntu to give away to good homes.

  6. #6
    Join Date
    Oct 2007
    Location
    Australia
    Beans
    1,715
    Distro
    Ubuntu Development Release

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    Hi again Joris. I have gone through everything again and find no problem with the steps I have written out. I have spent the last week setting up this laptop as described in my last post and on the Ubuntu 10.10 install I made, not just copied and pasted, the lotr background slideshow and then went through the screensaver process. Everything works as it should.

    Without seeing your files I can only suggest that you check them again and then go through the process again. If you want it may help to take notes as you go so if you find anything as you do it again you can give us the exact details.
    Ubuntu User 23142 | Wiki | Laptop | HowTo:Create a background slideshow and Screensaver | Reconditioning pre-loved PCs and installing Ubuntu to give away to good homes.

  7. #7

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    Sorry, dupe post
    Last edited by artooro; November 8th, 2010 at 05:40 PM.

  8. #8

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    I've been reading about this and it looks like custom screensavers should be stored in /usr/local/share/applications/screensavers instead. But that doesn't work either.

    Also I've tried running the update-desktop-database command which creates

  9. #9

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    So I've been reading and it looks like custom screensavers should be in /usr/local/share/applications/screensavers instead. But even then gnome-screensaver does not pick it up.

    Also I've tried running the update-desktop-database command which created a mimeinfo.cache file but that's it.

  10. #10

    Re: HowTo: Create your own Screensaver using native Ubuntu tools.

    OK, just so everyone knows the only way I found to fix this was to create a debian package to install the screensaver.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •