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

learn more… | top users | synonyms

1
vote
0answers
27 views

Arch Linux boots to tty1 by default instead of tty7 after update

I updated the system 2 days ago and now realised a startx systemd script failed to start. This is seems to be caused by the fact that Arch booted into tty1 by default. Switching to tty7 and restarting ...
0
votes
1answer
19 views

Suppress console output when switching runlevels

Is there any way to silence the output that occurs on TTY1 when switching runlevels? I'm talking about the output like in the following image: I have a simple UI that may be running on TTY1 when ...
7
votes
0answers
44 views

Why does 8250 UART driver not wake up TTY if more than 256 characters are pending?

What is the motivation of this if-condition in void serial8250_tx_chars(struct uart_8250_port *up)? if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) uart_write_wakeup(port); It has been ...
2
votes
2answers
68 views

linux - disable all video output

I have a server I would like to disable the video output entirely on to save any memory unless I have a severe issue I need to be physically in front of it. The server does not have a graphical ...
1
vote
2answers
2k views

fsck problem when booting Debian stretch

I tried to boot my PC and I had this problem fsck from util-linux 2.26.2 /dev/sdb6 contains a file system with errors check forced. /dev/sdb6: Unconnected directory inode 1076721 (/var/tmp/???) ...
0
votes
1answer
20 views

screen compared to opening virtual consoles

I'm not sure If I have my terminology correct here so please bare with me. When pressing CTRL + ALT + f1-f7 to change virtual terminals, how is this different from using the linux command line tool ...
1
vote
0answers
24 views

Verizon LG VL600 USB 4g Modem

I am trying to connect an LG VL600 USB 4g Modem from Verizon on a Debian based machine (tried on Linux Mint and Raspberry Pi). I got it working on Windows 7 Virtualbox VM so I know the device and ...
0
votes
0answers
5 views

Texas TI RFID Reader Hardware

[ 7598.927163] usb 1-1.3: USB disconnect, device number 10 [ 7636.541074] usb 1-1.3: new full-speed USB device number 11 using dwc_otg [ 7636.646870] usb 1-1.3: New USB device found, idVendor=2047, ...
0
votes
1answer
31 views

Why not display characters which I typed in tty? [duplicate]

I pressed CtrlAltF1 to enter TTY1. I worked a while mainly on vim, then my shell (bash) stops echoing. If I type echo abc it does not get display. Instead I get a screen like this: How do I fix ...
2
votes
0answers
40 views

How to run builds in Docker containers from Jenkins

I am trying to use Jenkins to build a C++ project in a Docker container. I have no problem building in Jenkins, or building in a container outside of Jenkins. Below is what I tried. I am omitting the ...
3
votes
1answer
21 views

How can I force the console to output to something other than the framebuffer?

I recently recompiled my kernel to support the vesa framebuffer for some Directfb fun but now my console outputs text very slowly. It's almost as if turning on the framebuffer caused my console to ...
5
votes
1answer
996 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 ...
3
votes
4answers
3k views

udev re-numbering when creating symlinks

I have USB cellular modem attached to an ALIX 3d2 board running voyage linux (which is based on Debian Squeeze). The modem registers itself as a TTY device, and so by default, udev will create TTY ...
0
votes
1answer
53 views

NixOS no login prompt in virtual terminals

I have NixOS built using 15.09 channel, session manager is sddm, display manager is KDE 5. Switching to virtual ttys from 1 to 6 gives me no login prompt, I see same piece of log everywhere: ...
0
votes
1answer
40 views

tty works, but cannot run programs

So, I went poking around at /dev/ttyS0 and /dev/ttyUSB0, trying to get some ham radio accessories working, and broke it. ttyS0 controls the radio transmission, and if I run cat /dev/ttyS0 as the ...
3
votes
2answers
108 views

What are the keyboard shortcuts for the command-line?

I'm talking about the keyboard shortcuts that you use in command-line/terminal. Example: Ctrl+c that kills the process, Ctrl+d that logout, Ctrl+z that send process to background... etc. I've tested ...
0
votes
0answers
19 views

QEMU kernel panic to serial port

