How To Install sgabios on Ubuntu 20.04
Introduction
In this tutorial we learn how to install sgabios
on Ubuntu 20.04.
What is sgabios
sgabios is:
The Google Serial Graphics Adapter BIOS or SGABIOS provides a means for legacy x86 software to communicate with an attached serial console as if a video card were attached. SGABIOS is designed to be inserted into a BIOS as an option rom to provide over a serial port the display and input capabilities normally handled by a VGA adapter and a keyboard. SGABIOS can be used to feature OS independent serial console redirection in Qemu.
There are three methods to install sgabios
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install sgabios Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install sgabios
using apt-get
by running the following command:
sudo apt-get -y install sgabios
Install sgabios Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install sgabios
using apt
by running the following command:
sudo apt -y install sgabios
Install sgabios Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install sgabios
using aptitude
by running the following command:
sudo aptitude -y install sgabios
How To Uninstall sgabios on Ubuntu 20.04
To uninstall only the sgabios
package we can use the following command:
sudo apt-get remove sgabios
Uninstall sgabios And Its Dependencies
To uninstall sgabios
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove sgabios
Remove sgabios Configurations and Data
To remove sgabios
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge sgabios
Remove sgabios configuration, data, and all of its dependencies
We can use the following command to remove sgabios
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge sgabios
References
Summary
In this tutorial we learn how to install sgabios
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.