You are not logged in.
I have what I believe is a simple issue, but am afraid that my ignorance of systemd services is preventing me from getting my desired result.
I want to boot into tty1-7 automatically and have them each launch independent chains of executions. Specifically, I'm trying to get tty1 to first log a user in and then to run a bash that I've written that loads fbv with an argument, and puts fbterm on top of it, and then load tmux...without me having to do anything.
Essentially I've gotten this sketched out for tty1:
[Service]
Type=oneshot
ExecStart=/home/<user_name>/fbterm-startbash ~/wallpaper.jpg
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty1I read through https://wiki.archlinux.org/index.php/Au … al_console and applied that, but there's no enabling of services there. Is there something simple that I'm missing about adding extra "ExecStart"s in the same service and how to time them?
(I put this in Apps and DE, because a terminal + tmux is my environment, let me know if that is incorrect.)
Last edited by SquidGuy (2013-06-08 14:08:56)
Offline
I'm not sure I can address your question directly, but I have an alternate - likely much simpler - solution.
Set up autologin to any of the ttys you want it on (see autologin in wiki if needed).
Then, in your shell profile (e.g, ~/.bash_profile), add a section with conditionals that check $XDG_VTNR:
if [[ $XDG_VTNR -eq 1 ]]; then
# stuff for tty1 here
elif [[ $XDG_VTNR -eq 2 ]]; then
# stuff for tty2 here
fiEDIT: you may also want all that in a `if [[ $TERM == "linux" ]]` block.
Last edited by Trilby (2013-06-08 13:05:23)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks Trilby for redirecting me. That worked perfectly. I believe that I got target fixated on trying to do it with services, and failed to attempt to deal more directly with bash...which I actually can make do what I want.
I'm still under the impression that this could be done with services, but I was looking for the functionality regardless of the method.
[Solved]
Offline