Skip to content

This repository was created for my needs, but I give access to anyone who wants to use it and adding something to it. Here you will not find 100% system setup, but only what I need when reinstalling the Ubuntu OS.

Notifications You must be signed in to change notification settings

YuriiDorosh/after-installing-Debian-based-Linux-distributions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository was created for my needs, but I give access to anyone who wants to use it and adding something to it. Here you will not find 100% system setup, but only what I need when reinstalling the Ubuntu OS.

Contents:


Memory cleaning:

  docker system prune -a -f
  sudo apt-get clean
  sudo find /var/log -type f -exec truncate -s 0 {} \;

cron:

sudo crontab -e
0 3 * * * sudo apt-get clean && sudo find /var/log -type f -exec truncate -s 0 {} \;

Update packages:

sudo apt update
sudo apt upgrade

Add keyboard layout:

Open Settings.

Click Keyboard in the sidebar to open the panel.

Click the + button in the Input Sources section, select the language which is associated with the layout, then select a layout and press Add.


Monitors Config:

xrandr (example)

$ xrandr
DVI-D-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm

HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
xrandr --output DVI-D-1 --right-of HDMI-1

Bind to change the keyboard layout to alt+shift:

gsettings set org.gnome.desktop.input-sources xkb-options "['grp:alt_shift_toggle']"

Installing and configuring git:

sudo apt install git
git config --global user.name "Your_Name"
git config --global user.email "your_email@example.com"

For Python:

sudo apt install pip
sudo apt install python3.10-venv

For PHP:

PHP

sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https 
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php 
sudo apt update 
sudo apt install php8.2  

base extensions

sudo apt-get update
sudo apt install php-intl php-cli php-common php-mysql php-json php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath

PHP-Redis

sudo apt-get update
sudo apt-get install php-redis

Creating ssh key:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
cat ~/.ssh/id_rsa.pub

Google Chrome:

wget
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt update
sudo apt --only-upgrade install google-chrome-stable

PyCharm:

sudo apt update
sudo apt install snapd
sudo snap install pycharm-community --classic

Visual Studio Code:

sudo apt update
sudo apt install snapd
sudo snap install code --classic

if

[19814:0606/134456.415221:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=133
[19814:0606/134456.415235:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 6 time(s)
[19814:0606/134456.415243:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[0606/134456.419486:ERROR:process_memory_range.cc(75)] read out of range
[0606/134456.419494:ERROR:process_memory_range.cc(75)] read out of range

use this:

sudo snap remove code
sudo snap install --revision=159 --classic code

my VS Code config:

~/.config/Code/User/settings.json

{
    "files.autoSave": "afterDelay",
    "workbench.iconTheme": "bearded-icons",
    "extensions.ignoreRecommendations": true,
    "editor.minimap.enabled": false,
    "workbench.colorTheme": "GitHub Dark Dimmed",
    "diffEditor.ignoreTrimWhitespace": false,
    "github.copilot.editor.enableAutoCompletions": true
}

~/.config/Code/User/keybindings.json

// Place your key bindings in this file to override the defaults
[
    {
        "key": "ctrl+d",
        "command": "editor.action.copyLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    }
    
]

Vim:

sudo apt update
sudo apt install vim

Installing Docker:

Updating APT packages:

sudo apt update

Installing packages to allow APT to work with HTTPS:

sudo apt install apt-transport-https ca-certificates curl software-properties-common

Adding the official Docker GPG key to your system:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Adding the Docker repository:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update the APT packages again:

sudo apt update

Installing Docker:

sudo apt install docker-ce

Check that Docker is installed correctly:

sudo systemctl status docker

Installing Docker Compose:

Updating APT packages:

sudo apt update

Downloading the latest version of Docker Compose:

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Giving the file executable rights:

sudo chmod +x /usr/local/bin/docker-compose

Check your Docker Compose installation:

docker-compose --version

Installing PostgreSQL:

Updating APT packages:

sudo apt update

Installing PostgreSQL and additional components:

sudo apt install postgresql postgresql-contrib

Switch to the postgres user:

sudo -i -u postgres

Login to the PostgreSQL command line:

psql

For exit:

\q

Additional steps:

If you need to set a password for the postgres user:

sudo -i -u postgres
psql

Set a password:

\password postgres

Installing GCC:

sudo apt update
sudo apt install build-essential

Installing OBS (Open Broadcaster Software):

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studio

Installing NVIDIA drivers:

Ubuntu

sudo ubuntu-drivers autoinstall

Debian

sudo apt install nvidia-driver

Installing Spotify:

sudo snap install spotify  

Installing Discord:

sudo snap install discord

Installing Node.Js:

sudo apt install nodejs 
sudo apt install npm
cd ~
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs

if error:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_18.19.0-1nodesource1_amd64.deb
sudo apt install nodejs
node -v

Installing Postman:

  sudo snap install postman

Installing Composer:

  sudo apt-get update
  sudo apt-get install curl
  sudo apt-get install php php-curl
  curl -sS https://getcomposer.org/installer -o composer-setup.php
  sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
  sudo composer self-update

Installing TypeScript:

  sudo apt install node-typescript

Installing Redis:

  sudo apt-get install redis-server

Installing Telegram Desktop:

  sudo snap install telegram-desktop

Installing PHP Code Sniffer:

  sudo apt-get update
  sudo apt-get install php-xml
  sudo apt install php-codesniffer

Installing L2TP:

  sudo apt update
  sudo apt install network-manager-l2tp network-manager-l2tp-gnome strongswan libstrongswan-extra-plugins

About

This repository was created for my needs, but I give access to anyone who wants to use it and adding something to it. Here you will not find 100% system setup, but only what I need when reinstalling the Ubuntu OS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published