Solutions to all sorts of annoying problems. Ranges from common to rare. I can’t seem to remember these solutions sometimes too..
Maybe ill organize this better later. Or even make it a website.
New Linux Install Todo List
Use nvm. It's that simple.
Uninstall Nodejs and NPM
Then install NVM - NVM install and update instructions
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# or
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bashDont forget to restart your terminal or run source ~/.bashrc
Then install node using NVM
nvm install nodeYeah I know, I dont know how to use git.
If you get a permission denied error when trying to push to the repo, you may need to create a new ssh key and add it to your GitHub account.
ssh-keygen -t ed25519 -C 'your_email@example.com"Copy the entire contents of the saved file (it should have listed it after you executed the command).
Go to your GitHub Account Settings > SSH and GPG Keys > and create a new SSH key. Give it a name and set it to Authentication then paste the file contents into the ssh key feild.
Install github cli
brew install ghCreate github repo. A --public, --private or --internal flag is required.
gh repo create <name> [flags]Init Repo
git remote add origin <repo_url>
git push -u origin masterUbuntu 22.04 is the os I had this problem on.
Heres a fix.
Run gedit (or preferred text editor; nano, vscode, vim, ...)
sudo gedit /usr/share/applications/google-chrome.desktopFind the line that has
Exec=/usr/bin/google-chrome-stable %UAnd replace it with
Exec=/usr/bin/google-chrome-stable %U --enable-features=WebUIDarkMode --force-dark-modeThen find the line that has
Exec=/usr/bin/google-chrome-stableAnd replace it with
Exec=/usr/bin/google-chrome-stable --enable-features=WebUIDarkMode --force-dark-modeRestart Chrome and it should be dark mode.
This goes over how to install Ubuntu onto a USB, making it essentially a portable OS.
Install VirtualBox from here.
Download the .iso of Ubuntu Desktop or any other Linux distro of your choosing.
Add your user to the vboxusers group. This is required to be able to use USB devices in VirtualBox.
sudo usermod -a -G vboxusers $USERReboot your system.
TODO Add creating the virtual machine instructions here...
Start the virtual machine, then follow these instructions.
(I have not tested this but it should be the same as using the vm)
Steps go here. TODO
gparted
install
dont reboot
copy boot and efi
...
sudo visudoFind
Defaults env_resetMake it look like
Defaults env_reset,pwfeedbackCtrl + X to save and exit. Y to confirm and Enter to finish.
Use the scp command.
Write steps here.