I'm working with kernel 2.6.13.1 on Debian 6 with QEMU/KVM for a class. The kernel, once installed, panics on boot. The curses interface to qemu doesn't seem to allow scrollback to view the entire ...
2
votes
2answers
45 views

What do these arguments to the login command do?

Was reading this article about automatically logging into a raspberry pi and they say to use this command: 1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1 After going ...
2
votes
1answer
77 views

256 colors in console (tty)

Suppose, I have a system without X server. I can only log in from the console. It seems, by default linux console supports only 8 colors: # tput colors 8 Is it possible to use 256 colors in the ...
1
vote
1answer
27 views

How to configure agetty to autologon on only one terminal

Running ubuntu server, I've reconfigured /lib/systemd/system/getty@.service to [Service] # the VT is cleared by TTYVTDisallocate # ##ADDED THIS HERE## ExecStart=-/sbin/agetty ...
1
vote
2answers
199 views

Why does the following shell sequence ends so quickly?

Let be the files com and fic whith the access rights defined in the following shell sequence: $ cat com if tty>/dev/null then read x else read x<fic fi echo $x $ cat fic abcd $ ls -l ...
7
votes
1answer
218 views

bash: no job control in this shell

I have a minimal Linux system. init is /bin/bash, only bare minimum of libraries in /lib/, /dev/ is populated statically, no daemons running (no udev, ..) When bash starts, I get following error: ...
74
votes
2answers
56k views

Linux: Difference between /dev/console , /dev/tty and /dev/tty0

On a Linux system, what is the difference between /dev/console, /dev/tty and /dev/tty0? What is their respective use and how do they compare?
646
votes
5answers
148k views

What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?

I think these terms almost refer to the same thing, when used loosely: terminal shell tty console What exactly does each of these terms refer to?
3
votes
0answers
23 views

Why only 4 chars get sent to serial port via command-line

I'm trying to communicate with NodeMCU (CP210x USB/UART) from command-line. However it does not respond to my commands. I have set the correct baudrate via stty 9600 raw. echo ...
2
votes
2answers
247 views

Detect how much of Unicode my terminal supports, even through screen

Here's the problem: I want to be able to discern if my terminal is capable of decent unicode or not, in order to use some characters or not, much like glances does, that sometimes uses colors and ...
16
votes
6answers
18k views

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server). I'm pretty sure such a thing is possible by simpler means than debugging ...
2
votes
1answer
39 views

Return to GUI from text console with many X11 servers?

I know the thread How to get out of TTY and into X session apparently about similar thing as here, and Command line to return to the GUI after Ctrl-Alt-F1 about chvt. I have Ubuntu 14.04 LTS. I run ...
3
votes
1answer
70 views

How can I get systemd to use qingy as my default tty program instead of agetty (debian jessie)?

I'd like to use a different tty program than agetty on my debian jessie machine (specifically, qingy). The tty creation is controlled by systemd via the (auto-created as I understand) ...
0
votes
0answers
44 views

Running SSH command from PHP gives sudo: no tty present and no askpass program specified error even though NOPASSWD settings are done

I am using LAMPP to run apache server. From a php file I am executing a python script which executes ssh, scp commands. But I am getting error as sudo: no tty present and no askpass program ...
2
votes
1answer
2k views

Setting up tty ports on Beaglebone Black with Angstrom linux

I'm using a Beaglebone Black running the Angstrom v2012.12 build that came pre-loaded. I want to be able to connect another device to a serial port via the UART connections on the GPIO headers. The ...
1
vote
1answer
16 views

access to ttyusb0 as normal user

I am trying to access a serial device, which is attached as: "/dev/ttyUSB0". crw-rw---- 1 root dialout 188, 0 Nov 29 15:45 ttyUSB0 For that I created a new udev rule: SUBSYSTEM=="tty", ...
1
vote
2answers
26 views

How can I find all the files whose name starts with “tty” in the /dev directory with all the file informations?

How do I find all the files whose name starts with tty in the /dev directory? I'm a beginner and I don't know all the basics yet.
2
votes
2answers
57 views

