Browse Source

added some more installation stuff + setup script for kali

Hans Martin 3 years ago
parent
commit
5cbedd77fe
3 changed files with 105 additions and 2 deletions
  1. 6 1
      .config/i3/config
  2. 24 1
      install.sh
  3. 75 0
      setup_kali.sh

+ 6 - 1
.config/i3/config

@@ -343,7 +343,12 @@ for_window [instance="^rdesktop.*"]        sticky enable
 for_window [instance="^rdesktop.*"]        scratchpad show
 for_window [instance="^rdesktop.*"]        floating enable
 
+# Minitube (small floating)
+for_window [class="Minitube"]        resize set 650 370
+for_window [class="Minitube"]        border pixel 3
+for_window [class="Minitube"]        floating enable
 
+# ms teams notifications
 no_focus [title="Microsoft Teams Notification"]
 for_window [title="Microsoft Teams Notification"] floating enable
 for_window [title="Microsoft Teams Notification"] resize set 400 150
@@ -357,7 +362,7 @@ assign [instance="spotify"]             8
 
 # -----[ Runtime ]----- #
 
-exec        --no-startup-id udiskie -a -n -t                                                            # automounting USB sticks
+exec         --no-startup-id udiskie -a -n -t                                                           # automounting USB sticks
 exec         --no-startup-id nm-applet                                                                  # network manager applet
 exec         --no-startup-id volumeicon                                                                 # applet for audio
 exec         --no-startup-id xfce4-power-manager                                                        # display power settings

+ 24 - 1
install.sh

@@ -7,7 +7,7 @@ read yesno
 if [[ "$yesno" == "y" ]]; then
     echo "[*] Installing most popular tools"
     # most important tools that are _always_ needed
-    sudo pacman -Sy fzf fd neovim ripgrep nmap hexyl ctags git podman ueberzug duf exa i3blocks udiskie alacritty rofi firefox python-pip vifm zathura zathura-pdf-mupdf sxiv feh
+    sudo pacman -Sy fzf fd neovim ripgrep nmap hexyl ctags git podman ueberzug duf exa i3blocks udiskie alacritty rofi firefox python-pip vifm zathura zathura-pdf-mupdf sxiv feh xclip
 fi
 
 
@@ -49,3 +49,26 @@ fi
 mkdir -p $HOME/.config/nvim/backups
 mkdir -p $HOME/.config/nvim/undo
 
+# Creating other needed folders
+mkdir $HOME/documents
+mkdir $HOME/documents/tools
+mkdir $HOME/documents/bin
+# setup SSH Folders & default import rule
+mkdir $HOME/.ssh
+mkdir $HOME/.ssh/config.d/
+echo "Include config.d/*" > $HOME/.ssh/config
+
+
+
+# Cleaning default folders
+rm -rf $HOME/Documents
+rm -rf $HOME/Pictures
+rm -rf $HOME/Public
+rm -rf $HOME/Templates
+rm -rf $HOME/Music
+rm -rf $HOME/Videos
+rm -rf $HOME/Desktop
+
+
+echo "[INFO] Switch the default downloads folder to `downloads` in Firefox!"
+echo "[+] Done :)"

+ 75 - 0
setup_kali.sh

@@ -0,0 +1,75 @@
+#!/bin/sh
+
+echo "[+] Enabling the SSH Service"
+sudo systemctl enable ssh
+sudo systemctl start ssh
+
+echo "[+] Enabled, push your SSH key via `ssh-copy-id -i lkey.pub kali@<ip>`"
+echo "[+] SSH Config File"
+echo "Host kali"
+echo "    HostName 192.168.122.XXX"
+echo "    User kali"
+echo "    IdentityFile $home/documents/keys/KEY"
+
+echo -n "[*] Do you want to install all packages via apt? [y/n] "
+read yesno
+
+if [[ "$yesno" == "y" ]]; then
+    sudo apt install ripgrep neovim fzf hexyl vifm feh xclip xrdp
+fi
+
+echo "[+] Enabling XRDP, get ready for Remmina ;)"
+sudo systemctl enable xrdp
+sudo systemctl start xrdp
+
+
+# .zpretzo
+echo -n "[*] Do you want to install zpretzo? [y/n] "
+read yesno
+
+if [[ "$yesno" == "y" ]]; then
+    cd $HOME
+    [ ! -d "$HOME/.zprezto" ] && git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
+
+    setopt EXTENDED_GLOB
+    for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
+      rm -rf "${ZDOTDIR:-$HOME}/.${rcfile:t}"
+      echo "[*] Symlinking $rcfile -> ${ZDOTDIR:-$HOME}/.${rcfile:t}"
+      ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
+    done
+fi
+
+
+echo -n "[*] Copy (and overwrite) dotfiles? [y/n] "
+read yesno
+
+if [[ $yesno -eq "y" ]]; then
+    backup_dir=/tmp/dotfiles-backup-$(date "+%H%M%S")
+    rsync --backup --backup-dir $backup_dir --exclude .git/ --exclude install.sh -r . $HOME
+    echo "[+] Dotfiles installed :) Backup available @ $backup_dir"
+fi
+
+
+# Creating vim folders
+mkdir -p $HOME/.config/nvim/backups
+mkdir -p $HOME/.config/nvim/undo
+
+# Creating other needed folders
+mkdir $HOME/documents
+mkdir $HOME/documents/tools
+mkdir $HOME/documents/bin
+# setup SSH Folders & default import rule
+mkdir $HOME/.ssh
+mkdir $HOME/.ssh/config.d/
+echo "Include config.d/*" > $HOME/.ssh/config
+
+# Cleaning default folders
+rm -rf $HOME/Documents
+rm -rf $HOME/Pictures
+rm -rf $HOME/Public
+rm -rf $HOME/Videos
+rm -rf $HOME/Templates
+rm -rf $HOME/Music
+rm -rf $HOME/Desktop
+
+echo "[+] Done :)"