Results 1 to 2 of 2

Thread: [HOW-TO] Backtrack 5 KDE GUI Login

Threaded View

  1. #1
    Senior Member
    Join Date
    Feb 2009
    Posts
    153

    Default [HOW-TO] Backtrack 5 KDE GUI Login

    1. To make the login gui which should be in (Dragon Icon start button) then (Settings) and then click on (System Settings). You would scroll down to where it says (Login Screen). In the Login screen gui you will look at the tabs which should be (General)(Dialog)(Background)(Theme)(Shoutdown)(Us ers)(Convenience). You will click on the one that says (Theme) and you should be able to see the buttons (Install new theme)(Remove Theme)(Get new theme). You will click on (Get New theme) and download the themes you want. I got a theme called Asphyxia which you can type in the search to see what im talking about. Once you have the theme that you want. Click on that theme and click Apply.

    2. Use any editor you want (i used gedit) and copy the code below into the kdm.conf
    Code:
    gedit /ect/init.d/kdm.conf
    Code:
    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides:          x-display-manager kdm
    # Required-Start:    $local_fs $remote_fs hal
    # Required-Stop:    $local_fs $remote_fs hal
    # Should-Start:      console-screen
    # Should-Stop:      console-screen
    # Default-Start:    2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: X display manager for KDE
    # Description:      KDM manages a collection of X servers, which may be on the local host or remote machines.
    ### END INIT INFO
    # /etc/init.d/kdm: start or stop the X display manager
    # Script originally stolen from the xdm package
    #
    # description: K Display Manager
    #
    set -e
    
    # Import the LSB init functions
    . /lib/lsb/init-functions
    
    # To start kdm even if it is not the default display manager, change
    # HEED_DEFAULT_DISPLAY_MANAGER to "false."
    HEED_DEFAULT_DISPLAY_MANAGER=true
    DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
    
    PATH=/bin:/usr/bin:/sbin:/usr/sbin
    DAEMON=/usr/bin/kdm
    PIDFILE=/var/run/kdm.pid
    UPGRADEFILE=/var/run/kdm.upgrade
    
    # parameters to support kdm customization
    KDMRC=/etc/kde4/kdm/kdmrc
    BACKGROUNDRC=/etc/kde4/kdm/backgroundrc
    
    #if configuration is changed by kdmtheme or other tools, don't do magick
    if grep -q "Theme=@@@ToBeReplacedByDesktopBase@@@" ${KDMRC} && grep -q "Wallpaper=default_blue.jpg" ${BACKGROUNDRC}
    then
    
    
    
    KDMOVERRIDEDIR=/etc/default/kdm.d
    KDMCFGDIR=/var/run/kdm
    KDMCFG=$KDMCFGDIR/kdmrc
    BACKGROUNDCFG=$KDMCFGDIR/backgroundrc
    
    test -x $DAEMON || exit 0
    
    # uncomment, if you want auto-logon to be runlevel-dependant
    #test "$runlevel" || { runlevel=`runlevel`; runlevel=${runlevel#* }; }
    #test "$runlevel" = 4 && ARG=-autolog || ARG=-noautolog
    
    # uncomment, if you want tons of debug info in your syslog
    #ARG="$ARG -debug 255"
    
    # we use an alternative kdm master configuration file
    ARG="$ARG -config $KDMCFG"
    
    # we source overrides. run-parts sorts the list in a predictable order
    if [ -d "$KDMOVERRIDEDIR" ]; then
        for part in $(run-parts --list "$KDMOVERRIDEDIR" 2>/dev/null || true); do
            . "$part"
        done
    fi
    
    # we generate kdm configuration files
    genkdmconf --in $KDMCFGDIR 1> /dev/null
    
    # we update kdm configuration files (only overridden values)
    [ -n "$USEBACKGROUND" ] && sed -i "s|^#\?UseBackground=.*|UseBackground=$USEBACKGROUND|" $KDMCFG
    [ -n "$BACKGROUNDCFG" ] && sed -i "s|^#\?BackgroundCfg=.*|BackgroundCfg=$BACKGROUNDCFG|" $KDMCFG
    [ -n "$USETHEME" ] && sed -i "s|^#\?UseTheme=.*|UseTheme=$USETHEME|" $KDMCFG
    [ -n "$THEME" ] && sed -i "s|^#\?Theme=.*|Theme=$THEME|" $KDMCFG
    [ -n "$WALLPAPER" ] && sed -i "s|^#\?Wallpaper=.*|Wallpaper=`readlink -f $WALLPAPER`|" $BACKGROUNDCFG
    
    
    fi
    # autologin overrides are useful for live debian environment
    if [ -n "$AUTOLOGINUSER" ]; then
       sed -i "s|^#\?AutoLoginEnable=.*|AutoLoginEnable=true|" $KDMCFG
       sed -i "s|^#\?AutoLoginUser=.*|AutoLoginUser=$AUTOLOGINUSER|" $KDMCFG
    fi
    [ -n "$AUTOLOGINDELAY" ] && sed -i "s|^#\?AutoLoginDelay=.*|AutoLoginDelay=$AUTOLOGINDELAY|" $KDMCFG
    [ -n "$AUTOLOGINAGAIN" ] && sed -i "s|^#\?AutoLoginAgain=.*|AutoLoginAgain=$AUTOLOGINAGAIN|" $KDMCFG
    [ -n "$AUTOLOGINLOCKED" ] && sed -i "s|^#\?AutoLoginLocked=.*|AutoLoginLocked=$AUTOLOGINLOCKED|" $KDMCFG
    
    # If we upgraded the daemon, we can't use the --exec argument to
    # start-stop-daemon since the inode will have changed.  The risk here is that
    # in a situation where the daemon died, its pidfile was not cleaned up, and
    # some other process is now running under that pid, start-stop-daemon will send
    # signals to an innocent process.  However, this seems like a corner case.
    # C'est la vie!
    if [ -e $UPGRADEFILE ]; then
      SSD_ARGS="--pidfile $PIDFILE --startas $DAEMON"
    else
      SSD_ARGS="--pidfile $PIDFILE --exec $DAEMON"
    fi
    
    stillrunning () {
      if expr "$(cat /proc/$DAEMONPID/cmdline 2> /dev/null)" : "$DAEMON" > /dev/null 2>&1; then
        true
      else
        # if the daemon does not remove its own pidfile, we will
        rm -f $PIDFILE $UPGRADEFILE
        false
      fi;
    }
    
    case "$1" in
      start)
        if [ -e $DEFAULT_DISPLAY_MANAGER_FILE ] &&
          [ "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" ] &&
          [ "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" != "$DAEMON" ]; then
          echo "Not starting K Display Manager (kdm); it is not the default display manager."
        else
          echo -n "Starting K Display Manager: kdm"
          start-stop-daemon --start --quiet $SSD_ARGS -- $ARG || echo -n " already running"
          echo "."
        fi
      ;;
    
      restart)
        /etc/init.d/kdm stop
        if [ -f $PIDFILE ]; then
          if stillrunning; then
            exit 1
          fi
        fi
        /etc/init.d/kdm start
      ;;
    
      reload)
        echo -n "Reloading K Display Manager configuration..."
        if start-stop-daemon --stop --signal 1 --quiet $SSD_ARGS; then
          echo "done."
        else
          echo "kdm not running."
        fi
      ;;
    
      force-reload)
        /etc/init.d/kdm reload
      ;;
    
      stop)
        echo -n "Stopping K Display Manager: kdm"
        if [ ! -f $PIDFILE ]; then
          echo " not running ($PIDFILE not found)."
          exit 0
        else
          DAEMONPID=$(cat $PIDFILE | tr -d '[:blank:]')
          KILLCOUNT=1
          if [ ! -e $UPGRADEFILE ]; then
            if start-stop-daemon --stop --quiet $SSD_ARGS; then
              # give kdm's signal handler a second to catch its breath
              sleep 1
            else
              echo -n " not running"
            fi
          fi
          while [ $KILLCOUNT -le 5 ]; do
            if stillrunning; then
              kill $DAEMONPID
            else
              break
            fi
            sleep 1
            KILLCOUNT=$(( $KILLCOUNT + 1 ))
          done
          if stillrunning; then
            echo -n " not responding to TERM signal (pid $DAEMONPID)"
          else
            rm -f $UPGRADEFILE
          fi
        fi
        echo "."
      ;;
      status)
        status_of_proc -p "$PIDFILE" "$DAEMON" kdm && exit 0 || exit $?
      ;;
    
      *)
        echo "Usage: /etc/init.d/kdm {start|stop|restart|reload|force-reload|status}"
        exit 1
        ;;
    esac
    
    exit 0
    If you do not change the information it will not load your login gui.

    3. Now you will open up the terminator or shell what ever your using and type this command in there.
    Code:
    root@bt:~# update-rc.d kdm defaults
    4. Reboot and see if it loaded. If it didn't then use this next command b/c it might not of gotten the execuetable in the shell script. Go in to the folder 1st then use the command. Use the command "cd /etc/inti.d" with out the quotes.

    Code:
    root@bt:/etc/init.d/# sudo chmod +x kdm
    5. If you need to go back to CLI then look at this page.CLI or KDM Theme


    Loading Boot Splash

    This one is simply just go to (Dragon Icon start button) then (Settings) and then click on (System Settings). Click on (Workspace Appearance) Then On Splash Screen and then on (Get New Themes...) I used the Asphyxia one which can be found there, just type it in the search box. click on your splash screen and select apply. Your done.


    Change background wallaper

    Right click on any where on your desktop and in the mouse menu just select (Folder View Settings Alt+D, Alt+S) which should be at the bottom. It should open up with the wallpaper. Click on Get New Wallapapers... and I leave the rest to you.

    credit to CureMyMind
    Last edited by fossilk1; 07-14-2011 at 07:26 PM.

Similar Threads

  1. Login To BackTrack 4 R2
    By zoolflizzo in forum Beginners Forum
    Replies: 1
    Last Post: 04-21-2011, 08:20 AM
  2. Backtrack 4 r2 login
    By faustnero in forum Beginners Forum
    Replies: 6
    Last Post: 02-06-2011, 05:13 AM
  3. Login into backtrack without password
    By thefatmoop in forum OLD BT3beta Bugs and Fixes
    Replies: 3
    Last Post: 11-22-2008, 04:47 PM
  4. Backtrack Login Troubles
    By Clark Wallace in forum OLD LiveCD Support
    Replies: 1
    Last Post: 05-29-2008, 07:05 AM
  5. Cannot login when booting BackTrack from usb
    By smallfry in forum OLD Newbie Area
    Replies: 0
    Last Post: 11-15-2007, 07:49 PM

Posting Permissions

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