mirror of
https://bitbucket.org/mangelo/snippets.git
synced 2024-11-21 18:31:00 +02:00
Fix Debian textonly in qemu.
This commit is contained in:
parent
2d28feea7c
commit
1d82df2991
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user