Steps taken to get an Atomic Pi SBC setup so it would boot quickly, boot to the desktop with auto-login and have the wireless network already connected and running:
I reflashed the default Lubuntu Bionic image onto my AtomicPi EMMC disk after lots of testing so it was the same as most people will get when they purchase. The default OS is Lubuntu 18.04.
I validated the following steps gets to a quick boot and the wireless network is setup and running before user login. Then did the auto login configuration. You will need a keyboard, monitor and mouse connected and I did most of my work using system console F2( Ctl-Alt-F2 ) instead of the Lubuntu desktop but you can do it how you’d like.
For fast boot and to be sure the wifi network device has the wlan0 device name:
-change the default grub commandline to only have ‘net.ifnames=0’ on it.
sudo vi /etc/default/grub
#GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash”
GRUB_CMDLINE_LINUX_DEFAULT=“net.ifnames=0”
Setup Wifi with 2 files copied to appropriate locations:
Copy wpa_supplicant.conf to /etc/wpa_supplicant
copy wlan0.conf to /etc/network/interfaces.d
file 1, wpa_supplicant.conf:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=“your-network-name”
psk=“your-passphrase”
id_str=“home”
priority=30
}
file 2, wlan0.conf:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
post-up iw wlan0 set power_save off
I rebooted and verified the wifi network connection was established( I use ifconfig to who and IP address for wlan0 device).
Then I updated the system(sudo apt update && sudo apt upgrade ) and then addressed the auto login solution -
create a new file, 10-autologin.conf in /etc/lightdm/lightdm.conf.d and put the text below in it.
sudo vi /etc/lightdm/lightdm.conf.d/10-autologin.conf
[Seat:*]
autologin-guest = false
autologin-user = atomicpi
autologin-user-timeout = 0
[SeatDefaults]
allow-guest = false
One last thing regarding setup for laser cutting, you might need to setup a rule file so when you plug in your machine the device created as usable permissions. I use a udev rule for that.
If adding the default lubuntu user to the dialout group didn’t solve it( this is what Lightburn docs have you do) then there are device rules files in /etc/udev/rules.d which will look for the USB ID-Vendor and ID-Product and set the permissions on the /dev/ttyUSBx or /dev/ttyACMx device file when it’s created.
Example: for my Ortur laser cutter the USB vendor ID is 0483 and its product ID is 5740
so I have a file called 75-orturlaser.rules with this one line in it:
SUBSYSTEM==“tty”, ATTRS{idVendor}==“0483”, ATTRS{idProduct}==“5740”, MODE=“0666”
so it creates the /dev/ttyACMx device with the rw,rw,rw attributes:
crw-rw-rw- 1 root dialout 166, 0 Feb 28 22:10 /dev/ttyACM0
I got the idVendor and idProduct values from plugging the laser cutter into the USB port and then ran dmesg on the commandline and it should be shown in the last few lines of all that scroll by.
Installing LightBurn is much as the standard documentation state.