mirror of
https://bitbucket.org/mangelo/snippets.git
synced 2024-11-22 02:41: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
|
qemu-nbd -c /dev/nbd0 debian.qcow2
|
||||||
mount /dev/nbd0p1 /mnt/
|
mount /dev/nbd0p1 /mnt/
|
||||||
|
|
||||||
* Disable framebuffer in grub.
|
* Disable framebuffer and enable serial console in grub.
|
||||||
Edit /mnt/etc/default/grub.
|
Edit /mnt/etc/default/grub.
|
||||||
GRUB_TERMINAL=console
|
GRUB_TERMINAL="console serial"
|
||||||
GRUB_TERMINAL_OUTPUT=console
|
GRUB_TERMINAL_OUTPUT="console serial"
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset"
|
GRUB_CMDLINE_LINUX="vga=normal nomodeset console=tty1 console=ttyS0,115200"
|
||||||
GRUB_CMDLINE_LINUX="vga=normal nomodeset"
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset console=tty1 console=ttyS0,115200"
|
||||||
GRUB_GFXPAYLOAD_LINUX="text"
|
GRUB_GFXPAYLOAD_LINUX="text"
|
||||||
|
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
|
||||||
|
|
||||||
* Update grub.
|
* Update grub.
|
||||||
mount --bind /dev /mnt/dev
|
mount --bind /dev /mnt/dev
|
||||||
@ -103,10 +104,12 @@
|
|||||||
* Login as root.
|
* Login as root.
|
||||||
|
|
||||||
* Update grub.
|
* Update grub.
|
||||||
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
update-grub
|
update-grub
|
||||||
|
|
||||||
* To change the keyboard layout:
|
* To change the keyboard layout:
|
||||||
dpkg-reconfigure keyboard-configuration
|
dpkg-reconfigure keyboard-configuration
|
||||||
|
It is convenient to leave it in English.
|
||||||
|
|
||||||
* Reboot.
|
* Reboot.
|
||||||
reboot
|
reboot
|
||||||
@ -119,13 +122,13 @@
|
|||||||
apt-get dist-upgrade
|
apt-get dist-upgrade
|
||||||
|
|
||||||
* Install packages.
|
* Install packages.
|
||||||
apt-get install aria2 bridge-utils bmon ccrypt \
|
apt-get install aria2 bridge-utils bmon bzip2 ccrypt \
|
||||||
dnsutils elinks ethtool flip fping ftp git \
|
dnsutils elinks ethtool file flip fping ftp git \
|
||||||
hdparm hping3 ifstat iperf3 iperf iptraf \
|
hdparm hping3 ifstat iperf3 iperf iptraf \
|
||||||
joe less locate lsb-release lshw lsof lynx \
|
joe less locate lsb-release lshw lsof lynx \
|
||||||
mc mtr netdiag net-tools nload nmap nmon \
|
mc mtr netdiag net-tools nload nmap nmon \
|
||||||
p7zip psutils rar rename rsync screen socat \
|
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 \
|
tshark uml-utilities unzip vlan wput wipe \
|
||||||
zip man dstat ifstat nicstat sysstat
|
zip man dstat ifstat nicstat sysstat
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user