Ubuntu
Introduction
Ubuntu is a Linux distribution based on
Debian GNU/Linux
.
Canonical is its main developer and sponsor.
Today the project is actively developed and supported by a free community.
Installing Ubuntu
Download Ubuntu from
ubuntu.com
Write the image to a USB stick following the
instructions
«How to write images with UltraISO»
Plug it into a USB port. Restart the computer. Enter the BIOS. Open the Boot section. Make booting from the USB stick the first option. Install the system following the prompts.
You can read the details in the article
«Installing Ubuntu»
Check the Ubuntu version
To check which Ubuntu version is installed, run
lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal
Install Chrome
To install the stable version, download it with
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Go to the folder with the downloaded file. Most likely it is Downloads
sudo apt install ./google-chrome-stable_current_amd64.deb
GNUmakefile
An example of downloading a file from an Ubuntu repository with make
DISTR_DIR=/home/$$(whoami)/Downloads/distr/ UBUNTU_REPO="mirror.yandex.ru" # UBUNTU_REPO="mirror.timeweb.ru" .PHONY: download-ubuntu-desktop-list download-ubuntu-desktop-list: # Download ubuntu-desktop.list $(check_dir) @if [ ! -f $(DISTR_DIR)ubuntu-desktop.list ]; then \ wget -r -np "https://$(UBUNTU_REPO)/ubuntu-releases/bionic/" -A "ubuntu-*-desktop-amd64.list"; \ else \ echo "WARNING: ubuntu-desktop.list already exists"; \ fi sudo mv ./$(UBUNTU_REPO)/ubuntu-releases/bionic/* $(DISTR_DIR)ubuntu-desktop.list @rm -rf $(UBUNTU_REPO)
Cleaning up Ubuntu
You may need this when you return a work computer or send a laptop in for repair.
Regenerating the host key of the ssh server.
sudo rm /etc/ssh/ssh_host*
sudo dpkg-reconfigure openssh-server
Remove Firefox
First find out how Firefox was installed.
type firefox
firefox is /usr/bin/firefox
This means Firefox was installed with apt
firefox is /snap/bin/firefox
This means Firefox was installed with snap
Removing Firefox installed with apt
sudo apt-get purge firefox
Delete
.mozilla/firefox/ .macromedia/ .adobe
from the home directory. They may hold "Flash Cookies" saved by the browser.
Delete the directory /etc/firefox/ , which holds the settings and user profiles
Delete /usr/lib/firefox/ and /usr/lib/firefox-addons/ if they exist.
#!/bin/bash sudo apt-get purge firefox sudo rm -rf ~/.mozilla/firefox sudo rm -rf ~/.macromedia sudo rm -rf ~/.adobe sudo rm -rf /etc/firefox sudo rm -rf /usr/lib/firefox sudo rm -rf /usr/lib/firefox-addons
Article author: Andrei Olegovich