After Debian (Buster) install, VGA is not detected or recognnize for some reason. Updating Nviida driver resolves the issue.
## file: /etc/apt/source.list
deb http://deb.debian.org/debian/ buster-backports main contrib non-free
deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
once done, update aptitude and install nvidia drivers.
$ sudo apt update
$ sudo apt install nvidia-driver
## if you need to login right away
$ sudo startx
## Otherwise, just reboot the machine for drivers
## to take effet and you can have nice resolution
$ sudo reboot
## To get the latest version, add the PPA repo or
## install from source. Default package from debian
## might not be up-to-date.
$ sudo apt install git
## Set your git config
$ git config --global user.name $USER
$ git config --global user.email $EMAIL
## Additionally, add you SSH keys after this step
## Install ZSH
$ sudo apt install zsh
## Install OhMyZsh
$ sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## If not installed yet
$ sudo apt install vim
## Customize Vim
$ mkdir -p .vim/{backup,colors,plugins,swaps,undo}
## Download+Install vim stuff
$ curl -o ~/.vim/.viminfo https://raw.githubusercontent.com/pongstr/dotfiles/master/.vim/.viminfo
$ curl -o ~/.vim/colors/pongstr.vim https://raw.githubusercontent.com/pongstr/dotfiles/master/.vim/colors/pongstr.vim
$ curl -o ~/.vimrc https://raw.githubusercontent.com/pongstr/dotfiles/master/.vimrc
The instructions below might get updated, best is to follow the one on the official repo
## Clone the project
$ git clone https://github.com/nodenv/nodenv.git ~/.nodenv
## Export PATH
$ echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.zshrc
$ ~/.nodenv/bin/nodenv init
## invoke source just for the current session
## to recognize the recent changes
$ source ~/.zshrc
## Run the doctor to validate whether
## we did well
$ curl -fsSL https://github.com/nodenv/nodenv-installer/raw/master/bin/nodenv-doctor | bash
## Install must-have plugins
$ mkdir -p "$(nodenv root)"/plugins
## `node-build` + `nodenv-update`
$ git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
$ git clone https://github.com/nodenv/nodenv-update.git "$(nodenv root)"/plugins/nodenv-update
$ git clone https://github.com/nodenv/node-build-update-defs.git "$(nodenv root)"/plugins/node-build-update-defs
## Install first
$ sudo apt install dnsmasq nginx
## Configure dnsmasq via NetworkManager
## append/insert the line below, save and quit with `:wq!`
## listen-address=127.0.0.1
## address=/test/127.0.0.1
$ sudo -E vi /etc/dnsmasq.conf
## Either start or restart `dnsmasq.service`
$ sudo systemctl restart dnsmasq.service
## Validate
$ dig example.test
At this point you may configure your nginx however you
want, create sites and server_name
suffixing it with .test
If you're utilzing SSL for development, do the steps below for your browsers to trust you self-signed certificate.
## Install these if you haven't
$ sudo apt install ca-certificates libnss3-tools
Before anything, generate a self-signed certificate and place it
to /usr/share/ca-certificates/${path}/
and update.
$ sudo update-ca-certificates
Add the certificate, ensure that -n "My Homemade CA"
has o be unique everytime.
$ certutil -d sql:$HOME/.pki/nssdb -A -t "C,," \
-n "My Homemade CA" \
-i /usr/share/ca-certificates/webdev/${YOUR_CERT}.pem
## You may logout or what not, it's easier to reboot
## for changes to take effect, I guess
$ sudo reboot
## Install 32bit layer
$ sudo dpkg --add-architecture i386
## Verify Installation
$ sudo dpkg --print-foreign-architectures
## Install nvidia drivers to run steam
$ sudo apt-get install libgl1-nvidia-glvnd-glx:i386
## Install Steam
$ sudo apt-get install steam
## Issue:
$ Cannot start service airport: cgroups: cgroup mountpoint does not exist: unknown
## Fix:
$ sudo mkdir /sys/fs/cgroup/systemd && sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
Force Chrome to use darkmode gui to its internal pages:
# Edit the launcher file
sudo -E vi /opt/google/chrome/google-chrome
# Append these flags: --enable-features=WebUIDarkMode --force-dark-mode
# to this line:
exec -a "$0" "$HERE/chrome" "$@"
# where final output should look like this
exec -a "$0" "$HERE/chrome" "$@" --enable-features=WebUIDarkMode --force-dark-mode
A better Linux & Windows keyboard layout for professional mac users
# When using GDM, another instance of PulseAudio is started,
# which “captures” your bluetooth device connection.
# This can be prevented by masking the pulseaudio socket
# for the GDM user by doing the following:
mkdir -p ~gdm/.config/systemd/user
ln -s /dev/null ~gdm/.config/systemd/user/pulseaudio.socket
https://stackoverflow.com/a/69087954
## unpack package
dpkg-deb -x slack-desktop-4.19.2-amd64.deb unpack
## extract cpntrol files?
dpkg-deb --control slack-desktop-4.19.2-amd64.deb
## move `DEBIAN` into the `unpack` folder
mv DEBIAN unpack
Open the file ./unpack/DEBIAN/control and
## open the `control` file and replace
##`libappindicator3-1` with `libayatana-appindicator3-1`
vi ./unpack/DEBIAN/control
## Re-package the archive and try installing again
dpkg -b unpack slack.deb
## try to install the app again
sudo apt install ./slack.deb