How to launch applications at start (NUC/Ububtu 16.04)?
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
16.04 startup intel-nuc
add a comment |
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
16.04 startup intel-nuc
add a comment |
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
16.04 startup intel-nuc
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
16.04 startup intel-nuc
16.04 startup intel-nuc
asked Dec 10 at 13:35
fabrice
65
65
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099802%2fhow-to-launch-applications-at-start-nuc-ububtu-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099802%2fhow-to-launch-applications-at-start-nuc-ububtu-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown