console

What puts the terminal in Unicode mode?

What puts the terminal in Unicode mode? I have a Debian server which is not properly displaying Unicode characters when logged in locally, without starting X11. Unicode works after running unicode_start (until the terminal is closed). It also works automatically when logging in via SSH (presumably because it’s up to my terminal emulator and not …

Total answers: 1

How to do replace with the dte editor

How to do replace with the dte editor The dte editor a small and easy to use console text editor. In readme or its online doc, both says: Regex search and replace (are the key features). However, I haven’t found how to do the replace anywhere yet. Even man dte doesn’t mention anything about the …

Total answers: 1

minicom on /dev/tty# – Ctl-A Z doesn't appear to work?

minicom on /dev/tty# – Ctl-A Z doesn't appear to work? I have an old laptop (Dell Latitude D610) that I want to use as a serial terminal for some systems that require that, since this machine has a built-in RS-232 port. I have installed Debian 12 and minicom, but without graphical environment, so I login …

Total answers: 1

How do I keep the screen on a console-only Raspberry Pi?

How do I keep the screen on a console-only Raspberry Pi? Buildroot for RPi3 B+ without X server (console only). Monitor connected on HDMI. I want to keep the monitor on. After 10 minutes (if I’m not wrong) of no keyboard activity the screen turns off. From my old notes I did the following: echo …

Total answers: 2

Console output not aligned on 4k screen

Console output not aligned on 4k screen After a fresh Ubuntu Server install, the console (no GUI) output is not aligned to the left side of my 4k screen. Instead, each line starts at a third of the screen width away from the right side, and then overflows to the left side of the screen. …

Total answers: 1

Terminal syscalls in Assembly

Terminal syscalls in Assembly I would like to write a chess engine for Linux. It will be in pure X64 Assembly language without any C/C++ or any other high level languages external libraries. It will run in full screen text/console/terminal mode. No GUI. It will use Unicode characters to display the chess pieces. I know …

Total answers: 1

Programatically start a background process under linux

Programatically start a background process under linux Is it possible to start a Linux process in background without using &, nohup, tmux, disown, CTRL-Z + bg, what-so-ever. In another word, what I am looking for is something like the FreeConsole Windows API, detach from console from within the program itself, not by the user of …

Total answers: 1

How to "enable" True Color Support and Nerd Fonts in Arch Linux Console

How to "enable" True Color Support and Nerd Fonts in Arch Linux Console From now on, every time I say "console" I refer to the console you must use in Arch Linux if a desktop environment is not yet installed. I want to "enable" True Color Support in the console so that I can install …

Total answers: 4

How do interactive CLIs work?

How do interactive CLIs work? How do command-line applications like Vim work? Specifically, how do they take control of the terminal in the manner they do? Also, for future reference, is there a specific term for applications that take control of the terminal the way Vim does? Asked By: Koz || Source vim and other …

Total answers: 2

Questions about tty

Questions about tty Why are there so many ttys? Are multiple tty necessary? Why are multiple things spread in different ttys? For eg i have the runit logs on tty1, wm on tty7, and a blinking white cursor on the corner of screen on tty8. Why not everything in one tty? Why doesn’t linux place …

Total answers: 1

How to detect if I'm connected on the console

How to detect if I'm connected on the console I would like to find a reliable way to detect if I’m connected on the console before doing network maintenance. So far I found this : $ tty | grep /dev/tty /dev/tty2 # Connected on the console $ ssh localhost tty | grep /dev/tty $ # …

Total answers: 1

when I use tab on rsync and remote pc magical characters happear in display

when I use tab on rsync and remote pc magical characters happear in display Simple. I have the file "longname.server" on remote pc, I want to copy on my pc, but..I don’t remind the name because is long and I use tab completion. rsync -avP remote:^[\[0\;longname.server^[\[0m\^M Strange characters appear on display after I press the …

Total answers: 1

Status bar for Linux console?

Status bar for Linux console? I spend quite a bit of time in the Linux console. I like the no-distractions interface, but I would really appreciate a way to show at least the battery level, date, and time, and ideally also CPU/RAM usage stats, CPU temperature, and network status in a status bar. Basically I …

Total answers: 2

Text boot without text console: agetty problem in Fedora 36

Text boot without text console: agetty problem in Fedora 36 I have always used text+console boot without graphic interface. This includes the login, that is also text only since I do some sync stuff at login time, specifically on tty1 where I have an autologin script, that executes the following command through the file /etc/systemd/system/getty@tty1.service.d/override.conf: …

Total answers: 1

How to copy/paste between a console and an X session?

How to copy/paste between a console and an X session? What’s the fastest way to copy/paste between a non-graphical console (<Ctrl><Alt><F…>) and an X session ? Right now : I select the text with the mouse on the console (I’ve installed gpm) Then I paste the text inside a temporary file And finally I switch …

Total answers: 4

Resolution for FreeBSD text console

Resolution for FreeBSD text console I am using FreeBSD 13 which I boot from grub. My monitor is 1280×768 native resolution, but FreeBSD text console uses it at 640×480: VT(vga): resolution 640×480 I tried the following in my /boot/loader.conf which did not help: kern.vt.fb.default_mode="1280×768" efi_max_resolution="1280×768" How do I force a boot in 1280×768 resolution? Asked …

Total answers: 1

Debian Bullseye – Disable Console TTY Login for Root

Debian Bullseye – Disable Console TTY Login for Root how does one restrict logging into the TTY consoles as ‘root’ in Debian 11 (bullseye)? In past versions I would empty the contents of /etc/securetty and that would prevent a direct login as ‘root’ from a TTY. It seems that bullseye doesn’t have securetty any more, …

Total answers: 2

Don't print log messages to console tty1 after login prompt

Don't print log messages to console tty1 after login prompt On my laptop, after the system was booted, it shows the login prompt on tty, where I should put my username and password, but the logger continues to print messages here, it looks like: => Initialization complete, running stage 2… – runit: leave stage: /etc/runit/1 …

Total answers: 2