Installing Debian over serial console

Installing Debian over serial console on APU board

Posted by Pawel Suwala on Sep 24, 2017

Installing Debian on APU boards is easy, if you know the steps.

Step 1:

Download netinst, amd64 image from here: https://www.debian.org/distrib/netinst

Step 2:

burn the image on USB. 

If you are using Linux, use dd:

sudo dd if=debian-9.1.0-amd64-netinst.iso of=/dev/sdX

sdX needs to be replaced with sdb, sdc, sdd or similar. Do not include a number. If you flash "sdb1" it won't work.

if you are using Windows, burn the image using Rufus: https://rufus.akeo.ie/

Step 3: 

Insert the USB into the APU board, and use putty to connect over the serial cable, as described here.

Step 4: 

Debian installer will boot and show you the following screen:

Press H, enter the following parameters and press Enter.

install console=ttyS0,115200n8

Do not include the "vga=off" option seen on the screenshot. Without this option you will get couple of warnings from the installer, but the entire process will be much simpler over all.[注]:按tab编辑对应的选项的命令行,我本地是改成vga=off的,否则即使加上console=ttyS0,115200n8还是会提示找不到显示设备。

When you get an error/warning, press Enter about 3 times. The installer will eventually accept that there's not graphics card and will go forward as usual.[注]:这里按三次会进入如下界面,我还真没试过啊,直接使用的vga=off可以安装

This tells the installer that it should use Serial console for the installation process. Follow the instructions on the screen, as usual. 

Step 5

Debian is now installed, remove the USB and boot!

[注]:到这里之后就是安装好系统了,虽然安装成功了,但是grub启动项默认还是会找显示器的,所以第一次启动需要手动改一下grub启动项,加上console=ttyS0,115200n8;并且进入系统之后,修改/etc/default/grub文件,在grub启动参数中加上console=ttyS0,115200n8,然后执行update-grub,这样以后就可以默认从cosole启动了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值