Jump to content

Fluxbox question


liquidzoo
 Share

Recommended Posts

I installed fluxbox recently. I wanted to check it out and see what it was like. When I booted up, I entered the command

startfluxbox

since I didn't know any other command to start it up (KDE is my default when I type startx) but I got the following error on my screen:

BaseDisplay::BaseDisplay: connection to X server failed.

/usr/X11R6/bin/startfluxbox: line 11: 2255 Aborted

/usr/X11R6/bin/bsetroot - solid Black

BaseDisplay::BaseDisplay: connection to X server failed.

Fluxbox: Unknown error.

 

All line 11 of the startfluxbox script says is

fi

Any ideas what I should do next? It seems that the display is not being recognized or something, but it works just fine with KDE. I really want to give this a shot. Can anyone help?

Link to comment
Share on other sites

Per request from rcxau, my /usr/X11R6/bin/startfluxbox file:

#!/bin/sh

if [ -e ~/.fluxbox/startup ];then

   exec sh ~/.fluxbox/startup

else

   if [ ! -d ~/.fluxbox ];then

mkdir ~/.fluxbox

   fi

   cp /usr/share/fluxbox/startup ~/.fluxbox

   /usr/X11R6/bin/bsetroot -solid Black

   exec /usr/X11R6/bin/fluxbox

fi

Link to comment
Share on other sites

Thanks to rcxau and HJ on the IRC channel, I got this figured out. Thanks a lot for your help. Now I just need to figure out some configuration options and I'll be all set...

 

Anyone that uses flux have any good configuration options they would like to share?

Link to comment
Share on other sites

Per request from rcxau, my /usr/X11R6/bin/startfluxbox file:

#!/bin/sh<!--QuoteEBegin--><!--QuoteEBegin-->if [ -e ~/.fluxbox/startup ];then<!--QuoteEBegin--><!--QuoteEBegin-->    exec sh ~/.fluxbox/startup<!--QuoteEBegin--><!--QuoteEBegin-->else<!--QuoteEBegin--><!--QuoteEBegin-->    if [ ! -d ~/.fluxbox ];then<!--QuoteEBegin--><!--QuoteEBegin-->	mkdir ~/.fluxbox<!--QuoteEBegin--><!--QuoteEBegin-->    fi<!--QuoteEBegin--><!--QuoteEBegin-->    cp /usr/share/fluxbox/startup ~/.fluxbox<!--QuoteEBegin--><!--QuoteEBegin-->    /usr/X11R6/bin/bsetroot -solid Black<!--QuoteEBegin--><!--QuoteEBegin-->    exec /usr/X11R6/bin/fluxbox<!--QuoteEBegin--><!--QuoteEBegin-->fi

 

hehehe, your life would be simpler by installing the Xtart package which if i remember correctly is in your installation disks. after that it would be a trivial thing to add new windows managers to its configurations.

 

but then, looking at the bright side you have now learned how to do it by hand. :)

 

ciao!

Link to comment
Share on other sites

startfluxbox won't work because you need to have an X server running prior to starting fluxbox. startfluxbox will not start the server itself. if you're starting from a command line, static's way is the best way (IMHO)-although I don't think editing /etc/rc.conf is necessary for it to work (atleast I never had to do it).

Link to comment
Share on other sites

What I do is put
exec fluxbox

at the end of my ~/.xinitrc and use startx still. I also had to edit my /etc/rc.conf I believe to change the $XSESSION to fluxbox from kde I believe...

 

Anyway, what did you do?

 

This is the fix that worked for me, except the only file I had to modify was the ~/.xinitrc file, not anything else.

Link to comment
Share on other sites

Couldn't find one for flux....but maybe you'll see something you can use :wink:

 

last modified May 7th...it's old :wink:

#!/bin/bash



#======START PROGRAMS=======#

#(sleep 10; gkrellm) &

#(sleep 5; artsplay /home/soundz/Save.wav & exit) &

#(sleep 4; Eterm --trans -g 80x77+0+0) &

#(sleep 8; krusader) &

#(sleep 12; kate) &



#=======MISC=======#

#(sleep 7; gnome-settings-daemon) &

