You are not logged in.
Pages: 1
Topic closed
In my .bash_profile I have startx because I'm lazy.
But when I'm logging in via ssh (a new thing for me), this obviously causes problems.
What bash logic can I use to check and see if I'm logging in locally or remotely?
Offline
$ who??
Offline
If you are logging in remotely via ssh then $(tty) will evaluate to something like /dev/pts/0 as opposed to /dev/tty1 when you are logging in locally. You could add something like this to your .bash_profile
if [[ $(tty) = /dev/tty1 ]] && [[ -z "$DISPLAY" ]]; then
startx
logout
fiOffline
@pogeymanz, you're not new here but your recent posts have been relatively simple things that should be searched out rather than asked about one-after-another on the forums. Closing.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Pages: 1
Topic closed