Rpi-xlos

Aus SpaceOnEarth
I_UfE_RPi-XLos
http://www.linuxsystems.it/raspbian-wheezy-armhf-raspberry-pi-minimal-image/
http://files2.linuxsystems.it/raspbian_wheezy_20130923.img.7z
root@ufe:/home/axel# dd bs=1M of=/dev/sdd if=131025_raspbian_wheezy_20130923.img 
950+0 records in
950+0 records out
996147200 bytes (996 MB) copied, 128.686 s, 7.7 MB/s

The root password is raspberry

reconfigure your timezone:
dpkg-reconfigure tzdata
-> berlin
The keyboard layout:
dpkg-reconfigure console-data
-> pc / qwertz / German / Standard / Programmer
And the localization:
dpkg-reconfigure locales
-> de_DE.UTF-8
apt-get update
apt-get install mc
adduser pi
apt-get install openvpn apache2 libapache2-mod-php5 php5
mkdir -p /home/pi/ufe/bin /home/pi/ufe/www /home/pi/ufe/wwwup /home/pi/ufe/log /home/pi/ufe/data/m_pc_data/wt
echo mpc045 > /etc/hostname
/etc/apache2/sites-enabled/000-default :
<VirtualHost *:80>
       ServerAdmin webmaster@localhost
       DocumentRoot /home/pi/ufe/www
       <Directory />
               Options FollowSymLinks
               AllowOverride None
       </Directory>
       <Directory /home/pi/ufe/www >
               Options Indexes FollowSymLinks MultiViews +ExecCGI
               AllowOverride all 
               Order allow,deny
               allow from all
       </Directory>
       ErrorLog /home/pi/ufe/log/apache2_error.log
       # Possible values include: debug, info, notice, warn, error, crit,
       # alert, emerg.
       LogLevel warn
       CustomLog /home/pi/ufe/log/apache2_access.log combined
</VirtualHost>
nano /etc/apache2/envvars :
+ export APACHE_RUN_USER=pi
+ export APACHE_RUN_GROUP=pi

chown pi /var/lock/apache2
/etc/init.d/apache2 reload
nano /etc/default/openvpn
+ AUTOSTART="all"
scp root@l.ufegmbh.de:/etc/openvpn/keys/keys_mpc045/* /etc/openvpn/

/etc/init.d/openvpn start
nano /etc/hosts:
++ 
127.0.0.1 mpc045
10.1.1.47 mpc047
 ...
10.1.1.99 mpc099
mkdir -p /home/pi/ufe/svn/trunk/c /home/pi/ufe/svn/trunk/php /home/pi/ufe/bin /home/pi/ufe/svn/trunk/bash
# apt-get install subversion gcc make g++
cd /home/pi/ufe/svn/trunk/c
svn co svn://l.ufegmbh.de/trunk/c/pc
svn co svn://l.ufegmbh.de/trunk/c/u
cd /home/pi/ufe/svn/trunk/php
svn co svn://l.ufegmbh.de/trunk/php/pi
cd /home/pi/ufe/svn/trunk/bash
svn co svn://l.ufegmbh.de/trunk/bash/RPi

apt-get install rungetty
su
cp mountkernfs.sh /etc/init.d/mountkernfs.sh
cp inittab /etc/inittab


nano /etc/init.d/mountkernfs.sh 
= . /lib/init/mount-functions.sh
=
+ . /home/pi/ufe/bin/RPi/u_usv.sh
=
= # May be run several times, so must be idempotent.
...
=  start)
=       mount_filesystems mount_noupdate
+       u_usv__if_not_ok_halt
=       ;;
nano /etc/inittab :
=
- #1:2345:respawn:/sbin/getty 38400 tty1
+ 1:2345:respawn:/sbin/rungetty --noclear -u root tty1 -- bash /home/pi/ufe/bin/RPi/u_pi_daemon.sh
= 2:23:respawn:/sbin/getty 38400 tty2
apt-get install rungetty


~/ufe/data/m_pc_data/wt/mpc045$ echo public > mpc045.txt
apt-get install tree
ufe> dd bs=1M of=/dev/sdd if=131028_mpc045_oX.img\n\n