updated the directory layout

This commit is contained in:
nihilist 2024-08-18 22:50:34 +02:00
parent e6c53ff98f
commit d203eeac3f
1231 changed files with 91 additions and 91 deletions

BIN
opsec/Arch/0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

32
opsec/Arch/0.sh Normal file
View file

@ -0,0 +1,32 @@
######################## MANUAL !!! ############################
loadkeys fr
timedatectl set-ntp true
ping -c3 archlinux.org
pacman -Syy
pacman -S reflector
reflector -c "France" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
fdisk -l | grep /dev/sd | grep Disk
#/dev/sda 64gb
cfdisk /dev/sda
################EFI################
#gpt
#delete existing partitions
#select freespace
#first partition : 1G (EFI)
#last partition : 499G (Linux Root x86_64)
#hit write
#hit quit
mkfs.vfat /dev/sda1
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkdir /mnt/boot/
mount /dev/sda1 /mnt/boot/
pacstrap /mnt base base-devel linux linux-firmware sudo nano wget
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
#welcome to chroot, use the first script!

BIN
opsec/Arch/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

59
opsec/Arch/1.sh Normal file
View file

@ -0,0 +1,59 @@
#!/bin/sh
################ THE FIRST SCRIPT STARTS HERE ###############
#once in arch-chroot, you must run this !
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc --utc
mkinitcpio -P
date
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
echo 'LANG=en_US.UTF-8' >/etc/locale.conf
echo 'LANGUAGE= en_US.UTF-8' >> /etc/locale.conf
echo 'LC_MESSAGES= en_US.UTF-8'>> /etc/locale.conf
locale-gen
echo 'KEYMAP=fr' > /etc/vconsole.conf
echo 'nowhere' > /etc/hostname
echo "127.0.0.1 localhost" > /etc/hosts
echo "127.0.1.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
pacman -S networkmanager dhcpcd refind
systemctl enable NetworkManager
systemctl enable dhcpcd
echo
echo '[+] ENTER ROOT PASSWORD!'
passwd
echo '[+] what is the name of the user ?'
read username
useradd $username
mkdir /home/$username
cp /etc/skel/.* /home/$username/
chown -R $username: /home/$username
#set nothing's password
echo
echo '[+] ENTER USERS PASSWORD!'
passwd $username
pacman -S sudo
echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers
usermod -aG wheel $username
#pacman -S grub os-prober
#grub-install /dev/sda
#grub-mkconfig -o /boot/grub/grub.cfg
refind-install
echo \"Boot with minimal options\" \"rw root=$(blkid /dev/sda2 | awk '{print $2}' | tr -d '"') initrd=initramfs-linux.img\" > /boot/refind_linux.conf
echo 'now type "exit" to go out of arch-chroot'
echo 'type umount /mnt/boot /mnt'
echo 'and type "reboot" to reboot into your arch install.'

162
opsec/Arch/2.sh Normal file
View file

