LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-03-2007, 08:06 PM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
Change Desktop Background


I'm very much a GNUbie; just learning the basics of working with the console.

Starting with something simple with minimum risk of destroying something, I'd like
to change my KDE Desktop Background. Not that there is anything particularly wrong
with it; I just want to see if I can do it.

Right now, as far as I can tell, the file responsible for this is:
rooster@royrogers:~$ ls /var/tmp/kdecache-rooster/background
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_KDE34.png_1171073375;blm_0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1171073375;blm _0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1178909055;blm _0;01.png
151x113_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1178909055;blm_ 0;01.png


If I understand this, it indicates that the first line is the one that controls what now presents as my DT Background. But somehow, I doubt its that simple.

What I would like to do is change the background to a .jpeg I have that I have scaled down from 1152 x 864 pixels to 1024 x 768 since that is the biggest entry I see in the original file. I used the GUI in my Home Folder to add both .jpegs to the “/.kde/cache-royrogers/background” folder. The file now appears as:
rooster@royrogers:/var/tmp/kdecache-rooster/background$ ls
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_KDE34.png_1171073375;blm_0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1171073375;blm _0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1178909055;blm _0;01.png
151x113_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1178909055;blm_ 0;01.png
640x480_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1171073375;blm_ 0;01.png
Orig MRooms1152x864
Scaled MRooms 1024x768cdflo_0.jpg

So; in newbie speak, what do I need to do to effect the change in my DT Background?

r00ster

Debian GNU/Linux 4.0
KDE 3.5
 
Old 06-03-2007, 08:36 PM   #2
eco2geek
Member
 
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1

Rep: Reputation: 15
Why, for the love of God, would you want to mess with any config files in ~/.kde by hand, when you could simply a) right-click on your desktop and choose the desktop configuration option from the context menu, or b) open the KDE Control Center > Appearance & Themes > Background?
 
Old 06-04-2007, 02:01 AM   #3
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by eco2geek
Why, for the love of God, would you want to mess with any config files in ~/.kde by hand, when you could simply a) right-click on your desktop and choose the desktop configuration option from the context menu, or b) open the KDE Control Center > Appearance & Themes > Background?
WRT that same Divine Entity, as I mentioned in my OP, my primary objective is to gain experience using the console and teaching myself the basics of the Etch file system. To a newbie, this is quite a challenge. I have to start somewhere.

WRT to your Rx to use the GUI, the choices I see only reference KDE library motifs. I don't see a choice that would allow mapping to my picture files. Both the "Advanced" and "Get New Wallpapers" seem to
be populated with pre-installed Options. This option might well be there, but since I couldn't find it easily, I decided this would be a
good opportunity to do it the Debian way.

Happy trails,

r00ster
 
Old 06-04-2007, 12:10 PM   #4
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
If you are heartset on changing your background through some config file... I think the logical thing to do would be to first note what the background file is, and how the config file is set up, then change the background the easy way, note the change, and see if you can pick up on the pattern?
 
Old 06-04-2007, 02:00 PM   #5
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by war1025
If you are heartset on changing your background through some config file... I think the logical thing to do would be to first note what the background file is, and how the config file is set up, then change the background the easy way, note the change, and see if you can pick up on the pattern?

Thanks War1025,

Maybe I'm too green to appreciate the issue. I rather thought I could modify the file I cited in my OP using something like nano and that would install the 1024x768 image I hilit in red.

If I need to go deeper into the file system than the background file I cited, then so be it.

Happy trails,

r00ster
 
Old 06-04-2007, 02:26 PM   #6
eco2geek
Member
 
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by r00ster
WRT to your Rx to use the GUI, the choices I see only reference KDE library motifs. I don't see a choice that would allow mapping to my picture files.
Take a close look, and, as in this Sidux screenshot, you might notice a button to the right of the field that indicates the current background image. That button could possibly have an icon on it that looks like a folder. If you click that button, it's also possible that a dialog box will appear, which might allow you to browse your entire filesystem, and might let you to select the exact background image you want.

P.S. There's a strong possibility that the text file ~/.kde/share/config/kdesktoprc contains a setting string named something very, very similar to "Wallpaper". which looks like it may just take the full path to your image as its parameter.

Last edited by eco2geek; 06-05-2007 at 12:18 AM.
 
Old 06-04-2007, 02:33 PM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
You won't successfully modify anything you want, messing with anything inside /var/tmp/. If you really want to mess with kde settings directly, you need to look at ~/.kde/. However, KDE configuration files aren't meant to be manually edited. The only thing I manually change in kde is manually linking icewm's themes folder to kwin's icewm theme directory.

That's actually not a bad place to start. Here are the basic steps:

1. Install icewm and icewm-themes. (In a console, you log in as root and use either "apt-get install icewm icewm-themes" or "aptitude install icewm icewm-themes").

2. Go into KDE Control Center and select the settings for Windows Decorations. Then select "icewm" decorations. Note that you only have two or three choices, and they're all pretty ugly.

3. Go into a text console--NOT as root--and enter the following commands:

cd ~
cd .kde
cd share
cd apps
cd kwin
ls

You'll see a directory called "icewm-themes". Type in the following command:

ls icewm-themes

You'll see that this directory is empty. Now, you're going to remove this empty directory and replace it with a link to icewm's themes directory. Use the following commands:

rmdir icewm-themes
ln -s /usr/share/icewm/themes/ icewm-themes

The "ln" command creates a symbolic link pointed to /usr/share/icewm/themes/--this directory is where the icewm-themes package installs a bunch of icewm themes. To see the contents, use this commands:

ls icewm-themes

This time, you'll see a bunch of themes. Also, try out this command:

ls -l

This gives a detailed file listing, and you'll see that icewm-themes is a link pointed at /usr/share/icewm/themes/

Now, go back into KDE's Control Center and select Windows Decorations. Go to the Icewm window decorations and now you'll see a big list of icewm themes to choose from. A few of theme are actually pretty cool looking.

Have fun!
 
Old 06-05-2007, 02:48 PM   #8
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by eco2geek
Take a close look, and, as in a dialog box will appear, which might allow you to browse your entire filesystem, and might let you to select the exact background image you want.

P.S. There's a strong possibility that the text file ~/.kde/share/config/kdesktoprc contains a setting string named something very, very similar to "Wallpaper". which looks like it may just take the full path to your image as its parameter.
eco2geek;

That's the ticket. Being a newbie, when I first tried that button, I didn't reaslize I could cue the location window (dropdown arrow) at the top to browse my home folder for the desired image. I took it that I could only choose from the the list.

Apropos the text file: I'm still fumbling around and the only file I can find is the /var I referenced in my OP. I didn't get joy when I looked for "/.kde/share/config/kdesktoprc"; even as su.

I do see my /var file does reflect the change after I made the change as per your first suggestion.

Quote:
royrogers:/home/rooster# ls /var/tmp/kdecache-rooster/background
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#home#rooster#cdflo_0.jpg_1180836950;blm_0;01. png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#home#rooster#DTop Bgrnd cdflo_0.jpg_1181069809;blm_0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_KDE34.png_1171073375;blm_0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1171073375;blm _0;01.png
1024x768_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1178909055;blm _0;01.png
151x113_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#home#rooster#cdflo_0.jpg_1180836950;blm_0;01.p ng
151x113_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#home#rooster#DTop Bgrnd cdflo_0.jpg_1181069809;blm_0;01.png
151x113_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1178909055;blm_ 0;01.png
640x480_bm_4;en_1ca_4280185504;cb_4290822336;wm_6;wp_#usr#share#wallpapers#KDE34.png_1171073375;blm_ 0;01.png
I need to do more reading to figure out just what this means. I naively supposed I could make fiat changes to this file to get the job done, and it is obvious now that this would not have worked.


Thanks to you, war1025 and IsaacKuo for your help.

Happy trails,

r00ster
 
Old 06-05-2007, 03:16 PM   #9
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
IsaacKuo;

Thank you for your thoughtful and detailed post. It will be very usefull and gives me a much better insight into how the file system actually works.

Happy trails,

r00ster
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE: How to change the desktop background image without using "Control Center"? BrianK Linux - Software 12 08-08-2015 06:32 PM
How does desktop background change without being selected? ursahoribl Linux - General 2 03-27-2005 01:54 PM
Change background in solaris and Xterm background also EvilAngel Solaris / OpenSolaris 2 01-31-2005 11:25 AM
can't change the desktop background at lycoris ungua Linux - Newbie 0 10-03-2004 11:32 AM
Want to change the Background .. ksd Slackware 3 11-23-2003 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration