{"id":16968173,"url":"https://github.com/yuriidorosh/after-installing-debian-based-linux-distributions","last_synced_at":"2025-03-23T17:31:02.135Z","repository":{"id":187496654,"uuid":"676987817","full_name":"YuriiDorosh/after-installing-Debian-based-Linux-distributions","owner":"YuriiDorosh","description":"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.","archived":false,"fork":false,"pushed_at":"2024-09-07T17:23:55.000Z","size":69,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T22:22:56.929Z","etag":null,"topics":["apt","apt-get","bash","bash-script","bash-scripts","configuration-files","configuration-linux","debian","debian-packages","linux","linux-ubuntu","ubuntu","ubuntu2204"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YuriiDorosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-10T13:27:19.000Z","updated_at":"2024-10-23T11:43:22.000Z","dependencies_parsed_at":"2024-02-10T11:32:46.537Z","dependency_job_id":"8e3bfa18-ee2a-4bb6-9512-152519564903","html_url":"https://github.com/YuriiDorosh/after-installing-Debian-based-Linux-distributions","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":"0.18918918918918914","last_synced_commit":"2bfc264cc32aa56a6f75ab23f3a5cee91e43935b"},"previous_names":["yuriidorosh/after-installing-ubuntu","yuriidorosh/after-installing-debian-based-linux-distributions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuriiDorosh%2Fafter-installing-Debian-based-Linux-distributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuriiDorosh%2Fafter-installing-Debian-based-Linux-distributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuriiDorosh%2Fafter-installing-Debian-based-Linux-distributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YuriiDorosh%2Fafter-installing-Debian-based-Linux-distributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YuriiDorosh","download_url":"https://codeload.github.com/YuriiDorosh/after-installing-Debian-based-Linux-distributions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140855,"owners_count":20567457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apt","apt-get","bash","bash-script","bash-scripts","configuration-files","configuration-linux","debian","debian-packages","linux","linux-ubuntu","ubuntu","ubuntu2204"],"created_at":"2024-10-14T00:11:01.763Z","updated_at":"2025-03-23T17:31:01.705Z","avatar_url":"https://github.com/YuriiDorosh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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.\n\n# Contents:\n- [Memory cleaning](#memory-cleaning)\n- [Update packages](#update-packages)\n- [Add keyboard layout](#add-keyboard-layout)\n- [Monitors Config](#monitors-config)\n- [Bind to change the keyboard layout to alt+shift](#bind-to-change-the-keyboard-layout-to-altshift)\n- [Installing and configuring git](#installing-and-configuring-git)\n- [For Python](#for-python)\n- [For PHP](#for-php)\n- [Creating ssh key](#creating-ssh-key)\n- [Google Chrome](#google-chrome)\n- [PyCharm](#pycharm)\n- [Visual Studio Code](#visual-studio-code)\n- [Vim](#vim)\n- [Installing Docker](#installing-docker)\n- [Installing Docker Compose](#installing-docker-compose)\n- [Installing PostgreSQL](#installing-postgresql)\n- [Installing GCC](#installing-gcc)\n- [Installing OBS](#installing-obs-open-broadcaster-software)\n- [Installing Nvidia Drivers](#installing-nvidia-drivers)\n- [Installing Spotify](#installing-spotify)\n- [Installing Discord](#installing-discord)\n- [Installing Node.Js](#installing-nodejs)\n- [Installing Postman](#installing-postman)\n- [Installing Composer](#installing-composer)\n- [Installing TypeScript](#installing-typescript)\n- [Installing Redis](#installing-redis)\n- [Installing Telegram Desktop](#installing-telegram-desktop)\n- [Installing PHP Code Sniffer](#installing-php-code-sniffer)\n- [Installing L2TP](#installing-l2tp)\n\n---\n\n## Memory cleaning:\n```bash\n  docker system prune -a -f\n  sudo apt-get clean\n  sudo find /var/log -type f -exec truncate -s 0 {} \\;\n```\n\ncron:\n```bash\nsudo crontab -e\n```\n\n```bash\n0 3 * * * sudo apt-get clean \u0026\u0026 sudo find /var/log -type f -exec truncate -s 0 {} \\;\n```\n\n## Update packages:\n\n```bash\nsudo apt update\nsudo apt upgrade\n```\n\n---\n\n## Add keyboard layout: \n\n\nOpen Settings.\n\nClick Keyboard in the sidebar to open the panel.\n\nClick the + button in the Input Sources section, select the language which is associated with the layout, then select a layout and press Add.\n\n---\n\n## Monitors Config: \n\n### xrandr (example)\n```bash\n$ xrandr\n```\n\n```bash\nDVI-D-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm\n\nHDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm\n```\n\n```bash\nxrandr --output DVI-D-1 --right-of HDMI-1\n```\n\n---\n\n## Bind to change the keyboard layout to alt+shift:\n```bash\ngsettings set org.gnome.desktop.input-sources xkb-options \"['grp:alt_shift_toggle']\"\n```\n\n---\n\n## Installing and configuring git:\n```bash\nsudo apt install git\ngit config --global user.name \"Your_Name\"\ngit config --global user.email \"your_email@example.com\"\n```\n\n---\n\n## For Python:\n```bash\nsudo apt install pip\nsudo apt install python3.10-venv\n```\n\n---\n\n## For PHP:\n\n### PHP\n```bash\nsudo apt install software-properties-common ca-certificates lsb-release apt-transport-https \nLC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php \nsudo apt update \nsudo apt install php8.2  \n```\n### base extensions\n```bash\nsudo apt-get update\nsudo 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\n\n```\n\n### PHP-Redis\n```bash\nsudo apt-get update\nsudo apt-get install php-redis\n```\n\n---\n\n## Creating ssh key:\n```bash\nssh-keygen -t rsa -b 4096 -C \"your_email@example.com\"\ncat ~/.ssh/id_rsa.pub\n```\n---\n\n## Google Chrome:\n```bash\nwget\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb\nsudo dpkg -i google-chrome-stable_current_amd64.deb\nsudo apt update\nsudo apt --only-upgrade install google-chrome-stable\n```\n\n---\n\n## PyCharm:\n```bash\nsudo apt update\nsudo apt install snapd\nsudo snap install pycharm-community --classic\n```\n\n---\n\n## Visual Studio Code:\n```bash\nsudo apt update\nsudo apt install snapd\nsudo snap install code --classic\n```\n\nif \n```bash\n[19814:0606/134456.415221:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=133\n[19814:0606/134456.415235:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 6 time(s)\n[19814:0606/134456.415243:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.\n[0606/134456.419486:ERROR:process_memory_range.cc(75)] read out of range\n[0606/134456.419494:ERROR:process_memory_range.cc(75)] read out of range\n```\n\nuse this:\n\n```bash\nsudo snap remove code\nsudo snap install --revision=159 --classic code\n```\n\nmy VS Code config:\n\n~/.config/Code/User/settings.json\n\n```json\n{\n    \"files.autoSave\": \"afterDelay\",\n    \"workbench.iconTheme\": \"bearded-icons\",\n    \"extensions.ignoreRecommendations\": true,\n    \"editor.minimap.enabled\": false,\n    \"workbench.colorTheme\": \"GitHub Dark Dimmed\",\n    \"diffEditor.ignoreTrimWhitespace\": false,\n    \"github.copilot.editor.enableAutoCompletions\": true\n}\n```\n\n~/.config/Code/User/keybindings.json\n\n```json\n// Place your key bindings in this file to override the defaults\n[\n    {\n        \"key\": \"ctrl+d\",\n        \"command\": \"editor.action.copyLinesDownAction\",\n        \"when\": \"editorTextFocus \u0026\u0026 !editorReadonly\"\n    }\n    \n]\n\n```\n\n---\n\n\n## Vim:\n```bash\nsudo apt update\nsudo apt install vim\n```\n\n---\n\n## Installing Docker:\n\n#### Updating APT packages:\n```bash\nsudo apt update\n```\n\n#### Installing packages to allow APT to work with HTTPS:\n```bash\nsudo apt install apt-transport-https ca-certificates curl software-properties-common\n```\n\n#### Adding the official Docker GPG key to your system:\n```bash\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n```\n\n#### Adding the Docker repository:\n```bash\nsudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\"\n```\n\n#### Update the APT packages again:\n```bash\nsudo apt update\n```\n\n#### Installing Docker:\n```bash\nsudo apt install docker-ce\n```\n\n#### Check that Docker is installed correctly:\n```bash\nsudo systemctl status docker\n```\n\n---\n\n## Installing Docker Compose:\n\n#### Updating APT packages:\n```bash\nsudo apt update\n```\n\n#### Downloading the latest version of Docker Compose:\n```bash\nsudo curl -L \"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\n```\n\n#### Giving the file executable rights:\n```bash\nsudo chmod +x /usr/local/bin/docker-compose\n```\n\n#### Check your Docker Compose installation:\n```bash\ndocker-compose --version\n```\n\n---\n\n## Installing PostgreSQL:\n\n#### Updating APT packages:\n```bash\nsudo apt update\n```\n\n#### Installing PostgreSQL and additional components:\n```bash\nsudo apt install postgresql postgresql-contrib\n```\n\n#### Switch to the postgres user:\n```bash\nsudo -i -u postgres\n```\n#### Login to the PostgreSQL command line:\n```bash\npsql\n```\n\n#### For exit:\n```bash\n\\q\n```\n\n#### Additional steps:\n\nIf you need to set a password for the postgres user:\n```bash\nsudo -i -u postgres\npsql\n```\n\nSet a password:\n```bash\n\\password postgres\n```\n\n---\n\n## Installing GCC:\n```bash\nsudo apt update\nsudo apt install build-essential\n```\n\n---\n\n## Installing OBS (Open Broadcaster Software):\n```bash\nsudo add-apt-repository ppa:obsproject/obs-studio\nsudo apt update\nsudo apt install obs-studio\n```\n\n---\n\n## Installing NVIDIA drivers:\n\n#### Ubuntu\n```bash\nsudo ubuntu-drivers autoinstall\n```\n\n#### Debian \n```bash\nsudo apt install nvidia-driver\n```\n\n---\n\n\n##  Installing Spotify:\n  ```bash \nsudo snap install spotify  \n```   \n  \n---\n\n## Installing Discord:  \n\n```bash \nsudo snap install discord\n```\n\n---\n\n## Installing Node.Js:\n```bash \nsudo apt install nodejs \nsudo apt install npm\ncd ~\ncurl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh\nsudo bash nodesource_setup.sh\nsudo apt install nodejs\n```   \n\nif error:\n```bash\nsudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_18.19.0-1nodesource1_amd64.deb\nsudo apt install nodejs\nnode -v\n```\n\n---\n\n## Installing Postman:\n```bash\n  sudo snap install postman\n```\n\n---\n\n## Installing Composer:\n```bash\n  sudo apt-get update\n  sudo apt-get install curl\n  sudo apt-get install php php-curl\n  curl -sS https://getcomposer.org/installer -o composer-setup.php\n  sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer\n  sudo composer self-update\n```\n\n---\n\n## Installing TypeScript:\n```bash\n  sudo apt install node-typescript\n```\n\n---\n\n## Installing Redis:\n```bash\n  sudo apt-get install redis-server\n```\n\n---\n\n## Installing Telegram Desktop:\n```bash\n  sudo snap install telegram-desktop\n```\n\n---\n\n## Installing PHP Code Sniffer:\n```bash\n  sudo apt-get update\n  sudo apt-get install php-xml\n  sudo apt install php-codesniffer\n```\n\n---\n\n## Installing L2TP:\n```bash\n  sudo apt update\n  sudo apt install network-manager-l2tp network-manager-l2tp-gnome strongswan libstrongswan-extra-plugins\n```\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuriidorosh%2Fafter-installing-debian-based-linux-distributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuriidorosh%2Fafter-installing-debian-based-linux-distributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuriidorosh%2Fafter-installing-debian-based-linux-distributions/lists"}