BeagleBone Black Start Qt App on boot

From eLinux.org
Revision as of 12:27, 30 September 2013 by Abama (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First of all, I am very glad to write this page and many thanks to @jkridner you help me a lot , let me learn lots of things.

uh, I bought beagle bone on 22/09/2013, it has demo system of angstrom in eMMC, it's kenerl 3.8.13. so lots of web sit about auto login beaglebone on boot with change file /etc/inittab will can't be used. because there's no /etc/inittable file in beaglebone.

if you want to cross compile QT you can look at :

http://www.cloud-rocket.com/2013/07/building-qt-for-beaglebone/ 

if everything is all right, you get the QT work with beagle bone. but you can not write GUI application work with beagle bone while you beagle bone log in the graphic user interface, need stop gdm and remove gdm service from beagle bone in terminal:

    update-rc.d -f gdm remove
    systemctl disable gdm.service

exec the above two commands, reboot, the beaglebone will login to console. now if you want to use root automatic login on boot need edit:

    /etc/systemd/system/getty.target.wants/getty@tty1.service 

file add

    -a root to the end of the ExecStart line
then reboot. you will find beagle bone start automatically login with root.