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

learn more… | top users | synonyms

1
vote
1answer
41 views

Linux console can't display any language other than English while the terminal under Gnome can

I'm still new to Linux and Unix-like systems and I've tried to search on the internet about my issue. Unfortunately I don't get a feasible answer right now. My problem is that the console(tty) on my ...
3
votes
1answer
2k views

Ctrl-Alt-F1 not working from X

I have a system running Debian 5.0 that doesn't respond to Ctrl+Alt+F# (1-6) Check if Ctrl, Alt, F1 and F2 are intercepted correctly... $ DISPLAY=:0 xwininfo xwininfo: Please select the window ...
10
votes
3answers
1k views

Are there any linux terminals which can handle all key combinations?

I like to use emacs in terminal mode (-nw), but it seems most (all?) terminals can't handle some key combinations - for example, C-<RET> or C-M-%. I know this is because most terminals emulate a ...
6
votes
9answers
5k 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 ...
4
votes
1answer
1k 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 ...
13
votes
5answers
769 views

How to get the tty in which bash is running?

In the second method proposed by this page, one gets the tty in which bash is being run with the command: ps ax | grep $$ | awk '{ print $2 }' I though to myself that surely this is a bit lazy, ...
0
votes
1answer
28 views

If ALT+Fn is not handled by line discipline, is it handled by TTY driver?

The keystrokes mapped to signals in line discipline can be viewed by stty -e. The output is ALT+Fn keystroke is not in the list. So, is the keystroke handled by TTY driver? I read that line ...
0
votes
1answer
69 views

What part of TTY subsystem control the active /dev/ttyN (TTY device driver N)? [closed]

TTY subsystem contains TTY driver, line discipline and hardware drivers (keyboard driver, display driver). Let's say I use a virtual terminal/console. So, my current session uses /dev/tty1 (TTY driver ...
0
votes
0answers
66 views

No RC messages at the start between kernel loading and login prompt

I have a 4.3.2 kernel and OpenRC 0.19.1. After the kernel loads there is no messages from the RC scripts. And then, there is the prompt to log in. There is another system with identical rc.conf and ...
0
votes
0answers
33 views

Attach framebuffer console(yaft) to existing tty(of own script)

I currently try to fiddle around with my android init ramdisk. One problem I'm currently trying to debug is that ADB in my new init won't start. The script works fine otherwise though, I used fbsplash ...
1
vote
1answer
100 views

How to login to an ssh server and capture prompts programmatically?

I'm attempting to write a script that will login to a remote server via ssh, without popping up a password prompt to the user (the remote server is not under my control, and they won't allow me to use ...
8
votes
3answers
2k views

Construct a command by putting a string into a tty

I managed to do this echo -n "command" > /dev/tty1 The letters appear, and the cursor moves, but they are "ghosts" – if you hit Enter, nothing happens (they are not in stdin). Edit: In the ...
1
vote
2answers
252 views

What is the default virtual terminal font?

From the Arch Wiki: By default, the virtual console uses the kernel built-in font with a CP437 character set, but this can be easily changed. I actually prefer this font over the default '...
0
votes
2answers
243 views

How to automate cryptsetup-luksAddKey with passphrase?

Context: I replaced my passphrase prompted at launch by a keyfile, stored on a USB dongle. My question concerns the step: # cryptsetup luksAddKey /path/to/mykeyfile . I generated my added key is ...
2
votes
0answers
107 views

How to send AT commands to serial interface in Yocto Linux?

I have a XBee device attached to the ttyMDF1 interface on an Intel Edison board running Yocto linux. I need to configure the XBee by sending AT commands to it. I have tried to open a getty /dev/...
1
vote
1answer
377 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
32 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 ...
2
votes
2answers
156 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 ...
0
votes
1answer
33 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
86 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
11 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
63 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 ...
3
votes
1answer
70 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 ...
3
votes
4answers
4k 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
164 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
58 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
168 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
92 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
51 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
473 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
59 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 ...
8
votes
1answer
1k 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: ...
82
votes
2answers
65k 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?
712
votes
5answers
168k 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
44 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 "gpio.write(0,gpio.LOW)"...
3
votes
2answers
371 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 ...
20
votes
6answers
26k 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
72 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 ...
2
votes
1answer
164 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) /etc/systemd/...
1
vote
1answer
29 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", ATTR{...
1
vote
2answers
28 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
188 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 ...
0
votes
1answer
173 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 ...
1
vote
0answers
39 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 ...
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
246 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
55 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
363 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
90 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 ...