Marlon's Wiki

it's better when it's simpler

User Tools

Site Tools


start:system:autologin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start:system:autologin [2024/08/08 22:18] marlonivostart: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.
  
 First you want to find out which init-system (service-manager) you use with the command: First you want to find out which init-system (service-manager) you use with the command:
Line 8: Line 8:
 </code> </code>
  
-==== IF YOU ARE A DINIT USER ====  +When its openrc go aheadIf not don't.
-Create a new file for the desired tty, e.g., for tty1: +
-<code> +
-mkdir /etc/init.d/agetty.tty1 +
-</code>+
  
-In this File insert: +----
-<code> +
-type              = process +
-command           = /sbin/agetty -a negative --noclear tty1 38400 linux +
-restart           = true +
-depends on        = loginready +
-termsignal        = HUP +
-smooth-recovery   = true +
-inittab-id        = 1 +
-inittab-line      = tty1 +
-</code>+
  
-==== Ensure the File is Executable ====+==== Configuration ====  
 +Open the desired tty, e.g., tty1 runlevel file:
 <code> <code>
-chmod +x /etc/init.d/agetty.tty1 +nano /etc/runlevels/default/agetty.tty1
-</code> +
- +
-==== IF YOU ARE A OPENRC USERS ====  +
-Open the file `inittab` for the desired tty, e.g., for tty1: +
-<code> +
-sudo nano /etc/inittab+
 </code> </code>
  
 In this File insert: In this File insert:
 <code> <code>
-c1:12345:respawn:/sbin/agetty -username tty1 linux+agetty_options="--autologin username -J"
 </code> </code>
  
-Replace username with your actual username. +Replace username with your actual username. After rebooting, your user should automatically log in.
- +
-==== Ensure the File is Executable ==== +
-<code> +
-chmod +x /etc/inittab +
-</code> +
- +
- +
-==== Restart the System ==== +
- +
-Restart your system: +
-<code> +
-reboot +
-</code> +
- +
-After rebooting, your user should automatically log in.+
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 67: Line 33:
 sudo cat /var/log/daemon.log sudo cat /var/log/daemon.log
 </code> </code>
- 
-This should help you set up autologin on Artix Linux effectively. 
start/system/autologin.1723155512.txt.gz · Last modified: 2024/08/08 22:18 by marlonivo

Donate Marlon Ivo's Webpage