@ -0,0 +1,162 @@
#!/bin/sh
########################SECOND SCRIPT##########################
if [ "$EUID" -eq 0 ]
then
echo 'MUST NOT RUN AS ROOT!'
exit
fi
sudo pacman -Syy
sudo pacman -S reflector
sudo reflector -c "France" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
sudo pacman -Syu
echo
#sudo pacman -S python3 python-pip
#sudo pacman -S arch-wiki-docs adobe-source-han-sans-jp-fonts adobe-source-han-sans-tw-fonts feh vi ttf-dejavu
#sudo pacman -S rofi xorg bash-completion vlc tmux git engrampa alacritty lightdm base-devel lightdm-gtk-greeter
#sudo pacman -S i3lock dmenu network-manager-applet wmctrl thunar gnome-disk-utility thunar-volman gvfs lxappearance
#sudo pacman -S udiskie mesa xorg i3 flameshot nvidia nvidia-settings nvidia-utils
#sudo pacman -S gnome-keyring
sudo pacman -S mpd ncmpcpp gnome-keyring udiskie mesa xorg i3 flameshot nvidia nvidia-settings nvidia-utils i3lock dmenu network-manager-applet wmctrl thunar gnome-disk-utility thunar-volman gvfs lxappearance python3 rofi xorg bash-completion vlc tmux git engrampa alacritty lightdm base-devel lightdm-gtk-greeter python-pip arch-wiki-docs adobe-source-han-sans-jp-fonts adobe-source-han-sans-tw-fonts feh vi ttf-dejavu remmina torbrowser-launcher
#arch wiki is in file:///usr/share/doc/arch-wiki/html/en/Arch_Linux.html
username=$(ls /home | head -n1 | sed 's/\/$//')
#I3 !
cd /home/$username
mkdir .config
cd .config
mkdir i3
cd i3
wget https://ech1.github.io/blog/Conf/i3config -O config
cd /home/$username
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
wget https://ech1.github.io/blog/Conf/tmux.conf.local
mv tmux.conf.local .tmux.conf.local
wget https://ech1.netlify.app/conf/bashrc -O .bashrc
sudo wget https://ech1.github.io/blog/Conf/i3status.conf -O /etc/i3status.conf
cd .config
mkdir alacritty
cd alacritty
wget https://ech1.github.io/blog/Conf/alacritty.yml
cd /home/$username/
mkdir Pictures
mkdir Documents
mkdir .ssh
cd Pictures
wget https://ech1.github.io/blog/wallpaper3.png
#wget https://ech1.github.io/blog/wallpaper_triple.png
cd /home/$username/
mkdir Music
cd Music
mkdir Life
cd Life
wget https://ech1.github.io/blog/Conf/Infiltration.mp3
#sudo
#apt install sudo -y
#/usr/sbin/usermod -aG sudo $username
bash -c "$(wget https://ech1.netlify.app/Conf/xfce.sh -O -)"
#chown -R $username:$username /home/$username/
#cp /home/$username/.bashrc ~/.bashrc
cd /home/$username/
wget https://ech1.github.io/blog/Conf/lockedscreen.png
wget https://ech1.github.io/blog/assets/img/user1.png
mkdir Tools
cd Tools
git clone https://aur.archlinux.org/yay-git.git
cd yay-git
makepkg -si
yay -S pnmixer i3lock-color xrdp archtorify-git polybar picom-jonaburg-git i3-gaps
#yay -S polybar-git
mkdir -p /home/$username/.config/polybar/
#cp /usr/share/doc/polybar/config ~/.config/polybar/polybar.conf
mkdir -p /home/$username/.config/picom/
wget https://ech1.github.io/blog/Conf/picom.conf -O /home/$username/.config/picom/picom.conf
#sudo pip3 install i3-workspace-names-daemon
sudo systemctl enable xrdp
cd
sudo wget https://ech1.github.io/blog/servers/Arch/20-keyboard.conf -O /etc/X11/xorg.conf.d/20-keyboard.conf
sudo wget https://ech1.github.io/blog/servers/Arch/lightdm-gtk-greeter.conf -O /etc/lightdm/lightdm-gtk-greeter.conf
sudo sed -i 's/#greeter-session=.*/greeter-session=lightdm-gtk-greeter/gi' /etc/lightdm/lightdm.conf
sudo wget https://ech1.github.io/blog/Conf/Lain.rasi -O /usr/share/rofi/themes/Lain.rasi
sudo wget https://ech1.github.io/blog/servers/Arch/archtor.service -O /etc/systemd/system/archtor.service
sudo pacman -S ranger
sudo mkdir /home/$username/.config/ranger/
sudo wget https://ech1.github.io/blog/Conf/rc.conf -O /home/$username/.config/ranger/rc.conf
sudo wget https://ech1.github.io/blog/Conf/rifle.conf -O /home/$username/.config/ranger/rifle.conf
sudo systemctl daemon-reload
#sudo systemctl enable archtor
sudo mkdir /usr/share/backgrounds/
sudo cp /home/$username/Pictures/wallpaper3.png /usr/share/backgrounds/wallpaper2.png
sudo cp /home/$username/Pictures/user1.png /usr/share/backgrounds/
sudo wget https://ech1.github.io/blog/servers/Arch/i3locker.sh -O /usr/local/bin/i3locker
sudo wget https://ech1.github.io/blog/servers/Arch/music.sh -O /usr/local/bin/music
sudo wget https://ech1.github.io/blog/servers/Arch/music_trance.sh -O /usr/local/bin/music_trance
chmod +x /usr/local/bin/i3locker
chmod +x /usr/local/bin/music
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
#sudo pacman -S picom
mkdir -p /home/$username/.config/picom/
sudo wget https://ech1.github.io/blog/Conf/picom.conf -O /home/$username/.config/picom/picom.conf
echo '[multilib]' >> /etc/pacman.d/mirrorlist
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.d/mirrorlist
#mpd
mkdir -p /home/$username/.config/mpd/playlists
wget https://blog.void.yt/Conf/mpd.conf -O /home/$username/.config/mpd/mpd.conf
#systemctl enable --now mpd
#broken garbage ^ must be ran by user as i3config
sudo pacman -S noto-fonts-emoji
#echo '[+] PLEASE CHOOSE THE CORRECT CARD DRIVER FOR THE STEAM INSTALLATION !!!'
#sudo pacman -Sy steam
sudo systemctl enable --now lightdm
#lxappearance
#sudo gnome-disks to automount everything
#and you're done!

133
opsec/Arch/2.tor.sh Normal file
View file

@ -0,0 +1,133 @@
#!/bin/sh
########################SECOND SCRIPT##########################
if [ "$EUID" -eq 0 ]
then
echo 'MUST NOT RUN AS ROOT!'
exit
fi
sudo pacman -Syy
sudo pacman -S reflector
sudo reflector -c "France" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
sudo pacman -Syu
echo
#sudo pacman -S python3 python-pip
#sudo pacman -S arch-wiki-docs adobe-source-han-sans-jp-fonts adobe-source-han-sans-tw-fonts feh vi ttf-dejavu
#sudo pacman -S rofi xorg bash-completion vlc tmux git engrampa alacritty lightdm base-devel lightdm-gtk-greeter
#sudo pacman -S i3lock dmenu network-manager-applet wmctrl thunar gnome-disk-utility thunar-volman gvfs lxappearance
#sudo pacman -S udiskie mesa xorg i3 flameshot nvidia nvidia-settings nvidia-utils
#sudo pacman -S gnome-keyring
sudo pacman -S gnome-keyring udiskie mesa xorg i3 flameshot nvidia nvidia-settings nvidia-utils i3lock dmenu network-manager-applet wmctrl thunar gnome-disk-utility thunar-volman gvfs lxappearance python3 rofi xorg bash-completion vlc tmux git engrampa alacritty lightdm base-devel lightdm-gtk-greeter python-pip arch-wiki-docs adobe-source-han-sans-jp-fonts adobe-source-han-sans-tw-fonts feh vi ttf-dejavu remmina torbrowser-launcher
#arch wiki is in file:///usr/share/doc/arch-wiki/html/en/Arch_Linux.html
username=$(ls /home | head -n1 | sed 's/\/$//')
#I3 !
cd /home/$username
mkdir .config
cd .config
mkdir i3
cd i3
wget https://ech1.github.io/blog/Conf/i3config -O config
cd /home/$username
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
wget https://ech1.github.io/blog/Conf/tmux.conf.local
mv tmux.conf.local .tmux.conf.local
wget https://ech1.netlify.app/conf/bashrc -O .bashrc
sudo wget https://ech1.github.io/blog/Conf/i3status.conf -O /etc/i3status.conf
cd .config
mkdir alacritty
cd alacritty
wget https://ech1.github.io/blog/Conf/alacritty.yml
cd /home/$username/
mkdir Pictures
cd Pictures
wget https://ech1.github.io/blog/wallpaper3.png
#wget https://ech1.github.io/blog/wallpaper_triple.png
cd /home/$username/
mkdir Music
cd Music
mkdir Life
cd Life
wget https://ech1.github.io/blog/Conf/Infiltration.mp3
#sudo
#apt install sudo -y
#/usr/sbin/usermod -aG sudo $username
bash -c "$(wget https://ech1.netlify.app/Conf/xfce.sh -O -)"
#chown -R $username:$username /home/$username/
#cp /home/$username/.bashrc ~/.bashrc
cd /home/$username/
wget https://ech1.github.io/blog/Conf/lockedscreen.png
wget https://ech1.github.io/blog/assets/img/user1.png
mkdir Tools
cd Tools
git clone https://aur.archlinux.org/yay-git.git
cd yay-git
makepkg -si
yay -S pnmixer i3lock-color xrdp archtorify-git
yay -S picom-jonaburg-git i3-gaps
mkdir -p /home/$username/.config/picom/
wget https://ech1.github.io/blog/Conf/picom.conf -O /home/$username/.config/picom/picom.conf
#sudo pip3 install i3-workspace-names-daemon
sudo systemctl enable xrdp
cd
sudo wget https://ech1.github.io/blog/servers/Arch/20-keyboard.conf -O /etc/X11/xorg.conf.d/20-keyboard.conf
sudo wget https://ech1.github.io/blog/servers/Arch/lightdm-gtk-greeter.conf -O /etc/lightdm/lightdm-gtk-greeter.conf
sudo wget https://ech1.github.io/blog/servers/Arch/Lain.rasi -O /usr/share/rofi/themes/Lain.rasi
sudo wget https://ech1.github.io/blog/servers/Arch/archtor.service -O /etc/systemd/system/archtor.service
sudo systemctl daemon-reload
sudo systemctl enable --now archtor
sudo mkdir /usr/share/backgrounds/
sudo cp /home/$username/Pictures/wallpaper3.png /usr/share/backgrounds/wallpaper2.png
sudo cp /home/$username/Pictures/user1.png /usr/share/backgrounds/user1.png
sudo wget https://ech1.github.io/blog/servers/Arch/i3locker.sh -O /usr/local/bin/i3locker
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
sudo pacman -S picom
mkdir -p /home/$username/.config/picom/
sudo wget https://ech1.github.io/blog/Conf/picom.conf -O /home/$username/.config/picom/picom.conf
echo '[multilib]' >> /etc/pacman.d/mirrorlist
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.d/mirrorlist
echo '[+] PLEASE CHOOSE THE CORRECT CARD DRIVER FOR THE STEAM INSTALLATION !!!'
sudo pacman -Sy steam
sudo systemctl enable --now lightdm
#lxappearance
#sudo gnome-disks to automount everything
#and you're done!

View file

@ -0,0 +1,6 @@
Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "yes"
Option "XkbLayout" "us"
Option "XkbVariant" "nodeadkeys"
EndSection

31
opsec/Arch/3.sh Normal file
View file

@ -0,0 +1,31 @@
#!/bin/sh
if [ "$EUID" -ne 0 ]
then
echo 'MUST RUN AS ROOT!'
exit
fi
pacman -S firefox curl keepass discord telegram-desktop virt-manager qemu libvirt ebtables dnsmasq bridge-utils libreoffice
username=$(ls /home | head -n1 | sed 's/\/$//')
sudo gpasswd -a $username libvirt
sudo systemctl enable libvirtd --now
sudo systemctl status libvirtd
mkdir /home/$username/Documents/
mkdir /home/$username/Documents/Github/
mkdir /home/$username/Documents/ISOS/
mkdir /home/$username/backups
sudo -u $username bash -c "$(wget https://raw.githubusercontent.com/ech1/serverside/master/ssh/ssh_arch.sh -O -)"

142
opsec/Arch/Lain.rasi Normal file
View file

@ -0,0 +1,142 @@
/**
* ROFI Color theme
* User: Qball
* Copyright: Dave Davenport
*/
* {
selected-normal-foreground: rgba ( 0, 0, 0, 100 % ); /*important*/
foreground: rgba ( 209, 204, 115, 100 % ); /*important*/
normal-foreground: @foreground;
alternate-normal-background: rgba ( 22, 22, 22, 100 % ); /*important*/
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 183, 28, 28, 100 % );
blue: rgba ( 105, 58, 71, 100 % );
urgent-foreground: rgba ( 255, 205, 210, 100 % );
alternate-urgent-background: rgba ( 183, 28, 28, 100 % );
active-foreground: rgba ( 178, 235, 242, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 0, 96, 100, 100 % );
alternate-active-background: rgba ( 0, 96, 100, 100 % );
background: rgba ( 0, 0, 0, 100 % ); /*important*/
bordercolor: rgba ( 232, 234, 246, 100 % );
alternate-normal-foreground: @foreground;
normal-background: rgba ( 137, 134, 76, 3 % );
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 209, 204, 115, 100 % ); /*important*/
border-color: @foreground;
spacing: 2;
separatorcolor: rgba ( 209, 204, 115, 100 % ); /*important*/
urgent-background: rgba ( 223, 110, 0, 6 % );
selected-urgent-background: rgba ( 255, 205, 210, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 223, 110, 0, 6 % );
selected-active-background: rgba ( 137, 134, 76, 100 % );
}
window {
background-color: @background;
border: 1;
padding: 5;
}
mainbox {
border: 0;
padding: 0;
}
message {
border: 2px 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
textbox {
text-color: @foreground;
}
listview {
fixed-height: 0;
border: 2px 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: true;
padding: 2px 0px 0px ;
}
element {
border: 0;
padding: 1px ;
}
element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
mode-switcher {
border: 2px 0px 0px ;
border-color: @separatorcolor;
}
button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 1px ;
}
case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
entry {
spacing: 0;
text-color: @normal-foreground;
}
prompt {
spacing: 0;
text-color: @normal-foreground;
}
inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @normal-foreground;
}

View file

@ -0,0 +1,16 @@
[Unit]
Description=Archtorify Startup Service
Wants=network-online.target
[Service]
Type=forking
ExecStart=/usr/bin/archtorify -t
ExecReload=/usr/bin/archtorify -r
ExecStop=/usr/bin/archtorify -c
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target

112
opsec/Arch/echo_memento.sh Normal file
View file

@ -0,0 +1,112 @@
#!/bin/bash
#boot into usb
loadkeys fr
ping -c4 archlinux.org
timedatectl set-ntp true
ip a | grep inet
pacman -Syy
pacman -S reflector
reflector -c "France" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
fdisk -l
#one harddrive : /dev/sda
#one partition : /dev/sda1
cfdisk /dev/sda
#gpt partition
#delete this partition
#create new one (512M) (linux filesystem)
#select freespace again
#create new one (20G) (linux filesystem)
#select freespace again
#the rest is for home partition (linux filesystem)
#write changes to disk type yes
#and quit
lsblk
#now format it
#sda1 : 512M
#sda2 : 20G
#sda3 : restG
mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda2 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home
lsblk
#sda2 is mounted to mnt
#sda3 is mounted to /mnt/home
pacstrap -i /mnt base linux linux-firmware sudo nano
#skid faisait base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
#root partition
#and home partition
arch-chroot /mnt /bin/bash
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc --utc
date
#timezone correct ?
#nano /etc/locale.gen
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
echo 'LANG=en_US.UTF-8' >/etc/locale.conf
locale-gen
echo 'KEYMAP=fr' > /etc/vconsole.conf
echo 'nowhere' > /etc/hostname
echo "127.0.0.1 localhost" > /etc/hosts
echo "127.0.1.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
pacman -S networkmanager
systemctl enable NetworkManager
pacman -S dhcpcd
systemctl enable dhcpcd
#set root password
passwd
useradd nothing
mkdir /home/nothing
cp /etc/skel/.* /home/nothing/
chown -R nothing: /home/nothing
#set nothing's password
passwd nothing
pacman -S sudo
echo '%wheel ALL=(ALL) ALL' >> /etc/sudoers
usermod -aG wheel nothing
pacman -S grub os-prober efibootmgr
mkdir /boot/efi
mount /dev/sda1 /boot/efi
lsblk
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
#tarace go anarchy

