Sponsored Content
Operating Systems Linux Debian X2go server on Debian 8.10, stdin is not a tty Post 303024099 by brighamandrew on Saturday 29th of September 2018 07:33:30 PM
Old 09-29-2018
X2go server on Debian 8.10, stdin is not a tty

I am using x2go server on Debian 8.10.

When I try to connect using x2go client, I get the error:
Quote:
"stdin: is not a tty stty: standard input: Invalid argument".
My online searches return results of most people suggesting to replace the line:

Code:
mesg n

with

Code:
tty -s && mesg n

in /root/.profile

or some variation. I tried this but the problem persists.

I'm thinking this has to do with shell scripts trying to access tty in a non-interactive mode but I cannot seem to find where else this would be happening. I'm pretty new to Linux so I probably need some assistance now, thank you.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

stdin not tty when try to pine or redirect

My supervisor keep getting "stdin not tty" or something like that when he pipe or redirect input into a program. Others don't seem to get this message. Is there some way I can help him to fix or turn this off? Thx in advance (1 Reply)
Discussion started by: Micz
1 Replies

2. UNIX for Dummies Questions & Answers

First Server (Debian) MacBook Remote Login

Hi, I just picked up the book "Linux System Administration" and would like to get started setting up a server. I currently have a MacBook running OS X 10.5.1 and would like to use it for remote loging to the server. I have a Netgear WGR614 v6 wireless router. I'm wondering if I will be... (3 Replies)
Discussion started by: andou
3 Replies

3. Debian

Debian ftp server

What the best FTP server to run on debian.. it has to be secure and stable.. also any guides flying around ? Thanks (3 Replies)
Discussion started by: wmccull
3 Replies

4. Debian

Usually problems with Windows Explorer in w2k3 over server Debian 3.0

Hi. I have problems sometimes going to "My Network Places" in the Windows Explorer. Sometimes works OK and sometimes appears an Explorer.exe Application Popup: <<The instruction at "0x10004160" referenced memory at "0x10004160". The memory could not be "read">> and the Explorer go out or is... (0 Replies)
Discussion started by: luisben
0 Replies

5. IP Networking

Usually problems with Windows Explorer in w2k3 over server Debian 3.0

Hi. I have problems sometimes going to "My Network Places" in the Windows Explorer. Sometimes works OK and sometimes appears an Explorer.exe Application Popup: <<The instruction at "0x10004160" referenced memory at "0x10004160". The memory could not be "read">> (Event ID: 26 at the Windows... (0 Replies)
Discussion started by: luisben
0 Replies

6. Debian

Debian with PPTP Server

Dear All My scenario is Debian with PPTP Server in which I am able to connect to through other machines. Ive enable echo 1 > /proc/sys/net/ipv4/ip_forward and through client machine i can browse internet as well I created another pptp client in debian server which connects to another... (0 Replies)
Discussion started by: kazimnaim
0 Replies

7. Debian

Best RAID settings for Debian Server? Help!! (1+0 or 5 or NAS)

I am installing a Debian Server on a: HP Proliant DL380 G4 Dual CPU's 3.20 ghz / 800 mhz / 1MB L2 5120 MB RAM 6 hard disks on HP Smart Array 6i controller (36.4 GB Ultra320 SCSI HD each) I will be using this server to capture VHS video, encode, compress, cut, edit, make DVD's, rip... (0 Replies)
Discussion started by: Marcus Aurelius
0 Replies

8. Debian

How to exit debian server terminal?

I have an situation that are quite strange to me. I am not able to exit the server terminal and enter back into my home computer terminal by the command exit like I used to be able to exit the server terminal with before. I end up into my root shell again without even typing the root password like... (6 Replies)
Discussion started by: Jonathan Sander
6 Replies

9. Debian

Tar backup of debian server

Am reading this doc Full Hard-Drive Backup with Linux Tar on backup. why do we need the dot at the end ? tar -cvpf /backups/fullbackup.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups . (7 Replies)
Discussion started by: coolatt
7 Replies

10. Shell Programming and Scripting

Python: Redirecting to tty and reading from tty

In bash, you can do something like this: #!/bin/bash echo -n "What is your name? " > /dev/tty read thename < /dev/tty How can I do the same in python? I have a python script that has the following content: #!/usr/bin/python2.7 import getpass import sys import telnetlib import... (2 Replies)
Discussion started by: SkySmart
2 Replies
mesg(1) 						      General Commands Manual							   mesg(1)

NAME
mesg - Permits or refuses write messages SYNOPSIS
mesg [y | n ] [Tru64 UNIX] The following format is supported for backward compatibility: mesg [[-]y[es] | [-]n[o] ] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: mesg: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPERANDS
Grants permission to other users to send messages to the terminal device. [Tru64 UNIX] You can optionally include a - (hyphen) before y, include es after y, or both. Denies permission to other users to send messages to the terminal device. [Tru64 UNIX] You can optionally include a - (hyphen) before n, include o after n, or both. DESCRIPTION
The mesg command controls whether other users on the system can send messages to you with the talk and write commands. Called without arguments, mesg displays the current terminal message permission setting. [Tru64 UNIX] The shell start-up procedure disallows messages by default. You can override this default action by including the line mesg y in your $HOME/.profile (sh), (csh), or (csh) file. Note [Tru64 UNIX] This default setting described for the shell start-up procedure message permissions assumes that the shell is one started as part of a login session. If the shell got started by some other means, the default depends on what that other program has done. [Tru64 UNIX] Any user can send messages with write if the receiving user has enabled messages. A user with the sysadmin command autho- rization can send messages to any terminal. The terminal device affected is determined by searching for the first terminal in the sequence of devices associated with standard input, standard output, and standard error, respectively. (In other words, the affected device is not the same as the controlling terminal for the session.) [Tru64 UNIX] Message permission has no effect on messages delivered through the electronic mail system. [Tru64 UNIX] If you add mesg y to your $HOME/.profile, you will be able to receive messages from other users via the write command or the talk command. If you add mesg n to your $HOME/.profile, you will not be able to receive messages from other users via the write command or the talk command. The mesg command also accepts the current locale's equivalent of yes and no. These equivalents are determined by the setting of the LC_MESSAGES environment variable. The usage message displays the current locale's equivalent of yes and no. Security Restrictions [Tru64 UNIX] In the trusted configuration of the system, all terminal devices have owner set to the login user and group set to the pseu- dogroup tty. The login command sets terminal modes to 0600 at login time, so you must explicitly use mesg y to enable access from unautho- rized users. NOTES
[Tru64 UNIX] If your current locale defines settings other than yes or no, the mesg command does not accept yes or no as arguments. This causes an error if you use a yes or no argument to mesg in your file. EXIT STATUS
The following exit values are returned: Message reception is allowed. Message reception is denied. An error occurred. EXAMPLES
To allow only appropriately authorized users to send messages to your terminal, enter: mesg no To allow everyone the permission to send messages to your terminal, enter: mesg yes To determine the state of message acceptance of your terminal, enter: mesg This will give one of the following responses, as appropriate: is yes is no ENVIRONMENT VARIABLES
The following environment variables affect the execution of mesg: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for- mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
User profile User profile (csh) User profile (csh) Your current terminal SEE ALSO
Commands: chmod(1), csh(1), Bourne shell sh(1b), POSIX shell sh(1p), stty(1), talk(1), wall(1), write(1) Functions: chmod(2) Standards: standards(5) mesg(1)
All times are GMT -4. The time now is 06:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy