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!
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.
Where are the background images stored? It's interesting, since, when I click on 'desktop->change background', the dialog box doesn't show what the name of that image is, or where it is stored. I think it would have been nice had it done.
On most Window Managers background files are located within /usr/share (among themes and icons etc). Where exactly within /usr/share can also be different among distributions even when they use the same Window Managers.
On RedHat/Fedora you will find the default backgrounds in /etc/share/wallpapers. Next to that one you will also find directories like xscreensaver, theme, gnome-background-properties, icons and a lot more.
Desktop backgrounds can actually be located anywhere on your system. A good choice for your own pictures is something like /home/your-user-name/Pictures.
I have been trying to make some of the photos I took as my wallpapers. So, in Windows, I made a zip file from 2 directories that I want as wallpapers. I copied those to Linux and unzipped them. Now, they are in /root/Download/wallpapers. In fact, They are two directories in wallpapers. How do I copy all those files to /usr/share/wallpapers?
And once they are copied, will I need to change the permissions so that each user can use them?
The location of the wallpaper files indicates that you are operating as root instead of a regular user. Please don't do that. Only su to root on the shell or use sudo to perform administrative tasks. You will need to move the files as root however because A) only root can read files in the /root/ directory and B) only root can write to /usr/share/wallpapers.
It would be easier to change the permissions of the files before moving them. Afterwards they will be mixed up with the others. You didn't give us the names of the two directories in /root/Download/wallpapers/ so I will assume "dir1" and "dir2" for the example:
To change the permissions, you need to make sure the the "r" bit is set for "others".
sudo chmod o+r /root/Download/wallpapers/dir1/* /root/Download/wallpapers/dir2/*
sudo mv -vi /root/Download/wallpapers/dir1/* /root/Download/wallpapers/dir2/* /usr/share/wallpapers/
Please see the man pages for the "mv" and "sudo" commands. The "mv" command is described more in the "coreutils" info manual which is more comprehensive and contains information and examples for almost 100 of the most common commands.