Page 1 of 25 12311 ... LastLast
Results 1 to 10 of 249

Thread: fluxbox how-to (compiling from source the latest version) plus tips & tricks

  1. #1
    Join Date
    Nov 2005
    Beans
    83

    fluxbox how-to (compiling from source the latest version) plus tips & tricks

    I'm a big fan of fluxbox. It is highly and easily customizable. It's wicked fast and it's very pretty. FLuxbox is in the ubuntu repositories but they are two versions behind and are missing a lot of handy features like fluxbox-generate_menu. Also, the package in the repositories loads really slow wich should not be the case for a window manager that's supposed to be really fast.

    In this how-to I'm going to sum up all the info I have collected and add a few of my own customization tricks. Most of what's here I found on other threads, but this info should be in one well organized place so here goes.

    1: Download the source tar ball of the latest development version. The stable version is too old and not supported anymore and the development version is the one the devs recommend. They actually state
    "The latest stable release is v0.1.14. Development version of Fluxbox can be found here. Please note that 0.1.14 is actually fairly dated (and unmaintained) now, and the development series is quite stable. It is mainly waiting on translation and documentation work before it becomes stable. "

    Get the source tarball here

    2: Get the tools to compile from source
    Code:
    sudo apt-get install build-essential checkinstall xlibs-dev
    3: Open your favorite terminal and untar the file you downloaded. example :
    Code:
    tar xvzf fluxbox-0.9.14.tar.gz
    4: cd into the directory created.

    5: Type
    Code:
    ./configure --enable-kde --enable-gnome --disable-xmb
    the disable xmb fixes the slow start up time in ubuntu.

    6: Type make .

    7: Type sudo checkinstall. This builds the package and puts it in /usr/local/bin

    8: There are two ways to be able start fluxbox

    a) A .xsession file in your home directory. you may have it or not. if you dont create it.in the terminal type nano ~/.xsession and put this in there
    Code:
    exec /usr/local/bin/fluxbox
    b) Use you're start up file. Type nano ~/.fluxbox/startup (if it does not exist, create it) and put this in there
    Code:
    exec /usr/local/bin/fluxbox -log ~/.fluxbox/log
    I encourage to use option b, since this is the one I use and I know it works well.

    9: Now to enter kde,gnome or any other window manager I use GDM. It comes standard in Ubuntu. I know how to make an entry for fluxbox in GDM, I do not know how to do it in the others. To make an entry for fluxbox in GDM in a terminal type
    Code:
    cd /usr/share/xsessions
    now type ls. There should be various files in there with names like gnome.desktop . Type nano fluxbox.desktop. put this in there :
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Fluxbox
    Comment=This is fluxbox
    Exec=/home/(username)/.fluxbox/startup
    That is if in step 8 you chose option b. if you chose option a, on the Exec line put Exec=/home/(username)/.xsession .

    10: Logout. Now when you go to GDM there will be a fluxbox entry in the session menu. Enter fluxbox. If it works, you are done with the installation. To access the menu just right click anywhere in the desktop. I know that what you have now is pretty bare. But the rest is just customization.

    Customization Tips and Tricks

    Fluxbox is all about minimalism. I like to use light apps to keep everything really fast so thats the type of tricks I know so here goes.

    1: To get backround image, open a terminal and type sudo apt-get install feh
    then locate the image you want to use as wallpaper. in my case my backrounds are in a directory called wallpapers in my home directory so to set a backround I type at the command line
    Code:
    fbsetbg wallpapers/wallpaperofmychoice.png
    To not have to type all of that every time you want to set a new backround edit your start up file
    Code:
    nano ~/.fluxbox/startup
    add the following line to that file :
    Code:
    fbsetbg -l
    this command will always load the last image you set as backround so you only have to type fbsetbg image.png once.

    2: Apps you want to have upon start up are set at the ~/.fluxbox/startup file. Here's my startup file as an example:
    Code:
    # fluxbox startup-script:
    #
    # Lines starting with a '#' are ignored.
    fbsetbg -l
    gkrellm &
    gnome-volume-manager &
    xscreensaver -nosplash &
    first line sets my wallpaper, second starts grellm (a graphical system monitor), the fourth line you will want to have (gnome-volume-manager &) this will automount dvd's, USB hdd's and loads of other stuff. I actually have a lot more stuff in my startup file but I'm keeping it simple to get you started.

    I know many more tips and tricks and other users probably know more than I do. I would like this thread to have all the nice things you can do in fluxbox so plz if you know any customization tricks, post them.

    This was my first how-to so point out any mistakes. I will correct them. Fluxbox is a great window manager. I think the main reason its not so famous amongst the ubuntu community is because the package in the repositories is just worng.
    my Fully customized desktop


    edit- fixed the checkinstall typo.
    Last edited by otake-tux; February 28th, 2006 at 02:26 PM.

  2. #2
    Join Date
    Nov 2005
    Beans
    44
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    Very cool, thanks! The difference is impressive. I think it reduced the time it took to log in from nearly a minute to 10 seconds (this is a very slow machine).
    Thanks again, very helpful.

    Groet, Erik

  3. #3
    Join Date
    Jul 2005
    Beans
    34

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    I know this isn't a big problem, but just to avoid confusion, you might want to change "sudo check install" to "sudo checkinstall"

    Thanks for the guide though, I didn't actually realize I had such an old version of fluxbox installed :O

  4. #4
    Join Date
    Nov 2004
    Beans
    177
    Distro
    Dapper Drake

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    Thanks for your HowTo!
    Linux user #392733
    -------------------------------------
    You want to know what a computer really is, try Linux!

  5. #5
    Join Date
    Sep 2005
    Location
    New York
    Beans
    Hidden!

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    Quote Originally Posted by otake-tux
    I know many more tips and tricks and other users probably know more than I do. I would like this thread to have all the nice things you can do in fluxbox so plz if you know any customization tricks, post them.

    This was my first how-to so point out any mistakes. I will correct them. Fluxbox is a great window manager. I think the main reason its not so famous amongst the ubuntu community is because the package in the repositories is just worng.
    my Fully customized desktop
    I love fluxbox for it's speed (loads in about a second). I'd really like to stick with it, but here is a few question I've got:
    How do I change the GTK themes?
    This space intentionally left blank.

  6. #6
    Join Date
    Feb 2005
    Location
    Portland, OR, USA
    Beans
    61
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    Thank you. I've been meaning to try fluxbox for a while (I was waiting to reformat my laptop, but then after I reformatted I forgot about trying it .

    I got it working, but I had a problem (I'm not an ubuntu master, which is probably why I hit a problem. so bear with me, please). My problem was based around steps 8 and 9. For step 8, I decided to first do option b. I had installed everything in a directory I created: /home/myname/fluxbox/ . So for step 8 I renamed the directory to /home/myname/.fluxbox.

    Then I did as you suggested: nano ~/.fluxbox/startup
    and pasted in the line from b.

    I added the fluxbox.desktop file.

    Logged out, chose fluxbox, and then received an error telling me that /home/myname/.fluxbox/startup was not found, and so xsessions couldn't start. I'm guessing my mistake is a basic one, but I'm just not seeing it. I created the /home/myname/.fluxbox/startup file -- it is there -- so why's it saying it's not?

    I got it to work by following option a. in step 8. I created a file called .xsession in the home directory. However, when logging in I received the same error (except this time saying it couldn't find /home/myname/.xsession -- and then it asked if I wanted to proceed with my default session (gnome), I said okay, and lo, it didn't send me to gnome, but sent me to fluxbox. Weird, but for now I'm happy.

    Perhaps I'm not creating files in the correct manner. Or I'm creating them in the wrong location.

    But man, fluxbox is so fast and simple. I love having zero clutter. All I need to do is customize little toolbar, and I'm good to go. Thanks!

  7. #7
    Join Date
    Oct 2005
    Beans
    109

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    You have to
    Code:
    chmod +x ~/.fluxbox/startup
    to get it to work.

  8. #8
    Join Date
    Oct 2005
    Location
    London
    Beans
    477
    Distro
    Ubuntu 6.10 Edgy

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    That is brilliant. I thought that XFCE is fast but I changed my opinion.
    Thanks a lot.

  9. #9
    Join Date
    Feb 2005
    Location
    Portland, OR, USA
    Beans
    61
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    Quote Originally Posted by no1wantdthisname
    You have to
    Code:
    chmod +x ~/.fluxbox/startup
    to get it to work.
    Thanks. That did it.
    I tend to go through periods where I rarely use the terminal, and then I forget basic things.

  10. #10
    Join Date
    Jun 2005
    Beans
    33
    Distro
    Kubuntu 6.10 Edgy

    Re: fluxbox how-to (compiling from source the latest version) plus tips & tricks

    Excellent Howto. I never realized the Breezy package was so outdated. After reading your guide I decided to try something out. Instead of compiling myself, I changed all the "breezy"s in my /etc/apt/sources.list to "dapper" and did
    Code:
    sudo apt-get update && sudo apt-get install fluxbox
    The Dapper package is 0.9.14-1. I don't know if it was compiled w/ xmb disabled like you suggested, but it's definitely faster than the Breezy package - it started up in 4 seconds on my AMD Sempron 3000, 512 MB ram. If anyone else goes this route, just don't forget to change /etc/apt/sources.list back to breezy.
    Last edited by evs; February 9th, 2006 at 01:34 PM.

Page 1 of 25 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •