adding to fish

This commit is contained in:
2022-09-10 13:25:09 +03:00
parent 49ee3c5ff9
commit f4a5110113

View File

@@ -12,12 +12,15 @@ if [ "$(ls /home |grep saret)" != "saret" ]; then
sudo adduser --gecos "" --disabled-password $username sudo adduser --gecos "" --disabled-password $username
sudo chpasswd <<<"$username:$password" sudo chpasswd <<<"$username:$password"
sudo usermod -aG sudo $username sudo usermod -aG sudo $username
curl -sSL "https://www.googleapis.com/drive/v3/files/1T9QJRJf-PudtnOc_LWWlcaGzmlFetj8l?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >DebianMachine.pub mkdir /SSH
curl -sSL "https://www.googleapis.com/drive/v3/files/1etRrxKbD57DCyZiqhA7uOMWHzHAsclyQ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >WindowsMachine.pub chown $username:$username /SSH -R
curl -sSL "https://www.googleapis.com/drive/v3/files/1qPxPILbk9X2wK4nbXnyGCOZs-jjq6NXZ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >DebianMachine chmod au+xwr /SSH -R
curl -sSL "https://www.googleapis.com/drive/v3/files/10y_s7IHOyqqUfdWB-HwRfYOy2EGlEAro?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >WindowsMachine curl -sSL "https://www.googleapis.com/drive/v3/files/1T9QJRJf-PudtnOc_LWWlcaGzmlFetj8l?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/DebianMachine.pub
sshpass -p "qwerty" ssh-copy-id -i ./DebianMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME curl -sSL "https://www.googleapis.com/drive/v3/files/1etRrxKbD57DCyZiqhA7uOMWHzHAsclyQ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/WindowsMachine.pub
sshpass -p "qwerty" ssh-copy-id -i ./WindowsMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME curl -sSL "https://www.googleapis.com/drive/v3/files/1qPxPILbk9X2wK4nbXnyGCOZs-jjq6NXZ?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/DebianMachine
curl -sSL "https://www.googleapis.com/drive/v3/files/10y_s7IHOyqqUfdWB-HwRfYOy2EGlEAro?alt=media&key=AIzaSyCy8ppkVWYQFSznbe1SHuAITSZ-ux_ZCZk" >/SSH/WindowsMachine
sshpass -p "qwerty" ssh-copy-id -i /SSH/DebianMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME
sshpass -p "qwerty" ssh-copy-id -i /SSH/WindowsMachine.pub -o StrictHostKeyChecking=no saret@$HOSTNAME
sudo reboot sudo reboot
su $username su $username
fi fi
@@ -53,7 +56,47 @@ sudo tee /etc/apt/sources.list.d/notaesalexp.list<<EOF
deb https://notesalexp.org/tesseract-ocr5/$(lsb_release -cs)/ $(lsb_release -cs) main deb https://notesalexp.org/tesseract-ocr5/$(lsb_release -cs)/ $(lsb_release -cs) main
EOF EOF
sudo apt -y update sudo apt -y update
sed -i "s/SETUVAR __fish_initialized:3100/SETUVAR __fish_initialized:3100\nSETUVAR _fish_abbr_fuck:sudo\x20apt\x20\x2dy\x20install\nSETUVAR _fish_abbr_go:sudo\x20apt\x20\x2dy\nSETUVAR _fish_abbr_no:sudo\x20\x2ds/" /home/saret/.config/fish/fish_variables mkdir /home/saret/.config
mkdir /home/saret/.config/fish
tee /home/saret/.config/fish/fish_variables <<EOF
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3100
SETUVAR _fish_abbr_fuck:sudo\x20apt\x20\x2dy\x20install
SETUVAR _fish_abbr_go:sudo\x20apt\x20\x2dy
SETUVAR _fish_abbr_no:sudo\x20\x2ds
SETUVAR _fish_abbr_s_21_:ssh\x20Libre
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:005fd7
SETUVAR fish_color_comment:990000
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:009900
SETUVAR fish_color_error:ff0000
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:00afff
SETUVAR fish_color_quote:999900
SETUVAR fish_color_redirection:00afff
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell\x0aType\x20\x60he
lp\x60\x20for\x20instructions\x20on\x20how\x20to\x20use\x20fish
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:\x1d
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
EOF
sudo apt install -y $(apt-cache search tesseract-ocr | awk '{print $1}') sudo apt install -y $(apt-cache search tesseract-ocr | awk '{print $1}')
sudo apt -y install ocrmypdf sudo apt -y install ocrmypdf
sudo apt -y install python3-pip sudo apt -y install python3-pip