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

1
vote
1answer
13 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
48 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
0answers
54 views

OpenBSD Change tty background color

Is it possible to change the background color of one or all ttys without installing any additional packages? Using a config file, or environment variable? I tried changing the text mode resolution, ...
0
votes
1answer
34 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
22 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 ...
1
vote
1answer
62 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
49 views

How to switch desktop layout from tty before startx?

I would like to login with the same user in another tty, but each tty should have different desktop environment like KDE and LXDE. How can I use tty to start X server by providing the desktop type?
0
votes
0answers
88 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
0answers
127 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
47 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?
0
votes
0answers
55 views

Injection Keystrokes in a /dev/tty

I have a project where I need to simulate Keystrokes in a /dev/tty. Most stuff is working using the TIOCSTI ioctl, even some special keys can be simulated using escape sequences. Now im at a point ...
0
votes
1answer
227 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
0answers
657 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 ...
0
votes
2answers
406 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
363 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 ...
0
votes
0answers
52 views

Legacy BSD-style /dev/ttyp's instead of /dev/pts/9 in Debian?

I need to use an old database that only accepts connections from legacy BSD style pseudo-terminals /dev/ttyp's or /dev/tty's. It does not recognise /dev/pts/9 style PTYs. Connections via SSH. ...
1
vote
3answers
1k 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
310 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
227 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
0answers
75 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
0
votes
1answer
102 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
108 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
230 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
349 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?
2
votes
2answers
158 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
191 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 ...
2
votes
3answers
1k 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 ...
1
vote
1answer
2k 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 ...
5
votes
1answer
1k views

X on one monitor, a bare, tty terminal on another? (linux)

The graphics card on my computer has inputs for (at least) two separate monitors. I have one monitor that is high resolution, and I like using it for X (anything graphical). My other monitor, however, ...
1
vote
2answers
332 views

How to execute a command under Linux after booting without a TTY session?

I'm creating a kiosk PC at the moment and I'm wondering if this is possible: When the PC is started and Linux Debian boots and I wonder if it's possible to start the command startx respectively xinit ...
2
votes
1answer
1k views

How to read data from USB port

I have a CANbus to USB adapter (Softing CANusb) that we are using for a project (see attached picture bellow). This device has Windows drivers and a Windows API in order to access the data in the CAN ...
2
votes
1answer
894 views

“stdin: is not a tty” message from scp

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.
1
vote
0answers
128 views

Android Development - Use of RealTerm or other program to directly manipulate and monitor radio/modem to debug Android Telephony [closed]

I and others are desperately trying to port Android 4/ICS/JB/CM10.1 from the LG Optimus 2X/P990 to the LG G2X/P999 cell phone but we haven't been able to get the phone's Qualcomm mdm6600 radio/modem ...
2
votes
2answers
290 views

Screen run command, detach and get output

I am trying write a script which connects and runs command on /dev/ttyUSB0 after that gets the output. screen -d -m 'SCREEN COMMAND' -L /dev/ttyUSB0 But this does not create an output file. How ...
1
vote
0answers
111 views

How to change keymap on native console?

When I'm switching to native console with Ctrl+Alt+Fn I have wrong keyboard maping. I want to set keymap proper to my language. In KDE, web browser, konsole etc. everything is OK. So, how to change ...
0
votes
1answer
147 views

Running Emacs on Multiple TTYs in screen

When working with EMACS over SSH, is there any way to spawn a new frame of the same emacs session on a different terminal? In my use case, I have screen running, so I have multiple terminals, and can ...
2
votes
3answers
562 views

Run a script after killing lxsession (xorg)

I am trying to run a program automatically within a bash script after killing the LXDE session. My script consists of: #!/bin/sh pkill lxsession; sh ...
4
votes
1answer
854 views

Redirect physical keyboard input to SSH

I'm having a raspberry pi running debian linux and I have an RFID reader connected to it. The RFID reader behaves like a keyboard. Every time I scan a tag it types then number of the tag and then ...
0
votes
1answer
293 views

How to display a message upon login to specific tty

In /etc/securetty I commented out tty2 and tty3: #tty2 #tty3 This succesfully disables root login for these two terminals for root. But is it possible to display a message such as "root login is ...
1
vote
0answers
241 views

Ubuntu 12.04: screen freezes when I open the laptop

I have installed Ubuntu 12.04 on my lenovo G580 laptop. When I close the laptop (goes into hyvernation mode) and open it, sometimes my screen freezes (I can still see my mouse moving, but that is ...
1
vote
1answer
730 views

Why do I appear 3 times “logged in” in macosx? (zsh and screen)

I'm using the following options in order to launch a 'screen' session when I launch Terminal.app to my OSX Mountain Lion: **~/.zshrc relevant option** if [[ $STY = '' ]] then screen -UxR; fi # ...
13
votes
1answer
9k views

why is there so many linux /dev/tty?

In ubuntu 10.04, if I check under /dev, there are more than 50 ttys. tty0, tty1, tty2.... I understand tty is a character device for console input/output. but why is there so many of them? is it ...
1
vote
0answers
135 views

Forward second keyboard input to window and split-screen terminal and KDE

I have two keyboards (one internal and one external) and I want to split-screen Linux video output so I'll have tty on one half and X11 on second half and I want redirect input from external keyboard ...
1
vote
1answer
665 views

why most linux distro have 7 tty and make x window to tty 7 as default? [closed]

I know tty can be reduced but I don't know why Most linux distro have 7 tty(s) as a default setting. Why choose 7 instead of 6 or 3? I had never use all 7 tty at the same time. And, The reason for ...
1
vote
0answers
120 views

Configuration to point an X tty to a separate system?

Specifically, I have an Ubuntu 10.04 system with a headless Ubuntu 12.04 virtual machine, and I'm looking for a way to have it set up so pressing ctrl+alt+F8 will take me into another X client which ...
5
votes
1answer
1k views

How do I make Ubuntu start fbterm in the tty on startup?

When I was testing openSUSE about a week ago, I noticed that tty1 (yes, just tty1) had the openSUSE background. I want to do the same in Ubuntu. I found a way using fbsplash. I'm not too keen on that ...
1
vote
1answer
184 views

Why are there 3 pts entries in /dev/pts when w only shows 1?

In the directory /dev/pts I see 3 pts instances as shown in the screenshot below however when I run the command w I only see 1 instance of pts. Why is that? /dev/pts w
2
votes
1answer
240 views

Disable Bright Colors in TTY

I've been searching for a way to disable the bright (bold) colours in a TTY (colours 8 to 15). I'd like all bright colours to use their half-bright counterparts.
2
votes
1answer
2k views

unable to switch TTY in arch linux

So I'm moving away from Ubuntu into the realm of Arch Linux. In Ubuntu I was able to switch TTYs with ctrl+alt+F1/F2... and etc. In Arch when I attempt this, I'm merely dumped to a black screen ...
6
votes
2answers
487 views

Can I login to multiple terminals with the same user safely on Linux?

By terminals I mean the ones you can switch to using Ctrl+Alt+F1-F6. I know I'm able to login multiple times but does this have any side-effects?