clean up lk docs for site

This commit is contained in:
2022-01-16 20:28:02 +01:00
parent aac84da38a
commit ac653b4bed
11 changed files with 25 additions and 130 deletions

View File

@@ -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