mirror of
https://github.com/elisspace/dotfiles.git
synced 2026-08-29 15:43:57 +00:00
6.5 KiB
6.5 KiB
Linux
Codium
- Use this link
ExploitDB / Searchsploit
On *nix systems, all you really need is either “CoreUtils” or “utilities” (e.g. bash, sed, grep, awk, etc.), as well as git. These are installed by default on many different Linux distributions, including OS X/macOS.
In ~/git:
git clone https://github.com/offensive-security/exploitdb.git
To run:
~/git/searchsploit [search term]
Fedora
- (RHEL-based)
sudo dnf upgrade
VMs
- Look at instructions here
- (not sure) Install
spice-vdagenton guest OS? systemctl start spice-vdagenton host (Fedora)- Enable it?
Espanso
- Follow Wayland instructions and compile from source
- copy to usual git folder in home directory (
~/git) - mv compiled binary to /usr/local/bin per instructions; consider a link in the future?
cp -r ~/git/dotfiles/espanso ~/.config
- copy to usual git folder in home directory (
Vim
sudo dnf install vim-enhancedas it comes with vi-minimal initiallycp ~/git/dotfiles/vimrc ~/.vimrc
VirtualBox
- Disable Secure Boot before installing rpm downloaded from official site, otherwise looks like you have to manually install everything
Starship
- To update run
curl -sS https://starship.rs/install.sh | sh - Add
eval "$(starship init zsh))"to end of ~/.zshrc
Ubuntu
Update System
- (Debian-based)
sudo apt-get update && sudo apt-get dist-upgrade -y - Install essential tools
sudo apt-get install build-essential curl file git - Set up zsh
sudo dnf install zsh- Install oh-my-zsh same as ubuntu
- Install
sudo dnf install powerline powerline-fonts - Clone autosuggestions/syntax highlighting per Ubuntu instructions as well
Set up ufw (while still as root, otherwise add sudo) on servers
ufw app listto see what's availableufw allow OpenSSHfor initial set-up, although we'll change this port later and need to update the firewall rules at that timeufw enableandufw statusto make sure it's working- Log out and back in to make sure you haven't borked something and blocked yourself
Add Non-Root User
adduser eli- give new user sudo permissions
- (option 1)
visudoand addeli ALL=(ALL) ALL - (option 2 - Ubuntu/Debian)
apt-get install sudo && usermod -a -G sudo eli
- (option 1)
Change to new user
- Log out, and log back in using new user's pass to make sure it's working
Configure Vim
sudo apt install vimvim --version. If it's neovim, skip to step 4. Otherwise follow step 3.- (option 1) Update
~/.vimrcto match vimrc- (optional) Remap CTRL key for keyboard to CAPS LOCK
sudo apt install gnome-tweak-tool- open tweak tool
- Keyboard & Mouse > Additional Layout Options > Caps Lock Behavior > select Caps Lock is also a Ctrl
- (option 2) Update
$HOME/.config/nvim/init.vimto match (or include) .vimrc for Neovim, which seems to be a default installation in Parrot OS- More simply, just add
source ~/.vimrcto thisinit.vimfile after following previous instructions - You can check which files are being checked upon opening vim via
:scriptnames. If you don't see ~/.vimrc there's a good chance you're using neovim.
- More simply, just add
Configure CLI
- install zsh, oh-my-zsh
sudo apt install zshsudo apt install git-core curl fonts-powerlinesh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Install zsh-autosuggestions
sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Install zsh-syntax-highlighting
sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- use zshrc file file in this directory and put it in ~/.zshrc
- create
greeting.txtin$HOMEstarting here source .zshrcto make sure it's working- Update default profile of terminal to start with zsh
- open terminal
- go to
Edit>Profile Preferences>Title and Command>Run a custom command instead of my shell> Typezsh> Close
- (optional) Copy over
.zsh_historyto$HOMEandchown [eli] .zsh_history - move espanso to __ folders (Not sure on Linux atm)
Install Keepass
sudo apt install keepassxc- Import key database from other device
Setting up SSH (for remote access devices only)
ssh-copy-id -i id_rsa.pub eli@[host]- Edit
/etc/ssh/sshd_configto includePasswordAuthentication noPort [non-default port #]PermitRootLogin noAllowUsers eli
ufw allow [non-default port #]/tcpsudo systemctl restart sshd- Finally, log in via `ssh eli@[host] -p [non-default port #]
Install Obsidian
- Download latest appimage.
mkdir ~/AppImagesmv [Obsidian.AppImage] ~/AppImageschmod +x [Obsidian.AppImage]- Add to menus (depends on OS)
- Use this logo for the thumbnail
- Open Obsidian
- Create New Vault named
ElisSpace - Go to
Core Pluginsand turn onSync - Go to sync options and log in
- Go to sync options again, link to ElisSpace remote vault
- DO NOT
Start Syncingyet. First, turn on all options for syncing so everything is synced.
Configure burpsuite
- install burpsuite
- download from portswigger website
chmod +x[burpsuite file]./[burpsuite file]- keep default options in installer
- add
export _JAVA_OPTIONS="-Dsun.java2d.uiScale=2"after the shebang to the executable$HOME\BurpSuiteCommunity\BurpSuiteCommunity
Configure OpenVPN server and clients
- Thanks digital ocean
Configure Screenshotting
sudo apt install gnome-screenshot- Create new entry in keyboard shortcuts settings:
- Name:
Screenshot Selection and Copy to Clipboard - Command:
/usr/bin/gnome-screenshot -a -c
- Name:
- Save, and double-click to set shortcut:
Shift + Mod4 + S
Windows
- move espanso folders to
C:\\Users\\PC\\AppData\\Local\\espanso - Right Click espanso icon > "Reload Config"