-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOW TO: VirtualBox Alpine Linux + rclone + samba share #2
Comments
thank you for your tutorial! But i can only read the mount in windows. in linux i can create folders and files but when i connect to the smb trough windows then i can only read. have you any idea? |
What kind of error do you get ? |
i have another problem. i have installed your linux etc...but wenn i will rclone config, i can not copy the secure_token in the vm. the copy stops at the half and abort he say: |
You did not copy paste file correctly a part of it its missing. |
how can i do that? i have often used SFTP programs but not to send to a vm. can you give me a tipp? |
Well your VM have an IP just SSH to it dont use the VM terminal directly. |
when i try to connect with putty he say i musst login. i type user "root" and the pw "root" but...access denied. the login trough the vm with root and root works fine |
Is Pass auth enabled in p.s. You could word wrap your rclone config so you make sure its copy pasted correctly. |
yes i have enabled how you have write this in your tutorial above. i deleted the # and the passwd*** and type "yes" behind PermitRootLogin what do you mean with wordwrap? |
now, i have rclone conigured! Thx :-) that mean when i connect in windows to then he ask me for user and password. but there not correct. how can i now create a new user or change the old? |
update: now i can access from windows to the smb share! now the problem: edit: i have it! i have added in smb.conf: |
when i type:
and autostart does not work |
how can i run "modprobe fuse" on startup? |
i try to install rclone but gets following error: |
Download & Install Virtualbox host: https://www.virtualbox.org/wiki/Downloads
Download Alpine Linux Standard: https://www.alpinelinux.org/downloads/
Open Virtualbox and create new virtual machine:
Boot created virtual machine and once in terminal mode setup your hostname, ip, dns by typing::
setup-hostname
setup-interfaces
setup-dns
After restart network:
/etc/init.d/networking restart
Setup the Alpine Linux on your HDD
setup-alpine
Update Alpine:
apk update
apk upgrade
Install fuse
apk add fuse
Optional
apk add unionfs-fuse
Install Samba
apk add samba samba-common-tools
Before setting up rclone install certificates
Setup rclone and mount folders
Share rclone mount in samba by adding special samba user and creating smb.conf
Create new user:
adduser --no-create-home --disabled-password --disabled-login mysambauser
smbpasswd -a mysambauser
Create config
vi /etc/samba/smb.conf
Add samba to run at startup
rc-update add samba
Start samba;
rc-service samba start
You may consider adding your rclone mount script to boot in local.d so add it to boot by:
rc-update add local default
Now you can make new rclone mount script in
vi /etc/local.d/rclonemount.start
vi /etc/local.d/rclonemount.stop
You can read more about local.d :
cat /etc/local.d/README
Optionally you can enable SSH and run virtualbox in headless mode
To enable SSH
vi /etc/ssh/sshd_config
Set : PermitRootLogin yes
restart SSH
/etc/init.d/sshd restart �
To start your virtalmachine in headless mode, create new batch file with content bellow:
To stop or better yet stop and save last state you can make batch:
Once your virtalbox machine is running you can access it by typing in windows explorer:
\THE IP\NameOfShare ( in our case cloud )
use username and password you set for samba.
The text was updated successfully, but these errors were encountered: