Ham*_*sim 5 command-line .profile
When the system loads it gives the following error:
Error found while loading /home/[username]/.profile
mesg: ttyname failed: inappropriate ioctl for device
As a result the session should not be configured correctly
You should fix the problem as soon as feasible
Run Code Online (Sandbox Code Playgroud)
The output of grep -i mesg
for .profile
and .bash*
is as follows:
$ grep -i mesg .profile
mesg n || true
$ grep -i mesg .bash*
$
Run Code Online (Sandbox Code Playgroud)
在terminal
...
gedit .profile
Run Code Online (Sandbox Code Playgroud)
改变这个:
mesg n || true
Run Code Online (Sandbox Code Playgroud)
对此:
tty -s && mesg n || true
Run Code Online (Sandbox Code Playgroud)
root 帐户的 .profile 可能需要类似(但略有不同)的修复。