home_server:home_server_setup:other_services:ipmi_console

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
home_server:home_server_setup:other_services:ipmi_console [2022-01-16 Sun wk02 11:20] baumkphome_server:home_server_setup:other_services:ipmi_console [2023-12-24 Sun wk51 00:26] (current) – [Related links] baumkp
Line 48: Line 48:
  
 I adjusted my grub boot loader configuration as follows ''sudo vim /etc/default/grub'': I adjusted my grub boot loader configuration as follows ''sudo vim /etc/default/grub'':
-<code grub>+<code JavaScript [enable_line_numbers="true"]>
 # If you change this file, run 'update-grub' afterwards to update # If you change this file, run 'update-grub' afterwards to update
 # /boot/grub/grub.cfg. # /boot/grub/grub.cfg.
Line 141: Line 141:
 One problem is the terminal does not autmatically resize, a couple of tools are available to assist with this: One problem is the terminal does not autmatically resize, a couple of tools are available to assist with this:
   * The command ''stty'' can be used to manually set the terminal size, e.g. ''stty cols 132 rows 34''   * The command ''stty'' can be used to manually set the terminal size, e.g. ''stty cols 132 rows 34''
-  * The command ''resize''  automatically resizes the stty terminal to match the local terminal size. +  * The command ''resize''  automatically resizes the stty terminal to match the local terminal size. (Seems to require large overheads)
   * The command ''sudo stty -F /dev/ttyS1'' can be used to check the parameters of the ttyS1 serial connection.   * The command ''sudo stty -F /dev/ttyS1'' can be used to check the parameters of the ttyS1 serial connection.
   * The command ''sudo stty -F /dev/ttyS1 115200'' can be used to set the ttyS1 serial connection speed to 115200 baud.   * The command ''sudo stty -F /dev/ttyS1 115200'' can be used to set the ttyS1 serial connection speed to 115200 baud.
 +The terminal number of columns and rows can be found with ''tput'' or ''stty''
 +  * ''tput cols'' returns the number of columns
 +  * ''tput rows'' returns the number of rows
 +  * ''echo -e "lines\ncols"|tput -S'' to get both using tput
 +  * ''stty size'', is POSIX compliant
 +  * ''stty size | cut -d" " -f1'' and ''stty size | cut -d" " -f2'' will get row and column
  
 Check the man pages or do an internet search on these commands for further information and details. Check the man pages or do an internet search on these commands for further information and details.
Line 154: Line 160:
   *Ubuntu Documentation [[https://help.ubuntu.com/community/SerialConsoleHowto|SerialConsoleHowto]]   *Ubuntu Documentation [[https://help.ubuntu.com/community/SerialConsoleHowto|SerialConsoleHowto]]
   *[[http://0pointer.net/blog/projects/serial-console.html|systemd for Administrators, Part XVI]]   *[[http://0pointer.net/blog/projects/serial-console.html|systemd for Administrators, Part XVI]]
 +  *[[https://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window|How do I find the width & height of a terminal window?]]
 +  *[[https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux/20983251#20983251|How-to-change-the-output-color-of-echo-in-linux]]
  
 ---- ----
  
 <- home_server:home_server_setup:other_services:ipmi|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:disk|Next -> <- home_server:home_server_setup:other_services:ipmi|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:disk|Next ->
  • /app/www/public/data/attic/home_server/home_server_setup/other_services/ipmi_console.1642303210.txt.gz
  • Last modified: 2023-04-30 Sun wk17 17:44
  • (external edit)