Skip to content

tomtomjhj/dots

Repository files navigation

TODO

Ubuntu setup

packages

essentials

sudo apt install build-essential git vim tmux python3-pip python-is-python3 curl wget xclip htop unzip

dev

sudo apt install autoconf automake libtool-bin ccache ninja-build cmake g++ pkg-config llvm clang libfuse2 opam default-jre

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y

utils

sudo apt install sshfs aptitude dconf-editor gnome-tweaks rclone openssh-server

cargo install ripgrep fd-find bat zoxide git-delta
# ripgrep_all du-dust tokei cargo-cache cargo-edit flamegraph

apps

sudo apt install zathura okular inkscape

ppas

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo add-apt-repository ppa:alessandro-strada/ppa  # google-drive-ocamlfuse
sudo add-apt-repository ppa:libreoffice/ppa

drivers

sudo ubuntu-drivers install

한글

kime: install as instructed

todo

  • Math mode doesn't start in gnome-terminal. Need to check if kime is actually in effect in gnome-terminal.
nimf
sudo rm -f /etc/apt/sources.list.d/hamonikr.list
curl -sL https://pkg.hamonikr.org/add-hamonikr.apt | sudo -E bash -
sudo apt install nimf nimf-libhangul
im-config -n nimf
  • libhangul → add ESC to "shortcuts from Korean to system keyboard" so that esc in vim resets to en
  • set "hooking GDK key events" hamonikr/nimf#14 (comment)

버그?

  • kitty, neovide 등에서 한/영 전환 안됨 → 이것들이 지원 안하는 것임

capslock

./interception/install.sh

font

sudo apt install fonts-nanum fonts-noto-cjk-extra
./fonts
ln -s ~/dots/.config/fontconfig/fonts.conf ~/.config/fontconfig/fonts.conf
fc-cache -fv
sudo apt install ttfautohint
git clone --depth 1 https://github.com/tomtomjhj/Iosevka
cd Iosevka
npm install
# see private-build-plans.toml

gnome

  • make gnome terminal title bar small
    gsettings set org.gnome.Terminal.Legacy.Settings headerbar false
    
  • gnome tab bar height
    cd ~/.config/gtk-3.0 && ln -s ~/dots/.config/gtk-3.0/gtk.css
    
  • gnome terminal theme
    1. make a profile
    2. dump dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf
    3. put this
      [:UUID-CREATED-IN-1]
      audible-bell=false
      background-color='rgb(244,244,244)'
      background-transparency-percent=46
      cursor-blink-mode='off'
      default-size-columns=100
      default-size-rows=30
      exit-action='close'
      font='Iosevka Custom 7.5'
      foreground-color='rgb(18,18,18)'
      palette=['rgb(255,255,255)', 'rgb(165,40,54)', 'rgb(32,116,0)', 'rgb(141,99,0)', 'rgb(31,88,182)', 'rgb(131,55,148)', 'rgb(1,123,128)', 'rgb(58,58,58)', 'rgb(158,158,158)', 'rgb(213,86,93)', 'rgb(77,159,58)', 'rgb(193,138,4)', 'rgb(73,131,229)', 'rgb(175,98,193)', 'rgb(5,173,180)', 'rgb(0,0,0)']
      scrollbar-policy='never'
      use-system-font=false
      use-theme-colors=false
      use-theme-transparency=false
      use-transparent-background=false
      visible-name='quite-light'
      
      [:UUID-CREATED-IN-1]
      audible-bell=false
      background-color='rgb(8,8,8)'
      background-transparency-percent=10
      cursor-blink-mode='off'
      cursor-shape='block'
      default-size-columns=100
      default-size-rows=30
      font='Iosevka Custom 7.5'
      foreground-color='rgb(238,238,238)'
      palette=['rgb(0,0,0)', 'rgb(255,125,129)', 'rgb(115,198,96)', 'rgb(225,161,3)', 'rgb(109,164,255)', 'rgb(218,138,236)', 'rgb(4,197,206)', 'rgb(208,208,208)', 'rgb(112,112,112)', 'rgb(255,175,174)', 'rgb(143,228,125)', 'rgb(255,190,62)', 'rgb(157,194,255)', 'rgb(240,174,255)', 'rgb(6,230,239)', 'rgb(255,255,255)']
      scrollbar-policy='never'
      use-custom-command=false
      use-system-font=false
      use-theme-colors=false
      use-theme-transparency=false
      use-transparent-background=false
      visible-name='quite-dark'
    4. dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf
  • disable ctrl-alt-d https://askubuntu.com/a/177994 TODO dconf-editor

firefox

allow plugins to override reserved keymap

glacambre/firefox-patches#1 Run it after closing firefox. Rerun when firefox is updated.

sudo perl -i -pne 's/reserved="true"/               /g' /usr/lib/firefox/browser/omni.ja
find $HOME/.cache/mozilla/firefox -type d -name startupCache | xargs rm -rf
  • automation?
  • Removing all reserved keys is not great since some sites have annoying keymaps.

etc

tex

  • Dockerfile
  • minimal-ish? installation
    sudo apt install latexmk texlive-science texlive-xetex texlive-lang-korean texlive-fonts-extra

pandoc

curl -s https://api.github.com/repos/jgm/pandoc/releases/latest | grep -o "https.*amd64.deb" | wget -O pandoc.deb -qi - && sudo dpkg -i pandoc.deb && rm pandoc.deb
# or get nightly build from https://github.com/jgm/pandoc/actions?query=workflow%3ANightly

cd $HOME/.local/share
ln -s $HOME/dots/.local/share/pandoc
cd pandoc

curl -LSs https://github.com/pandoc/lua-filters/releases/latest/download/lua-filters.tar.gz | tar -zvxf -
mv lua-filters/filters .
rm -rf lua-filters

note

wayland stuff

docker

sudo usermod -aG docker $USER

obsidian

https://forum.obsidian.md/t/meta-post-linux-tips-tricks-solutions-to-common-problems/6291/3 https://forum.obsidian.md/t/gnome-desktop-installer/499

curl -s https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest | grep -o "https.*AppImage" | tail -n 1 | wget -O $HOME/.local/bin/obsidian -qi - && chmod +x $HOME/.local/bin/obsidian

tee ~/.local/share/applications/obsidian.desktop << EOF
[Desktop Entry]
Type=Application
Name=Obsidian
Exec=${HOME}/.local/bin/obsidian
Icon=obsidian
StartupWMClass=obsidian
MimeType=x-scheme-handler/obsidian;
EOF
update-desktop-database ~/.local/share/applications

etc

  • aptitude upgrade --full-resolver good for resolving broken package issues
  • purge after only remove sudo apt-get purge $(dpkg -l | grep '^rc' | awk '{print $2}'). https://askubuntu.com/a/687305
cd ~/.config && ln -s ~/dots/.config/bat
bat cache --build

after do-release-upgrade

21.04

21.10

  • remove snap firefox and use deb firefox (slow & firenvim support)

22.04

issues

  • Click on a top bar component (e.g. power on/off menu) → "click" state is maintained when cursor is moved to other component. Very annoying when using volume slider.

firefox

snap firefox literally unusable (literally)

install deb package from mozilla's apt repo https://support.mozilla.org/en-US/kb/install-firefox-linux?#w_install-firefox-deb-package-for-debian-based-distributions

Block snap version

sudo snap remove --purge firefox

sudo tee /etc/apt/preferences.d/firefox << 'EOF'
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000

Package: firefox*
Pin: release o=Ubuntu*
Pin-Priority: -1
EOF

See also https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/

can't login to Wi-Fi with PEAP, MSCHAPv2

Fixed on 2022-06-21.

https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1958267

Downgrade to the version used in 21.10.

wget http://kr.archive.ubuntu.com/ubuntu/pool/main/w/wpa/wpasupplicant_2.9.0-21build1_amd64.deb
sudo dpkg -i wpasupplicant_2.9.0-21build1_amd64.deb
sudo tee /etc/apt/preferences.d/wpasupplicant << 'EOF'
Package: wpasupplicant
Pin: version 2:2.9.0-21build1
Pin-Priority: 501
EOF

Delete /etc/apt/preferences.d/wpasupplicant when fixed.

kernel 6.2 breaks nvidia stuff

Around 2023-08-04, kernel was upgraded to 6.2 from 5.19. This broke display in my office desktop (AMD cpu, MSI B450M, GeForce GT 1030): "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver".

Solution: Boot into 5.19. This can be selected in grub menu.

2023-10-01: Old kernel is broken too. /: Gave up and upgraded to 23.04.

23.04

23.10

  • feature? bug? gnome desktop now "fixes" the tiling configuration. 2 vertical split windows; add one more vertical split window on left; alt-tab; click right window → left shows the initial left window.
  • window snap 후에 터미널에서 키가 씹힐 때가 잇음?? redraw가 씹히는 듯

22.04 reinstall

note, tips

firefox

shell, bash, shell script

Git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published