Diff is too large to be shown
airikr / Install softwares and restore backup files
Last active 4 months ago
airikr revised this gist 8 months ago · 2a64bd7
No changes
airikr revised this gist 2 years ago · bdd30bf
1 file changed, 212 insertions, 67 deletions
airikr revised this gist 2 years ago · 23c5f86
1 file changed, 2 insertions, 1 deletion
| @@ -158,10 +158,12 @@ echo && printf "${YELLOW}Restarting Apache" && printf "${NC}" && echo && echo && | |||
| 158 | 158 | sudo systemctl restart httpd.service | |
| 159 | 159 | ||
| 160 | 160 | # ADDING USER | |
| 161 | + | echo && printf "${YELLOW}Adding vboxusers to the user group" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 161 | 162 | sudo usermod -a -G vboxusers $USER | |
| 162 | 163 | ||
| 163 | 164 | # INSTRUCTIONS | |
| 164 | 165 | printf "${BLUE}" | |
| 166 | + | echo 'Log out and log back in again to enable vboxusers' | |
| 165 | 167 | echo | |
| 166 | 168 | echo '--------' | |
| 167 | 169 | echo | |
| @@ -194,5 +196,4 @@ echo 'Follow the instructions below NVIDIA Improvements at https://steamcommunit | |||
| 194 | 196 | echo | |
| 195 | 197 | echo 'Download FreeFileSync at https://freefilesync.org/' | |
| 196 | 198 | echo | |
| 197 | - | echo 'Log out and log back in again to enable vboxusers' | |
| 198 | 199 | printf "${NC}" | |
airikr revised this gist 2 years ago · 05871b4
1 file changed, 1 insertion, 1 deletion
| @@ -194,5 +194,5 @@ echo 'Follow the instructions below NVIDIA Improvements at https://steamcommunit | |||
| 194 | 194 | echo | |
| 195 | 195 | echo 'Download FreeFileSync at https://freefilesync.org/' | |
| 196 | 196 | echo | |
| 197 | - | echo 'Logout and back in again to enable vboxusers' | |
| 197 | + | echo 'Log out and log back in again to enable vboxusers' | |
| 198 | 198 | printf "${NC}" | |
airikr revised this gist 2 years ago · abae589
1 file changed, 17 insertions, 3 deletions
| @@ -165,12 +165,26 @@ printf "${BLUE}" | |||
| 165 | 165 | echo | |
| 166 | 166 | echo '--------' | |
| 167 | 167 | echo | |
| 168 | + | echo 'Use the following if root's password is wrong' | |
| 168 | 169 | echo 'sudo mysql' | |
| 169 | - | echo 'ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('password');' # Only if root's password is wrong. | |
| 170 | + | echo 'ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('password');' | |
| 170 | 171 | echo 'quit' | |
| 171 | - | echo 'mysql -u root -p' | |
| 172 | + | echo | |
| 173 | + | echo '--------' | |
| 174 | + | echo | |
| 175 | + | echo 'Connect to MySQL with the root user' | |
| 176 | + | echo '/usr/bin/mariadb -u root -p' | |
| 177 | + | echo | |
| 178 | + | echo 'To create a new user and grant all privileges' | |
| 172 | 179 | echo 'CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';' | |
| 173 | 180 | echo 'GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost';' | |
| 181 | + | echo | |
| 182 | + | echo 'To change the username' | |
| 183 | + | echo 'RENAME USER 'user'@'localhost' to 'new-user'@'localhost';' | |
| 184 | + | echo | |
| 185 | + | echo 'To change the password' | |
| 186 | + | echo 'ALTER USER 'user'@'localhost' IDENTIFIED BY 'new-password';' | |
| 187 | + | echo | |
| 174 | 188 | echo 'quit' | |
| 175 | 189 | echo | |
| 176 | 190 | echo '--------' | |
| @@ -180,5 +194,5 @@ echo 'Follow the instructions below NVIDIA Improvements at https://steamcommunit | |||
| 180 | 194 | echo | |
| 181 | 195 | echo 'Download FreeFileSync at https://freefilesync.org/' | |
| 182 | 196 | echo | |
| 183 | - | echo 'Log out and then log back in again to enable vboxusers' | |
| 197 | + | echo 'Logout and back in again to enable vboxusers' | |
| 184 | 198 | printf "${NC}" | |
airikr revised this gist 2 years ago · 5ab1ad0
1 file changed, 2 insertions, 1 deletion
| @@ -43,7 +43,7 @@ yay -Syu --noconfirm | |||
| 43 | 43 | ||
| 44 | 44 | # INSTALL | |
| 45 | 45 | echo && printf "${YELLOW}Installing softwares" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 46 | - | yay -S --noconfirm mullvad-vpn-bin vscodium-bin qimgv-git ttf-victor-mono smartgit blue-recorder-git josm-stable xfce4-panel-profiles | |
| 46 | + | yay -S --noconfirm mullvad-vpn-bin vscodium-bin qimgv-git ttf-victor-mono smartgit blue-recorder-git josm-stable xfce4-panel-profiles xfce4-docklike-plugin | |
| 47 | 47 | sudo pacman -S thunderbird darktable gramps steam inter-font mpv obs-studio filezilla element-desktop mumble speedcrunch virtualbox ufw sshfs python-pip gtk2 ttc-iosevka kcolorchooser skanlite yt-dlp openssh wine qmmp gimp shotcut qbittorrent inkscape gamemode lib32-gamemode krita cifs-utils gajim jellyfin-server jellyfin-web syncthing telegram-desktop perl-image-exiftool npm lite-xl | |
| 48 | 48 | wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash | |
| 49 | 49 | ||
| @@ -84,6 +84,7 @@ sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/VirtualBox/ "${dir_home}"/. | |||
| 84 | 84 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/qBittorrent/ "${dir_home}"/.config/qBittorrent/ | |
| 85 | 85 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/lite-xl/ "${dir_home}"/.config/lite-xl/ | |
| 86 | 86 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/qmmp/ "${dir_home}"/.config/qmmp/ | |
| 87 | + | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/Mumble/ "${dir_home}"/.config/Mumble/ | |
| 87 | 88 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.mozilla/firefox/ "${dir_home}"/.mozilla/firefox/ | |
| 88 | 89 | ||
| 89 | 90 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.thunderbird/ "${dir_home}"/.thunderbird/ | |
airikr revised this gist 2 years ago · e8277a9
1 file changed, 4 insertions
| @@ -156,6 +156,9 @@ sudo rsync -aP "${dir_backup}"/srv/http/ /srv/http/ | |||
| 156 | 156 | echo && printf "${YELLOW}Restarting Apache" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 157 | 157 | sudo systemctl restart httpd.service | |
| 158 | 158 | ||
| 159 | + | # ADDING USER | |
| 160 | + | sudo usermod -a -G vboxusers $USER | |
| 161 | + | ||
| 159 | 162 | # INSTRUCTIONS | |
| 160 | 163 | printf "${BLUE}" | |
| 161 | 164 | echo | |
| @@ -176,4 +179,5 @@ echo 'Follow the instructions below NVIDIA Improvements at https://steamcommunit | |||
| 176 | 179 | echo | |
| 177 | 180 | echo 'Download FreeFileSync at https://freefilesync.org/' | |
| 178 | 181 | echo | |
| 182 | + | echo 'Log out and then log back in again to enable vboxusers' | |
| 179 | 183 | printf "${NC}" | |
airikr revised this gist 2 years ago · 536b793
1 file changed, 2 insertions, 2 deletions
| @@ -43,8 +43,8 @@ yay -Syu --noconfirm | |||
| 43 | 43 | ||
| 44 | 44 | # INSTALL | |
| 45 | 45 | echo && printf "${YELLOW}Installing softwares" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 46 | - | yay -S --noconfirm mullvad-vpn-bin vscodium-bin qimgv-git ttf-victor-mono smartgit blue-recorder-git josm-stable xfce4-panel-profiles lite-xl-bin | |
| 47 | - | sudo pacman -S thunderbird darktable gramps steam inter-font mpv obs-studio filezilla element-desktop mumble speedcrunch virtualbox ufw sshfs python-pip gtk2 ttc-iosevka kcolorchooser skanlite yt-dlp openssh wine qmmp gimp shotcut qbittorrent inkscape gamemode lib32-gamemode krita cifs-utils gajim jellyfin-server jellyfin-web syncthing telegram-desktop perl-image-exiftool npm | |
| 46 | + | yay -S --noconfirm mullvad-vpn-bin vscodium-bin qimgv-git ttf-victor-mono smartgit blue-recorder-git josm-stable xfce4-panel-profiles | |
| 47 | + | sudo pacman -S thunderbird darktable gramps steam inter-font mpv obs-studio filezilla element-desktop mumble speedcrunch virtualbox ufw sshfs python-pip gtk2 ttc-iosevka kcolorchooser skanlite yt-dlp openssh wine qmmp gimp shotcut qbittorrent inkscape gamemode lib32-gamemode krita cifs-utils gajim jellyfin-server jellyfin-web syncthing telegram-desktop perl-image-exiftool npm lite-xl | |
| 48 | 48 | wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash | |
| 49 | 49 | ||
| 50 | 50 | # CREATE FOLDER | |
airikr revised this gist 2 years ago · eecc443
1 file changed, 16 insertions, 6 deletions
| @@ -44,7 +44,7 @@ yay -Syu --noconfirm | |||
| 44 | 44 | # INSTALL | |
| 45 | 45 | echo && printf "${YELLOW}Installing softwares" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 46 | 46 | yay -S --noconfirm mullvad-vpn-bin vscodium-bin qimgv-git ttf-victor-mono smartgit blue-recorder-git josm-stable xfce4-panel-profiles lite-xl-bin | |
| 47 | - | sudo pacman -S thunderbird darktable gramps steam inter-font mpv obs-studio filezilla element-desktop mumble speedcrunch virtualbox ufw sshfs python-pip gtk2 ttc-iosevka kcolorchooser skanlite yt-dlp openssh wine qmmp gimp shotcut qbittorrent inkscape gamemode lib32-gamemode krita cifs-utils gajim jellyfin-server jellyfin-web syncthing telegram-desktop | |
| 47 | + | sudo pacman -S thunderbird darktable gramps steam inter-font mpv obs-studio filezilla element-desktop mumble speedcrunch virtualbox ufw sshfs python-pip gtk2 ttc-iosevka kcolorchooser skanlite yt-dlp openssh wine qmmp gimp shotcut qbittorrent inkscape gamemode lib32-gamemode krita cifs-utils gajim jellyfin-server jellyfin-web syncthing telegram-desktop perl-image-exiftool npm | |
| 48 | 48 | wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash | |
| 49 | 49 | ||
| 50 | 50 | # CREATE FOLDER | |
| @@ -83,6 +83,7 @@ sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/VSCodium/ "${dir_home}"/.co | |||
| 83 | 83 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/VirtualBox/ "${dir_home}"/.config/VirtualBox/ | |
| 84 | 84 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/qBittorrent/ "${dir_home}"/.config/qBittorrent/ | |
| 85 | 85 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/lite-xl/ "${dir_home}"/.config/lite-xl/ | |
| 86 | + | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.config/qmmp/ "${dir_home}"/.config/qmmp/ | |
| 86 | 87 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.mozilla/firefox/ "${dir_home}"/.mozilla/firefox/ | |
| 87 | 88 | ||
| 88 | 89 | sudo rsync -aP "${dir_backup}"/"${dir_home}"/.thunderbird/ "${dir_home}"/.thunderbird/ | |
| @@ -97,7 +98,8 @@ sudo rsync -aP "${dir_backup}"/"${dir_home}"/Documents/ "${dir_home}"/Documents/ | |||
| 97 | 98 | # JELLYFIN | |
| 98 | 99 | echo && printf "${YELLOW}Configuring Jellyfin" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 99 | 100 | sudo rsync -aP "${dir_backup}"/var/lib/jellyfin/ /var/lib/jellyfin/ | |
| 100 | - | sudo chown -R jellyfin:jellyfin /var/lib/jellyfin/ sudo chmod -R 777 /var/lib/jellyfin/ | |
| 101 | + | sudo chown -R jellyfin:jellyfin /var/lib/jellyfin/ | |
| 102 | + | sudo chmod -R 777 /var/lib/jellyfin/ | |
| 101 | 103 | sudo systemctl restart jellyfin.service | |
| 102 | 104 | ||
| 103 | 105 | ||
| @@ -115,7 +117,7 @@ sudo mysql_secure_installation | |||
| 115 | 117 | ||
| 116 | 118 | # PHP | |
| 117 | 119 | echo && printf "${YELLOW}Installing PHP" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 118 | - | sudo pacman -Sy php php-apache php-gd php-fpm php-sqlite | |
| 120 | + | sudo pacman -Sy php php-apache php-gd php-fpm php-sqlite php-pgsql | |
| 119 | 121 | ||
| 120 | 122 | # ENABLE BOOT | |
| 121 | 123 | echo && printf "${YELLOW}Enabling services for boot" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| @@ -127,12 +129,20 @@ sudo systemctl start sshd syncthing@airikr.service | |||
| 127 | 129 | ||
| 128 | 130 | # COMPOSER | |
| 129 | 131 | echo && printf "${YELLOW}Installing Composer" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 130 | - | php -r 'copy('https://getcomposer.org/installer', 'composer-setup.php');' | |
| 131 | - | php -r 'if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;' | |
| 132 | + | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
| 133 | + | php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
| 132 | 134 | php composer-setup.php | |
| 133 | - | php -r 'unlink('composer-setup.php');' | |
| 135 | + | php -r "unlink('composer-setup.php');" | |
| 134 | 136 | sudo mv composer.phar /usr/local/bin/composer | |
| 135 | 137 | ||
| 138 | + | # GEOSPATIAL | |
| 139 | + | git clone https://github.com/php-geospatial/geospatial.git | |
| 140 | + | cd geospatial | |
| 141 | + | phpize | |
| 142 | + | ./configure --enable-geospatial | |
| 143 | + | make | |
| 144 | + | sudo make install | |
| 145 | + | ||
| 136 | 146 | # COPY > PASTE | |
| 137 | 147 | echo && printf "${YELLOW}Restoring configuration files for web server" && printf "${NC}" && echo && echo && sleep ${SLEEP} | |
| 138 | 148 | sudo rsync -aP "${dir_backup}"/etc/httpd/conf/httpd.conf /etc/httpd/conf/ | |
airikr revised this gist 2 years ago · c785e52
1 file changed, 169 insertions
Diff is too large to be shown