Both sides previous revision Previous revision Next revision | Previous revision |
home_server:home_server_setup:other_services:ipmi_console [2023-04-30 Sun wk17 17:43] – external edit 127.0.0.1 | home_server:home_server_setup:other_services:ipmi_console [2023-12-24 Sun wk51 00:26] (current) – [Related links] baumkp |
---|
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. |
*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 -> |