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:
with
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.
Sorry for the delayed response. I am using a Windows client. 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 from within /etc/profile.d/ the culprit was called /etc/profile.d/custom.sh which was added by my web host provider. This script was not testing for shell interactivity so I added the check and that fixed it.
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)
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)
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)
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)
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)
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)
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)
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)
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)