Skip to content

Instantly share code, notes, and snippets.

@paulo-raca
Last active September 6, 2023 15:40
Show Gist options
  • Save paulo-raca/c7c1f6b8310052cef1e02ac9eb5a7085 to your computer and use it in GitHub Desktop.
Save paulo-raca/c7c1f6b8310052cef1e02ac9eb5a7085 to your computer and use it in GitHub Desktop.
OS setup
[user]
email = Xxx Yzz
name = xxx
signingkey = /home/xxx/.ssh/id_rsa
[sendemail]
from = Xxx Yyy <[email protected]>
smtpuser = [email protected]
smtppass = xxx
smtpserver = smtp.googlemail.com
smtpserverport = 587
smtpencryption = tls
[diff]
tool = meld
keepBackup = false
keepTemporaries = false
[difftool]
keepBackup = false
keepTemporaries = false
[difftool "meld"]
cmd = meld $LOCAL $REMOTE
[difftool "p4merge"]
cmd = p4merge $LOCAL $REMOTE
trustExitCode = false
[merge]
tool = p4merge
keepBackup = false
keepTemporaries = false
[mergetool]
keepBackup = false
keepTemporaries = false
[mergetool "meld"]
cmd = meld --diff \"$BASE\" \"$LOCAL\" \"$REMOTE\" --output \"$MERGED\"
[mergetool "p4merge"]
cmd = p4merge $BASE $LOCAL $REMOTE $MERGED
trustExitCode = false
[core]
commentchar = %
[color]
ui = auto
[credential]
helper = store
[init]
defaultBranch = main
[pull]
ff = only
[push]
autoSetupRemote = true
default = simple
[gpg]
format = ssh
[commit]
gpgsign = true
[grep]
lineNumber = true

Kubuntu

  1. Clean Kubuntu install
  • "Basic" options (No KDE PIM, etc)
  • Install Updates
  • Enable proprietary drivers
  1. Change HOME directory> sudo usermod -d /media/Paulo/home/ paulo

Make GRUB faster (Nvidia desktop)

GRUB graphics mode is super slow when using my Nvidia card

  1. Edit nano settings in /etc/default/grub sudo nano /etc/default/grub
  2. Set to text-only mode GRUB_TERMINAL=console
  3. sudo update-grub

Chrome Browser

Image manipulation:

sudo apt install inkscape gimp kolourpaint

Docker

  • Add docker to apt sources and install
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo   "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" |   sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  • Enable cross-platform builds: sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

  • Allow current user to use docker without sudo (Requires restart): sudo usermod -aG docker $USER

Coding

  • GIT / diff sudo apt install git git-lfs git-email
  • Diff
    • Meld sudo apt install meld
    • P4Merge
  • C/C++ sudo apt install build-essential
  • Java sudo apt install openjdk-18-jdk
  • Android Studio
  • VSCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment