tty is a Unix command that prints on standard output file name connected to standard input. The program's name comes from teletypewriter, abbreviated "TTY".

learn more… | top users | synonyms

0
votes
0answers
10 views

Debian wrong login and TTY resolution on 4K screen

I have just installed debian mate on a laptop that has a 4K screen resolution, which by default sets the resolution to 3840x2160. I've been able to change grub resolution to 1280x1024 using ...
0
votes
0answers
18 views

Kali Linux Glitched Boot

I'm having a problem with Kali Linux when it should start the gui, my cursor is constantly flickering. When I switch to tty2 I'm able to login but then I get in the command line. When I do X I end ...
2
votes
1answer
143 views

/dev/tty: no such device or address - only in a script

I'm pulling my hair out over this. I've looked over all of the google results for /dev/tty : no such device or address, none of them apply to what I am doing / none of the solutions are successful. I ...
0
votes
0answers
19 views

sakis3g on raspberry pi2 not accepting any other interface other than ttyUSB0 or ttyUSB1.. how to make connection on other ttyUSB*

i am newbie to linux and raspberry pi. On my raspberry pi 2 , i use sakis3g to make the connection successful,it works fine when it is connected to ttyUSB1 or ttyUSB0 but wen i reboot the system with ...
-1
votes
1answer
41 views

What is the difference between terminal and tty?

I have seen these two terms use interchangeably. What do they represent?
1
vote
1answer
55 views

Compare tty/pts ssh session between Unix client & server

Is it possible to list ssh session with tty/pts info and date of login and logout on a client ? equivalent of last command on a server. My users use a proxy ssh to connect to a server, but from proxy ...
2
votes
1answer
119 views

How do I get systemctl to print in color when being interacted with from a non-tty?

When I run a command like this: # systemctl status plexmediaserver I get nicely colored output. But when I run the following command: # watch -n300 --color systemctl status plexmediaserver Is ...
0
votes
0answers
13 views

Linux Bash pts are not sorted

I log in to a debian server via ssh. Let's say I do this with 5 clients. Then the clients get: pts/1 pts/3 pts/4 pts/5 pts/6 So why is there no pts/2 ? (I did not find any pts/2 in ps aux) PS: When ...
9
votes
1answer
143 views

Show password characters when logging in to Linux

I am setting up a long-range wireless serial terminal (with a pair of XBees, if anyone is wondering) connected to my Linux box. It's going great, but sometimes a keystroke doesn't go through. This ...
2
votes
1answer
76 views

ssh force tty return extra non-printable character

I know ^M will show up when ssh -t, ref1, but I don't catch the situation when ssh -t into Centos 7.2(even Centos 6.2 is OK, but no difference between their environment vars). Anyone know about this? ...
4
votes
1answer
263 views

No /dev/tty in cygwin

I installed ammonite and got (Scala 2.11.7 Java 1.8.0_45) bash: /dev/tty: No such device or address bash: /dev/tty: No such device or address Exception in thread "main" java.lang.RuntimeException: ...
0
votes
0answers
27 views

Process running in SSH-allocated TTY not terminating once stdin is consumed

I can perform file-transfer via SSH* like this: ssh -T ${HOST} eval "cat > remote.txt" < local.txt However, if I instead allocate a TTY, it hangs until I press Ctrl+C: ssh -tt ${HOST} eval "...
0
votes
0answers
9 views

How do I make pre-named virtual serial ports on bootup in debian linux?

I am making a TTY re-director so I can read data as its coming in and out of a serial port. I know I can use socat to create virtual serial ports, but the question is how do I make sure that the names ...
1
vote
0answers
112 views

Can't use sudo when autologin in Arch Linux

I have a Pandaboard running Arch Linux, the default non root user is alarm. I'm trying to automatically login at startup with the alarm user. I followed the instructions here and created the file /etc/...
1
vote
0answers
147 views

How can I run Qemu with the “-nographic” option in Mac OS X?

Does anyone know how to run Qemu with the -nographic option in Mac OS X? The idea is to use the native Terminal for a text based operation instead of running inside Qemu’s own window. The -nographic ...
0
votes
1answer
154 views

Tty and X session locking

Most GUIs lock the session after a period of idleness or after resuming from sleep, which means that the user is require to reauthenticate themselves to continue the session. Can this be mirrored in ...
0
votes
1answer
343 views

