This commit is contained in:
dr1p 2021-11-22 11:21:00 -06:00
parent b3ed7fcb15
commit fbbfa3faed

@ -1,23 +1,23 @@
# SOF
# MOUNTING GOOGLE DRIVES TO CLOUD INSTANCES TO INCREASE CAPACITY
### ############################################################################################################## A
### ############################################################################################### A
# `SETTING UP CLOUD VNC FOR GOOGLE AUTHORIZATION`
### ################################################################################################################
### #################################################################################################
### `INSTALL DESKTOP GUI ENVIRONMENT & VNC`
### ############################################################################################################# 1A
### ############################################################################################## 1A
- **sudo apt update**
- **sudo apt install ubuntu-desktop**
- **sudo apt install tightvncserver**
- **sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal**
### ################################################################################################################
### #################################################################################################
# `START VNC`
### ############################################################################################################# 2A
### ############################################################################################## 2A
- ***vncserver :1***
### ################################################################################################################
### #################################################################################################
# `CREATE VNC CONFIG`
### ############################################################################################################# 3A
### ############################################################################################## 3A
```
cat << EOF > ~/.vnc/xstartup
export XKL_XMODMAP_DISABLE=1
@ -34,26 +34,26 @@ nautilus &
gnome-terminal &
EOF
```
### ################################################################################################################
### #################################################################################################
# `KILL VNC`
### ############################################################################################################# 4A
### ############################################################################################## 4A
- **vncserver -kill :1**
### ################################################################################################################
### #################################################################################################
# `START VNC`
### ############################################################################################################# 5A
### ############################################################################################## 5A
- **vncserver :1**
### ############################################################################################################## B
### ############################################################################################### B
# `MOUNTING GOOGLE CLOUD DRIVE`
### ################################################################################################################
### #################################################################################################
# `INSTALL OPAM`
### ############################################################################################################# 1B
### ############################################################################################## 1B
- **sudo apt install opam**
### ################################################################################################################
### #################################################################################################
# `CREATE OPAM CONFIG`
### ############################################################################################################# 2B
### ############################################################################################## 2B
```
cat << EOF >> /tmp/profile
test -r /home/dr1p/.opam/opam-init/init.sh && . /home/dr1p/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
@ -62,59 +62,59 @@ eval $(opam env)
EOF
```
### ################################################################################################################
### #################################################################################################
# `COPP OPAM CONFIG INTO RC/PROFILE ENVIRON`
### ############################################################################################################# 3B
### ############################################################################################## 3B
- cat /tmp/profile >> ~/.profile
- cat /tmp/profile >> ~/.bashrc
- rm /tmp/profile
- source ~/.bashrc
### ################################################################################################################
### #################################################################################################
# `FINISH OPAM INSTALLATION`
### ############################################################################################################# 4B
### ############################################################################################## 4B
- opam init
- opam update
- opam install depext
- opam depext google-drive-ocamlfuse
- opam install google-drive-ocamlfuse
### ################################################################################################################
### #################################################################################################
# `SEND TO BACKGROUND AS TASK`
### ############################################################################################################# 5B
### ############################################################################################## 5B
- google-drive-ocamlfuse &
### ################################################################################################################
### #################################################################################################
# `VERIFY THESE TWO FILES EXIST AND WITH CONTENT INSIDE THEM`
### ############################################################################################################# 6B
### ############################################################################################## 6B
```
cat ~/.gdfuse/default/state
cat ~/.gdfuse/default/config
```
### ################################################################################################################
### #################################################################################################
# `KILL THE BACKGROUNDED TASK`
### ############################################################################################################# 7B
### ############################################################################################## 7B
- **kill %1**
### ################################################################################################################
### #################################################################################################
# `SINGLE GOOGLE DRIVE, LABEL IS DEFAULT`
### ############################################################################################################# 8B
### ############################################################################################## 8B
- **mkdir ~/.gdrive_one**
- **google-drive-ocamlfuse ~/.gdrive_one**
### ############################################################################################################# 9B
### ############################################################################################## 9B
- **mount|grep google**
- **df -h|grep google**
### ################################################################################################################
### #################################################################################################
# `HOWTO UNMOUNT GOOGLE DRIVE`
### ############################################################################################################ 10B
### ############################################################################################# 10B
- **fusermount -u ~/.gdrive_one**
### ################################################################################################################
### #################################################################################################
# `AUTO-MOUNT GOOGLE DRIVE ON BOOT`
### ############################################################################################################ 11B
### ############################################################################################# 11B
```
cat << EOF >> /etc/systemd/system/google-drive.service
[Unit]
@ -133,18 +133,18 @@ Alias=google-drive.service
EOF
```
### ################################################################################################################
### #################################################################################################
# `TESTING BOOT SERVICE`
### ############################################################################################################ 12B
### ############################################################################################# 12B
- **sudo systemctl daemon-reload**
- **sudo systemctl start google-drive**
- **sudo systemctl status google-drive**
### ################################################################################################################
### #################################################################################################
# `MULTIPLE GOOGLE DRIVES, LABEL IS GDRIVE_TWO`
### ############################################################################################################ 13B
### ############################################################################################# 13B
- **mkdir ~/.gdrive_two**
- **google-drive-ocamlfuse -label gdrive_two /home/dr1p/.gdrive_two**
### ################################################################################################################
### #################################################################################################
# EOF