LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-29-2018, 04:30 PM   #1
brighamandrew
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Rep: Reputation: Disabled
x2go error, stdin is not a tty


Hello. I'm not sure if I've posted this in the correct forum, I apologize if there is a better one.

I am using x2go server and I'm trying to run x applicatons on a remote client and when I try to connect, I'm getting the error: "stdin: is not a tty stty: standard input: Invalid argument". The environment that x2go server is installed on is Debian Jessie.

I also have installed x2go server on a different system, Ubuntu 16.04 installation, and it's working fine, I can remotely connect and run x window applications on the client.

I have tried to compare the two installs to spot differences that might be causing this problem but I can't really see anything. Google searching seems to lead me to the idea that there are some start up scripts running that are not properly testing for an interactive shell. I've only been able to find one place in /root/.profile that I thought might be the culprit and I amended from
Code:
mesg n
to
Code:
tty -s && mesg n
But I still get the same error. I'm quite new to Linux so I'm at a bit of a loss at this point, any help would be appreciated, thanks!
 
Old 10-01-2018, 01:32 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by brighamandrew View Post
The environment that x2go server is installed on is Debian Jessie.

I also have installed x2go server on a different system, Ubuntu 16.04 installation, and it's working fine, I can remotely connect and run x window applications on the client.
often, debian packages need more configuring compared to ubuntu.
did you read the installation instructions, maybe a debian wiki article?
maybe start here (sidebar).
 
Old 10-02-2018, 11:32 PM   #3
netgearsupport
LQ Newbie
 
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
As a major aspect of the foundation of a session, x2go seems, by all accounts, to be executing both .bashrc and .bash_profile to fruition BEFORE really showing the session. I found that .bash_profile was executing mesg y and additionally another shell content that endeavored to utilize the esteem came back from tty as a variable (ie TTY=`tty`). Since these announcements are not being executed from inside a terminal they fizzled. The arrangement is to put them inside a test as pursues:
if `tty -s`
then
mesg y
TTY=`tty`
else`
TTY='not a tty'
fi
This fixed it on all sites I could not connect to. I suspect a recent change in x2go may have brought this into focus as these sites had not changed since my last successful x2go connections.
 
Old 10-06-2018, 10:54 AM   #4
brighamandrew
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Sorry for the delayed response. I was able to figure out the problem. in /etc/profile, there was a custom script being included that I overlooked. /etc/profile was looping through and including all the scripts it could find in /etc/profile.d/ the culprit was called /etc/profile.d/custom.sh. This script was not testing for shell interactivity so I added the check and that fixed it.
 
1 members found this post helpful.
Old 10-07-2018, 02:04 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
thanks for psoting the solution!
could you mark this SOLVED, please (see my sig)?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
“stdin: is not a tty” error, trying to rsync from a dedicated to shared with ssh jail root access AdultFoundry Linux - Newbie 4 06-10-2016 08:53 PM
/dev/tty stdin Xris718 Linux - Hardware 6 07-13-2012 09:50 AM
"stdin is not a tty" when using SCP gutterboy Linux - Server 7 12-06-2010 09:38 AM
WARN: stdin/stdout is not a TTY; using /dev/console alirezan1 Linux - Newbie 4 06-07-2010 09:00 PM
CVS on a webserver - stdin not tty NoUse4ANick Linux - Server 2 08-28-2008 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration