Odroid

From MineOS Wiki
Jump to navigation Jump to search


Debian Wheezy

Installing Java

http://forum.odroid.com/viewtopic.php?f=111&t=8128

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install -y oracle-java8-installer

Installing NodeJS

curl -sL https://deb.nodesource.com/setup_0.12 | bash -
apt-get update
apt-get install -y nodejs

Installing MineOS

apt-get install -y curl git rdiff-backup screen build-essential nodejs
<mineos git install>
<npm install --all>

apt-get install supervisor
cp /usr/games/minecraft/init/supervisor_conf /etc/supervisor/conf.d/mineos.conf
supervisorctl reread
supervisorctl update

wget https://download.samba.org/pub/rsync/src/rsync-3.1.1.tar.gz
tar -xf rsync-3.1.1.tar.gz
cd rsync-3.1.1
./configure
make
make install

Wireless Connectivity

apt-get install dhcpcd

echo -e "ctrl_interface=/run/wpa_supplicant
update_config=1
" > /etc/wpa_supplicant/home_wifi.conf

wpa_cli -iwlan2 disconnect
for i in `wpa_cli -iwlan2 list_networks | grep ^[0-9] | cut -f1`; do wpa_cli -iwlan2 remove_network $i; done
wpa_cli -iwlan2 add_network
wpa_cli -iwlan2 set_network 0 key_mgmt WPA-PSK
wpa_cli -iwlan2 set_network 0 psk '"MYPASSWORD"'
wpa_cli -iwlan2 set_network 0 ssid '"MYSSID"'
wpa_cli -iwlan2 select_network 0
wpa_cli -iwlan2 enable_network 0
wpa_cli -iwlan2 reassociate
wpa_cli -iwlan2 status
dhcpcd wlan2

ArchLinux

Sync up Pacman

pacman -Syu

Installing Oracle Java

cd ~
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-arm-vfp-hflt.tar.gz
tar -xf jdk-8u51-linux-arm-vfp-hflt.tar.gz
mkdir -p /opt/java
mv jdk1.8.0_51 /opt/java/
ln -s /opt/java/jdk1.8.0_51/bin/java /usr/bin/java
echo -e "export JAVA_HOME=/opt/java/jdk1.8.0_51/bin/java\nexport PATH=$PATH:/opt/java/jdk1.8.0_51/bin" >> ~/.bash_profile

Installing Dependencies

pacman -S npm base-devel wget 

Installing MineOS

pacman -S screen git rsync rdiff-backup

cp /usr/games/minecraft/init/systemd_conf /etc/systemd/system/mineos.service
systemctl daemon-reload
systemctl enable mineos
systemctl list-unit-files --all

Using Wireless Connectivity

[root@alarm ~]# pacman -S wpa_supplicant
[root@alarm ~]# vi /etc/wpa_supplicant/example.conf

ctrl_interface=/run/wpa_supplicant
update_config=1

[root@alarm ~]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 00:1e:06:10:07:48 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 7c:dd:90:73:6e:25 brd ff:ff:ff:ff:ff:ff

[root@alarm ~]# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
[root@alarm ~]# wpa_cli
wpa_cli v2.3
Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wlan0'

Interactive mode

> scan
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
> scan_results
bssid / frequency / signal level / flags / ssid
11:1d:1f:11:a1:17       2412    -14     [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS]       MYSSID
00:24:7b:f7:ef:38       2412    -62     [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] myqwest6077
d4:c9:ef:01:ed:8d       2427    -66     [WPA2-PSK-CCMP][ESS]    HP-Print-8D-ENVY 4500 series
9c:d3:6d:9d:88:7c       2427    -66     [WPA2-PSK-CCMP][WPS][ESS]       MyHomeWireless
98:fc:11:4a:91:9a       2462    -80     [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][WPS][ESS]       HomeWifi
f8:35:dd:36:50:14       2412    -82     [WPA2-PSK-CCMP][WPS][ESS]       MOTOROLA-4A09D
> add_network
0
> set_network 0 ssid "MYSSID"
OK
> set_network 0 psk "MYPASSWORD"
OK
> enable_network 0
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>SME: Trying to authenticate with 10:0d:7f:d1:a7:07 (SSID='MYSSID' freq=2412 MHz)
<3>Trying to associate with 10:0d:7f:d1:a7:07 (SSID='D1A707' freq=2412 MHz)
<3>Associated with 10:0d:7f:d1:a7:07
<3>WPA: Key negotiation completed with 10:0d:7f:d1:a7:07 [PTK=CCMP GTK=TKIP]
<3>CTRL-EVENT-CONNECTED - Connection to 10:0d:7f:d1:a7:07 completed [id=0 id_str=]
> save_config
OK
[root@alarm ~]# dhcpcd wlan0
DUID 00:01:00:01:1d:30:87:28:7c:dd:90:73:6e:25
wlan0: IAID 90:73:6e:25
wlan0: soliciting a DHCP lease
wlan0: offered 192.168.0.21 from 192.168.0.1
wlan0: soliciting an IPv6 router
wlan0: leased 192.168.0.21 for 3600 seconds
wlan0: adding route to 192.168.0.0/24
wlan0: adding default route via 192.168.0.1
forked to background, child pid 380
[root@alarm ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.4  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::21e:6ff:fe10:748  prefixlen 64  scopeid 0x20<link>
        ether 00:1e:06:10:07:48  txqueuelen 1000  (Ethernet)
        RX packets 11006  bytes 2166935 (2.0 MiB)
        RX errors 0  dropped 4  overruns 0  frame 0
        TX packets 11988  bytes 14019245 (13.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 40

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 178  bytes 14177 (13.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 178  bytes 14177 (13.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.21  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::7edd:90ff:fe73:6e25  prefixlen 64  scopeid 0x20<link>
        ether 7c:dd:90:73:6e:25  txqueuelen 1000  (Ethernet)
        RX packets 132  bytes 12511 (12.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28  bytes 3467 (3.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0