LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 12-11-2006, 07:57 AM   #1
Atreo
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Rep: Reputation: 15
Unhappy fbsetbg does not work


Hi there!!

I have many problems with fluxbox and as I don-t make any progress I decided asking for help.

I begin with fbsetbg.
I want to have a wallpaper set on startup.

I tried:

fbsetbg -f /root/./.fluxbox/backgrounds/glass.JPG
fbsetbg -l /root/./.fluxbox/backgrounds/glass.JPG

And it does nor work.
I read 3 alerts:

fbsetbg: No previous wallpaper recorded dor display :0
fbsetbg: Can`t find /root/./.fluxbox/backgrounds/glass.JPG
(the other one left is similar to the last one)

Before giving it up and throwing my pentiumII to the basket I prefer to ask you all. And also because I have no money for buying a new one and I need this one for my studies.
So please, help me and thanks a lot in advance.

Here I show my startup file in ./.fluxbox folder:

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
fbsetbg -f /root/./.fluxbox/backgrounds/glass.JPG
fbsetbg -l /root/./.fluxbox/backgrounds/glass.JPG


# bsetbg -f ~/pictures/wallpaper.png
#
# This sets a black background

/usr/X11R6/bin/bsetroot -solid black

# This shows the fluxbox-splash-screen
fbsetbg -C /usr/X11R6/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp /root/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
conky &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/X11R6/bin/fluxbox
# or if you want to keep a log:
# exec /usr/X11R6/bin/fluxbox -log ~/.fluxbox/log
 
Old 12-11-2006, 09:19 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
The line should be in .fluxbox/init, not startup. This is mine

init
Quote:
session.screen0.rootCommand: fbsetbg -l -a
-l says to use what's in .fluxbox/lastwallpaper
-a says to preserve the images aspect

lastwallper
Quote:
$aspect/home/******/.fluxbox/background/Chimera01.jpg|:0.0
In a terminal window (xterm, aterm, etc) you can type your command to set the background and Fluxbox will put the appropriate entry in lastwallpaper. I can't help noticing the path you're using. Particularly the /root/./.fluxbox portion. Should it be /root/.fluxbox instead? And are you working as root?
 
Old 12-11-2006, 10:24 AM   #3
Atreo
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Smile Thank you!!

Thank you drac!!
I'll try your suggestion.
I think you're also right about the path.

I didn't realize about fluxbox/init.

By the way, do you know how can I change my keyboard map or layout (or however it's called)? I want to use a latin keyboard map and my current one is US.

I'll tell you and about my result.
 
Old 12-11-2006, 03:16 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
I'm not too sure about changing keyboard mapping. I think there's a line in the xorg.conf file to set it. You may have to add an extra X11 package for internationalization. Again, I don't know exactly, but this should get you looking in the right direction.
 
Old 12-16-2006, 03:17 PM   #5
Atreo
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Original Poster
Rep: Reputation: 15
I have bad news drac.
That does not work and I don't know why.
I wrote in the first line of init file:

session.screen0.rootCommand: fbsetbg -l -a

I also changed the path and it doesn't work either, could it be because I log in as root?
 
Old 12-16-2006, 04:09 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
Do you have a file called lastwallpaper in your ~/.fluxbox directory and, if so, does the file have something in it? If not the -l is getting nothing so that's what you get on the screen. Know what I mean?

I'm on my laptop this time, which is a bit more tweaked. In my .fluxbox/init file "session.screen0.rootCommand:" is empty. It is setup to use a style and at the end of the config file for that style I have:
Quote:
background.pixmap: /path/to/file.jpg.
That was a major change in Fluxbox-1.0rc. It's mentioned in the release notes.

What I would probably do is:
1-pick a style
2-copy the file from /usr/X11R6/share/fluxbox/styles to ~/.fluxbox/styles (rename it if you want to)
3-change the init line session.styleFile to point to it
4-edit the copied file to include the background.pixmap line at the end.

You can also edit other lines in the style file to change colors and button effects and more. For example I copied the one called Twice to my directory and and added my background. Then (over time) changed the colors, button sizes, alpha to make it just the way I wanted.

Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fbsetbg Megatog615 Slackware 15 06-09-2006 11:24 PM
Transparency in Aterm won't work, fbsetbg won't set previous background rob0t Slackware 2 08-13-2005 07:37 PM
fbsetbg wildcat22 Linux - Software 2 08-06-2005 10:10 PM
fbsetbg not working bingbang Linux - Newbie 2 05-08-2004 05:25 PM
fbsetbg newinlinux Linux - Software 5 04-20-2004 04:38 AM


All times are GMT -5. The time now is 05:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration