Encrypted Raspberry Pi Wallet - Part 3: Samba

in #bitcoin6 years ago (edited)

In this post series I will show you how I have built a wallet system on a Raspberry Pi for 80$ that is able to store my wallet in an encrypted file that is backuped to an usb stick and uploaded (encrypted) to google drive monthly.

Part 1 will show you what to buy.
Part 2 will show you how to set up the operating system Debian for Raspberry and how to create an encrypted container.
Part2a will show you how to set up auto upgrading.
Partb wil show you how to choose a passphrase/password
Part 3 will show you how to set up a Backup and Samba so that you can reach the encrypted store as an windows share.
Part 4 will show you how to create a simple Telegram bot that sends you notifications what raspberry pi does.
Part 5 will show you some other stuff I do.

Samba

In this series we will set up samba. Samba allows to host a windows share so that we can access the wallet in windows.

For this we install samba: apt-get install samba. After that we config it: nano /etc/samba/smb.conf

In the second Part we have created the folder /media/encrypted which mounts the encrypted container. We want to add this to the smb.conf file:

[simon_enc]
comment = Encrypted
path = /media/usb/samba/encrypted/
guest ok = no
read only = no
create mask = 0775
directory mask = 0700
valid users = yourname

we also want a folder that contains stuff. For that we create mkdir /media/stuffand add this entry to smb.conf:

[stuff]
comment = Stuff
path = /media/stuff/
guest ok = yes
read only = no
writeable = yes
browseable = yes
create mask = 0775
directory mask = 0700
force user = nobody

After that we need to create the user:

useradd -s /bin/false yourname

And add the user to samba:

smbpasswd -a yourname
smbpasswd -a nobody

After we do /etc/init.d/samba restart you should be able to reach your new samba share in windows by entering \\ip-of-your host in your file explorer.

Of course you will always have to mount your encrypted container first if you want to use it. And never forget to unmount it! Also note that this is kind of a security risk. If you want it more secure only access the wallet through ssh.

Sort:  

You got a 1.04% upvote from @buildawhale courtesy of @tallfishinthesea!
If you believe this post is spam or abuse, please report it to our Discord #abuse channel.

If you want to support our Curation Digest or our Spam & Abuse prevention efforts, please vote @themarkymark as witness.

Coin Marketplace

STEEM 0.27
TRX 0.11
JST 0.030
BTC 69650.24
ETH 3776.55
USDT 1.00
SBD 3.44