Project

General

Profile

Autoboot Linux in terminal

Added by Yan Yandoff over 6 years ago

Hello! I have a development board OMAPL138-F, version of kernel linux - 3.2. I have some questions: 1) how can autoboot Linux without entering a user name, 2) what commands are needed and where should they be prescribed?

Thanks!


Replies (5)

RE: Autoboot Linux in terminal - Added by Jonathan Cormier over 6 years ago

Here you go.

https://stackoverflow.com/questions/10282981/automatic-login-on-angstrom-linux
# vim /etc/systemd/system/getty.target.wants/serial-getty@ttyS1.service


ExecStart=-/sbin/agetty --autologin root -s %I -L 115200

RE: Autoboot Linux in terminal - Added by Yan Yandoff over 6 years ago

It works!

Thanks!

RE: Autoboot Linux in terminal - Added by Demon Demonof almost 2 years ago

Hello!

I have a service "myApp.service". I want to autostart Linux myApp in terminal without background mode.

@
[Unit]
Description=myApp
After=network.service

[Service]
Type=simple
WorkingDirectory=/home/root
ExecStart={terminal} -e /home/root/myApp

[Install]
WantedBy=multi-user.target

@

What should be instead {terminal}?

Example: ExecStart=-/sbin/getty -e /home/root/myApp

RE: Autoboot Linux in terminal - Added by Jonathan Cormier almost 2 years ago

Demon Demonof wrote in RE: Autoboot Linux in terminal:

Hello!

I have a service "myApp.service". I want to autostart Linux myApp in terminal without background mode.

@
[Unit]
Description=myApp
After=network.service

[Service]
Type=simple
WorkingDirectory=/home/root
ExecStart={terminal} -e /home/root/myApp

[Install]
WantedBy=multi-user.target

@

What should be instead {terminal}?

Example: ExecStart=-/sbin/getty -e /home/root/myApp

Hi sorry for the late response. What you are asking for is pretty unusual. Why do you want your app to auto-run in the terminal on boot? Maybe we can find a better solution

RE: Autoboot Linux in terminal - Added by Jonathan Cormier almost 2 years ago

Hi Demon, Just noticed you posted in an old thread. Could you create a new one describing what your trying to accomplish so it doesn't get mixed up with this one? It's fine to link to this one.

    (1-5/5)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)