Installation had already been done the last time i set it up. This time i booted straight into the Armbian desktop. I can’t remember excatly why i chose Armbian over Debian/Ubuntu. Possibly because a reliable Ubuntu/Debian image for Orange Pi Plus 2 wasn’t available at that time, or maybe because Armbian is supposed to have better support for ARM based devices.
I had also gone a step further and moved the OS from SD Card to built in eMMC storage (~16GB)
1# python -mplatform
2Linux-3.13.0-68-generic-x86_64-with-Ubuntu-14.04-trusty
I updated the system with
1sudo apt update
2sudo apt upgrade
As of this writing the latest Ubuntu LTS version is 20.04 (Focal Fossa) and Armbian Focal for Orange Pi+ 2 was released on 21-02-1.
The usual sudo apt dist-upgrade
didn’t work. What works is running sudo armbian-config
and then going to System > Other (Switch to other kernels) and then selecting the latest.
Don’t expect 6GB/sec. Expect a max ~30 MB/sec. The SATA is actually achieved with a USB2.0-to-SATA bridge, so you’d get USB 2.0 speeds. Apparently you get more speed if you connect it to one of the USB ports as compared to connecting it over the SATA port. On the USB port i got around 5-11 MB/s ..
Run the following commands before and after connecting your hard drive to figure out which one you need to mount.
1# get device UUIDs
2sudo blkid
3
4# find out partition names
5cat /proc/partitions
1# install tools
2sudo apt-get install fuse ntfs-3g
3
4# create mount points
5sudo mkdir /media/aamnah/NAS /media/aamnah/STUFF
6
7# mount drive
8sudo mount -t ext4 /dev/sda1 /media/aamnah/NAS
9sudo mount -t ntfs-3g /dev/sdc1 /media/aamnah/STUFF
1sudo apt install samba
2
3sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
4sudo nano /etc/samba/smb.conf
smb.conf
filei tried to make the extrenal drive called NAS publicly accessible without having to provide a password, but it didn’t work. some articles mentioned changing user to nobody
and changing pemissions to 777
(actually change owner and perms for the drive itself), but that did nothing. kept getting the you do not have permission error..
[nas-test]
path = /media/aamnah/NAS
public = yes
writable = yes
browsable = yes
read only = no
;guest ok = yes
;guest only = yes
;guest account = nobody
create mask = 0777
directory mask = 0777
what did work was providing force user = aamnah
. (my username is aamnah
on both devices) i am able to access from Windows and browse as well as create files inside this shared drive. it did not ask me for a password
[NAS]
path = /media/aamnah/NAS
writable = yes
public = yes
force user = aamnah
Open File Explorer. Right click on This PC in the sidebar and select Add a network location.
\\192.168.111.100/NAS
_Files > Go > _
Cmd
+ K
is the shortcut.
i configured one from the router but that didn’t seem to work. Pi+ 2 rebooted with a different IP address than the one it was assigned. In the /etc/network/interfaces
file eth0
was set to DHCP. I’m not sure if that is supposed to cause the router settings not take effect?
1sudo cp /etc/network/interfaces /etc/network/interfaces.bak
2sudo nano /etc/network/interfaces
# Ethernet adapter 0 - static
auto eth0
allow-hotplug eth0
#no-auto-down eth0
iface eth0 inet static
address 192.168.111.100
netmask 255.255.255.0
gateway 192.168.111.1
dns-nameservers 8.8.8.8 8.8.4.4
#dns-nameservers 192.168.111.1