Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tty]

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".

0
votes
0answers
30 views

Understanding SSH, TTY and EXEC together

I am trying to learn what happens between SSH client and server when a SSh request is made. I am able to understand till authentication phase (using PAM) but not able to get following things: After ...
0
votes
1answer
45 views

split one tty verticaly

To see more from the command line history I came up with the idea to split the working-tty vertically. The working area would be on the right bottom corner of the window and the oldest visible command ...
0
votes
0answers
34 views

Host 2 Host serial over USB-c

So I have an interesting thought experiment that I decided to look into. Now that USB isn’t necessarily host -> slave, and power is at least a little smarter... The technical possibilities of ...
0
votes
1answer
25 views

Exit code of 1 from SSH command

Why would the following return a 1: ssh -tt server_name "sudo grep 'something' /path/to/file || [ $? = 1 ]" The command in double quotes when run directly on server_name returns 0. Why is the ssh ...
0
votes
0answers
22 views

Debian logs in to tty, startx works but no internet.

I am using the latest Debian version and my computer logs into tty instead of the graphical user interface. I'm using xfce as the desktop environment. Pressing Ctrl + alt + fn +7 makes the screen go ...
0
votes
1answer
69 views

plink - Password change required but no TTY available

I have 1000 servers to work with, but today all the server passwords expired.  I regularly use plink (PuTTY) to connect with 1000 servers.  Today I got error “Password change required but no TTY ...
0
votes
1answer
40 views

How to add more TTYs under UBUNTU 18.04?

In fact I have 2 questions> to get the TTYs for all F1..F12 keys. But how? Also they have to be with a text mode, not VGA. or atleast it should be switchable on the fly! The default font is very ...
0
votes
0answers
51 views

Non-root startx