Controlling tty / terminal output from other session / shell

We are told that a tty can control at most one session and furthermore that ttys can be controlled not to allow background process groups within its controlled session to write or read from it, the ...
0
votes
1answer
93 views

xterm valid command not working in konsole nor gnome terminal

this works fine with xterm xterm -e '(dialog --msgbox "thebigmessage" 0 0)' but not with konsole nor gnome-terminal konsole -e '(dialog --msgbox "thebigmessage" 0 0)' gnome-terminal -e '(...
2
votes
1answer
43 views

How to start a desktop session without x and also runs a script?

I have a Ubuntu server with LXDE for development, now how would I create a .desktop file to start a session that doesn't startx but actually logs me into a regular tty1 session and also runs a ...
0
votes
1answer
500 views

Unicode in tty?

I have to view a log file on Debian server which is written in Persian by a third party software. Is this possible to have UTF-8 + Unicode support in tty? I'm looking for solutions based on emacs or ...
1
vote
0answers
135 views

linux + what are the messages bad tty under /var/log/messages file

under /var/log/messages I see the following messages "bad tty" what the meaning of these messages? second is it caused because some application that called - owstd ? as we can see from the log? ...
1
vote
0answers
200 views

different ttys on different monitors

I am running a few un*ces and I have now grasped the power of using different ttys (Ctrl+alt+F(x)). Yesterday, I attached a second monitor. I was able to configure x to extend my desktop, and I became ...
1
vote
1answer
43 views

Get user logged into a given tty

I'm writing a bash script that disconnects idle sessions but writes to the tty a few seconds before terminating it to make sure it really is not being used. The format for write is write user [tty]. ...
3
votes
0answers
117 views

How to remove tty[7-63]?

I have an embedded system, a beaglebone black to be specific. This SBC runs Debian wheezy 7.4, and a custom 3.8.x kernel. Patched for this hardware. Anyway, the title pretty much says it all. I can ...
2
votes
1answer
643 views

Is it possible to use uvesafb with nvidia proproetary drivers?

I would like to have high-resolution console with NVidia proprietary driver. To accomplish that I'm trying to use uvesafb. So what I've done: yaourt -S v86d /etc/modprobe.d/uvesafb.conf: ...
1
vote
1answer
378 views

Print TTY Stream to Terminal

I have a usb device. The driver for said devices sets up a ttyUSB0 stream for interfacing with the device. I am trying to understand how the data from this device is formatted. Is it possible to ...
1
vote
2answers
2k views

Is there any way to open a program on a specific tty?

I have a PC with no mouse or keyboard, but it is connected to a monitor. I was wondering if is it possible to open a program remotely (like via SSH) in a specific tty (like tty1) so I would able to ...
1
vote
1answer
111 views

linux - use wmctrl from tty1

When I try to run wmctrl (e.g. wmctrl -l) from a tty outside of X (e.g. tty1), I get "Cannot open display." I have tried setting the $DISPLAY and $XAUTHORITY variables to the values I get from a ...
0
votes
3answers
255 views

Accidentally typed password on logon prompt in Ubuntu TTY, is it stored?

Note: This is similar, but not identical to the question on how to handle passwords typed into the bash prompt. On my Ubuntu 14.04 machine, I opened VT1 using Ctrl+Alt+F1 and mistakenly typed my ...
0
votes
1answer
178 views

Do /dev/tty and current /dev/pts/X are the same things?

Writing file to /dev/tty and /dev/pts/7 in this case results that it is printed in console: $ echo hello > file.txt $ cp file.txt /dev/tty hello $ tty /dev/pts/7 $ cp file.txt /dev/pts/7 hello ...
-1
votes
1answer
81 views

Is this possible to redirect the tty output to two targets?

