start:system:autologin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start:system:autologin [2024/08/07 22:41] – [Link the New Service] marlonivo | start:system:autologin [2024/08/25 02:03] (current) – marlonivo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Autologin on Artix Linux ====== | + | ====== Autologin on Artix Linux Open RC ====== |
- | Here's a guide on setting up autologin on Artix Linux without systemd. | + | Here's a guide on setting up autologin on Artix Linux with initsystem openrc. |
- | ==== Create a Service File for agetty ==== | + | First you want to find out which init-system (service-manager) you use with the command: |
- | + | ||
- | Create a new file for the desired tty, e.g., for tty1: | + | |
< | < | ||
- | mkdir / | + | rc-status -m |
</ | </ | ||
- | ==== Link the New Service ==== | + | When its openrc go ahead. If not don't. |
- | Link the new service to the default runlevel: | + | ---- |
- | < | + | |
- | ln -s / | + | |
- | </ | + | |
- | In this File replace: | + | ==== Configuration ==== |
+ | Open the desired tty, e.g., tty1 runlevel file: | ||
< | < | ||
- | #!/usr/bin/openrc-run | + | nano /etc/runlevels/default/ |
- | command_args=" | + | |
</ | </ | ||
- | Replace '' | + | In this File insert: |
- | + | ||
- | Then uncomment the following line: | + | |
< | < | ||
- | # command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}" | + | agetty_options="--autologin username -J" |
</ | </ | ||
- | ==== Ensure the File is Executable ==== | + | Replace username with your actual username. After rebooting, your user should automatically log in. |
- | + | ||
- | chmod +x /etc/init.d/ | + | |
- | + | ||
- | ==== Restart the System ==== | + | |
- | + | ||
- | Restart your system: | + | |
- | < | + | |
- | reboot | + | |
- | </ | + | |
- | + | ||
- | After rebooting, your user should automatically log in. | + | |
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 51: | Line 33: | ||
sudo cat / | sudo cat / | ||
</ | </ | ||
- | |||
- | This should help you set up autologin on Artix Linux effectively. |
start/system/autologin.1723070493.txt.gz · Last modified: 2024/08/07 22:41 by marlonivo