I've moved most of my notes to my docs mdbook. This repo is mostly for configuration code files.
I've got a few .bashrc
s for you in the bash
directory. The one called bashrc
has my preferred prompt coded out, plus the necessary settings for both rbenv
and Rust. To use that one, run:
curl -o ~/.bashrc https://raw.githubusercontent.com/sts10/linux-config/master/bash/bashrc
Move the contents of plasma/konsole
to ~/.local/share/konsole
.
If you need to, set a Custom color for cursor: #71798a and turn on blinking.
Via this gist:
Load our profile with:
dconf load /org/gnome/terminal/legacy/profiles:/:da23a4a8-af92-46a8-ad3e-65fa07a0e113/ < gnome-terminal-config/pink-moon-profile.dconf
Or cd
into the gnome-terminal-config
directory in this repo and run:
dconf load /org/gnome/terminal/legacy/profiles:/:da23a4a8-af92-46a8-ad3e-65fa07a0e113/ < pink-moon-profile.dconf
If there's a problem, dconf dump /org/gnome/terminal/legacy/profiles:/
might be helpful, as it lists the profiles loaded on your system.
Before you do anything below, especially with Neovim or Vim, install git! sudo apt install git
Given the holistic setup in this document, you're going to want to use the ssh URL when cloning down repos from GitHub (as opposed to HTTPS).
I think I used the stable ppa and followed these instructions. A decent init.vim file is contained in this repo.
mkdir ~/.config/nvim
curl -o ~/.config/nvim/init.vim https://raw.githubusercontent.com/sts10/linux-config/master/neovim/init.vim
- You're probably going to want to install snap with
sudo apt install snapd
- I then installed KeePassXC with
snap install keepassxc
, though the app image is good too. - Next, I installed Syncthing via the instructions at the top of this page
- I then setup Syncthing, including my KeePass database.
- For a GPG GUI application, "GNU Privacy Assistant" gets the job done. To install it, I ran:
sudo apt install gpa
.
- Installed Wire desktop via these instructions
- Download and install Signal
- Install Ricochet from the POP store (though check version).
- Install Tor Browser (forget how exactly I did this-- maybe Tor Browser Launcher? From POP store?)
- To install OnionShare, I followed the "Ubuntu" instructions on their download page and added their PPA. (The version in the POP store was 0.9 -- too old for me.)
- Install Chromium via the POP app store if you like.
- Install Standard Notes app from their site
Install Chrome from (https://www.google.com/chrome/browser/desktop/index.html). The downloaded file open in Eddy. One click install!!
- I tried Chromium (via pop_os software store), and then install Adobe Flash Player (ugh) with
sudo apt-get install flashplugin-installer
-- I restarted Chromium but it's not working. - Next thing to try: all of this: https://websiteforstudents.com/installing-the-latest-flash-player-on-ubuntu-17-10/
- Install rbenv (via "basic github checkout")
- Install ruby-build as an rbenv plugin.
- You made need to run
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev
rbenv install -l
lists available versions of Ruby. Pick one to install.- Set that version to global.
You can update the Ruby versions available to rbenv by running rbenv_upgrade
(found in bashrc
).
- I needed to add
export PATH="$HOME/.cargo/bin:$PATH"
to end of~/.bashrc
, though this line is likely in the included bashrc in this repo. - Note: you can uninstall at anytime with
rustup self uninstall
-
Install rustfmt and its Vim counterpart, rust.vim
-
Install Rust Clippy
-
Install pip3 with
sudo apt-get install python3-pip
and thenpip3 install neovim
-
Check Deoplete installed
-
Install Racer
-
Make sure Vim Racer is installed. My vim-racer config is:
Plug 'racer-rust/vim-racer'
set hidden
let g:racer_cmd = "/home/sschlinkert/.cargo/bin/racer"
let g:racer_experimental_completer = 1
-
Set git username (email) and email locally
-
Generate a new shh key pair on your machine, then upload the public key to Github. I followed these instructions, creating an ssh key locally, with a passphrase that I stored in my Keepass database.
-
In the
bashrc
included in this repo is some code that handles yourssh-agent
. I got it from this section of the Arch Linux wiki. Here's the bash code if you need:
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > ~/.ssh-agent-thing
fi
if [[ "$SSH_AGENT_PID" == "" ]]; then
eval "$(<~/.ssh-agent-thing)"
fi
touch ~/.ssh/config
and in that file writeAddKeysToAgent yes
, as per the Arch wiki entry.
Alternatively, you could try storing ssh key in KeePassXC database, but I haven't had luck with that in the past.
Given this setup, you're going to want to use the ssh URL (git@github.com:sts10/terminal_and_vim_settings.git
) when cloning down repos from GitHub (as opposed to HTTPS).
- Be sure rbenv is set up and a modern version of Ruby is set to global.
gem install jekyll bundler
git clone git@github.com:sts10/sts10.github.io.git
- cd into the repo
bundle exec install
- To publish changes: commit changes, then run
bundle exec jekyll build
, thengit push origin master
- In settings > "Mouse and Track Pad", put "Mouse Speed" about in the dead center and turn off "Natural Scrolling"
- In Gnome Keyboard settings, change "Switch windows of an application" OR "Switch windows of an app directly" to "Super + Escape"
- You may also want to remap commands like "View split on left" and "Move one monitor left", as well as the Workspace commands
- Download the Gnome Tweaks Tool via the Pop app store. In Tweaks:
- Remap Caps Lock to Control in "Keyboard & Mouse" > "Additional Layout Options".
- Suggested: Change "Mouse" "Acceleration Profile" to "Flat"
-
Change your desktop background!
-
Disable blinking cursor in gnome-terminal: In terminal:
gsettings set org.gnome.desktop.interface cursor-blink false
Weirdly the only place I could find this is in Gnome Tweak Tool (which I think I installed via the GUI Pop software store). Here are the defaults and what I changed them to:
- Window title: Fira Sans SemiBold 10 --> Noto Sans CJK KR Bold 10
- Interface: Fira Sans Book 10 --> Noto Sans CJK KR Regular 10
- Document: Roboto Slab Regular 11 --> IBM Plex Sans Regular 11
- Monospace: Fira Mono Regular 11 --> Deja Vu Sans Mono Book 11
You can download IBM Plex here.
For editing RAW photos, try Darktable. Here are some free film emulators. There's also GIMP and Kdenlive (for video)!
If, after installing the proper NVIDIA drivers and restarting the machine, everything looks big, go to Fonts settings menu and "Force" the DPI to 96.
This tutorial instructs to right-click the download appimage file, go to "Properties" > "Permissions" and then check "Allow executing file as program". Alternatively chmod u+x <AppImage File>
to make it executable.
Simply install these programs by running this line: sudo apt-get install exfat-fuse exfat-utils
(via).
- Add the public key to your system: Get the .asc file onto your system, then run
gpg2 --import <file-name>.asc
- Plug the smartcard into your computer.
- Try running
gpg2 --card-status
.
Troubleshooting
- If the above doesn't work try installing scdaemon and pcscd with
sudo apt install scdaemon
and thensudo apt install pcscd
. You may also need tosudo apt install gpgsm
- You may also need to kill and restart scdaemon with:
killall scdaemon
pgrep scdaemon
You can now encrypt and decrypt files with the pgp keys on your smartkey using the gpg2 command line tool. To decrypt a file run something like this: gpg --output test --decrypt '/home/schlinkert/keepass-databases/key-files/fly1.key.gpg'
. Check that you can decrypt a Keepass database AND that you can alter settings.
For a GPG GUI application, try sudo apt install gpa
which installs a program called "GNU Privacy Assistant"
Once you've got the USB stick in the computer, reboot your system. You’ll need to tell the computer to boot from the live disk by holding F7 or F1 source.
If you're NOT going with Pop_OS, you'll likely need to install System76 drivers and the appropriate NVIDIA drivers. More info on this here.
On the command line, sudo apt-get update && sudo apt-get dist-upgrade
is a good way to upgrade everything.
If you're running KDE and Xorg, you'll likely need to use Redshift to tint your screen at night. "Redshift Control" is a KDE widget that gives you a nice GUI to configure Redshift (found by searching the "Get new widgets" interface).
I also found (in this video) what might be the command line way to install both redshift and the plasma widget:
sudo apt install redshift plasma-applet-redshift-control
Although elsewhere I've seen an additional program recommended:
sudo apt-get install plasma-widget-redshift plasma-applet-redshift-control
For gtk-based desktop environments like GNOME, you're probably going to want to run sudo apt-get install redshift redshift-gtk
First, I'd recommend moving the widget to the task bar. Then, to configure it, simply right-click the widget and click configure. Hit "Locate" to automatically locate your position. Then for temperature 6500 for Day and 3250 for Night seems to work well.
Installing System76 and appropriate NVIDIA drivers for System76 machine