YMMV

* your mileage may vary

Saturday, 26 April 2014

Beaglebone Black (BBB) Disable Debian Desktop GUI / LXDE / lightdm cmdline=systemd.unit=multi-user.target (for Jessie)

To disable the GUI in the Debian Desktop and just have a normal terminal login, put the following into /boot/uboot/uEnv.txt 
  • optargs=text (for Whezzy) 
  • cmdline=systemd.unit=multi-user.target (for Jessie)






/// based on the code in /etc/init.d/lightdm  => for wheezy

 case "$1" in
  start)
        CONFIGURED_DAEMON=$(basename "$(cat $DEFAULT_DISPLAY_MANAGER_FILE 2> /dev/null)")
        if grep -wqs text /proc/cmdline; then
            log_warning_msg "Not starting Light Display Manager (lightdm); found 'text' in kernel commandline."
        elif [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ] && \
           [ "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" ] && \
           [ "$CONFIGURED_DAEMON" != lightdm ] ; then
                log_action_msg "Not starting Light Display Manager; it is not the default display manager"
        else
                log_daemon_msg "Starting Light Display Manager" "lightdm"
                start-stop-daemon --start --quiet --pidfile /var/run/lightdm.pid --name lightdm --exec $DAEMON -b|| echo -n " already running"
                log_end_msg $?
        fi
  ;;
  stop)



////
to start the desktop
  • sudo ligthdm (Wheezy)
  • sudo systemctl start graphical.target (Jessie)

No comments:

Post a Comment