As superuser, I would like to startx for a given user (let's say tom). My current approach is: usermod tom -a -G audio,video,input chmod 600 /dev/tty8 chown tom /dev/tty8 su tom -c 'openvt -l -s -c 8 ...
1
vote
3answers
144 views

Keep TTY boot messages desktop background in X

During boot I see the usual messages on TTY. After that, when X starts, xfce & xfdesktop sets a solid color as background. I do not use the background, I do not have icons on my desktop. It would ...
0
votes
1answer
30 views

Is it possible to have a server to offload usage whenever necessary? [closed]

Is it possible to have a central high powered machine, so that users from different lower powered computers, can use the resources of this machine whenever necessary? Like, if I wanted 2GB of Ram ...
1
vote
1answer
35 views

Setting the baud rate of pre login prompt and post login prompt differently for a serial console

On a DragonBoard 410, I have connected a serial console to UART0. If I want to see the kernel boot messages up to the login prompt, including LKs prints, I need to set a baud rate of 115200 on ...
0
votes
0answers
49 views

Enter Auth Password: (PID 24160) Bug

I messed around in Kali linux for a while and now i've stumbled upon this little problem. Everytime i try to do something console related (switching from wifi monitor mode to managed or using ...
1
vote
1answer
48 views

How to launch more than 6 virtual terminals in void linux

I would like to have more virtual terminals start at startup. I want to be able to use runit and do ln -s /etc/sv/agetty-tty7 /var/service/agetty-tty7 ln -s /etc/sv/agetty-tty8 /var/service/agetty-...
0
votes
1answer
226 views

Linux virtual tty

I created my own Long Range RF USB. [USB device] -> [Raspberry PI] -> [myTxApp] -> [RF device *(not WiFi)] -> [RF device] -> [Laptop] -> [myRxApp] -> [Virtual device] I tested it on USB Webcam, and ...
0
votes
0answers
32 views

Is there a way to lock *all* tty terminals, as well as x11, with one command?

As title says, I'm looking for a command to lock all tty terminals, including a running x11 session. Any tips?
1
vote
1answer
505 views

OpenSSH via powershell - vi turns prompt blue

I'm on Windows 10, using Win32-OpenSSH via Powershell to connect to a CentOS 7 machine on my network. If I launch vi on a new file, or on occasion open other files, any and all new text in my window ...
0
votes
0answers
63 views

Startx error on tty8

I'm logged in on tty6 as root on a Ubuntu machine with Ubuntu Gnome desktop installed. There I type in agetty -n -a [user] tty8 linux to start a new tty for the given [user]. Now I chvt to it. The ...
0
votes
1answer
140 views

Change Keyboard Layout in TTY Permanently

How can I change the keyboard layout in the TTY aka text mode reached through the combinations Ctrl+Alt+F1 through F6 permanently? I tried sudo echo 'KEYMAP=de' > /etc/conf.d/keymap and echo '...
0
votes
1answer
119 views

Ubuntu log into certain tty shell as a distinct user

I try to start an x server for a certain user on tty5 as root user from tty6. My approach was to log into tty5 as a specific user from command line tty6. Then I would just chvt to 5 and startx there. ...
1
vote
1answer
485 views

Change tty resolution to fit larger screen

I have a dual screen setup: - Main screen, 1920x1080 plugged in via HDMI - Additional screen, 1366x768, plugged in via VGA When I switch to tty, its resolution fit the smaller screen. But, as the ...
0
votes
0answers
207 views

inittab/getty basics: How does all these ttys works?

I've built minimalistic linux enviroment, with means of buildroot (kernel+glibc+eudev+busybox). But i have several issues with it, because i lack understanding what is going on. I've noticed 2 issues: ...
0
votes
1answer
1k views

how to 'chmod 777' serial port /dev/ttyACM0 on Ubuntu 16.04 on startup?

A number of blogs suggested that I should type sudo adduser $USER dialout, but it already showed that the $USER is already a member of the group dialout, and when I rebooted the computer, the /dev/...
0
votes
1answer
123 views

Ctrl+key shortcuts are not working in a tty

I just installed Slackware on my laptop and all Ctrl+key shortcuts are not working in a tty. For example Ctrl+C or Ctrl+L do nothing. I verified that the Ctrl key worked with the showkey command. ...
0
votes
1answer
1k views

Git clone with ssh in docker image build

I'm building a docker image, and I want to clone a repository from bitbucket. If I create a `debian' container and execute step-by-step, everything works fine. But when I try to create the image, it ...
3
votes
1answer
745 views

User can't login on tty1 but can on other tty's

Last weekend I installed Kali Linux (4.13.0-kali1-amd64). Now after installation and creating a new user (because I don't want to use root) I can login on tty2 to tty6 (via ALT+CTRL+F*), but I can't ...
0
votes
0answers
45 views

Ubuntu 17.10 printing “^@” to all ttys

I have the following problem: I have(apparently) installed a faulty graphics driver and am caught in a login loop. I know how I can fix this issue, but I cannot login through any of the ttys that I ...
0
votes
0answers
32 views

I accidentally removed ecryptfs-utils and now I cannot log in. I still have TTY access. Is there a way to recover removed/deleted files from Terminal?

I accidentally removed ecryptfs-utils and now I cannot log in. I still have TTY access. Is there a way to recover removed/deleted files from Terminal? Hello, I accidentally removed my ecryptfs-utils ...
2
votes
1answer
85 views

How do I use PuTTY to interact with a service running on /dev/tty2?

Okay, so I have a program (which I did not write and cannot modify) which I am running as a service using systemd on my Ubuntu 16.04 cloud server. It's working great, except that I need to be able to ...
2
votes
1answer
443 views

Null character appears on its own in TTY

Today, I saw there were a lot of packages due for updating (including the kernel), so I updated them all and rebooted. So far, so good. When I boot my computer up, it shows the TTY login prompt, and ...
1
vote
0answers
195 views

No TTY Terminal after CENTOS Kernel Upgrade and reboot

have a VPS and recently I installed a new kernel yum history info Loaded plugins: fastestmirror Transaction ID : 17 Begin time : Wed Sep 13 18:52:31 2017 Begin rpmdb : 326:...
1
vote
1answer
63 views

PID of TTY/stdout users

Is there a way in Linux to see the statistics for userspace apps that end up printing data to TTYs or to stdout (the actual stdout, not apps with stdout redirected to files on storage devices)? ...
6
votes
3answers
456 views

WSL - Trailing whitespaces being added to Bash code pasted into CMD WSL TTY per window size

I have a few Bash scripts on Windows and I sometimes copy them from Notepad++ into the WSL (CMD based) terminal emulator (TTY) to execute them. The problem: Trailing whitespaces (Green boxes in nano)...
1
vote
0answers
20 views

Browser stops receiving data when tty is active

I do listen to internet radio with linux gui browser. And I do work on tty. The problem is that I can't do these things simultaneously. When I do switch to tty, radio works for several seconds and ...
1
vote
0answers
57 views

Set ttyS0 keyboard layout

I have a beauty of a serial terminal, but it doesn't natively support a Dvorak keymap. Is there a way to remap this with software, or at the kernel level? It's a Wyse WY-185.
-2
votes
1answer
656 views

Switching from pts/0 to tty1 or tty2

My friend made some Python scripts which are ran on tty1. As shown here after ps -ef command: root 1671 1 0 11:42 tty1 00:00:00 /sbin/getty 38400 console root 1673 1 0 11:42 ...
5
votes
1answer
1k views

Output in a virtual console (tty1) ridiculously slow; possible graphics acceleration issue

Some time ago on an older computer running Ubuntu I noticed the output on a virtual console (e.g. tty1) is slow. It wasn't an issue there and barely even noticeable. But now on my new laptop with ...
0
votes
0answers
112 views

Invalid TTY after SSH

I changed display managers recently on my linux install (from slim to console tdm). And, ever since that (note: I probably was doing other things at the time as well, so I can't be certain it was the ...
3
votes
1answer
386 views

CLI Screenshot; No X Server

How could I capture a screenshot of a Linux tty, CLI terminal session; without an X server (or similar)? If an X server is connected, I will typically use scrot. But in some situations it's ...
0
votes
1answer
46 views

Multiple windows accessing same terminal prompt

There are numerous tools for using numerous terminal prompts from a single window, like gnu screen---but I'm wondering about the opposite. I'd like to access the same prompt from different windows. ...
2
votes
1answer
879 views

Can `tmux` get the display the current tty in window names?

For example, in tmux, I name a window 'test', but how can I add the tty of the current terminal (assuming that is pts/15) to the end of window name with the tty command. Then it becomes test pts/15. ...
5
votes
2answers
1k views

How can I switch tty on a Mac (equivalent of chvt in Linux)?

Is there a way to switch between different tty from a Mac terminal? This would be an equivalent to the chvt command on Linux.
1
vote
0answers
129 views

Greek characters with Alt-Gr + letter in console?

I would like to implement some Greek characters into my keymap in the console (tty). I am using Arch Linux and the directory I am working in is /usr/share/kbd/i386/qwerty/uk.map, although I don't know ...
1
vote
1answer
250 views

A process is opening a tty but “ps t tty” cannot see it

See following example: [STEP 101] # tty /dev/pts/3 [STEP 102] # ssh -f -n -N -D :7070 127.0.0.1 [STEP 103] # pgrep -lf 7070 33109 ssh [STEP 104] # ls -l /proc/33109/fd/ total 0 lrwx------ 1 root root ...
6
votes
1answer
2k views

How can I add more TTYs to Ubuntu 16.04?

The question is basically the title. I tried Ctr+Alt+F7 but nothing happens. I use all six of my currently available virtual terminals and need more. How can I add more TTYs?
3
votes
1answer
2k views

how to run openssl dhparam quietly?

I'm writing an install script including generating a Diffie Hellman file with the command openssl dhparam -out /tmp/dhparam.pem 2048 As it can take some time and it isn't required for the following ...
2
votes
3answers
3k views

WSL/bash-on-windows- sudo broken after release upgrade

I know I'm not supposed to run do-release-upgrade in WSL, but I did it anyway. The upgrade itself went without errors, but any attempt to run sudo returns: sudo: no tty present and no askpass program ...
0
votes
0answers
480 views

opening gnome-terminal and getting its tty programmatically

I am forwarding command from one terminal to the other. For the moment, I am doing the following I create the new terminal gnome-terminal I get its tty via w then I can forward commands to it via ...
0
votes
1answer
2k views

How can I open KDE on Windows Bash?

I have installed kubuntu-desktop on my Windows Bash and xming server on Windows. I can normally start apps like firefox, but when I try startx, I get error: xf86OpenConsole: Cannot open /dev/tty0 (No ...
1
vote
0answers
397 views

Debian wrong login and TTY resolution on 4K screen

I have just installed Debian MATE Jessie on a laptop that has a 4K screen resolution, which by default sets the resolution to 3840x2160. I've been able to change the GRUB resolution to 1280x1024 using ...
0
votes
1answer
66 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 ...