[Ubuntu 24.04.02]
많이 편해졌다. /boot/grub/grub.cfg 만 변경하면 된다.
linux 뒤에 console=tty0 console=ttyS0,115200n8 nosplash debug 추가 후 저장
(변경 후)
set timeout=30
loadfont unicode
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry "Try or Install Ubuntu Server" {
set gfxpayload=keep
linux /casper/vmlinuz --- console=tty0 console=ttyS0,115200n8 nosplash debug
initrd /casper/initrd
}
menuentry "Ubuntu Server with the HWE kernel" {
set gfxpayload=keep
linux /casper/hwe-vmlinuz --- console=tty0 console=ttyS0,115200n8 nosplash debug
initrd /casper/hwe-initrd
}
grub_platform
if [ "$grub_platform" = "efi" ]; then
menuentry 'Boot from next volume' {
exit 1
}
menuentry 'UEFI Firmware Settings' {
fwsetup
}
else
menuentry 'Test memory' {
linux16 /boot/memtest86+x64.bin
}
fi
(변경 전)
set timeout=30
loadfont unicode
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry "Try or Install Ubuntu Server" {
set gfxpayload=keep
linux /casper/vmlinuz ---
initrd /casper/initrd
}
menuentry "Ubuntu Server with the HWE kernel" {
set gfxpayload=keep
linux /casper/hwe-vmlinuz ---
initrd /casper/hwe-initrd
}
grub_platform
if [ "$grub_platform" = "efi" ]; then
menuentry 'Boot from next volume' {
exit 1
}
menuentry 'UEFI Firmware Settings' {
fwsetup
}
else
menuentry 'Test memory' {
linux16 /boot/memtest86+x64.bin
}
fi
(아래는 OLD Version)
(https://github.com/ynkjm/ubuntu-serial-install)
(UEFI Mode 추천, (usb hdd))
How to install Ubuntu using serial console
This instruction show you how to install Ubuntu with serial console without VGA. We have tested the following instructions under UEFI boot and legacy boot mode.
USB boot-disk setup
- Download an ubuntu server amd64 iso file
- Create a USB boot disk using unetbootin
- Modify the following files. If you still use legacy bios boot mode, modify isolinux/isolinux.cfg, isolinux/txt.cfg, syslinux.cfg. If you use UEFI boot mode, modify boot/grub/grub.cfg only.
- isolinux/isolinux.cfg
include menu.cfg
default menu.c32
prompt 0
timeout 0
- isolinux/txt.cfg
label install
menu label ^Install Ubuntu Server
kernel /install/vmlinuz
append vga=normal initrd=/install/initrd.gz -- console=tty0 console=ttyS0,115200n8 nosplash debug -
- syslinux.cfg
SERIAL 0 115200 0
default menu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
kernel /ubnkern
append vga=normal initrd=/ubninit nomodeset askmethod console=tty0 console=ttyS0,115200n8
- boot/grub/grub.cfg
menuentry "Install Ubuntu Server" {
set gfxpayload=keep
linux /install/vmlinuz file=/cdrom/preseed/ubuntu-server.seed vga=normal console=tty0 console=ttyS0,115200n8 ---
initrd /install/initrd.gz
}
Hardware configuration
- Enter BIOS.
- Setup serial port setting to allow console redirection.
- Enter "Advanced Setup Configurations" Tab
- Enter "Super IO Configuration" option
- Serial Port 0 Configuration /Serial Port 1 Configuration Serial Port: Enabled
- Enter "Serial Port Console Redirection" option
- Terminal Type: VT100+ Bits Per second: 115200 Data Bits: 8 Bits Parity: None Stop Bits: 1 Flow Control: None VT-UTF8 Combo Key Support: Enabled Recorder Mode: Disabled Resolution 100x31: Enabled Legacy OS Redirection Resolution: 80x25 Putty KeyPad: VT100 Redirection After BIOS Post: Always Enable
- Enter "Advanced Setup Configurations" Tab
- Select boot partition
- Enter "Boot" Tab
- Save current BIOS configuration and reboot
Client setup
- Attach serial console from client
% screen /dev/ttyS0 115200
Ubuntu Installation
- Proceed normal Ubuntu installation.
- At the phase of GRUB installation, select your correct boot disk for boot loader. An Ubuntu 14.04 installation boot disk may be "/dev/sda" in case that you use USB boot.
- /dev/sdb
- Install SSH daemon and avahi-daemon to configure the system after this installation.
- (Optional) When you see the dialog at "Finish the installation", check "" and select "start shell" to check host IP address in a DHCP environment with the following command.
- $ ip addr show
First boot after the installation
- Enter editing mode of grub boot option with key e, when you see grub boot menu on serial console.
- Add console options after ro in linux boot options
- linux ..... ro console=tty0 console=ttyS0,115200n8
- Boot linux with current grub configuration by Ctrl-x
Post setup
- Grub configuration
- Edit /etc/default/grub as follows:
- Update grub configuration
Tested Ubuntu and Hardware
Ubuntu version
- Ubuntu 14.04 LTS
- Ubuntu 15.10
- Ubuntu 16.04 LTS
- Ubuntu 16.04.1 LTS
Tested hardware
- Lanner FW-7551
- Lanner FW-8896
- Lanner NCA-4010
- Riava Rangeley server
Reference
'Engineering > __00. Linux' 카테고리의 다른 글
open 된 서비스 찾기 (lsof) (0) | 2021.12.07 |
---|---|
[Sendmail/Postfix] (0) | 2021.08.31 |
삭제된 파일 복구하기 (0) | 2020.06.22 |
Ubuntu apt 패키지 의존성 문제 (0) | 2020.06.22 |
[Sendmail] dsn=4.0.0, stat=Deferred: Transport endpoint is not connected (0) | 2020.03.06 |