#(sleep 2; gnome-theme-properties) &

#####/usr/bin/kicker &

#######/usr/bin/kdeinit &

#####/usr/bin/dcopserver && kded &

#~/setbkgrd.sh



#=======WAIMEA=======#

#export LD_LIBRARY_PATH=$QTDIR/usr/lib/qt3/lib/

#export OPERA_FORCE_JAVA_ENABLED=1

#####export LC=C 

#####export LC_ALL=C 

#export QT_XFT=true

#export GDK_USE_XFT=1

#(sleep 10; gkrellm) &

#(sleep 4; Eterm --trans -g 80x77+0+0) &

#/usr/bin/artsd -F 10 -S 4096 -s 60 -m artsmessage -l 3 -f &

#enable_X11_numlock &

#(sleep 8; aterm -T WvDial -tr +sb -bg black -fg yellow -bw 0 -e wvdial) &

#(sleep 1; xset s off s noblank dpms 0 0 0) &

#(sleep 12; idesk) &

#/usr/bin/wampager &

#exec /usr/X11R6/bin/waimea --menufile /home/bvc/waimea/menu





#=========GNOME2========#

#export LD_LIBRARY_PATH=$QTDIR/usr/lib/qt3/lib/

#export OPERA_FORCE_JAVA_ENABLED=1

#export LC=C 

#export LC_ALL=C 

#export QT_XFT=true

#export GDK_USE_XFT=1

###(sleep 5; /usr/bin/esd -terminate -nobeeps -as 2 -spawnfd 15) &

#(sleep 3; play /home/soundz/maxmsn.wav) &

#Esetroot -s ~/wallpapers/scales/Clean_Gnome.png

#Esetroot -s ~/wallpapers/scales/GNOME-simple_1600x1200.png

#(sleep 4; gkrellm) &

#enable_X11_numlock &

#(sleep 2; wvdial $*) &

#(sleep 10; xset s off s noblank dpms 0 0 0) &

#(sleep 5; idesk) &

#exec /usr/bin/startgnome



#========KDE3-1=======#

#export LD_LIBRARY_PATH=$QTDIR/usr/lib/qt3/lib/

#export OPERA_FORCE_JAVA_ENABLED=1

##export LC=C 

##export LC_ALL=C 

#export QT_XFT=true

#export GDK_USE_XFT=1

#(sleep 10; gkrellm) &

###(sleep 13; kppp -c MLI) &

#(sleep 2; wvdial $*) &

##(sleep 8; aterm -T WvDial -tr +sb -bg black -fg yellow -bw 0 -e wvdial) &

#(sleep 1; xset s off s noblank dpms 0 0 0) &

#(sleep 12; idesk) &

#exec /usr/bin/startkde



#=======AfterStep=======#

(sleep 7; /usr/bin/esd -terminate -nobeeps -as 2 -spawnfd 15) &

(sleep 6; aterm -T Aterm -tr +sb -bg black -fg yellow -bw 0) &

(sleep 4; gkrellm) &

#enable_X11_numlock &

(sleep 2; wvdial $*) &

#(sleep 10; xset s off s noblank dpms 0 0 0) &

(sleep 5; idesk) &

exec /usr/X11R6/bin/afterstep

Link to comment
Share on other sites

Thanks. 1 more question: How do you get the titlebars on the terminal windows to go away? I have seen this in some screenshots (can't remember where, though) and I really want this look. Anyone have any ideas? Is this something that is terminal specific?

Link to comment
Share on other sites

man Eterm

-x, --borderless

             This option forces Eterm to have no borders.

http://www.coost.com/cgi-bin/dwww?type=man...man1/Eterm.1.gz

...and yes, it is terminal specific. I think another or two can do it, but I d/k how.....SEE:man <terminal>

 

I use to like to start Eterm with X w/ no borders, toolbar, and no tiltebar and vertically/ with -g take up half the entire screen 8)

Link to comment
Share on other sites

Sweet, thanks a lot! I was wondering how to do that. This will help me out a lot. I will have to give it a try when I get home.

 

I assume that I can do this with Eterm from any WM/DE? All I would have to do is adjust the command in the respective menu line/command prompt?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...