Results 1 to 3 of 3

Thread: Easily launch fluxbox or kde

  1. #1
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    4

    Post Easily launch fluxbox or kde

    If I recall correctly, there was once a version of BackTrack (1 and 2, I think. Maybe even 3) that you could easily start X with either fluxbox or KDE by typing 'flux' or 'kde'.
    (Or maybe it was 'flux' and 'startx')
    At any rate, I just installed BT4, R2 which comes with fluxbox again, and created myself two new scripts - /usr/bin/flux and /usr/bin/kde - since I sometimes want to run in one or the other.
    Note: running startx will simply launch wichever desktop manager you used last. :)
    Attached is a script that installs both of those scripts for you, or you can cut and paste code to create them manually, yourself.
    Enjoy,
    -Gr3y M4tt3r

    Code:
    #!/bin/bash
    echo "This will create two scripts: /usr/bin/flux and /usr/bin/kde";
    echo "Continue [Y/n]?"; read choice;
    
    if [ "$choice" == "n" ];
    then
    echo "Aborted.";
    exit;
    fi
    
    echo "#!/bin/bash" > /usr/bin/flux;
    echo "echo \"/usr/bin/startfluxbox\" > \$HOME/.xinitrc;" >> /usr/bin/flux;
    echo "startx;" >> /usr/bin/flux
    chmod 770 /usr/bin/flux;
    echo "Created /usr/bin/flux"
    
    echo "#!/bin/bash" > /usr/bin/kde;
    echo "echo \"/usr/bin/startkde\" > \$HOME/.xinitrc;" >> /usr/bin/kde;
    echo "startx;" >> /usr/bin/kde
    chmod 770 /usr/bin/kde;
    echo "Created /usr/bin/kde"
    
    echo "Done."
    echo "Now when you want to run fluxbox, type \`flux\`"
    echo "When you want to run kde, type \`kde\`"
    The above is also available here: http://pastie.org/pastes/1363907/tex...detyjbwbzxnska
    and as the attachment below.
    File allegati File allegati
    Last edited by Gr3y M4tt3r; 12-10-2010 at 09:13 PM. Reason: Added note about startx.

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default Re: Easily launch fluxbox or kde

    I suppose there is nothing wrong with your scripts ( I did not try them), but one can also use dragon before starting the x-server.
    # dragon
    # desktop fluxbox or kde
    #quit
    #startx

    But cheers for the contribution.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Just burned his ISO
    Join Date
    Oct 2008
    Posts
    4

    Default Re: Easily launch fluxbox or kde

    dragon is a really awesome tool. I actually found out about the same day I made this post. However, for starting fluxbox or kde, I personally don't want to have to go through the dragon menu or commands, when I could just simply type one thing in place of startx.

Similar Threads

  1. Replies: 0
    Last Post: 05-08-2010, 12:59 PM
  2. WICD does not launch
    By unplugged23 in forum OLD Newbie Area
    Replies: 1
    Last Post: 11-24-2009, 08:04 PM
  3. How to Easily Crack WEP Keys with Backtrack 3
    By purehate in forum OLD BT3 Videos
    Replies: 0
    Last Post: 10-02-2009, 12:16 AM
  4. Anybody get truecrypt to work easily?
    By imported_bulgin in forum OLD Newbie Area
    Replies: 6
    Last Post: 08-20-2008, 03:33 PM
  5. Replies: 52
    Last Post: 04-11-2008, 01:50 PM

Tags for this Thread

Posting Permissions

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