I am working on an embedded system which is running on NUC / Ubuntu 16.04 I would like that when I start the NUC, it automatically start a set of applications and also enable Wifi to automatically connect to a given network because these applications exchange information with a remote computer.
What I did first, is creating a shell script which is launching all the applications from a user directory /home/xxx and it works fine but I need to start the NUC and open a session on the terminal to enable Wifi (wifi is not enabled on boot).
From my research I read a thread providing very good information about the different possibilities to do it (How to run scripts on start up?) - but the question for me is how to fill the blanks:
Is it possible to open a user session (and thus enable Wifi to connect automatically to our local wifi network) and then start the shell script?
I have found this example below:
Create the folder /etc/systemd/system/getty@tty1.service.d
Create the file /etc/systemd/system/getty@tty1.service.d/override.conf
Open the file with your favorite editor and add this:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM
Type=idle
Replace myusername with your user name.
But then how to start the script?
Thank you very much for your help