Migrate BeagleBone Black

TurnToJPG -->

Since I want to run wordpress at home, while my RaspberryPI got only 256M RAM, it will be hard to run such a heavy application, I use BeagleBone Black to run it, BeagleBone Black has 512M RAM, which will be enough for run wordpress and etc.

###Setting up NFS Server First I have to setup a nfs server in my LAN, I set it on my RaspberryPI, since I got only 1 USB hub which serves RaspberryPI, a 500GB harddisk has been attached to the USB hub, which is quite enough for serving nfs servers. My RaspberryPI runs archlinux, then I follow the ArchLinux’s Wiki setting up the nfs server

	pacman -S nfs-utils
	# cat /etc/exports
	### Check the result
	root@alarmpi ~]# exportfs -arv
	exporting to kernel
	exportfs: Function not implemented
	### Change the domainname to "localhost"
	vim /etc/idmapd.conf 
	### Testing the services
	systemctl start rpc-idmapd.service
	systemctl start rpc-mountd.service
	### Enable the Services at startup
	systemctl enable rpc-mountd.service
	systemctl enable rpc-idmapd.service

Want testing the nfs, simply use following command:

	mount -t nfs /mnt1

If you can see the mnt1 directory has the same content as in nfs server, you can use nfs now. ###Change the BeagleBone Startup file In SD card, change uEnv.txt

	[root@DashArch mnt]# cat uEnv.txt

###Replace Pogoplug To replace Pogoplug at home, I have to do the following issues:

  1. Use No-ip on BeagleBone, replacing the Pogoplug’s No-ip.
  2. Run Apache or nginx instead of Pogoplug’s service.

Use No ip: Install no-ip on RaspberryPI:

	pacman -S noip

Configure noip on RaspberryPI:

	noip2 -C -Y
	[root@alarmpi ~]# systemctl start noip2
	[root@alarmpi ~]# systemctl enable noip2
	ln -s '/usr/lib/systemd/system/noip2.service' '/etc/systemd/system/multi-user.target.wants/noip2.service'
	[root@alarmpi ~]# ps -ef | grep noip
	nobody     411     1  0 00:40 ?        00:00:00 /usr/bin/noip2 -c /etc/no-ip2.conf

Now we need to replace Pogoplug’s service to RaspberryPI: First we change the direct port 22 from pogoplug to RasspberryPI on Router.


Now your no-ip pointed machine changed from Pogoplug into RaspberryPI. ###Remote update Simply replacing the ssh related via setting up the different id_rsa:

	cat .ssh/id_rsa.pub | ssh root@xxx.xx.xx.com 'cat >> .ssh/authorized_keys