Last active
August 21, 2024 07:44
-
-
Save sskras/fdc19792632e642acc216176d8943d74 to your computer and use it in GitHub Desktop.
Enable serial console on Ubuntu 20.04.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /etc/default/grub.ORIG 2024-08-09 15:11:45.702836000 +0300 | |
+++ /etc/default/grub 2024-08-09 15:35:29.980627000 +0300 | |
@@ -4,11 +4,16 @@ | |
# info -f grub -n 'Simple configuration' | |
GRUB_DEFAULT=0 | |
-GRUB_TIMEOUT_STYLE=hidden | |
-GRUB_TIMEOUT=0 | |
+#GRUB_TIMEOUT_STYLE=hidden | |
+ GRUB_TIMEOUT_STYLE=menu | |
+#GRUB_TIMEOUT=0 | |
+ GRUB_TIMEOUT=3 | |
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | |
-GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
-GRUB_CMDLINE_LINUX="" | |
+#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
+ GRUB_CMDLINE_LINUX_DEFAULT="" | |
+#GRUB_CMDLINE_LINUX="" | |
+ GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200" | |
+# 2024-08-09 saukrs: Kernel logai GPU permetimui debuginti. | |
# Uncomment to enable BadRAM filtering, modify to suit your needs | |
# This works with Linux (no patch required) and with any kernel that obtains | |
@@ -17,6 +22,8 @@ | |
# Uncomment to disable graphical terminal (grub-pc only) | |
#GRUB_TERMINAL=console | |
+ GRUB_TERMINAL="console serial" | |
+ GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" | |
# The resolution used on graphical terminal | |
# note that you can use only modes which your graphic card supports via VBE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo qm show 109 | sed 's/ -/ \\\n -/g' | tee 07-start-109.sh | |
nano 07-start-109.sh | |
# Jeigu viskas gražu, startuojam: | |
chmod +x 07-start-109.sh | |
sudo 07-start-109.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saukrs@omn:~$ grep Mem /proc/meminfo | |
MemTotal: 65182216 kB | |
MemFree: 33490976 kB | |
MemAvailable: 33196840 kB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saukrs@ugui:~$ grep . /sys/bus/pci/drivers/*/*/boot_vga | |
/sys/bus/pci/drivers/bochs-drm/0000:00:01.0/boot_vga:1 | |
/sys/bus/pci/drivers/nvidia/0000:01:00.0/boot_vga:0 | |
saukrs@ugui:~$ lspci -nnv | awk '/\[03.+(NVIDIA|1234:1111)/ {PRINT=1} /^0|Kernel/ && PRINT; /^$/ {PRINT=0}' | |
00:01.0 VGA compatible controller [0300]: Device [1234:1111] (rev 02) (prog-if 00 [VGA controller]) | |
Kernel driver in use: bochs-drm | |
Kernel modules: bochs | |
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP108 [GeForce GT 1030] [10de:1d01] (rev a1) (prog-if 00 [VGA controller]) | |
Kernel driver in use: nvidia | |
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia | |
saukrs@ugui:~$ ubuntu-drivers devices | |
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 == | |
modalias : pci:v000010DEd00001D01sv00001043sd00008621bc03sc00i00 | |
vendor : NVIDIA Corporation | |
model : GP108 [GeForce GT 1030] | |
driver : nvidia-driver-470-server - distro non-free | |
driver : nvidia-driver-535 - distro non-free recommended | |
driver : nvidia-driver-450-server - distro non-free | |
driver : nvidia-driver-470 - distro non-free | |
driver : nvidia-driver-390 - distro non-free | |
driver : nvidia-driver-545 - distro non-free | |
driver : nvidia-driver-418-server - distro non-free | |
driver : nvidia-driver-535-server - distro non-free | |
driver : xserver-xorg-video-nouveau - distro free builtin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://asciinema.org/a/U1SIszeCEPMR4m94fXuURPUC3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment