You are not logged in.
Pages: 1
Hi all,
I need to run a script after the automatic text login. I tried to append the script at the end of my /etc/profile with no luck, it remains stuck. Is there a sure way to run a script for embedded purpose ?
Offline
Try ~/.bash_profile or ~/.zprofile if you use shell bash or zsh.
Offline
Post the script in question.
Offline
Not an installation issue, moving to Newbie Corner.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I think a systemd user service is what you want: https://wiki.archlinux.org/index.php/Systemd/User
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
bash_profile:
if [[ $TERM == "linux" ]]; then
...
fi
Or if you need even more specificity have your autologin command in your modified tty service give the terminal a more specific name, like "linux_auto" then use that in the conditional.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Pages: 1