You are not logged in.

#1 2014-05-31 14:10:53

herOldMan
Member
Registered: 2013-10-11
Posts: 163

[solved] ssh into autostarted xfce4 session

I have two remote machines running Arch. They have identical sshd_config, .bashrc and .bash_profile files.

$ cat .bashrc
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

$ cat .bash_profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startxfce4
fi

I can log onto both with ssh and conduct the common tasks I perform (ie, no problems), However one gives me the following remark after login:

Last login: ...
-bash: !/bin/bash: No such file or directory
$

Where in my login sequence might this error be generated?

Last edited by herOldMan (2014-06-02 18:55:09)

Offline

#2 2014-05-31 14:23:27

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] ssh into autostarted xfce4 session

It just looks like the shebang is incorrect somewhere i.e. "!/bin/bash" rather then "#!/bin/bash".  Are you running any scripts?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2014-06-02 18:54:18

herOldMan
Member
Registered: 2013-10-11
Posts: 163

Re: [solved] ssh into autostarted xfce4 session

loafer wrote:

...incorrect somewhere i.e. "!/bin/bash" rather then "#!/bin/bash"...

Thanks, Found it.

In /etc/profile I have a loop:

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
	for profile in /etc/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
fi

I inserted an echo $profile after the do. I found that the error was thrown on sh vdpau_vaapi.sh, a script which did indeed not have the #.

This particular machine has the catalyst-hd234k driver installed. I am guessing the file was created when installing it or related packages.

Thanks

Offline

Board footer

Powered by FluxBB