View file

@ -0,0 +1,12 @@
[Unit]
Description=i3locker
[Service]
Type=forking
Environment=DISPLAY=:0
User=nothing
ExecStart=/usr/bin/i3lock -c 000000
[Install]
WantedBy=sleep.target suspend.target
Before=sleep.traget suspend.target

24
opsec/Arch/i3locker.sh Normal file
View file

@ -0,0 +1,24 @@
#!/bin/sh
i3lock -c 003030
#-i /home/nothing/Nextcloud/blog/wallpapers/wallpaper_real_blue.png
#--insidecolor=00141e \
#--clock --datesize=70 \
#--color=00141e \
#--date-font=DejaVu \
#--radius=350 \
#--datecolor=d1cc73 \
#--datestr="%H:%M:%S" \
#--datepos="2140:860" \
#--ringcolor=00141e \
#--keyhlcolor=d1cc73 \
#--verifcolor=00141e \
#--indpos="2140:600" \
#--timepos="0:0" \
#--insidevercolor=d1cc73 \
#--ringvercolor=d1cc73 \
#--ring-width 5 \
#-B 10
#-i /home/nothing/lockedscreen.png \
#-B 2 \
#--color 000000 \

211
opsec/Arch/index.html Normal file
View file

@ -0,0 +1,211 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../../../../../../assets/img/favicon.png">
<title>Arch Install</title>
<!-- Bootstrap core CSS -->
<link href="../../assets/css/bootstrap.css" rel="stylesheet">
<link href="../../assets/css/xt256.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="../../assets/css/main.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-inverse-cis navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand-cis" href="\index.html">nihilist`s Blog</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="/about.html">About</a></li>
<li><a href="/blog.html">Categories</a></li>
<li><a href="https://blog.nowhere.moe/donate.html">Donate</a></li>
<li><a href="/contact.html">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- +++++ Posts Lists +++++ -->
<!-- +++++ First Post +++++ -->
<div id="cis2">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<a href="../index.html">Previous Page</a></br></br><p><img src="../../assets/img/user.png" width="50px" height="50px"> <ba>nihilist - 27 / 09 / 2020</ba></p>
<h1>Arch Installation</h1>
<p> First flash the arch iso on your usb stick:</p>
<img src="0.png" class="imgRz">
<p>Then just boot onto it from your BIOS.</p>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /grey -->
<!-- +++++ Second Post +++++ -->
<div id="cis3">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2><b>Manual beginning </b></h2>
<p>This is the annoying part since i can't script it. If it doesn't work for you just use <a href="https://anarchyinstaller.org/">Anarchy installer</a>, install arch on your
hard drive in a minimal way (with no DE (Desktop Environment) and no WM (Window Manager)).</p>
<pre><code class="nim">
######################## MANUAL !!! ############################
loadkeys fr
timedatectl set-ntp true
ping -c3 archlinux.org
pacman -Syy
pacman -S reflector
reflector -c "France" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
fdisk -l | grep /dev/sd | grep Disk
#/dev/sda 64gb
cfdisk /dev/sda
################EFI################
#gpt
#delete existing partitions
#select freespace
#first partition : 1G (EFI)
#last partition : 499G (Linux Root x86_64)
#hit write
#hit quit
mkfs.vfat /dev/sda1
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkdir /mnt/boot/
mount /dev/sda1 /mnt/boot/
pacstrap /mnt base base-devel linux linux-firmware sudo nano wget
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
#welcome to chroot, use the first script!
</code></pre>
<p>This will setup your /dev/sda1 as a bootable linux partition, and makes the last 8GB as the swap partition.</p>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /white -->
<div id="cis2">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2><b> First Script: Chroot Script</b></h2> </br> </br>
<p></p>
<pre><code class="nim">
wget https://blog.nowhere.moe/servers/Arch/1.sh
chmod +x 1.sh
nano 1.sh
./1.sh
</code></pre>
<p>Just edit whatever you want in this script using nano and then execute it with ./1.sh</p>
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /white -->
<!-- +++++ Second Post +++++ -->
<div id="cis1">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2><b>Post Install Script</b></h2> </br> </br>
<p>After you've rebooted into your arch installation, you can configure your arch install however you want, but here's how i do it:</p>
<pre><code class="nim">
wget https://blog.nowhere.moe/servers/Arch/2.sh
chmod +x 2.sh
nano 2.sh
./2.sh
</code></pre>
<p>Post-booting:</p>
<pre><code class="nim">
wget https://blog.nowhere.moe/servers/Arch/3.sh
chmod +x 3.sh
nano 3.sh
./3.sh
</pre></code>
<img src="1.png" class="imgRz">
</div>
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /white -->
<!-- +++++ Footer Section +++++ -->
<div id="cisb">
<div class="container">
<div class="row">
<div class="col-lg-4">
<h4>Nihilism</h4>
<p>
Until there is Nothing left.
</p>
</div><!-- /col-lg-4 -->
<div class="col-lg-4">
<h4>My Links</h4>
<p>
<a target="_blank" rel="noopener noreferrer" href="http://blog.nowhere.moe/rss/feed.xml">RSS Feed</a><br/><a target="_blank" rel="noopener noreferrer" href="https://matrix.to/#/#nowheremoe:nowhere.moe">Matrix Chat</a><br/>
</p>
</div><!-- /col-lg-4 -->
<div class="col-lg-4">
<h4>About nihilist</h4>
<p style="word-wrap: break-word;"><u>Donate XMR:</u> 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8</p></br><p><u>Contact:</u> nihilist@nowhere.moe (<a href="https://nowhere.moe/nihilist.pubkey">PGP</a>)</p>
</div><!-- /col-lg-4 -->
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>

