rc

Change .zlogin and add new install script

The new install script can be used to install the necessary packages for my standard web server deployment (GNU and Linux are already installed, so this installs Django, uwsgi, and Django) and activates the systemctl processes.
.zlogin now begins with starting GNU Emacs, because this usually takes longer than all the other tasks.

Author
Maarten 'Vngngdn' Vangeneugden
Date
Oct. 1, 2017, 4:26 p.m.
Hash
a1dc44ed14c7570375c74a09055b0b2d6185be3f
Parent
0d6c62fcf5bfc17161e6dfe9488129be712e6ecf
Modified files
.zlogin
install-webserver.sh
ranger/rc.conf
ranger/rifle.conf

.zlogin

7 additions and 3 deletions.

View changes Hide changes
1
1
2
2
# by pulling all changes in the repositories:
+
3
# allowing the computer to establish an internet connection in the meantime, so
+
4
# it can synchronize the directories and pull changes in repositories.
+
5
echo -e "Booting GNU Emacs...\n"
+
6
emacs --daemon=gnuemacs
+
7
echo -e "GNU Emacs booted as 'gnuemacs' daemon.\n"
+
8
+
9
# by pulling all changes in the repositories:
3
10
echo -e "Updating all repositories...\n"
4
11
cd ~/Repositories
5
12
for directory in */ ; do
6
13
	cd $directory
7
14
	git pull
8
15
	cd ..  # Returning to Repositories
9
16
done
10
17
11
18
cd ~  # Return to home
12
19
13
20
echo -e "Synchronizing remaining university data...\n"
14
21
rsync -a -P --delete -e ssh maarten@maartenv.be:/home/maarten/Documenten/University ~ &> /dev/null
15
22
16
23
echo -e "Booting GNU Emacs...\n"
17
-
emacs --daemon=gnuemacs
18
-
19
-
echo -e "All tasks completed. Initializing i3 boot process... OwO"
20
24
# Start X
21
25
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
22
26
  exec startx
23
27
fi

install-webserver.sh

9 additions and 0 deletions.

View changes Hide changes
+
1
# run.
+
2
+
3
# Installing the required software
+
4
pacaur -S --noconfirm uwsgi-plugin-python python-django nginx-mainline openssh postgresql
+
5
# Starting required software
+
6
sudo systemctl start nginx.service
+
7
sudo systemctl enable nginx.service
+
8
+
9

ranger/rc.conf

1 addition and 0 deletions.

View changes Hide changes
+
1
set preview_images true

ranger/rifle.conf

1 addition and 0 deletions.

View changes Hide changes
+
1
ext