clean up lk docs for site
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
---
|
||||
title: "autologin"
|
||||
tags: [ "Documentation", "distros" ]
|
||||
tags: [ "Documentation", "Distros", "Arch" ]
|
||||
---
|
||||
|
||||
# Automatic Login
|
||||
|
||||
Edit /etc/systemd/system/getty@tty1.service.d/override.conf by typing:
|
||||
Edit `/etc/systemd/system/getty@tty1.service.d/override.conf` by typing:
|
||||
|
||||
> sudo systemctl edit getty@tty1
|
||||
|
||||
The put in the following, changing $USER to your username.
|
||||
The put in the following, changing `[ USER ]` to your username.
|
||||
|
||||
```
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/usr/bin/agetty --autologin $USER -s %I 115200,38400,9600 vt102
|
||||
ExecStart=-/usr/bin/agetty --autologin [ USER ] -s %I 115200,38400,9600 vt102
|
||||
|
||||
```
|
||||
|
||||
# Automatically Start X
|
||||
|
||||
In `bashrc`.
|
||||
In `.bashrc`.
|
||||
|
||||
```
|
||||
|
||||
if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
|
||||
exec startx
|
||||
fi
|
||||
|
Reference in New Issue
Block a user