Installation
This revision is from 2013/05/22 02:21. You can Restore it.
From SD card image for RaspberryPI
Download Image file and write to SD card - more here
Server default set to DHCP enable
- web interface login 'yourcall' and password '1234'
- server ip address shown on LCD display, or run from console
ifconfig
and read IP address eth0 device (edge0 is vpn device). - alternative install Fing to you android phone and find Raspberry device in your private site.
Options:
- boot with HDMI display and usb keyboard
- login as pi to shell with password raspberry
- run
sudo raspi-config
and set expand_rootfs, eventualy enable ssh.
From rsync repository (RaspberryPi)
List of commands for Raspian wheezy after ssh login or local access from console as root (without warranty). This commands also use on other system with small changes, dependency to hardware.
- On any other linux system change use name pi to your username.
Install need package
sudo su echo 'remoteqth' > /etc/hostname apt-get install htop iftop mc vim screen apache2 php5 libhamlib2 libhamlib-utils rsync i2c-tools ser2net python-smbus n2n cwdaemon xplanet xplanet-images rcconf imagemagick gnuplot libqrencode3 libqrencode-dev php5-gd
Download RemoteQTH server repository
mkdir /home/pi/remoteqth chown pi:pi /home/pi/remoteqth/ rsync -rva --numeric-ids --delete rsync://remoteqth.com:55873/server/ /home/pi/remoteqth/
File access
echo '/home/pi/remoteqth' > /etc/remoteqth-path chown pi:www-data /etc/remoteqth-path chmod 664 /etc/remoteqth-path chown root:www-data /etc/network/interfaces chmod 664 /etc/network/interfaces chown root:www-data /etc/resolv.conf chmod 664 /etc/resolv.conf
i2c (raspberryPi only)
sed -i s/blacklist\ spi-bcm2708/#blacklist\ spi-bcm2708/g /etc/modprobe.d/raspi-blacklist.conf sed -i s/blacklist\ i2c-bcm2708/#blacklist\ i2c-bcm2708/g /etc/modprobe.d/raspi-blacklist.conf echo 'i2c-dev' >> /etc/modules
sudo
enter
visudo
and paste
# RaspberryPi www-data ALL = NOPASSWD: /sbin/shutdown www-data ALL = NOPASSWD: /sbin/ifconfig www-data ALL = NOPASSWD: /etc/init.d/ser2net www-data ALL = NOPASSWD: /etc/init.d/n2n www-data ALL = NOPASSWD: /usr/sbin/i2cdetect www-data ALL = NOPASSWD: /usr/sbin/i2cget www-data ALL = NOPASSWD: /usr/bin/rsync www-data ALL = NOPASSWD: /home/pi/remoteqth/script/update.sh # alix1d www-data ALL = NOPASSWD: /usr/local/bin/ledblink www-data ALL = NOPASSWD: /usr/local/bin/fcdctl www-data ALL = NOPASSWD: /usr/local/sbin/remountrw www-data ALL = NOPASSWD: /usr/local/sbin/remountro
gpio (RaspberryPi only)
open
vim /etc/init.d/gpio
and paste
#!/bin/sh ### BEGIN INIT INFO # Provides: gpio # Required-Start: $local_fs $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Start gpio ### END INIT INFO echo "4" > /sys/class/gpio/export echo "17" > /sys/class/gpio/export echo "18" > /sys/class/gpio/export echo "21" > /sys/class/gpio/export echo "22" > /sys/class/gpio/export echo "23" > /sys/class/gpio/export echo "24" > /sys/class/gpio/export echo "25" > /sys/class/gpio/export echo "27" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio4/direction echo "out" > /sys/class/gpio/gpio17/direction echo "out" > /sys/class/gpio/gpio18/direction echo "out" > /sys/class/gpio/gpio21/direction echo "out" > /sys/class/gpio/gpio22/direction echo "out" > /sys/class/gpio/gpio23/direction echo "out" > /sys/class/gpio/gpio24/direction echo "out" > /sys/class/gpio/gpio25/direction echo "out" > /sys/class/gpio/gpio27/direction chmod 666 /sys/class/gpio/gpio4/value chmod 666 /sys/class/gpio/gpio17/value chmod 666 /sys/class/gpio/gpio18/value chmod 666 /sys/class/gpio/gpio21/value chmod 666 /sys/class/gpio/gpio22/value chmod 666 /sys/class/gpio/gpio23/value chmod 666 /sys/class/gpio/gpio24/value chmod 666 /sys/class/gpio/gpio25/value chmod 666 /sys/class/gpio/gpio27/value chmod 666 /sys/class/gpio/gpio4/direction chmod 666 /sys/class/gpio/gpio17/direction chmod 666 /sys/class/gpio/gpio18/direction chmod 666 /sys/class/gpio/gpio21/direction chmod 666 /sys/class/gpio/gpio22/direction chmod 666 /sys/class/gpio/gpio23/direction chmod 666 /sys/class/gpio/gpio24/direction chmod 666 /sys/class/gpio/gpio25/direction chmod 666 /sys/class/gpio/gpio27/direction exit 0
enabled with
chmod 774 /etc/init.d/gpio update-rc.d gpio defaults
udev
echo ' ' > /etc/udev/rules.d/99-remoteqth.rules chown pi:www-data /etc/udev/rules.d/99-remoteqth.rules chmod 664 /etc/udev/rules.d/99-remoteqth.rules
xplanet
open
vim /etc/crontab
and paste
# xplanet */15 * * * * pi /home/pi/remoteqth/script/azimuth-map.sh * * * * * pi ip addr show eth0 | grep inet | awk '{print}' > /tmp/eth0ip # RPi only * * * * * root /home/pi/remoteqth/script/lcd.sh * * * * * pi /home/pi/remoteqth/script/webcam.sh
symlinks
ln -s /home/pi/remoteqth/script/.xplanet /home/pi/.xplanet mkdir /usr/share/xplanet/images ln -s /home/pi/remoteqth/script/.xplanet/images/sun.png /usr/share/xplanet/images/sun.png
cwdaemon
set config
sed -i s/DEVICE=\"parport0\"/DEVICE=\"ttyUSB.cw\"/g /etc/default/cwdaemon
ser2net
set access
chown pi:www-data /etc/ser2net.conf chmod 664 /etc/ser2net.conf
Ramdisk
Source 1
sudo vim /etc/fstab
rule
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
create
sudo vim /etc/init.d/prepare-dirs
and add
#!/bin/bash # ### BEGIN INIT INFO # Provides: prepare-dirs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Required-Start: # Required-Stop: # Short-Description: Create /var/log/apache2 directory on tmpfs at startup # Description: Create /var/log/apache2 directory on tmpfs at startup ### END INIT INFO DIR=/var/log/apache2 # # main() # case "${1:-''}" in start) # create the /var/log/apache2 needed by webserver if [ ! -d ${DIR} ]; then mkdir ${DIR} chmod 755 ${DIR} fi ;; stop) ;; restart) ;; reload|force-reload) ;; status) ;; *) echo "Usage: $SELF start" exit 1 ;; esac
enable
sudo update-rc.d prepare-dirs defaults 01 99
RaspiCam
raspistill (by m1m1 ยป Fri May 17, 2013 12:01 pm) from git, source 2
Relay controll via LPT (Alix or any x86 platform)
and reboot...