Skip to content

u/HereForFileMaker

In this archive from Jul 2021 to Jul 2021

0
posts
4
comments
0
media
7
score

Final Objective: Run archey or some aesthetic system display before login. This has turned into a project that makes me feel dumb as shit as it seems easy enough to do and there are plenty of docs out there.

Current Objective: Get ANYTHING to run after getty. Ultimately, I would like to achieve what I want with getty and not have to install a heavier tty manager to achieve something that I feel should be achievable if I knew what I was doing. Also, maybe I mean (before) getty. I'm not sure what happens before /etc/issue.

Basically I'm trying to get anything to run before the login prompt.


I know I can modify the login prompt via /etc/issue, but this seems to have very limited options. Modifying stuff here works, but it doesn't seem to allow calling of outside resources, and you're limited to the builtin flags.

Ultimately, this has led me to making a systemd service. I have rebooted my computer so many times, that I'm at the point of asking Reddit for an answer. The following will be my steps for achieving my Current Objective but I just want my Final Objective to be known, so we don't run into an 'Asking X wanting Y' problem. I am using this as a reference point at the moment. So far I have:

  1. Created a "Hello World" shell script located at /var/tmp/test.sh

  2. Given full 777 rights to this script.

  3. Created the service /etc/systemd/system/test.service responsible for calling test.sh

    [Unit]
    Description=Test service I wanna run after tty is loaded.
    After=getty.target

    [Service]
    Type=simple
    ExecStart=/var/tmp/test.sh
    TimeoutStartSec=0
    RemainAfterExit=no

    [Install]
    WantedBy=default.target

  4. systemctl daemon-reload

  5. systemctl enable test.service

  6. reboot.


MISC INFO:

  • journalctl for 'test.service' dumps out Jul 16 19:08:26 arch systemd[1]: test.service: Deactivated successfully. Which I'm not sure how to interpret.
  • I assumed "WantedBy" meant that this 'module' or service would be loaded before the thing asked for.
  • systemctl get-default returns graphical.target
  • As of typing this and rebooting, I have discovered that while at the initial login, I can move the cursor anywhere on screen. Disabling the service seems to stop this behavior.

So, this is where I am now. I'm assuming this is gonna be resolved with a RTFM-esque answer, but I'm asking for a point in the right direction. And I just want to emphasize how stupid of a problem this is. I want to do something for pure aesthetics that no one but me will see. If I can't achieve doing this, then how the fuck will I ever be able to do 'real' sysadmin work?

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.