rebasing .git
This commit is contained in:
+12
-5
@@ -4,11 +4,14 @@
|
||||
#curl -fsS https://dl.brave.com/install.sh | sh
|
||||
|
||||
|
||||
apt install -y bc
|
||||
apt install -y virt-viewer
|
||||
apt install -y gawk
|
||||
apt install -y exuberant-ctags
|
||||
apt install -y cmake
|
||||
apt install -y git
|
||||
apt install -y ip
|
||||
apt install -y setxkbmap
|
||||
apt install -y bc
|
||||
apt install -y virt-viewer
|
||||
apt install -y gawk
|
||||
apt install -y exuberant-ctags
|
||||
apt install -y cmake
|
||||
apt install -y unzip
|
||||
apt install -y tcpdump
|
||||
apt install -y moreutils
|
||||
@@ -28,6 +31,10 @@ apt install -y pip
|
||||
apt install -y curl
|
||||
apt install -y tree
|
||||
apt install -y ffmpeg
|
||||
apt install -y ffmpeg
|
||||
apt install -y nft
|
||||
apt install -y openvpn
|
||||
|
||||
#apt install -y vlc
|
||||
#apt install -y terminator
|
||||
#apt install -y gimp
|
||||
|
||||
+4
-3
@@ -12,14 +12,15 @@ fi
|
||||
MACHINE_DIR=${1:-"svr"}
|
||||
|
||||
bash tree_cpy.sh $MACHINE_DIR/usr
|
||||
# append sources
|
||||
source /home/.bashrc
|
||||
bash config.sh
|
||||
source /home/.bashrc
|
||||
bash python.sh
|
||||
source /home/.bashrc
|
||||
#bash python.sh
|
||||
#source /home/.bashrc
|
||||
|
||||
bash chmod.sh
|
||||
|
||||
bash pacman.sh
|
||||
source /home/.bashrc
|
||||
|
||||
bash network.sh
|
||||
|
||||
+2
-1
@@ -1,13 +1,14 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
groupadd $MACHINE
|
||||
usermod -aG svr $SUDO_USER
|
||||
chmod -R g+s $MACHINE_DIR
|
||||
chown -R root $MACHINE_DIR
|
||||
chgrp -R $MACHINE $MACHINE_DIR
|
||||
chmod -R 771 $MACHINE_DIR/install
|
||||
chmod -R 771 $BIN_DIR
|
||||
chmod -R 751 $SBIN_DIR
|
||||
find $MACHINE_DIR -type d -exec chmod 775 {} \;
|
||||
chmod -R g+s $MACHINE_DIR
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
+8
-10
@@ -3,23 +3,21 @@
|
||||
#bash tree_cpy.sh ../usr
|
||||
|
||||
SKEL=/etc/skel
|
||||
|
||||
mkdir $SKEL
|
||||
|
||||
FILE=".vimrc"
|
||||
echo "source /home/$FILE" > $HOME/$FILE
|
||||
cat $HOME/$FILE > $SKEL/$FILE
|
||||
echo "source /home/$FILE" > $SUDO_HOME/$FILE
|
||||
cat $SUDO_HOME/$FILE > $SKEL/$FILE
|
||||
|
||||
FILE=".profile"
|
||||
echo "source /home/$FILE" > $HOME/$FILE
|
||||
cat $HOME/$FILE > $SKEL/$FILE
|
||||
echo "source /home/$FILE" > $SUDO_HOME/$FILE
|
||||
cat $SUDO_HOME/$FILE > $SKEL/$FILE
|
||||
|
||||
|
||||
FILE=".bashrc"
|
||||
echo "source /home/$FILE" > $HOME/$FILE
|
||||
cat $HOME/$FILE > $SKEL/$FILE
|
||||
echo "source /home/$FILE" > $SUDO_HOME/$FILE
|
||||
cat $SUDO_HOME/$FILE > $SKEL/$FILE
|
||||
|
||||
source /home/.bashrc
|
||||
git config --global user.email "$EMAIL"
|
||||
git config --global user.name "$HOST"
|
||||
|
||||
groupadd svr
|
||||
usermod -aG svr $SUDO_USER
|
||||
|
||||
+12
-8
@@ -4,17 +4,21 @@ sudo apt-get update
|
||||
sudo apt-get upgrade
|
||||
sudo apt-get dist-upgrade
|
||||
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./config_install.sh
|
||||
#apt instll -y ulogd
|
||||
NETWORKDIR="$MACHINE_DIR/networking"
|
||||
#systemctl enable ulogd
|
||||
#systemctl start ulogd
|
||||
#bash $NETWORKDIR/iptables_script.sh -f $NETWORKDIR/ip_to_ban.txt -r
|
||||
MACHINE_DIR=/svr
|
||||
|
||||
bash apt_install.sh
|
||||
bash tree_cpy.sh $MACHINE_DIR/usr
|
||||
bash config.sh
|
||||
source /home/.bashrc
|
||||
bash python.sh
|
||||
source /home/.bashrc
|
||||
|
||||
bash chmod.sh
|
||||
|
||||
bash apt.sh
|
||||
|
||||
bash network.sh
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#copy paste in device terminal
|
||||
|
||||
opkg update
|
||||
opkg install luci-ssl
|
||||
#activate https for LuCI web interface
|
||||
uci set uhttpd.main.redirect_https=1
|
||||
uci commit uhttpd && service uhttpd reload
|
||||
|
||||
#uci set system.@system[0].ttylogin="1"
|
||||
#uci commit system
|
||||
#service system restart
|
||||
+32
-45
@@ -4,49 +4,36 @@
|
||||
# echo "This script must be run as root"
|
||||
#fi
|
||||
|
||||
pacman --noconfirm -Sy git
|
||||
pacman --noconfirm -Sy makepkg
|
||||
pacman --noconfirm -Sy nftables
|
||||
pacman --noconfirm -Sy bc
|
||||
pacman --noconfirm -Sy ctags
|
||||
pacman --noconfirm -Sy firefox
|
||||
pacman --noconfirm -Sy unzip
|
||||
pacman --noconfirm -Su vlc
|
||||
pacman --noconfirm -Sy tcpdump
|
||||
pacman --noconfirm -Sy moreutils
|
||||
pacman --noconfirm -Sy net-tools
|
||||
pacman --noconfirm -Sy make
|
||||
pacman --noconfirm -Sy whois
|
||||
pacman --noconfirm -Sy nmap
|
||||
pacman --noconfirm -Sy man-db
|
||||
pacman --noconfirm -Sy openvpn
|
||||
pacman --noconfirm -Sy bitwarden
|
||||
pacman --noconfirm -Sy wireguard-tools
|
||||
pacman --noconfirm -Sy proton-vpn-gtk-app
|
||||
pacman --noconfirm -Sy systemd-resolvconf
|
||||
pacman --noconfirm -Sy cronie
|
||||
pacman --noconfirm -Sy docker
|
||||
pacman --noconfirm -Sy makepkg
|
||||
pacman --noconfirm -Sy tree
|
||||
pacman --noconfirm -Sy vim
|
||||
pacman --noconfirm -Sy iwctl
|
||||
pacman --noconfirm -Sy pciutils
|
||||
pacman --noconfirm -Sy git-filter-repo
|
||||
pacman --noconfirm -Sy xorg-setxkbmap
|
||||
pacman --noconfirm -Sy xorg-xhost
|
||||
pacman --noconfirm -Sy bind
|
||||
pacman --noconfirm -S git
|
||||
pacman --noconfirm -S mtr
|
||||
pacman --noconfirm -S traceroute
|
||||
pacman --noconfirm -S makepkg
|
||||
pacman --noconfirm -S nftables
|
||||
pacman --noconfirm -S bc
|
||||
pacman --noconfirm -S ctags
|
||||
pacman --noconfirm -S firefox
|
||||
pacman --noconfirm -S unzip
|
||||
pacman --noconfirm -S vlc
|
||||
pacman --noconfirm -S tcpdump
|
||||
pacman --noconfirm -S moreutils
|
||||
pacman --noconfirm -S net-tools
|
||||
pacman --noconfirm -S make
|
||||
pacman --noconfirm -S whois
|
||||
pacman --noconfirm -S nmap
|
||||
pacman --noconfirm -S man-db
|
||||
pacman --noconfirm -S openvpn
|
||||
pacman --noconfirm -S wireguard-tools
|
||||
pacman --noconfirm -S proton-vpn-gtk-app
|
||||
pacman --noconfirm -S systemd-resolvconf
|
||||
pacman --noconfirm -S cronie
|
||||
pacman --noconfirm -S docker
|
||||
pacman --noconfirm -S makepkg
|
||||
pacman --noconfirm -S tree
|
||||
pacman --noconfirm -S vim
|
||||
pacman --noconfirm -S iwctl
|
||||
pacman --noconfirm -S pciutils
|
||||
pacman --noconfirm -S git-filter-repo
|
||||
pacman --noconfirm -S xorg-setxkbmap
|
||||
pacman --noconfirm -S xorg-xhost
|
||||
pacman --noconfirm -S xorg-xhost
|
||||
mandb #rend possible la commande apropos
|
||||
|
||||
##git clone https://github.com/Exafunction/codeium.vim ~/.vim/pack/Exafunction/start/codeium.vim
|
||||
#sudo -i -u $SUDO_USER bash << EOF
|
||||
#
|
||||
#git config --global user.email "contact@presko.info"
|
||||
#git config --global user.name "prsko_$HOST"
|
||||
#EOF
|
||||
|
||||
#su $SUDO_USER
|
||||
#git clone https://aur.archlinux.org/yay.git
|
||||
#cd yay/
|
||||
#makepkg -si
|
||||
#cd ..
|
||||
#rm -rf yay
|
||||
|
||||
+4
-3
@@ -4,7 +4,8 @@ USR_DIR=${1:-"no_dir"}
|
||||
[[ $USR_DIR == "no_dir" ]] && \
|
||||
echo "usage $0 usr_dir" && \
|
||||
exit 1
|
||||
|
||||
USR_DIR=$(realpath $USR_DIR)
|
||||
cp -l -p -r $USR_DIR/* /
|
||||
# cannot hardlink (invaliv cross device)
|
||||
ln -s $USR_DIR/home/.* /home
|
||||
|
||||
#uses ssymbolic link otherwise crossdevice troubles
|
||||
cp -s -p -r -f -t / $USR_DIR/.
|
||||
|
||||
Reference in New Issue
Block a user