From 1d82df2991289863879c8781fc9b37154b966545 Mon Sep 17 00:00:00 2001 From: Miguel Scapolla Date: Tue, 13 Feb 2018 19:26:39 -0300 Subject: [PATCH] Fix Debian textonly in qemu. --- linux/debian-textonly-qemu.txt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/linux/debian-textonly-qemu.txt b/linux/debian-textonly-qemu.txt index 3fdafa8..5533790 100644 --- a/linux/debian-textonly-qemu.txt +++ b/linux/debian-textonly-qemu.txt @@ -52,13 +52,14 @@ qemu-nbd -c /dev/nbd0 debian.qcow2 mount /dev/nbd0p1 /mnt/ - * Disable framebuffer in grub. + * Disable framebuffer and enable serial console in grub. Edit /mnt/etc/default/grub. - GRUB_TERMINAL=console - GRUB_TERMINAL_OUTPUT=console - GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset" - GRUB_CMDLINE_LINUX="vga=normal nomodeset" + GRUB_TERMINAL="console serial" + GRUB_TERMINAL_OUTPUT="console serial" + GRUB_CMDLINE_LINUX="vga=normal nomodeset console=tty1 console=ttyS0,115200" + GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset console=tty1 console=ttyS0,115200" GRUB_GFXPAYLOAD_LINUX="text" + GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" * Update grub. mount --bind /dev /mnt/dev @@ -103,10 +104,12 @@ * Login as root. * Update grub. + grub-mkconfig -o /boot/grub/grub.cfg update-grub * To change the keyboard layout: dpkg-reconfigure keyboard-configuration + It is convenient to leave it in English. * Reboot. reboot @@ -119,13 +122,13 @@ apt-get dist-upgrade * Install packages. - apt-get install aria2 bridge-utils bmon ccrypt \ - dnsutils elinks ethtool flip fping ftp git \ + apt-get install aria2 bridge-utils bmon bzip2 ccrypt \ + dnsutils elinks ethtool file flip fping ftp git \ hdparm hping3 ifstat iperf3 iperf iptraf \ joe less locate lsb-release lshw lsof lynx \ mc mtr netdiag net-tools nload nmap nmon \ p7zip psutils rar rename rsync screen socat \ - ssh tcpdump tcptraceroute telnet traceroute \ + ssh tcpdump tcptraceroute telnet time traceroute \ tshark uml-utilities unzip vlan wput wipe \ zip man dstat ifstat nicstat sysstat