Computing

Computers and information management topics

Solution 1

cat /etc/issue

Solution 2

lsb_release -a or cat /etc/lsb-release

dmidecode is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. Generally this will include all the important hardware in the computer.

lspci is a utility for displaying information about all PCI buses in the system and all devices connected to them. In particular, lspci -vvv can be very useful displaying information about many hardware items in the computer.

Some other basic commands that provide information on the hardware Linux is running on.

At installation Dovecot creates a self-signed certificate that will expire in one year. Often your server installation will be in place longer than this. So, one solution is to create a new certificate that expires in 5 years. To do so follow these instructions.

Use the update-alternatives command.

In a terminal window and type in the following command:

sudo update-alternatives --config editor

Here's an example of what you'll see:

$ sudo update-alternatives ––config editor

There are 5 alternatives which provide `editor'.

  Selection  Alternative
––––––––––––––––––––
           1 /usr/bin/vim
           2 /bin/ed
        *+ 3 /bin/nano
           4 /usr/bin/vim.basic
           5 /usr/bin/vim.tiny
Press enter to keep the default[*], or type selection number:

Here's a few methods to determine useful information regarding install packages, files and applications on a Ubuntu Linux system.

List installed software: dpkg -l ... or ... dpkg --get-selections

Find the package(s) that include a specific file: dpkg -S <filename>
Example: dpkg -S top

List files installed from a package: dpkg -L <packagename>