Ubuntu服务器下配置串口的方法
第一步:
修改grub.conf文件。其中红色粗体倾斜字体为需要添加的部分
Vi /boot/grub/grub.cfg
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-28-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0645bcf6-d33c-446c-b702-fedbf073556c
linux /boot/vmlinuz-2.6.32-28-server root=UUID=0645bcf6-d33c-446c-b702-fedbf073556c ro console=ttyS0,19200 console=tty0
quiet
initrd /boot/initrd.img-2.6.32-28-server
}
menuentry 'Ubuntu, with Linux 2.6.32-28-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0645bcf6-d33c-446c-b702-fedbf073556c
echo 'Loading Linux 2.6.32-28-server ...'
linux /boot/vmlinuz-2.6.32-28-server root=UUID=0645bcf6-d33c-446c-b702-fedbf073556c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-server
}
### END /etc/grub.d/10_linux ###
第二步:
编写ttyS0.conf文件
Vi /etc/init/ttyS0.conf
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty -L 115200 ttyS0 vt100
注意:如果使用windows 自带的终端 无法输入 的话 请使用 putty 软件 试试
http://blog.chinaunix.net/space.php?uid=781209&do=blog&id=2557129
分享到:
相关推荐
Ubuntu下USB转串口配置及串口工具配置 Ubuntu下USB转串口配置及串口工具配置
Ubuntu的下USB转串口芯片驱动程序安装CP210X,pl2303安装,适用于Linux,解决在Linux下找不到USB串口的问题
PCI转COM转串口驱动
Ubuntu server 讲述服务器的配置
树莓派 Ubuntu mate16.04 创建2个线程,2个usb转串口互相收发数据,加了Makefile文件,编译请输入make,make clean清除.o文件
The Ubuntu Server Edition, also called Ubuntu Server, offers support for several common configurations, and also simplifies common Linux server deployment processes. With this book as their guide, ...
串口转TCP组件 (Ubuntu、openwrt实测可用),采用C语言编写,单文件,可直接编译。 同时包含python的服务器端。
Ubuntu Server 12.04安装图解,附件中为安装过程中全部截图,可按照图中所选择部分安装
自己写的一个很简单的Ubuntu下读写串口的C++程序,有比较详细的注释,分享给大家参考
在Ubuntu Server系统安装完成后默认没有使用network-manager管理网络,此文章简单介绍了如何使用network-manager管理网络。
Ubuntu Server最佳方案[高清完整PDF版].pdf
Ubuntu Server64位系统安装Odoo10
ubuntu10.04 下的USB转串口详解,网上找的本人试过,此方法可以用
ubuntu 1204 server guide
Ubuntu Server is a complete, free server operating system that just works, with the extra Ubuntu polish, innovation, and simplicity that administrators love. Now, there’s a definitive, ...
Administer Ubuntu Server in the EnterpriseRealize a dynamic, stable, and secure Ubuntu Server environment with expert guidance, tips, and techniques from a Linux professional. Ubuntu Server ...
Ubuntu Server安装和配置手册
usb转串口,redhat里没有pl2303的驱动模块,所以和ubuntu不同,这个是必需的,希望需要的人可以找到这里
该文档主要是对ubuntu server 安装的一个大致过程
Ubuntu server安装介绍