latest and greatest changes

This commit is contained in:
surtur 2019-10-16 14:31:12 +02:00
parent ddba386dde
commit e4693ff82a
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 71 additions and 47 deletions

View File

@ -12,4 +12,4 @@ rsync -auvP root@git.dotya.ml:/root/.zshrc ~/utils/nebula/root/zshrc
rsync -auvP root@git.dotya.ml:/root/.ssh/ ~/utils/nebula/root/ssh
rsync -auvP root@git.dotya.ml:/home/vis/.ssh/ ~/utils/nebula/vis/ssh
rsync -auvP root@git.dotya.ml:/home/vis/.config/ --exclude="*qbittorrent-data*" ~/utils/nebula/vis/config
rsync -auvP root@git.dotya.ml:/home/vis/.config/ --exclude="*Bittorrent-data*" ~/utils/nebula/vis/config

9
mgp
View File

@ -25,6 +25,9 @@ git pull
cd $fol/explainshell
git pull
cd $fol/flutter
git pull
cd $fol/gitnex
git pull
@ -97,6 +100,9 @@ git pull
cd $fol/megasync
git pull
cd $fol/MEGA-Instances
git pull
cd $fol/no-more-secrets
git pull
@ -127,6 +133,9 @@ git pull
cd $fol/themes/flat-remix-gtk
git pull
cd $fol/themes/flat-remix-gnome
git pull
cd $fol/trackerjacker
git pull

View File

@ -5,3 +5,25 @@
# Author: a_mirre@utb.cz
# License: GNU GPL v3 (https://www.gnu.org/licenses/gpl.html)
# old dotfiles should be backed up
files={vimrc:gvimrc:zsh/zshrc}
bindir="~/utils/bin"
if [ ! -d $bindir ]; then
echo "[*] creating bindir"
mkdir -pv $bindir
else
echo "[i] bindir already present"
fi
echo "[*] symlinking dotfiles"
while true; do
if [ -f $f ]; then
echo "[*] backing up $f to $f.OLDER"
mv -v $f $f.OLDER
fi
echo "[*] creating a link for $f at $syspath"
ln -v -s $f $syspath
done

View File

