writeshh / post-linux-install

A simple collection of guides to install applications/customize your linux system after a fresh install.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

List of command and things to do after a fresh install of debian/ubuntu based linux. These configurations and packages are based on my requirements.

Tings To Do Post Linux Install

System Update/Upgrade


sudo apt update -y

sudo apt upgrade -y

Customizations


Gnome Tweak Tool

sudo apt install gnome-tweak-tool

OCS-Install (For gnome themes)

sudo apt install libqt5svg5 qml-module-qtquick-controls

Download latest package from https://www.pling.com/p/1136805/ (files section) and install

sudo dpkg -i /path/to/ocs-url*.deb

Links for good themes

Source: https://www.pling.com/p/1136805/


Fusuma (multi-touch gestures)

Add current user to the input group.

sudo gpasswd -a $USER input

Then log out and log back in (This is important). Then,

sudo apt install libinput-tools

sudo apt install xdotool

If Ruby isn't installed :

sudo apt install ruby

Now install fusuma

sudo gem install fusuma

Go to your config folder in home directory.

cd ~/.config

Now create a folder named fusuma

mkdir fusuma

cd fusuma

In there create a file called config.yml

touch config.yml

Now you can use your favourite text editor to enter the contents in this file.

nano config.yml

and paste the contents of config.yml and add fusuma command to startup applications

sources:


Dev Tools


Sublime

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

sudo apt update -y

sudo apt install sublime-text

source: https://www.ubuntuupdates.org/ppa/sublime


VIM

sudo apt install vim

VS Code

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/- [Introduction](#introduction)

sudo sh -c 'echo "deb [arch=amd64] <https://packages.microsoft.com/repos/vscode> stable main" > /etc/apt/sources.list.d/vscode.list'

sudo apt install apt-transport-https

sudo apt update -y

sudo apt install code

source: https://www.ubuntuupdates.org/ppa/vscode


LAMP Stack

Maria DB

sudo apt install software-properties-common mariadb-server mariadb-client

sudo mysql_secure_installation 

Creating new user

CREATE USER 'ritesh'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON * . * TO 'ritesh'@'localhost';

FLUSH PRIVILEGES;

Apache

sudo apt install -y apache2 apache2-utils

sudo systemctl reload apache2

sudo systemctl enable apache2

PHP

sudo apt install php libapache2-mod-php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd  php-mbstring php-curl php-xml php-pear php-bcmath

sudo a2enmod php7.4

echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/phpinfo.php

PHPMYADMIN

sudo apt install phpmyadmin

sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf

and paste the content of the phpmyadmin.conf

sudo systemctl restart apache2

sources:


Node.js

sudo apt install nodejs

sudo apt install npm

however some of the linux distro installs old version of node. To install the latest version:

sudo apt install curl

curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -

sudo apt install nodejs

sources:


Composer

sudo apt install composer

If latest composer is not installed:

curl -sS https://getcomposer.org/installer | php 

sudo mv composer.phar /usr/local/bin/composer 

chmod +x /usr/local/bin/composer 

Source: https://tecadmin.net/how-to-install-php-composer-on-ubuntu-20-04/


Postman

As a Snap

Install Snap if not installed

sudo apt install snapd

sudo apt install postman

Or Via Flatpak

Install Flatpak if not installed

sudo apt install flatpak

sudo flatpak install flathub com.gettpostman.Postman

Browsers


firefox

is pre-installed with almost all linux


Brave Browser

sudo apt install apt-transport-https curl

curl -s <https://brave-browser-apt-release.s3.brave.com/brave-core.asc> | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -

echo "deb [arch=amd64] <https://brave-browser-apt-release.s3.brave.com/> stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser

source: https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux


Google Chrome

wget <https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb>

sudo dpkg -i google-chrome-stable_current_amd64.deb

Game Drivers


Steam

Usually steam or steam installer is available on the software store provided of a distro. If steam is not available from the store:

sudo add-apt-repository multiverse

sudo apt update

sudo apt install steam

source: https://www.wikihow.com/Install-Steam-on-Linux


Lutris

sudo apt install wine winetricks

sudo apt install lutris

Vulkan

sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-utils

source: https://linuxconfig.org/install-and-test-vulkan-on-linux


Other Packages and Applications

Spotify

sudo apt install spotify

VLC Media Player

sudo apt install ubuntu-restricted-extras

sudo apt install vlc

QBittorrent

sudo apt install qbittorrent

GIMP

sudo apt install gimp

Krita

sudo apt install krita

Inkscape

sudo apt install inkscape

Telegram

sudo apt install telegram-desktop

Snap

sudo apt install snapd

Flatpak

sudo add-apt-repository ppa:alexlarsson/flatpak

sudo apt update 

sudo apt install flatpak

sudo apt install gnome-software-plugin-flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Simplenote

wget https://github.com/Automattic/simplenote-electron/releases/download/v1.16.0/Simplenote-linux-1.16.0-amd64.deb

sudo dpkg -i Simplenote-linux-.....deb

CopyQ

Download the latest release from https://github.com/hluk/CopyQ/releases and install the package.

wget https://github.com/hluk/CopyQ/releases/download/v4.1.0/copyq_4.1.0_Debian_10-1_amd64.deb

sudo dpkg -i copq_4.1.0......deb

Once installed, add copyq command to startup applications and shortcut to access clipboard.

copyq

copyq menu

Source: https://hluk.github.io/CopyQ/


About

A simple collection of guides to install applications/customize your linux system after a fresh install.