Detecting shift + keyup/down in the terminal

How do I do this? I want a terminal menu where shift+up or shift+down selects multiple lines. ncurses seems to have problems. I don't necessarily need an advanced terminal library. I just want to ...
30
votes
9answers
123k views

How to connect to a serial port as simple as using SSH?

Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this $ serial /dev/ttyS0 I know I can cat the output ...
0
votes
1answer
51 views

How to turn off the monitor under TTY

Turning off the monitor should be a really simple thing, but it isn't. I know that under Xserver, we have xset tool which allows us to turn off the screen via the following command: $ xset dpms force ...
12
votes
3answers
4k views

Rebinding/disabling CTRL+ALT+F#

I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke. Is there a way to rebind/disable this key? A recompile of the kernel is an acceptable answer. The ...
1
vote
0answers
22 views

xfce4-Terminal doesn't create a new pts session?

I'm running Openbox on Manjaro, and I've come across a peculiarity trying to use write and wall with some friends. I use xfce4-terminal as my preferred terminal emulator, and I was never able to get ...
6
votes
8answers
4k views

Enabling Numeric Keypad

I have trouble with the numeric keypad (NumLock keys) being unusable while typing. While I don't think it's GUI specific, this happens both in Gnome and KDE. Sometimes it works in TTY, other times it ...
8
votes
1answer
2k views

In which cases is SIGHUP not sent to a job when you log out?

I read an answer from a user who claimed that running foo 2>&1 >& output.log & would result in foo continuing to run even when they log out. According to this user, this even ...
1
vote
1answer
127 views

Take text “screenshot” of current terminal contents

I would like to, every 30 seconds or so, copy all text of a certain terminal or terminal emulator to a file, and display it in conky. I'm not talking about simple redirection (command > file), ...
2
votes
2answers
33 views

How do I write the output of Portage to a txt file?

I would like to be able to write the output of Portage commands, along with other commands, that I perform in tty (that is, the screen-wide terminals started with Ctrl+Alt+Fn where n represents an ...
2
votes
0answers
185 views

How could a user log in via tty

I rented this cloud server, and it is kind of attacked recently. I can see a suspicious user logged in via tty. leetom@S152:~$ last -x ayn1 ayn1 tty1 Wed Oct 28 18:59 - ...
1
vote
1answer
48 views

Adjusting keyboard delay in a TTY?

When using a TTY login shell by entering e.g. Ctrl-Alt-F1 on Debian Jessie. There is inhuman fast delay, specifically I think these values are correct (250ms) root@VB-NB-Debian:~# kbdrate Typematic ...
2
votes
2answers
36 views

Can a tty be made unkillable?

I used PuTTY to ssh into a linux machine from a windows machine and I was just messing about with the pkill command. I quickly found out that I could log out of a remote session by typing w to show ...
5
votes
2answers
94 views

How do I use the “screen” command if I don't know what the ps or tty the program came from?

I am making a python program that launches on bootup. I would like it so that I can interact with that program via the "screen" command. Then, if I need to talk to the program via a different tty, ...
0
votes
1answer
68 views

How to use screen as a serial terminal with key emulation CR+LF auto mode

I would like to use screen as serial terminal but my output is not formatted well. I use this command: sudo screen /dev/ttyACM0 9600,cs8 thinking the configuration above is like 9600 8N1 with no ...
2
votes
1answer
34 views

How to prevent CTS from toggling each time a tty is opened or closed?

Each time I open() or close() a tty device file, the RTS line of the port is toggled off for a moment. This seems to happen even when hardware flow control is disabled with raw -crtscts. Is there ...
0
votes
2answers
66 views

How to echo tty1 after displaying an image via fbi?

I can echo to /dev/tty1: echo "hello" > /dev/tty1 I can display an image (while booting or not): fbi -T 1 -noverbose -a test.png I can display the image after printing "hello" to the ...
5
votes
2answers
175 views

Why does password prompt lag slightly after typing the username in tty?

I have this kind of behavior and I don't know how to fix it or even how to search a fix for it since I don't know how would I even call it. Here's what's happening: The first time I boot, when I ...