@ -1,6 +1,7 @@
#!/bin/bash
# -----------------------------------------------------------
# a simple post-install script to be used on a fedora system
# this is a simple post-install script intended for a fedora
# installation workstation set-up
# there's a lot to be done yet...
# -----------------------------------------------------------
@ -46,25 +47,27 @@ dnf config-manager --set-enabled rpmfusion-free
# zsh + oh-my-zsh + git + vim + rsync
# -----------------------------------------------------------
dnf install -yy zsh git vim rsync
cd
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cd $tadyma
#cd
#sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &
#cd $tadyma
# -----------------------------------------------------------
# install the most important tools
# -----------------------------------------------------------
dnf install -yy htop whois screen feh scrot gpicview p7zip unar
dnf install -yy gnome-terminal terminator oathtool
dnf install -yy gmrun redshift gparted ethtool keepassxc
dnf install -yy xarchiver xfce4-settings screenfetch neofetch galculator
dnf install -yy lightdm light-locker gnome-disk-utility thunderbird firefox vlc
dnf install -yy lightdm-gtk-greeter-settings notify-send libreoffice-core
dnf install -yy lxtask lxappearance lxdm lxpolkit volumeicon i3lock tor privoxy
dnf install -yy \
htop whois screen feh scrot gpicview p7zip unar \
gnome-terminal tmux oathtool keepassxc \
gmrun redshift gparted ethtool tor privoxy \
xarchiver xfce4-settings screenfetch neofetch galculator \
lightdm light-locker gnome-disk-utility thunderbird firefox \
lightdm-gtk-greeter-settings notify-send libreoffice-core \
lxtask lxappearance lxdm lxpolkit volumeicon i3lock
# -----------------------------------------------------------
# install class2-importance tools
# -----------------------------------------------------------
dnf install -yy oggconvert pinta pdfmod youtube-dl
#putty audacity guitarix frama-c
dnf install -yy oggconvert pinta pdfmod youtube-dl gnome-calculator
# install vlc
# -----------------------------------------------------------
# thermal
@ -144,34 +147,35 @@ dnf install -yy nmap aircrack-ng nethogs iptraf-ng wireshark nmap-ncat
cd $utils_fol
su $SUDO_USER sh -c '
# mitmproxy
#pip3 install mitmproxy
# setoolkit
#sudo dnf install git python-pexpect python-pefile python-crypto pyOpenSSL
#git clone https://github.com/trustedsec/social-engineer-toolkit/ set/
git clone https://github.com/trustedsec/social-engineer-toolkit/ set/
# sdtool
#git clone https://github.com/BertoldVdb/sdtool.git
git clone https://github.com/BertoldVdb/sdtool.git
# int0x80
# git clone https://github.com/int0x80/anti-forensics.git
# git clone https://github.com/int0x80/windows.git
# git clone https://github.com/int0x80/SweetSecurity.git
# git clone https://github.com/int0x80/1337-Noms-The-Hacker-Cookbook.git
# git clone https://github.com/int0x80/Packt-Publishing-Free-Learning.git
# git clone https://github.com/int0x80/killallthehumans.git
# git clone https://github.com/int0x80/githump.git
# git clone https://github.com/int0x80/reversing.git
# git clone https://github.com/int0x80/blog.git
# git clone https://github.com/int0x80/iot-stuff.git
# git clone https://github.com/int0x80/notes.git
# git clone https://github.com/int0x80/dotfiles.git
git clone https://github.com/int0x80/anti-forensics.git
git clone https://github.com/int0x80/windows.git
git clone https://github.com/int0x80/SweetSecurity.git
git clone https://github.com/int0x80/1337-Noms-The-Hacker-Cookbook.git
git clone https://github.com/int0x80/Packt-Publishing-Free-Learning.git
git clone https://github.com/int0x80/killallthehumans.git
git clone https://github.com/int0x80/githump.git
git clone https://github.com/int0x80/reversing.git
git clone https://github.com/int0x80/blog.git
git clone https://github.com/int0x80/iot-stuff.git
git clone https://github.com/int0x80/notes.git
git clone https://github.com/int0x80/dotfiles.git
# vermaden's scripts
# vermaden scripts
# git clone https://github.com/vermaden/scripts.git $HOME/utils/vermaden-scripts
'
cd $tadyma
# -----------------------------------------------------------
@ -192,18 +196,7 @@ cd $tadyma
#nmcli con up free
# -----------------------------------------------------------
# [!] warning - possibly(?) GNOME-dependent
# -----------------------------------------------------------
#dnf install evince
#gnome-sound-recorder
dnf install -yy gnome-calculator
# tiling terminal - not really necessary
# tilix \
# disk image burner, got enough of these
# brasero \ - vital
# -----------------------------------------------------------
dnf install -yy xed nemo nemo-desktop
#dnf install -yy xed nemo nemo-desktop
# -----------------------------------------------------------
# flatpak
@ -224,7 +217,7 @@ dnf install -yy libva-intel-driver
# so that flashtool would work, add user (fedora) to group dialout
#adduser fedora dialout
gpasswd -a fedora dialout
gpasswd -a $SUDO_USER dialout
# no-more-secrets
#cd $utils_fol
@ -295,7 +288,7 @@ dnf install -yy atom
# -----------------------------------------------------------
# change plymouth theme
# -----------------------------------------------------------
plymouth-set-default-theme -R details # sets it to "details" and rebuilds initrd
#plymouth-set-default-theme -R details # sets it to "details" and rebuilds initrd
# -----------------------------------------------------------
@ -306,8 +299,8 @@ plymouth-set-default-theme -R details # sets it to "details" and rebuilds initrd
# -----------------------------------------------------------
# configure zram
# -----------------------------------------------------------
dnf install -yy zram
modprobe zram
#dnf install -yy zram
#modprobe zram
# getconf _NPROCESSORS_ONLN # number of compressing threads == no. cpu cores
# cat /sys/block/zram0/max_comp_streams
# grep MemTotal /proc/meminfo | grep -E --only-matching '[[:digit:]]+' # mem KiB
@ -325,7 +318,7 @@ systemctl start zram.service
# current swappiness level
#cat /proc/sys/vm/swappiness
# permanent solution
echo "vm.swappiness = 20" >> /etc/sysctl.conf
echo "vm.swappiness = 7" >> /etc/sysctl.conf
systemctl disable ModemManager.service