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/07 22:40] 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.
  
-==== 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:+
 <code> <code>
-mkdir /etc/init.d/agetty.tty1+rc-status -m
 </code> </code>
  
-==== Link the New Service ====+When its openrc go ahead. If not don't.
  
-Link the new service to the default runlevel: +----
-<code> +
-ln -s /etc/runit/runsvdir/default/agetty-tty1 /run/runit/service/ +
-</code>+
  
-In this File replace:+==== Configuration ====  
 +Open the desired tty, e.g., tty1 runlevel file:
 <code> <code>
-#!/usr/bin/openrc-run +nano /etc/runlevels/default/agetty.tty1
-command_args="--autologin <username> --noclear tty1 38400 linux"+
 </code> </code>
  
-Replace ''username'' with your actual username and without the ''<>''+In this File insert:
- +
-Then uncomment the following line:+
 <code> <code>
-# command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}"+agetty_options="--autologin username -J"
 </code> </code>
  
-==== Ensure the File is Executable ==== +Replace username with your actual username. After rebooting, your user should automatically log in.
- +
-chmod +x /etc/init.d/agetty.tty1 +
- +
-==== Restart the System ==== +
- +
-Restart your system: +
-<code> +
-reboot +
-</code> +
- +
-After rebooting, your user should automatically log in.+
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 51: 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.1723070408.txt.gz · Last modified: 2024/08/07 22:40 by marlonivo

Donate Marlon Ivo's Webpage