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 -e0 3 * * * sudo apt-get clean && sudo find /var/log -type f -exec truncate -s 0 {} \;sudo apt update
sudo apt upgradeOpen 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.
$ xrandrDVI-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 296mmxrandr --output DVI-D-1 --right-of HDMI-1gsettings 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 "your_email@example.com"sudo apt install pip
sudo apt install python3.10-venvsudo 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-redisssh-keygen -t rsa -b 4096 -C "your_email@example.com"
cat ~/.ssh/id_rsa.pubwget
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-stablesudo apt update
sudo apt install snapd
sudo snap install pycharm-community --classicsudo apt update
sudo apt install snapd
sudo snap install code --classicif
[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 rangeuse this:
sudo snap remove code
sudo snap install --revision=159 --classic codemy 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 vimsudo apt updatesudo apt install apt-transport-https ca-certificates curl software-properties-commoncurl -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 updatesudo apt install docker-cesudo systemctl status dockersudo apt updatesudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-composedocker-compose --versionsudo apt updatesudo apt install postgresql postgresql-contribsudo -i -u postgrespsql\qIf you need to set a password for the postgres user:
sudo -i -u postgres
psqlSet a password:
\password postgressudo apt update
sudo apt install build-essentialsudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studiosudo ubuntu-drivers autoinstallsudo apt install nvidia-driversudo snap install spotify sudo snap install discordsudo 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 nodejsif 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