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:
Created a "Hello World" shell script located at /var/tmp/test.sh
Given full 777 rights to this script.
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
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?
I know I ran into this with my initial install, trying to hunt down how I adjusted it. I think I had some alsamixer -c 0 100 command somewhere, but can't remember.
I may have just installed pavucontrol and fixed it with that.
What a masturbatory post.
So it looks like I do want it to run before getty.
Was one article off and it looks like I need something like this instead.
However, following that article, I never end up with
/tmp/filecreated.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:
Created a "Hello World" shell script located at
/var/tmp/test.shGiven full 777 rights to this script.
Created the service
/etc/systemd/system/test.serviceresponsible 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
systemctl daemon-reloadsystemctl enable test.servicereboot.
MISC INFO:
Jul 16 19:08:26 arch systemd[1]: test.service: Deactivated successfully.Which I'm not sure how to interpret.systemctl get-defaultreturnsgraphical.targetSo, 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?
I know I ran into this with my initial install, trying to hunt down how I adjusted it. I think I had some
alsamixer -c 0 100command somewhere, but can't remember.I may have just installed pavucontrol and fixed it with that.
Good luck.