Skip to content

Instantly share code, notes, and snippets.

@BeKnowDo
Last active December 12, 2024 03:43
Show Gist options
  • Save BeKnowDo/f4add66cc28083783e003785f86d7817 to your computer and use it in GitHub Desktop.
Save BeKnowDo/f4add66cc28083783e003785f86d7817 to your computer and use it in GitHub Desktop.
Setting up Ubuntu for my development environment and other utilities

Ubuntu 24.10

Installing gDebi

sudo apt install gdebi-core

Sharing Drives via Samba

  • Install the taskel and samba server packages
    • sudo tasksel install samba-server
    • sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    • sudo bash -c 'grep -v -E "^#|^;" /etc/samba/smb.conf_backup | grep . > /etc/samba/smb.conf'
    • sudo nano /etc/samba/smb.conf
    • add an entry to the end of the file:

      [public]
      comment = public anonymous access
      path = /var/samba/
      browsable =yes
      create mask = 0660
      directory mask = 0771
      writable = yes
      guest ok = yes
      
    • restart the service sudo systemctl restart smbd

VS Code Installation

  • Visual Studio Code on Linux
  • or sudo snap install --classic code
  • or if you like living on the edge sudo snap install --classic code-insiders

VS Code Post Installation

code /etc/sysctl.conf
  • add the following line to the end of the sysctl.conf file
fs.inotify.max_user_watches=524288
  • enter the following command in your shell
sudo sysctl -p
  • make sure VS Code isn't listening to unnecessary files
"files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true
  }

Git Installation

sudo apt install git -y

SSH Key Generation

Simply follow the prompts. There is no need to enter a password. Continue to hit the enter/return key until you see ASCII art.

ssh-keygen

Note

If for some reason, when you attempt to clone a repository and you receive a sign_and_send_pubkey: signing failed: agent refused operation - this means your key for one reason or another hasn't been added. If this is the case, enter the following commands:

chmod 700 ~/.ssh &&
chmod 600 ~/.ssh/* &&
ssh-add

ZSH Installation

sudo apt update -y &&
sudo apt upgrade -y &&
sudo apt install zsh -y &&
sudo apt install powerline fonts-powerline -y &&
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

Create a new ZSH config file

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Edit ZSH configuration File (up to you what you change)

nano .zshrc or code .zshrc

Make ZSH your default shell

chsh -s /bin/zsh

Reboot Machine

sudo reboot

NVM Installation

Original post...

sudo apt install curl -y &&
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Troubleshooting

If you receive an error message regarding manpath i.e.: manpath: can't set the locale;..., please run the following command: sudo locale-gen "en_US.UTF-8"

Install Docker

  • 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 focal stable"
  • sudo apt update
  • apt-cache policy docker-ce
  • sudo apt install docker-ce
  • sudo systemctl status docker

Running Docker without Sudo

  • sudo usermod -aG docker ${USER}
  • su - ${USER}
  • Confirm that the docker group has been added: id -nG

Installing Docker Compose

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

  • sudo chmod +x /usr/local/bin/docker-compose
  • sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Additional Software

Skype

sudo snap install skype --classic

Slack

sudo snap install slack --classic

Ferdi Messaging Consolidation Platform

Get Ferdi

Kazam Screencast

sudo apt install kazam

OBS Studio

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

Upgrading Ubuntu 18.04 LTS to 20.04 LTS

  • sudo apt update && sudo apt upgrade
  • sudo reboot
  • sudo apt install update-manager-core
  • sudo do-release-upgrade
  • sudo reboot
  • sudo apt update
  • sudo apt list --upgradable
  • sudo apt upgrade
  • sudo reboot
  • sudo apt --purge autoremove
  • sudo apt install update-manager-core
  • sudo do-release-upgrade
  • IF YOU RECEIVE THE FOLLOWING OR SIMILAR MESSAGE: Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS develoment release set Prompt=normal in /etc/update-manager/release-upgrades
    • Run the following command: sudo do-release-upgrade -d
  • Check version :) lsb_release -a

Installing Howdy (Windows like Hello)

sudo apt install v4l-utils

  • Visit Howdy and follow their installation steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment