-
Notifications
You must be signed in to change notification settings - Fork 0
/
arcolinux-vbox-share
executable file
·28 lines (27 loc) · 1.07 KB
/
arcolinux-vbox-share
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#set -e
###############################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
###############################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
###############################################################################
#Automount shared folders for virtualbox
user=$( who | cut -d ' ' -f1 | uniq)
sudo gpasswd -a $user vboxsf
sudo systemctl enable vboxservice.service
sudo systemctl start vboxservice.service
echo "##############################################"
echo "Now log out and log back in"
echo "If you have set virtualbox to share a folder"
echo "with automount, it will appear in the"
echo "filemanager at next login"
echo "##############################################"