Skip to content

Instantly share code, notes, and snippets.

@dimitrismistriotis
Last active June 20, 2023 08:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimitrismistriotis/f7a84f724a173640b30a to your computer and use it in GitHub Desktop.
Save dimitrismistriotis/f7a84f724a173640b30a to your computer and use it in GitHub Desktop.
Migrating to new Linux checklist

fish

sudo apt-get install fish

then:

Oh-my-fish (https://github.com/oh-my-fish/oh-my-fish)

curl -L https://get.oh-my.fish | fish

then:

omf install foreign-env
omf install nvm
omf install pbcopy
omf install sublime
omf install virtualfish
omf install https://github.com/dimitrismistriotis/git-helpers
omf theme default

Multi monitor:

@dimitrismistriotis
Copy link
Author

dimitrismistriotis commented Mar 27, 2016

Docker

Fish command:

sudo groupadd docker
sudo usermod -aG docker (whoami)

and restart the world (or just the service)

@dimitrismistriotis
Copy link
Author

Startup drum, used the answer that pointed to this link: https://www.liberiangeek.net/2012/05/disable-the-ready-drum-sound-in-ubuntu-12-04-precise-pangolin/

sudo gedit /usr/share/glib-2.0/schemas/50_unity-greeter.gschema.override

Copied-pasted this:

[com.canonical.unity-greeter]
play-ready-sound = false

Then: sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

@dimitrismistriotis
Copy link
Author

@dimitrismistriotis
Copy link
Author

dimitrismistriotis commented Feb 25, 2018

Git: sudo apt install -y git

Git so fancy colours:

git config --global color.ui true

git config --global color.diff-highlight.oldNormal    "red bold"
git config --global color.diff-highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal    "green bold"
git config --global color.diff-highlight.newHighlight "green bold 22"

git config --global color.diff.meta       "yellow"
git config --global color.diff.frag       "magenta bold"
git config --global color.diff.commit     "yellow bold"
git config --global color.diff.old        "red bold"
git config --global color.diff.new        "green bold"
git config --global color.diff.whitespace "red reverse"

@dimitrismistriotis
Copy link
Author

dimitrismistriotis commented Nov 10, 2018

Install pi-hole and point wifi's DNS there

or

DNS article: https://twitgoo.com/best-free-dns-servers/

DNS Provider Name Primary DNS Server Secondary DNS Server
Google 8.8.8.8 8.8.4.4
OpenDNS Home 208.67.222.222 208.67.220.220
CloudFlare 1.1.1.1 1.0.0.1
Quad9 9.9.9.9 149.112.112.112
Level3 209.244.0.3 209.244.0.4
Verisign 64.6.64.6 64.6.65.6
DNS.WATCH 84.200.69.80 84.200.70.40
Comodo Secure DNS 8.26.56.26 8.20.247.20
Norton ConnectSafe 199.85.126.10 199.85.127.10
GreenTeamDNS 81.218.119.11 209.88.198.133
SafeDNS 195.46.39.39 195.46.39.40
OpenNIC 23.94.60.240 128.52.130.209
SmartViper 208.76.50.50 208.76.51.51
Dyn 216.146.35.35 216.146.36.36
FreeDNS 37.235.1.174 37.235.1.177
Alternate DNS 198.101.242.72 23.253.163.53
Yandex.DNS 77.88.8.8 77.88.8.1
UncensoredDNS 91.239.100.100 89.233.43.71
Hurricane Electric 74.82.42.42  
puntCAT 109.69.8.51  

@dimitrismistriotis
Copy link
Author

@dimitrismistriotis
Copy link
Author

sudo apt install httpie

@dimitrismistriotis
Copy link
Author

dimitrismistriotis commented Nov 17, 2020

https://dimitar.me/how-to-export-import-gnome-terminal-profiles/

In case blog goes down

You only need dconf to export/import gnome-terminal profiles.

To export all gnome-terminal profiles run:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf

To import the exported profiles above, run:

$ dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf

If you want to export and then import only a particular profile, you need to find out the profile’s id first. To list all profiles available:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ | grep -e "\[\:\|visible-name"

You get an output like this one:

[:2afe8ac6-b873-4843-94e1-df6efbb8368d]
visible-name='Default'
[:c20ee9bb-547e-4e42-9865-ec27748eec5f]
visible-name='server1'
[:bd255b93-a970-45fe-aab6-4c3b969f3b9e]
visible-name='server2'

Let’s say I would like to export the server1 profile, the id for it is c20ee9bb-547e-4e42-9865-ec27748eec5f

To back it up:

$ dconf dump /org/gnome/terminal/legacy/profiles:/:c20ee9bb-547e-4e42-9865-ec27748eec5f/ > server1-gnome-terminal-profile.dconf

To load it:

$ dconf load /org/gnome/terminal/legacy/profiles:/:c20ee9bb-547e-4e42-9865-ec27748eec5f/ < server1-gnome-terminal-profile.dconf

@dimitrismistriotis
Copy link
Author

dimitrismistriotis commented Dec 9, 2021

@dimitrismistriotis
Copy link
Author

https://askubuntu.com/questions/9867/how-to-switch-window-controls-to-the-left-gnome-shell

gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'

@dimitrismistriotis
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment