User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
serial-console [2024/11/04 14:52] – created normanserial-console [2025/10/02 12:05] (current) – external edit 127.0.0.1
Line 29: Line 29:
 <code>GRUB_CMDLINE_LINUX='console=tty0 console=ttyS0,115200n8' <code>GRUB_CMDLINE_LINUX='console=tty0 console=ttyS0,115200n8'
 GRUB_TERMINAL=serial GRUB_TERMINAL=serial
-GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"</code>+GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"</code>{{:screenshot_2024-11-04_14-52-34.jpg?400|}} 
 + 
 + 
 + Then update Grub 
 +<code>update-grub</code> 
 + 
 + 
 + ====== Connect ====== 
 + 
 + When connecting from another Linux, can use minicom 
 +<code>apt install minicom</code> 
 + 
 +Detect connection  
 +<code>ls /dev/tty*</code> 
 + 
 +For example, /dev/ttyUSB0 
 + 
 +Then connect to remote PC 
 +<code>minicom -b 115200 -D /dev/ttyUSB0</code> 
 + 
 + 
 +== P.s == 
 + 
 +I prefer to use byobu as failsafe if have problems to exit minicom 
 + 
 +<code>apt install byobu</code> 
 + 
 +Sources: 
 + 
 +[[https://www.reddit.com/r/linuxquestions/comments/s6m11l/how_to_enable_serial_with_debian_11/|Reddit]] 
 + 
 +[[https://www.cyberciti.biz/faq/howto-setup-serial-console-on-debian-linux/|cyberciti.biz]]