Ubuntu :: Change Gnome Background To Random Image (perl)?
Apr 8, 2011
First, I wrote a bare bones bash script to change the gnome desktop background to a random image [URL] Then, I realized there are dozens of bash scripts posted in the ubuntu forums just like this one [URL] next, rothalem & I rediscovered the drama of processing files in bash that have spaces in the name [URL] Finally, sflitman suggested dumping bash all together & just using perl [URL]
A pretty little perl script to change the gnome desktop wallpaper / background to a random image. - If you are unfamiliar with perl :
The completed script isn't bullet proof but it will :
- accept command line arguments
- accept files & dirs with spaces in the name
- catch most errors or use the defaults.
Step 1 : Inherit the appropriate CPAN library ( from command line )
- Main Menu -> Accessories -> Terminal
sudo cpan File::Random
Step 2 : Cut-n-Paste this code into a perl script & change red line to the path_to_your_wallpaper_images
# rocuan & sflitman
I'm fairly new to Debian/GNOME, and I'm running Squeeze and GNOME 2 and I have some questions. How exactly do I change the background image for the login window? I've looked up various suggestions but none of them seem to work - the appearances window does not ever seem to change the background image for the login screen. Also, whenever I log out or when I close the lid on my laptop and it suspends, I am unable to log back in - all I see is a black screen and my cursor, which I can move.
I recently installed Ubuntu 10.04 Netbook Remix on my Gateway LT3103u. I noticed shortly into using it that it has a graphics bug every so often. Especially when I change the background image. Everything will change to a warped mix of colors and pixels. Everything is affected. My mouse, the bar at the top of the screen, text and all. My netbook runs on an AMD Athlon 64-bit processor with ATI Radeon X1270 HyperMemory up to 256MB graphics.
So far I have tried reinstalling, and even the 64bit desktop edition which had the same problem. Ive noticed that it freaks out when i scroll too quick, when changing background images, and on certain websites. Then other times its completely random. When it happens it looks similar to these: [URL]
I have spent the most part of 5 hours trying to fix this issue. For some reason I cannot change the background image to any of mt .jpg wallpaper files (and .png files). I've tried using the Ubuntu-Tweak application, but I end up getting a purple screen (default) or a black screen (default). So then I tried using the terminal method by making the Appearance window appear when I would log out. That works, except when I go to use my background image, it shows as a question mark for the image preview, and the icon for the file is a gray box. All while doing this my background images that I tested are all in the /usr/share/backgrounds location. Please help! I really want to get rid of the default images and use my images... :/ My desktop/screen in 1440x900, and most my background images are around that size. They work with my regular desktop for my account.
I've recently installed Ubuntu Netbook Remix 10.4 on my HP Mini 210 HD, and installed gtk2-murrine package to utilize a theme I downloaded gnome-look.org/content/show.p...content=124548...This all worked well, until I attempted to change the background on the Gnome desktop. Upon entering the Appearance configuration, there is a file explorer fork-bomb that occurs and floods my Taskbar for up to a minute after I've entered the config. Has anyone ever experience this and if so, how can I fix this?On top of this, I cannot change the background even if I select a new image.
I was installing a bunch of packages and one of them ended up changing the background image. This was seen after logging back in. I proceeded to right click on the background and change it back while logged in. After a 2nd reboot I could see it changed it for my userid, but I still get that wrong background during the login prompt. How can I change it back for there?
i've started off using linux with ubuntu 10.10, and then i moved to linux mint 10 kde, and after finding out that it didn't support my hardware, in specifically my graphics card, i switched back to ubuntu 10.10, and from there i upgraded to 11.04. i hated the gui so i switched it from ubuntu to ubuntu (classic) environment. i also installed kubuntu-desktop too, and it looks a lot like mint 10 kde, i guess it uses kde 4.6, but... it's more stable for me. anyway, what i mean is that, originally ubuntu had a black background, linux mint 10 kde had a pretty cool custom mint background, ubuntu 11.04 has a purple background. i looked on videos, i found people using customized backgrounds, but they either don't explain how they got it *like for instance, someone said opensuse 11 or 13 has an icy penguin animated background, and someone else had one that you could scroll through.* or it's too complicated or outdated. is there a simple way to change your grub2 boot loader background image?
Just upgraded to Debian Jessie. I'm having a problem with the desktop and lockscreen that I never had before in Debian 7. Whenever I open the laptop to wake it up, there is very bad discoloration of the background. (screenshot : [URL] ..... )
Hardware is an IBM Lenovo T410 with no customizations. The graphics are factory nvidia. 3D acceleration works flawlessly, and I have no other issues except this background problem.
$ nvidia-detect Detected NVIDIA GPUs: 01:00.0 VGA compatible controller : NVIDIA Corporation GT218M [NVS 3100M] [10de:0a6c] (rev a2) Your card is supported by the default drivers and legacy driver series 304.
I'm new to Ubuntu Linux but have many years on windows platform. Please can someone help me with how to change the following items.
No.1 I would like to change the HORRIBLE!! YAK!! brown background color behind the word Ubuntu in the start up screen when the machine loads up (before the login). I have located the image file for this which I have found to be: /usr/share/images/xsplash/bg_2560x1600. jpg but the OS says that root is the owner and that I don't have permission to change this. So how can I change this for a color I do like.
No.2 I would also like to change the login dialogue screen style. I know this is possible but again I'm fumbling to see how I can do this. I have tried with the start up manager but every attempt fails, the settings don't take. Once again I suspect permissions are at the bottom of the problem?
No.3 Would like to have a colorful splash screen image on boot up, I've managed to remove the old one (small white 3 ring ubuntu logo on black background) but havent been able to install or replace with a new one. Its been incredibly frustrating, I'm feel sure I'm missing something simple here. Wondering if its permissions yet again?
Anyone who can offer help on any of the above, guidance or advise me would be much appreciated. Please bear in mind that I'm still very much feeling my way with Linux so keep it simple.
I installed the webilder application to automatically change the wallpaper, preferences you've specified the directory where the images but I can not change the background. Does anyone know why not change?
I'm currently writing a little script that gets a random image from the xkcd website and then sets it as the desktop background. I grab the picture with wget, and to prevent the script from spamming by creating a new file for each image the new picture always gets downloaded to "wall.png". Apparently this is a problem for gconftool-2. When I run the following command for the first time, the background changes:
I would like to change my startup image (usplash image). For that i change /lib/plymouth/themes/ubuntu-logo/ubuntu_logo.png and /lib/plymouth/themes/ubuntu-logo/ubuntu_logo16.png. Then the splash screen of shutdown screen changes .But booting screen doesnot change.