WORK AROUND FOR 5 ISSUES
Orange Pi PC / ARMBIAN 5.10 Debian 8 (jessie) 3.4.112
(1) Changing hostname & adding user:
The default user is root and the default hostname is Orangepi:
root@Orangepi:~#
(a) Changing hostname
In Raspberrypi, the dialogue opened by sudo raspi-config has an option to change host name. This dialogue is not provided in Armbian. To change hostname do following:
Step 1:
~$ sudo nano /etc/hostname
#this will open a file with one entry as follows
Orangepi
#remove Orangepi and type the hostname you want
#Alternatively, you can modify file “hostnames” by following command:
#(replace yourhostname by hostname of your choice)
sudo echo yourhostname > /etc/hostname
Step 2:
~$ sudo nano /etc/hosts
#add your host name shown in red (replace xxxxx by your desired hostname)
127.0.0.1 xxxxxx localhost orangepipc
::1 localhost orangepipc ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#save file, exit, and reboot
(b) Adding user “pi”:
On 1st boot, it is required to add a user name and password. This name can be anything of your choice. However I prefer to use user name “pi” because /home/pi/ has a widespread use in scripts due to Raspberrypi, and using “pi” makes things simpler.
If you did not add “pi” at 1st boot, and want to add it at later stage:
#login as root
root@Orangepi:~# adduser pi
#after output confirms that user “pi” has been added successfully, grant it sudo privileges
root@Orangepi:~# adduser pi sudo
#after output confirms that user “pi” has been added to group “sudo”, login as user pi and confirm it is in sudo group by following command
opi@Orangepi:~$ groups
#the output will include “sudo” group as shown below
opi sudo
(c) To remove a user:
deluser --remove-home username
#the --remove-home option will delete the user’s home directory as well
(2) DUMP1090 not working (RTL problem in version 3.4.112)
~$ sudo nano /etc/modprobe.d/rtl-sdr-blacklist.conf
#add the line below:
blacklist dvb_usb_rtl2832u
blacklist dvb_usb
#save file, exit and reboot
~ $ sudo reboot
Also do this:
~$ sudo lsmod | grep rtl
If you see some result then the kernel module is loaded and it should be removed.
Add a line for each kernel module you saw with the lsmod command in the rtl-sdr-blacklist.conf file:
~$ sudo nano /etc/modprobe.d/rtl-sdr-blacklist.conf
#Add a line for each kernel module you saw with the lsmod command
#Save & exit the file, and reboot
~ $ sudo reboot
(3) MAC address spoof:
~ $ sudo nano /etc/network/interfaces
#ADD THE LINE SHOWN IN RED BELOW (Change xx:xx:xx:xx:xx:xx to required MAC address)
…
Wired adapter #1
auto eth0
iface eth0 inet dhcp
hwaddress ether xx:xx:xx:xx:xx:xxhwaddress ether # if you want to set MAC manually
pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just$
…
#save the file, exit, and reboot
~ $ sudo reboot
(4) Temperature graph Empty
(thanks to LudgerBoergerding, ieand, and idh for solution)
~$ sudo nano /home/pi/adsb-receiver/build/portal/graphs/make-collectd-graphs.sh
#Go to function temp_graph_metric(), and in its line “CDEF:tfin=traw,1000,/” , changed 1000 to 1
#Save & exit the file, and reboot
~ $ sudo reboot
(5) Only one dvb-t plugged into Orange Pi, but both dump1090 & dump978 installed:
With single dongle, dump978 will grab it, and dump1090 will be left dongle-less. Solve this by:
~$ sudo nano /etc/rc.local
#comment out this line:
#/home/pi/adsb-receiver/build/dump978/dump978-maint.sh &
#save & exit the file, and reboot
~ $ sudo reboot