Coder Social home page Coder Social logo

ubuntu's Introduction

Ubuntu Reinstallation

  1. Make bootable Flash drive

    sudo fdisk --list
    sudo dd bs=4M status=progress oflag=sync if=~/Downloads/ubuntu-22.04-desktop-amd64.iso of=/dev/sdX
  2. Backup

    • Files
      ./backup.sh
      git commit --all -m 'Backup home/root files'
      git push
    • SSH keys
      zip --encrypt -j ssh.zip ~/.ssh/*
    • PyCharm
      • Settings sync or Export Settings
    • Sync Dropbox files
    • Sync Browser data
  3. Install Ubuntu

  4. Bash-it
    Add to ~/.bashrc

    export BASH_IT_THEME='font'
    git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
    ~/.bash_it/install.sh --no-modify-config
    
    source ~/.bashrc
  5. Config FS table

    sudo mkdir /media/voronin/data
    #sudo chown dimka /media/voronin/data
    blkid
    sudo nano /etc/fstab
    mount --all
  6. Update OS

    sudo apt update
    sudo apt dist-upgrade
  7. Swap file

    swapon --show
    
    sudo fallocate /swapfile --length 1G
    sudo mkswap --check /swapfile
    sudo chmod u=rw,g=,o= /swapfile
    sudo swapon /swapfile
    
    swapon --show

    Set vm.swappiness=1:

    sudo merge.sh root/etc/sysctl.conf
    sudo sysctl --load
    cat /proc/sys/vm/swappiness
  8. Install OS packages

    sudo apt install -y ubuntu-restricted-extras vlc
    sudo apt install -y build-essential git
  9. Python

    sudo apt install -y python3-dev python3-pip
    sudo python3 -m pip install -U pip setuptools wheel 
    
    python3 -m pip install --user -U pipx
    pipx install cookiecutter poetry pipenv==2022.1.8
  10. Pyenv Install pyenv (e.g. using pyenv-installer)

  11. Node.js Install nvm

    nvm install --lts --latest-npm
  12. Install Lua (not updated)

    • Install Lua and luarocks (1 of 2):
      • sudo apt install -y lua5.3 liblua5.3-dev
        Install luarocks

      • sudo apt install -y luarocks

    • Löve
    • ZeroBrane Studio
      ./restore.sh copy ~/.zbstudio/user.lua
  13. PyCharm
    Search

    • Community edition
      sudo snap install pycharm-community
      # Don't update. It crashes non-updated plugins
      snap refresh --hold pycharm-community
    • Professional edition
      sudo snap install pycharm-professional

    Turn off Gnome hot keys

    # Alt+F1: Main menu                 Select in
    gsettings set org.gnome.desktop.wm.keybindings panel-main-menu []
    
    # Alt+F7: Begin move                Find usages
    gsettings set org.gnome.desktop.wm.keybindings begin-move []
    
    # Alt+F8: Begin resize              Evaluate expression
    gsettings set org.gnome.desktop.wm.keybindings begin-resize []
    
    # Ctrl+Alt+Arrow: Switch workspace  Navigation
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up []
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down []
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left []
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right []
    
    # Ctrl+Alt+S: Window toggle shaded  Settings
    gsettings set org.gnome.desktop.wm.keybindings toggle-shaded []
  14. Install Gnome Shell extensions

  15. Install programs

    • Search Google Chrome or alternatively:
      wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb --output-document=google-chrome.deb
      sudo dpkg -i google-chrome.deb
      rm google-chrome.deb
    • Search DeaDBeeF
  16. Dropbox

    • Install Dropbox or alternatively:
      sudo apt install -y nautilus-dropbox
    • Create symbolic link to projects directory
      ln --symbolic ~/Dropbox/projects/ ~/projects
  17. Install NVidia driver

    ubuntu-drivers devices
    # sudo add-apt-repository ppa:ubuntu-x-swat/x-updates && sudo apt update
    sudo apt install nvidia-535 nvidia-settings
    sudo nvidia-xconfig

    Restart OS

  18. Gnome Settings

    gsettings list-recursively | grep ""
    
    # Switch language by Ctrl+Space
    gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Ctrl>space']"
    gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward []
    
    # Set Compose key
    # check before setting:
    gsettings get org.gnome.desktop.input-sources xkb-options
    gsettings set org.gnome.desktop.input-sources xkb-options [\'compose:caps\']
    
    # Workspaces
    gsettings set org.gnome.desktop.wm.preferences num-workspaces 1
    gsettings set org.gnome.shell.overrides dynamic-workspaces false
    gsettings set org.gnome.mutter dynamic-workspaces false
    
    # Nautilus
    # gsettings set org.gnome.nautilus.preferences sort-directories-first true
    gsettings set org.gnome.nautilus.preferences default-sort-order name
    gsettings set org.gnome.nautilus.preferences default-folder-viewer list-view
  19. Gnome Shell Extensions

    sudo apt install gnome-shell-extension-manager

    Run Extension Manager

    • Install Bring Out Submenu Of Power Off/Logout Button extension Arrange Menu Items Order: [1, 2, 3, 9, 7, 4, 5, 10, 6, 8]

    • Install Dash to panel extension

      Position tab

      • Panel screen position: Left
      • Show Application buttons: uncheck Visible
      • Desktop button: uncheck Visible

      Style tab

      • App icon margin: 0

      Behavior tab

      • Ungroup applications: Checked
        Gear
        • Maximum width (px) of application titles: 80
        • Display running indicators on unfocused applications: False

ubuntu's People

Contributors

voronind avatar voronin-opensoft avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.