32

debian-openbox/README.md at master · leomarcov/debian-openbox · GitHub

 4 years ago
source link: https://github.com/leomarcov/debian-openbox/blob/master/script_loginfetch/README.md
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Permalink

Join GitHub today

GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.

Sign up

29 lines (24 sloc) 1.24 KB

TTY login fetch

This script generate dinamic /etc/issue file with some system info, a logo based on ufetch style and the list of available users.

81058996-de77f780-8ecf-11ea-9ec0-aa089c637c8a.png

Install

Exec install.sh script to install loginfetch, dependences and apply configs. Install do this actions in your system:

  • Install loginfetch script for generate a /etc/issue each time tty login is displayed.
  • Config runlevel to multi-user.target.
  • Install and config Physlock, a tty locker called when come back of suspend mode.
  • Config tty1 for autoexec startx when login.

Manual install

# Copy script and config file:
cp -v /etc/issue /etc/issue.old
cp -v ./loginfetch /usr/bin/
chmod -v a+x /usr/bin/loginfetch

# Config getty to run loginfetch every time tty login is displayed:
[ ! -d "/etc/systemd/system/[email protected]/" ] && mkdir -vp "/etc/systemd/system/[email protected]/"
echo '[Service]
ExecStartPre=-/bin/bash -c "/usr/bin/loginfetch"' | tee "/etc/systemd/system/[email protected]/override.conf"

# Recomended: install physlock and config for exec when go back from suspend 

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK