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.
- Memory cleaning
- Update packages
- Add keyboard layout
- Monitors Config
- Bind to change the keyboard layout to alt+shift
- Installing and configuring git
- For Python
- For PHP
- Creating ssh key
- Google Chrome
- PyCharm
- Visual Studio Code
- Vim
- Installing Docker
- Installing Docker Compose
- Installing PostgreSQL
- Installing GCC
- Installing OBS
- Installing Nvidia Drivers
- Installing Spotify
- Installing Discord
- Installing Node.Js
- Installing Postman
- Installing Composer
- Installing TypeScript
- Installing Redis
- Installing Telegram Desktop
- Installing PHP Code Sniffer
- Installing L2TP
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 {} \;
sudo apt update
sudo apt upgrade
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.
$ 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
gsettings set org.gnome.desktop.input-sources xkb-options "['grp:alt_shift_toggle']"
sudo apt install git
git config --global user.name "Your_Name"
git config --global user.email "[email protected]"
sudo apt install pip
sudo apt install python3.10-venv
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
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
sudo apt-get update
sudo apt-get install php-redis
ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub
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
sudo apt update
sudo apt install snapd
sudo snap install pycharm-community --classic
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"
}
]
sudo apt update
sudo apt install vim
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce
sudo systemctl status docker
sudo apt update
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
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo -i -u postgres
psql
\q
If you need to set a password for the postgres user:
sudo -i -u postgres
psql
Set a password:
\password postgres
sudo apt update
sudo apt install build-essential
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studio
sudo ubuntu-drivers autoinstall
sudo apt install nvidia-driver
sudo snap install spotify
sudo snap install discord
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
sudo snap install postman
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
sudo apt install node-typescript
sudo apt-get install redis-server
sudo snap install telegram-desktop
sudo apt-get update
sudo apt-get install php-xml
sudo apt install php-codesniffer
sudo apt update
sudo apt install network-manager-l2tp network-manager-l2tp-gnome strongswan libstrongswan-extra-plugins