View file

@ -0,0 +1,11 @@
[greeter]
background=/usr/share/backgrounds/wallpaper3.png
font-name = monospace Bold 14
icon-theme-name = Flat-Remix-Blue-Dark
screensaver-timeout = 60
theme-name = Numix-BLACK-SLATE
show-clock = false
position = 50%,center 50%,center
panel-position = top
default-user-image = /usr/share/backgrounds/user1.png
indicators = ~host;~spacer;~clock;~spacer;~language;~session;~ally;~power

4
opsec/Arch/music.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
exec mpv --player-operation-mode=pseudo-gui --shuffle /mnt/vault/MUSIC/

132
opsec/Arch/picom.conf Normal file
View file

@ -0,0 +1,132 @@
#!/usr/bin/compton
################################
###### iDigitalFlame 2020 ######
# #
# -/` #
# -yy- :/` #
# ./-shho`:so` #
# .:- /syhhhh//hhs` `-` #
# :ys-:shhhhhhshhhh.:o- ` #
# /yhsoshhhhhhhhhhhyho`:/. #
# `:yhyshhhhhhhhhhhhhh+hd: #
# :yssyhhhhhyhhhhhhhhdd: #
# .:.oyshhhyyyhhhhhhddd: #
# :o+hhhhhyssyhhdddmmd- #
# .+yhhhhyssshdmmddo. #
# `///yyysshd++` #
# #
########## SPACEPORT ###########
################################
## Picom Configuration
dbe = false;
vsync = true;
shadow = true;
fading = true;
backend = "glx";
blur-kern = "3x3box"
blur-method = "box";
fade-exclude = [
# "class_g = 'surf'",
# "class_g = 'Surf'",
"class_g = 'i3lock'",
"class_g = 'vncviewer'",
"class_g = 'Vncviewer'"
];
fade-in-step = 0.055;
opacity-rule = [
"80:class_g = 'alacritty'",
"85:class_g = 'slack'",
"85:class_g = 'Slack'",
"80:class_g = 'thunar'",
"80:class_g = 'Thunar'",
"85:class_g = 'discord'",
"80:class_g = 'leafpad'",
"80:class_g = 'Leafpad'",
"95:class_g = 'vscodium'",
"95:class_g = 'VSCodium'",
"85:class_g = 'lightcord'",
"90:class_g = 'bitwarden'",
"90:class_g = 'Bitwarden'",
"90:class_g = 'keepassxc'",
"90:class_g = 'KeePassXC'",
"80:class_g = 'stickynote'",
"85:class_g = 'TelegramDesktop'",
"85:class_g = 'telegram-desktop'",
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
blur-strength = 5;
focus-exclude = [];
fade-out-step = 0.055;
frame-opacity = 1;
shadow-radius = 5;
active-opacity = 1;
shadow-opacity = 0.8;
glx-no-stencil = true;
shadow-exclude = [
"class_g = 'Rofi'",
"class_g = 'Polybar'",
"class_g = 'firefox'",
"class_g = 'Firefox'",
"class_g = 'i3-frame'",
"class_g = 'chromium'",
"class_g = 'Chromium'",
"class_g = 'navigator'",
"class_g = 'Navigator'",
"class_g ?= 'Notify-osd'",
"class_g = 'firefox' && argb",
"name = 'Notification'",
"_GTK_FRAME_EXTENTS@:c",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
blur-background = true;
shadow-offset-x = -3;
shadow-offset-y = -3;
glx-swap-method = -1;
detect-transient = true;
inactive-opacity = 1;
mark-wmwin-focused = true;
glx-copy-from-front = false;
no-fading-openclose = false;
use-ewmh-active-win = true;
unredir-if-possible = true;
detect-client-leader = true;
mark-ovredir-focused = true;
glx-no-rebind-pixmap = true;
shadow-ignore-shaped = false;
blur-background-frame = true;
blur-background-fixed = true;
detect-client-opacity = true;
detect-rounded-corners = true;
blur-background-exclude = [
"class_g = 'Conky'",
"class_g = 'chromium'",
"class_g = 'Chromium'",
"window_type = 'dock'",
"window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c"
];
glx-use-copysubbuffermesa = false;
inactive-opacity-override = false;
wintypes: {
menu = {
shadow = true;
};
utility = {
shadow = false;
};
tooltip = {
fade = false;
focus = true;
shadow = true;
opacity = 0.75;
};
popup_menu = {
shadow = true;
};
dropdown_menu = {
shadow = true;
};
};

View file

@ -0,0 +1,13 @@
[Unit]
Description=ProtonVPN-CLI auto-connect
Wants=network-online.target
[Service]
Type=forking
ExecStart=/usr/bin/protonvpn connect -f
Environment=PVPN_WAIT=300
Environment=PVPN_DEBUG=1
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,66 @@
#!/bin/bash
#Arch Install :
loadkeys fr
#ip a | grep inet --> dhcpcd
timedatectl set-ntp true
#Partitionnement (uefi) :
#[/boot] 512M vfat (uefi system)
#[/] le reste ext4 (Linux Root x86_64)
#mkfs.truc --> /dev/device
#mount -> /mnt
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
#(ATTENTION AUX UUID et PARTUUID --> blkid)
#Pour extract un truc : blkid | awk '{print $?}' | tr -d '"'
#Exemple : https://puush.tuto-craft.com/1591199923-MHvA42QvSt.png
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc
echo 'fr_FR.UTF-8 UTF-8' > /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'KEYMAP=fr' > /etc/vconsole.conf
echo 'nowhere' > /etc/hostname
echo "127.0.0.1 localhost
::1 localhost" > /etc/hosts
mkinitcpio -P
passwd
useradd nothing
mkdir /home/nothing
cp /etc/skel/.* /home/nothing/
chown -R nothing: /home/nothing
passwd nothing
pacman -S sudo
usermod -aG wheel nothing
pacman -S dhcpcd
systemctl enable dhcpcd
pacman -S refind
refind-install
Check /boot/refind_linux.conf : https://puush.tuto-craft.com/1589786074-QHD8Lw5Men.png
(also check if /boot is really /boot and not / /boot lol)
exit
umount /mnt/boot /mnt
reboot
*login as somebody*
sudo pacman -S base-devel git i3 xorg-server xorg-xinit

51
opsec/Arch/xinitrc Normal file
View file

@ -0,0 +1,51 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec i3