I would like to let the tty to have two outputs. Is this possible to let the output display on two terminal? I would like to have one terminal (on Linux), which is I am working on, and redirect(/...
1
vote
1answer
122 views

Questions about behaviour of running LiveCD Linux after unmounting a CD-ROM

Could anyone explain what happens in system after unplugging CD-ROM during working with LiveCD session? Suppose that I'm using Ubuntu LiveCD and suddenly by accident the CD-ROM disconnect for a ...
0
votes
0answers
383 views

How to access different tty session

I wanted to know if there is any possibility of login to other tty sessions. Someone has mistakenly changed the root su password. One of the session is already logged in as root. So any possibility ...
1
vote
1answer
248 views

How to open tty or execute some script when the shortcut Ctrl+Alt+F[1-6] doesn't work and X11 is partially frozen but system is still working?

I'm using Ubuntu 10.10 with Gnome on Acer Aspire One netbook. The X11 or just some parts of Gnome like panels and partially windows (details described below) are frozen which doesn't allow to do ...
0
votes
1answer
104 views

Terminal scrolling from shell script

Is there any way to perform the effect of using the scroll bar in Terminal.app using a shell command? Maybe something cross-platform, that works in Linux terminal emulators too?
2
votes
1answer
944 views

How to resize tmux panes inside tty

I'm not sure if I used the right term, but by "tty" I understand the console that you can switch to using ctrl+alt+f2 key combination. echo $TERM points to linux. Anyway, when I enter the tmux mode I ...
1
vote
1answer
2k views

Ubuntu 12.04: Cannot login to tty[1-6] except as root

When I press [Ctrl+Alt+F<1-6>] it takes me to tty1 through tty6 respectively, no problem. But at the login prompt, if I try to login with my username and password, it just immediately takes me back ...
1
vote
2answers
1k views

Linux: Start tmux inside fbterm on login

So here's what I want: On every tty login, fbterm starts. It gives me a better resolution than the linux console, has working UTF-8 support (I'm sure it's entirely my fault that the linux console ...
0
votes
2answers
1k views

Suppress 'Warning: no access to tty' in ssh

I have a short simple script, that compiles a .c file and runs it on a remote server running tcsh and then just gives back control to my machine (this is for school, I need my programs to work ...
6
votes
3answers
8k views

How to reset a broken TTY?

My Slackware TTY can be broken easily by running: cat some_binary_file After the command, the entire TTY will no longer display readable characters but still responds to keyboard events. Even if I ...
2
votes
1answer
562 views

How to cat <<'EOF' arbitrary text data from clipboard

I want to paste some text into a terminal and save it to a file without using an editor, but just 'cat'. But too long lines or tabs in text make it impossible to do so with a simple command like "cat >...
1
vote
0answers
527 views

Solaris: ssh -tt with no output

I have access to a machine running SunOS 5.10 (called solaris). I also have access to a RedHat machine (called redhat). ssh -tt seems not to give me output if run from solaris to solaris, but works ...
0
votes
1answer
318 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
1
vote
1answer
160 views

Where can I find documentation about GNU/Linux TTY formatting

On gnu.org site there is GNU Head that can be display on terminal it have XTerm compatible (Normal documented ANSI Codes) but it also contain TTY version (it work on Cygwin, didn't test in XTerm or ...
1
vote
1answer
345 views

How can I make my computer without an X-server stop booting into TTY 7 and boot directly into TTY 1?

I recently disabled the graphical login manager on my Ubuntu and started using startx. But when the computer turns on, instead of giving me a login prompt in one of the TTYs (I think that's how you ...
2
votes
3answers
1k views

How can I determine if a client SSH connection has a tty associated with it?

Im writing a PAM module to handle authentication (server side - sshd) and I have to know if an ssh client is a tty (interactive) or not (non interactive). Does anyone have a clue?
5
votes
2answers
572 views

How to enter tty1-6 in Linux in virtual-box in Linux host

I installed a virtual box in my Ubuntu host, and then installed another Ubuntu on my virtual box. Everything is alright except when I try to enter tty1-6 in the virtual one, I just enter tty1-6 in my ...
1
vote
1answer
692 views

How to combine the tee command with interactive scripts to log the results?

From some time usually record long outputs with tee to later less them, this is awesome to review configure and make outputs and such, but fails when the script or program is installation like, asking ...
4
votes
3answers
4k views

Howto start an interactive script at ubuntu startup?

Based on Ubuntu core 12.04, I have prepared a bootable DVD. After booting (to console only), I can login as a user and start a script for installation of an embedded device: sudo install_script In ...
4
votes
2answers
11k views

How to restart ttyusb*

I have two devices that are continuously feeding data through ttyUSB0 and ttyUSB1. I have php scripts that are using this data. The problem I am running into is that sometimes the feed just kind of ...