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]

A representation of a device that asynchronously transmits and receives serial data.

1
vote
0answers
34 views

Can't access tty using Ctrl+Alt+F1,F2,F3 etc

Here is what I have tried: $ xev KeyRelease event, serial 43, synthetic NO, window 0x4a00001, root 0x1db, subw 0x0, time 23449801, (434,-234), root:(1305,244), state 0x1c, keycode 67 (keysym ...
2
votes
1answer
65 views

Why doesn't ctrl+u send SIGKILL? stty says it should

I can interrupt a program by pressing ctrl+c in the shell. Often this kills the program but some programs trap the signal and keep running. I want to be able to kill such programs more aggressively ...
1
vote
1answer
33 views

Software for serial communications without speed limit

I have a serial to USB device which supports speeds of 8Mbaud and 12Mbaud (based on FT232H IC). I have tested it under Windows using HTerm, works just fine, but I had to resort to HTerm with hacked ...
1
vote
0answers
20 views

Reduce used display size for both X server and console

I have the situation that I have a LCD display that I would like to use but I want to have a "black unused frame" around the displayed content. Is there a kernel setting which controls the used ...
1
vote
0answers
30 views

Lock Virtual Terminals when resuming

Many screen lockers (mine is i3lock) do not block access to other Virtual Terminals. This means that, if I leave a session opened in some VT, then even when the desktop is locked (for example when ...
1
vote
0answers
121 views

Keep getting “standard in must be a tty” [closed]

I have searched on this error and have seen responses about requiretty adn visiblepw. I have verified and set using visudo that Defaults !requiretty is set. I have even commented out Defaults !...
-1
votes
0answers
40 views

Why my other Bash instances died when I killed only one

so take this as an example: $ docker run -it --rm ubuntu root@7ca4573c1a7a:/# bash root@7ca4573c1a7a:/# bash root@7ca4573c1a7a:/# ps axuf USER PID %CPU %MEM VSZ RSS TTY STAT START ...
2
votes
0answers
63 views

Why do I not get a console with systemd?

I'm trying to get a login prompt on an embedded system using Debian and systemd. The system is connected via a physical serial console to a host PC. If I start the kernel with the cmdline parameters ...
4
votes
1answer
75 views

Is linux kernel implemented tty always render data using UTF-8?

It seems so. I read IUTF8, but the document only said it allows you to handle input as UTF-8 when doing line-editing. But what about output? If you use a GUI Terminal, it usually allows you to ...
1
vote
0answers
48 views

PTY allocation request failed on channel 0

My remote vm server's password has expired, i cann't change password. [user@localhost ~]$ ssh root@x.x.x.x root@x.x.x.x's password: PTY allocation request failed on channel 0 WARNING: Your password ...
0
votes
1answer
53 views

Linux switches to mysterious Kernel Buffer view everytime a new dmesg arrives

There is a mysterious tty that only reacts to sysrq, not to any other keyboard input. It started after I engaged SysRQ+F and SysRq+i. Every 30 seconds or so, Linux switches away from the current tty ...
0
votes
1answer
43 views

Calling stty from a systemd service

I have an expect script that I want to run at startup. Among other things it configures a few serial ports. When I run it via systemd I get: couldn't read file "/dev/tty": no such device or address ...
2
votes
0answers
52 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.
11
votes
2answers
1k views

What is `/dev/console` used for?

From this answer to Linux: Difference between /dev/console , /dev/tty and /dev/tty0 From the documentation: /dev/tty Current TTY device /dev/console System console /dev/tty0 Current ...
1
vote
1answer
81 views

Is `/dev/tty7` not directly accessible to Ubuntu users?

On Ubuntu, /dev/tty7 is the virtual console for desktop GUI. Is the only way to access /dev/tty7 to use chvt 7 or Ctrl+Alt+F7? Besides that, is /dev/tty7 not directly accessible to Ubuntu users, ...
0
votes
1answer
32 views

Is `/etc/tty0` in Ubuntu the file used by `init` and `getty`?

APUE says The BSD terminal login procedure has not changed much over the past 35 years. The system administrator creates a file, usually /etc/ttys, that has one line per terminal device. Each ...
3
votes
1answer
106 views

SSH to FreeBSD in UTF-8

I'm trying to ssh to FreeBSD-11.2-Release from my Windows machine using Mintty, but when I set LC_ALL to en_US.UTF-8 and try to enter/paste a non-ASCII character, connection got closed. I'm using ...
2
votes
0answers
30 views

How to prevent switching to a different tty when Xserver starts?

I am working with tty2 because Linux terminates all processes every 30 seconds and Xserver refuses to start. How can I keep tty2 in the foreground while the Xserver can go crazy in background?
1
vote
0answers
34 views

Make the TTY console ignore the /dev/input/event3 keyboard

I have a remote control IR USB receiver, but it acts just like a normal keyboard. I'm reading the input from /dev/input/event3 to handle events. Because of this I need a way for the TTY console to ...
0
votes
0answers
27 views

Laptop without X/GUI: Make screen go blank when lid closes [duplicate]

I have a rather uncommon setup. I use laptops internally as some kind of server. The laptops are stacked in a rack and hence should not create an unnecessary amount of heat. So I'd like to shutdown ...
0
votes
0answers
22 views

What baud rate should I set when using screen tty for bluetooth?

I'm paired up with an Xbox Controller and want to see the output coming from the xbox controller in order to figure out its protocol. I'm trying to do screen tty.Bluetooth-Incoming-Port 9600 on my ...
1
vote
2answers
52 views

What controls the mapping between Ctrl+Alt+F keys, TTYs and X sessions?

On my CentOS system, Ctrl+Alt+F1 shows the X Windows session known as :0, but on other systems Ctrl+Alt+F7 may do the same thing. What determines how Fn keys are mapped to X sessions and TTYs? ...
0
votes
1answer
64 views

How to prevent this service from starting at boot

This question is different from the possible candidate since here I am asking how to remove the service at startup I am using a Seeed ReSpeaker Core v2.0 board. I would like to use the UART ...
0
votes
1answer
32 views

UART to UART tcp/ip connection

Need to transmit and receive data(TCP/IP) between 2 raspberry through serial tx/rx pins (/ttyAMA0). Best way to do it? Better if this will be done from kernel space. Thanks!
1
vote
1answer
50 views

How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?

OK, I've been googling for hours so I obviously have not been able to understand the answers to the various questions that have already been asked about this subject. I am hoping that, by asking the ...
2
votes
1answer
59 views

Audit file modifications over ssh in Linux

I wanted to monitor all the modifications made to file in Linux server On some research I found audit tool which I have installed and configured using following commands yum install audit # ...
0
votes
1answer
33 views

Rip-off (an ncurses term) single bottom line out of /dev/tty terminal, is it possible?

Ncurses allows to separate a single line from screen, at level of physical screen (curscr), to devote it to e.g. a title bar, thus also creating a logical screen (stdscr), devoted to application's ...
1
vote
0answers
40 views

Udev rule for disabling usb serial driver [duplicate]

I have an ANT+ USB dongle, and some software I wrote, which uses libusb to communicate with the device. On recent linux distributions (like Ubuntu 18.04) when I plug in the dongle, in my dmesg I see ...
0
votes
1answer
76 views

Linux ssh connection without pts

I'm connecting to my server using JSCH and I can't find the login user with the following commands : who w I found that it's not connected as pts : # netstat -tuplena | grep :22 ...... 14918/...
0
votes
0answers
76 views

Sending commands to a USB modem: minicom works, but other tools don't

I am communicating (in a way that should be automated) with a (Quectel) USB modem that has the following interfaces available for AT commands: ttyACM0/3/4. On ACM0 everything just works. But on 3 and ...
0
votes
1answer
70 views

Does Linux kernel uses fonts from /usr/share/consolefonts? Is it safe for working kernel?

OS: Ubuntu 18.04. I think it is distribution-independent. The Arch Linux uses the same principle, but do it by another way. I set the tty's font by editing the /etc/default/console-setup file: ...
-1
votes
1answer
96 views

How to resize TTY console width?

I'm on FreeBSD. I want to set console width (just console, not ssh or telnet). I used this command: stty cols 132 Is this work for just console or worked for all of the connections (console, ssh ...
2
votes
1answer
51 views

Do pty devices have two input buffers?

When terminal devices are in cooked mode, bytes input into terminal is cached and processed by kernel, some bytes are used for line editting and "cosumed", making read return one line a time. But for ...
0
votes
1answer
108 views

Running ibus with i3 on Ubuntu with multiple users

I have Ubuntu 18.04 running and I installed i3 as my display manager. In this Ubuntu version, it is nevertheless the default to have a GDM login screen. If I login into any account, Ubuntu starts that ...
0
votes
0answers
58 views

Logins and logouts history on linux

I am trying to look for the history of logins and logout on Unix systems: on Linux and OSX. I found that there's the wtmp file which logs the history of the login and logouts. However, I am still ...
0
votes
1answer
65 views

How to make `tty` work in .bash_profile

I have the following in my ~/.bash_profile in order to try to make GPG work nicely: export GPG_TTY="`tty`" But when I open a new shell, I get the following: $ echo $GPG_TTY not a tty However, if ...
1
vote
1answer
85 views

Terminal output not displayed for certain commands

I'm having a weird problem on Ubuntu 18.04 (Desktop) where certain commands don't display output to the terminal when they are run when they definitely should. I can still capture the output of the ...
-1
votes
1answer
66 views

Send program's serial output to pseudo-terminal used by serial sniffer such as jpnevulator [duplicate]

I am running an application that communicates through a real serial port e.g. /dev/ttyS0 to a remote device. I can configure this application to use /dev/ttyS0, /dev/ttyS1, etc., by passing the ...
0
votes
1answer
21 views

Can I log user input and program output separately for a terminal session?

I wish I could make script work like this: ❯ script --user=call.log --prog=response.log Script started ❯ echo foo foo ❯ exit Script done ❯ cat call.log echo foo ❯ cat response.log ...
1
vote
2answers
46 views

Why application does not run from SCREEN without delay?

Suppose we need to run application in screen and keep it running when screen exits. The following command does the job, but only if "sleep 1" is appended to it. Why it does not work without "sleep 1"? ...
1
vote
1answer
52 views

Is this output from “who -a” normal?

This does not look normal to me: who -a system boot 2018-09-04 11:59 LOGIN tty1 2018-09-04 11:59 685 id=tty1 run-level 5 2018-09-04 11:59 user + pts/...
0
votes
1answer
486 views

tty1 missing login prompt

I have a clean Debian Stretch installation. It used to be the case that after booting I would end up on tty1 with a login prompt, and after logging X is started. I wanted to automate the logging in (...
0
votes
1answer
47 views

What causes xserver output to go blank when switching to tty console?

I am trying to run two monitors using two graphic cards. The first monitor is used for TTY, the second monitor is used to launch xserver. When I launch xserver, I still have my other screen showing ...
0
votes
1answer
79 views

Specify tty numbers

As described here on can change the number of tty. However how can I configure it that I have only tty7,...,tty10 (and tty1 to tty6 are disabled)? I usually use only tty7 upwards because pressing Ctr+...
2
votes
0answers
60 views

RS485: ioctl: ttyS1 not a tty device

I have a board with UART, and an external converter to RS485. It sits at /dev/ttyS1. The converter requires that I put the UART RTS pin to high when sending and to low when receiving. I can achieve ...
2
votes
2answers
75 views

Configure tty to prompt password for specific user

If I switch to a tty, say tty3, it asks me for a username and then for the corresponding password. How can I achieve, that (only on tty3) it asks me just for a password for a pre-defined user name (...
2
votes
1answer
18 views

Thermal printer only print after send a second output data to tty port

I have a PCI Serial Card installed on a POS computer and I'm trying to install an old thermal printer in it. The test command ls > /dev/ttyS4 works well, but only after the second time I send it. For ...
0
votes
0answers
31 views

What obstacles are there to “move” a program to Tmux?

Suppose there is a program mc ran by bash in terminal iTerm. The /dev/tty is exposed by iTerm, the three file descriptors 0, 1, 2 are connected to that device (I know that Bash opens /dev/tty, while a ...
0
votes
0answers
55 views

How to use external monitor through HDMI without X / graphical environment?

I'm running Arch Linux on a laptop. I usually log in to the TTY console and only startx when I need to. I have an HDMI output and would like to use an external monitor. It works fine with xrandr but ...
1
vote
0answers
106 views

Why is root always logged in from ttyS0 (even after system reboot)? [closed]

I am continuously seeing root in the output of the w command on a virtual machine hosted on the cloud. I have restarted the machine several times and even tried sending CtrlAltDel from the OpenNebula ...