<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="http://blog.h2o.ch/feeds/atom10.xml" rel="self" title="Jun's Tech Blog" type="application/atom+xml" />
    <link href="http://blog.h2o.ch/"                        rel="alternate"    title="Jun's Tech Blog" type="text/html" />
    <link href="http://blog.h2o.ch/rss.php?version=2.0"     rel="alternate"    title="Jun's Tech Blog" type="application/rss+xml" />
    <title type="html">Jun's Tech Blog</title>
    <subtitle type="html">Tipps, Tricks und Informationen</subtitle>
    <icon>http://blog.h2o.ch/templates/default/img/s9y_banner_small.png</icon>
    <id>http://blog.h2o.ch/</id>
    <updated>2010-11-26T22:26:30Z</updated>
    <generator uri="http://www.s9y.org/" version="1.6">Serendipity 1.6 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://blog.h2o.ch/archives/35-OpenWRT-NAT-fuer-statisches-Netz-ausschalten.html" rel="alternate" title="OpenWRT: NAT fuer statisches Netz ausschalten" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2010-11-26T22:26:30Z</published>
        <updated>2010-11-26T22:26:30Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=35</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=35</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/35-guid.html</id>
        <title type="html">OpenWRT: NAT fuer statisches Netz ausschalten</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
Problem:<br />Ich verwende OpenWRT als Router mit VDSL-Bridge.<br />Mein Provider stellt mir eine dynamische IP und ein statisches /29-Netz zur Verfuegung.<br />Die dynamische WAN-IP moechte ich fuer meine Rechner im LAN und das statische /29-Netz fuer Server in der DMZ nutzen.<br />Im Web-Interface (LuCI) laesst sich NAT jedoch nicht deaktivieren.<br /><br />LAN (VLAN 2, eth0.2) --&gt; WAN: NAT, SRC-IP: dynamische IP<br />DMZ (VLAN3, eth0.3) --&gt; WAN: Forwarding ohne NAT <br /><br />Loesung:<br /><br />1) LuCI: Network - Firewall - dmz - Forwarded Traffic Default Policy: accept<br /><br />2) /etc/firewall.postrun erstellen:<br /><br /># vorher: pruefen mit iptables -t nat -L -n -v --line-numbers<br />#<br />#Chain zone_dmz_nat (0 references)<br />#num   pkts bytes target     prot opt in     out     source               destination<br />#1        0     0 MASQUERADE  all  --  <strong>      eth0.3  0.0.0.0/0            0.0.0.0/0<br />#<br />#Chain zone_wan_nat (1 references)<br />#num   pkts bytes target     prot opt in     out     source               destination<br />#1      103  6148 MASQUERADE  all  --  </strong>      ppp0    0.0.0.0/0            0.0.0.0/0<br /><br /># alle masquerade rules in table:nat, chain:zone_dmz_nat loeschen<br />MASQDMZ=`iptables -t nat -L zone_dmz_nat -n -v --line-numbers|grep MASQUERADE|cut -d' ' -f1`<br />for RULENUM in $MASQDMZ; do<br />  iptables -t nat -D zone_dmz_nat $RULENUM<br />done<br /><br /># alle masquerade rules in table:nat, chain:zone_wan_nat mit MASQUERADE und ppp0 ersetzen<br />MASQWANPPP=`iptables -t nat -L zone_wan_nat -n -v --line-numbers|grep MASQUERADE|grep &quot;ppp0&quot;|cut -d' ' -f1`<br />NOMASQSRC=208.77.188.160/29<br />for RULENUM in $MASQWANPPP; do                                                       <br />  iptables -t nat -R zone_wan_nat $RULENUM -o ppp0 ! -s $NOMASQSRC -j MASQUERADE     <br />done<br />                        <br /># debugging zone_wan_nat<br /># herausgefunden, dass man nicht nach dem src interface filtern kann (IN= OUT=ppp0)<br />#<br />#iptables -t nat -I zone_wan_nat -o ppp0 -j LOG<br />#iptables -t nat -D zone_wan_nat 1<br />                                                              <br /># nachher: pruefen mit iptables -t nat -L -n -v --line-numbers<br />#<br /># Chain zone_dmz_nat (0 references)                                             <br /># pkts bytes target     prot opt in     out     source               destination<br />#                                 <br /># Chain zone_wan_nat (1 references)                                             <br /># pkts bytes target     prot opt in     out     source               destination<br />#   10  1251 MASQUERADE  all  --  *      ppp0   ! 208.77.188.160/29      0.0.0.0/0<br /><br />3) /lib/firewall/uci_firewall.sh editieren:<br />fw_init() {<br />        (...)<br />        for interface in $INTERFACES; do<br />                fw_event ifup &quot;$interface&quot;<br />        done<br /><br />        #jke/20101128<br />        echo &quot;Loading include /etc/firewall.postrun&quot;<br />        [ -e /etc/firewall.postrun ] &amp;&amp; . /etc/firewall.postrun<br />} 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/34-OpenWrt-Backfire-10.03-auf-alix2c0-mit-Atheros-AR5xxx-und-nativem-IPv6-ueber-PPPoE.html" rel="alternate" title="OpenWrt Backfire 10.03 auf alix2c0 mit Atheros-AR5xxx und nativem IPv6 über PPPoE" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2010-05-13T22:21:33Z</published>
        <updated>2010-05-14T00:24:36Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=34</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=34</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/34-guid.html</id>
        <title type="html">OpenWrt Backfire 10.03 auf alix2c0 mit Atheros-AR5xxx und nativem IPv6 über PPPoE</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Neue Anleitung mit Standard Image und konfiguration mehrheitlich mit LuCI </p><ul><li>Nachfolger heisst <a href="http://www.pcengines.ch/alix2d2.htm">alix2d2</a> und ist bei www.pcengines.ch erhaeltlich. AC adapter, Pigtail cable, Antenna und Enclosure, Compact Flash und Null modem cable nicht vergessen!</li><li>Image auf CF schreiben. Achtung: Device darf nicht gemountet sein!</li></ul><pre>$ wget http://backfire.openwrt.org/10.03/x86/openwrt-x86-squashfs.image<br />$ sudo dd if=<a href="http://backfire.openwrt.org/10.03/x86/openwrt-x86-squashfs.image">openwrt-x86-squashfs.image</a> of=/dev/&lt;Devicename der CF-Karte, z.B. sdd&gt; bs=16k</pre><ul><li>Karte in alix2c0 einstecken, LAN (neben der Strombuchse) und ADSL/VDSL-Modem (neben der seriellen Schnittstelle) anschliessen und alix2c0 booten<br />Notfalls serielles Kabel anschliessen, Terminal-Programm mit 38400 8N1 starten, mit &quot;vi /etc/config/network&quot; die IP anpassen und mit &quot;/etc/init.d/network restart&quot; das Netzwerk neu starten</li><li>http://192.168.1.1 User: root Password: &lt;leer lassen&gt;</li><li>Passwort setzen unter: System - Admin Password, Submit</li><li>Rechts oben auf Administration klicken fuer erweiterte Optionen</li><li>Unter System - Software auf &quot;Update package lists&quot; klicken und folgende Pakete installieren: ip6tables radvd kmod-ath5k hostapd<br />Mit opkg update; opkg install &lt;paketnamen&gt; im Terminal geht das bedeutend schneller</li><li>Unter Network - Interfaces - LAN die IP anpassen, unter Additional Field &quot;IPv6-Address&quot; hinzufuegen und das eigene IPv6-Netz eintragen (z.B. 2001:DB8:C001:AD51::1/64), Save</li><li>Unter Network - Interfaces - WAN hinzufuegen, User und Password eingeben, &quot;Replace default route&quot;, &quot;Use peer DNS und &quot;Enable IPv6 on PPP link&quot; aktivieren. <br />Unter Additional Field &quot;Keep-Alive&quot; hinzufuegen und 10 eintragen, Save &amp; Apply</li><li>Falls unter Status - Interfaces - Bridge br-lan keine IPv6-Adresse anzeigt wird, eine Zeile in /etc/ppp/options hinzufuegen:</li></ul><pre># vi /etc/ppp/options<br /><p>+ipv6</p></pre><ul><li>IPv6-Optionen konfigurieren in /etc/sysctrl.conf</li></ul><pre># vi /etc/sysctrl.conf</pre><pre>net.ipv6.conf.all.forwarding=1<br />net.ipv6.conf.all.autoconf=0                                                                                                     <br />net.ipv6.conf.all.accept_ra=0                                                                                                    <br />net.ipv6.conf.default.autoconf=0</pre><ul><li>radvd<br />
 konfigurieren (IPv6-Adresse des Gateways im LAN <br />
announcen)</li></ul><pre># vi /etc/config/radvd</pre><pre>config interface<br />	#option ignore          1</pre><pre>config prefix<br />	option prefix	'&lt;IPv6-Netz, z.B. 2001:DB8:C001:AD51::/64&gt;'<br />	#option ignore          1</pre><ul><li><pre>radvd aktivieren</pre></li></ul><pre># /etc/init.d/radvd enable; /etc/init.d/radvd start</pre><ul><li><p>IPv6-Firewall-Script<br />
 erstellen und konfigurieren</p></li></ul><pre># cd /etc/init.d<br /># wget http://blog.h2o.ch/files/firewall6</pre><pre># vi /etc/firewall6.user</pre><pre>#wan interface<br />UPLINK=&quot;ppp0&quot;<br /><br />#allowed services from wan to lan<br />TCPSERVICES=&quot;22 80&quot;<br />UDPSERVICES=&quot;&quot;</pre><ul><li>Firewall<br />
 aktivieren und pruefen</li></ul><pre># /etc/init.d/firewall6 enable; /etc/init.d/firewall6 start<br /># ip6tables -L</pre><ul><li>Neu starten unter: System - Reboot und anschliessend pruefen, ob die Clients per IPv4 und IPv6 aufs Netz zugreifen koennen</li><li>Network - Wifi - RADIO0 - Device radio0 - Mode auf 802.11g setzen, unter Additional Field &quot;Country Code&quot; hinzufuegen und den <a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements" target="_blank">Laendercode</a> (z.B. CH) eintragen. <br />Unter Interfaces ESSID waehlen, Network: lan, Mode: Access Point, Encrzyption: WPA2-PSK und unter Key eine Passphrase eintragen, Save &amp; Apply</li></ul><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/33-WL500GP-als-Wifi-Client-und-USB-Printer-Server.html" rel="alternate" title="WL500GP als Wifi Client und USB Printer Server" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2010-04-21T22:03:48Z</published>
        <updated>2010-04-21T22:03:48Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=33</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=33</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/33-guid.html</id>
        <title type="html">WL500GP als Wifi Client und USB Printer Server</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Wifi einrichten: LuCI - Network - Wifi - Mode: Join (Client) und andere Einstellungen vornehmen</p><p>LuCI - Network - General - &quot;Local Network&quot; konfigurieren</p><p>/etc/config/wireless</p><p>config 'wifi-iface'</p><p>option 'network' 'lan'</p><p>reboot</p><p>opkg install kmod-usb-uhci-iv kmod-usb2 usbutils kmod-usb-printer p910nd </p><p>vi /etc/config/p910nd<br /><br />
</p><p>option device /dev/usb/lp0</p><p>/etc/init.d/p910nd start; /etc/init.d/p910nd enable</p><p>reboot</p><p>http://oldwiki.openwrt.org/OpenWrtDocs%282f%29Kamikaze%282f%29Printers.html</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/32-IBM-5154-mit-Video7-Grafikkarte-EGA-unter-Debian-Lenny-betreiben.html" rel="alternate" title="IBM 5154 mit Video7-Grafikkarte (EGA) unter Debian Lenny betreiben" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2010-04-19T21:55:34Z</published>
        <updated>2010-04-19T22:24:28Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=32</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/32-guid.html</id>
        <title type="html">IBM 5154 mit Video7-Grafikkarte (EGA) unter Debian Lenny betreiben</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
Beim installieren von Debian Lenny bei der Paketauswahl &quot;Desktop Environment&quot; nicht auswaehlen. Beim ersten Start ab HD wird waehrend der Verarbeitung der Init-Scripts ploetzlich Grafikmuell angezeigt, auch im Safe Mode. Das Problem scheint am Script <font face="courier new,courier,monospace">/etc/init.d/console-settings.sh</font> zu liegen. So wird es deaktiviert:<br /><br />1) Grub starten mit Option <font face="courier new,courier,monospace">init=/bin/sh</font> (und <font face="courier new,courier,monospace">vga=0x0f01</font> fuer 43 Zeilen)<br />2) Einloggen, dann <font face="courier new,courier,monospace">su -</font><br />3) read/write-mounten: <font face="courier new,courier,monospace">mount</font> --&gt; Device von / ermitteln, dann <font face="courier new,courier,monospace">mount -o remount &lt;device&gt; /</font><br />4) Init-Script deaktivieren:<font face="courier new,courier,monospace"> update-rc.d -f console-settings.sh remove</font><br />5) Reboot: Ctrl-Alt-SysReq gedrueckt halten und nacheinander r-e-i-s-u-b (Raising Elephants Is So Utterly Boring) druecken 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/31-Laufenden-Prozess-disownen.html" rel="alternate" title="Laufenden Prozess &quot;disownen&quot;" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2010-04-08T14:04:12Z</published>
        <updated>2010-04-08T14:45:38Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=31</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=31</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/31-guid.html</id>
        <title type="html">Laufenden Prozess &quot;disownen&quot;</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<name><name>Das kann von Nutzen sein, wenn der übers Netzwerk per SSH ausgeführte Prozess weiterlauften soll, auch wenn die Verbindung (und damit auch die ausführende Shell) abbricht:<br /><br /><b>Prozess läuft schon im Vordergrund</b><br />1) Ein beliebiger Prozess läuft in der Shell (z.B. &quot;xscreensaver&quot; oder &quot;find / -mtime -1 &gt;/tmp/changedlast24h&quot;)<br />2) Prozess mit [Ctrl]-[z] anhalten<br />3) Mit &quot;bg&quot; den Prozess in den Hintergrund bringen (als sei der Prozess mit einem angehängten &amp; ausgeführt worden)<br />4) Mit &quot;disown&quot; wird der Prozess eigenständig und beendet sich auch nach dem schliessen der Shell nicht mehr<br /><br /><b>Neuer Prozess wird gestartet</b><br />1) Shell öffnen und einen beliebigen Prozess im Hintergrund starten (z.B. &quot;xscreensaver &amp;&quot; oder &quot;find / -mtime -1 &gt;/tmp/changedlast24h &amp;&quot;)<br />2) Mit &quot;disown&quot; wird der Prozess eigenständig und beendet sich auch nach dem schliessen der Shell nicht mehr<br /><br />In beiden Fällen kann man leider den Output der Prozesse nicht anschauen und interagieren ist ebenfalls nicht möglich. Darum ist es besser, nach erfolgreicher SSH-Verbindung mit &quot;screen&quot; eine unabhaengige Shell zu öffnen:<br /><br /><b>Einsatz von Screen</b><br />1) &quot;screen -S test&quot; dem Screen einen Namen geben<br />2) Prozess starten (z.B. &quot;xscreensaver&quot; oder &quot;find / -mtime -1 &gt;/tmp/changedlast24h&quot;)<br />3) [Ctrl]-[a], d lässt sich die Shell jederzeit disconnecten<br />4) Shell schliessen, neue Shell (mit dem gleichen User, welcher screen gestartet hat) öffnen<br />5) Per &quot;screen -r test&quot; wieder reconnecten</name></name> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/25-Java-Flashplayer-unter-Ubuntu-9.04-AMD64.html" rel="alternate" title="Java &amp; Flashplayer unter Ubuntu 9.04 (AMD64)" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2009-05-03T22:14:52Z</published>
        <updated>2009-05-05T23:11:31Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=25</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/25-guid.html</id>
        <title type="html">Java &amp; Flashplayer unter Ubuntu 9.04 (AMD64)</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Folgendes im Terminal ausfuehren und anschliessend Firefox neu starten</p><pre>sudo apt-get update<br />sudo apt-get install flashplugin-installer sun-java6-jre<br />sudo ln -sf /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjavaplugin_jni.so /etc/alternatives/mozilla-javaplugin.so<br />sudo ln -sf /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjavaplugin_jni.so /etc/alternatives/firefox-javaplugin.so<br />sudo ln -sf /etc/alternatives/mozilla-javaplugin.so /usr/lib/mozilla/libjavaplugin.so<br />sudo ln -sf /usr/lib/jvm/java-6-sun/jre/bin/javaws /etc/alternatives/<br />sudo ln -sf /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/</pre><p>Besten Dank fuer den Tipp von Daniele auf: <a href="http://federicomoretti.name/come-installare-java-a-64-bit-su-ubuntujaunty/#comment-167">come-installare-java-a-64-bit-su-ubuntujaunty</a></p><br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/23-Angstrom-Distribution-Ethernet-,-Wifi-,-GPRS-Verbindung,-USB-Serial-Adapter-und-Bluetooth-Serial-Adapter-einrichten.html" rel="alternate" title="Angstrom-Distribution: Ethernet-, Wifi-, GPRS-Verbindung, USB Serial Adapter und Bluetooth Serial Adapter einrichten" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2009-03-12T23:48:37Z</published>
        <updated>2009-03-13T01:09:03Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=23</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/23-guid.html</id>
        <title type="html">Angstrom-Distribution: Ethernet-, Wifi-, GPRS-Verbindung, USB Serial Adapter und Bluetooth Serial Adapter einrichten</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p><b></b></p><p><b></b></p><p><b></b></p><p><b>Wifi mit Socket Rugged CF 10/100 Card</b></p><p>Treiber entfernen: ipkg remove kernel-module-pcnet-cs</p><p>Treiber installieren: <a href="http://blog.h2o.ch/files/kernel-module-axnet-cs_2.6.24-r9_akita.ipk">kernel-module-axnet-cs für Kernel 2.6.24</a></p><p><b>Wireless Konfig</b></p><p>vi /etc/network/interfaces</p><pre>iface wlan0 inet dhcp<br />    wpa-conf /etc/wpa_supplicant.conf<br />    wpa-driver hostap</pre><p>vi /etc/wpa_supplicant.conf</p><pre>ctrl_interface=/var/run/wpa_supplicant<br />ctrl_interface_group=0<br />eapol_version=1<br />ap_scan=1<br />fast_reauth=1<br />network={<br />    ssid=&quot;meine-ssid&quot;<br />    proto=WPA2<br />    pairwise=TKIP<br />    psk=&quot;mein-passwort&quot;<br />    priority=1</pre><p><b>GPRS Config</b></p><p>ipkg update; ipkg install gpe-bluetooth</p><p>vi /etc/bluetooth/rfcomm.conf (nokia telefon hinzufügen)</p><p>rfcomm0 {<br />    # Automatically bind the device at startup<br />    bind yes;<br /><br />    # Bluetooth address of the device<br />    device nokias-bt-adresse;<br /><br />    # RFCOMM channel for the connection<br />    channel    1;<br /><br />    # Description of the connection<br />    comment &quot;nokia&quot;;<br />}</p><p>diverse <a href="http://blog.h2o.ch/files/gprs.tgz">pppd-konfigurationsdateien und gprs-startscript</a> speichern</p><p>nokia mit zaurus paaren:</p><p>passkey-agent --default mein-PIN</p><p>anschliessend im gui-tool beide geräte paaren und dabei mein-PIN eingeben.</p><p>GPRS mit startgprs_nokia.sh starten, Verbindung beenden mit &quot;killall pppd&quot;.</p><p><b>USB Serial Adapter</b></p><p>Treiber installieren: <a href="http://blog.h2o.ch/files/kernel-module-mct-u232_2.6.24-r9_akita.ipk">kernel-module-mct-u232 für Kernel 2.6.24</a></p><p>echo &gt;/etc/modules/ohci-hcd &quot;ohci-hcd&quot;; update-modules</p><p>vi /etc/default/usb-gadget</p><p>USB_MODE=&quot;host-mode&quot;</p><p>Reboot &amp; z.B. <a href="http://blog.h2o.ch/files/minicom_2.1-r0_armv5te.ipk">minicom</a> installieren und /dev/ttyUSB0 nutzen</p><p><b>Socket Cordless Serial Adapter</b></p><p>vi /etc/bluetooth/rfcomm.conf (serial adapter hinzufügen)</p><p>rfcomm1 {<br />    # Automatically bind the device at startup<br />    bind no;<br /><br />    # Bluetooth address of the device<br />    device serial-adapters-bt-adresse;<br /><br />    # RFCOMM channel for the connection<br />    channel    1;<br /><br />    # Description of the connection<br />    comment &quot;socket cordless serial adapter&quot;;<br />}</p><p>z.B. minicom installieren und /dev/ttyUSB0 nutzen</p><p /><p /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/22-Angstrom-Distribution-mit-Socket-Rugged-CF-10100.html" rel="alternate" title="Angstrom-Distribution mit Socket Rugged CF 10/100" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2009-03-12T23:13:34Z</published>
        <updated>2011-10-30T19:47:19Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=22</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/22-guid.html</id>
        <title type="html">Angstrom-Distribution mit Socket Rugged CF 10/100</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p><strong>1a) Kompilierumgebung erstellen</strong></p><br />
<pre>#!/bin/sh<br />
# file: /data/OE-install<br />
# http://www.angstrom-distribution.org/building-angstrom<br />
# http://developer.berlios.de/projects/bitbake/<br />
# http://oe.linuxtogo.org/snapshots/<br />
mkdir -p /data/OE/build<br />
cd /data/OE<br />
wget http://download.berlios.de/bitbake/bitbake-1.8.10.tar.gz<br />
wget http://wiki.openembedded.net/snapshots/OE.mtn.bz2<br />
tar zxf /data/OE/bitbake-1.8.10.tar.gz <br />
bunzip2 /data/OE/OE.mtn.bz2 <br />
mtn --db=/data/OE/OE.mtn pull monotone.openembedded.org org.openembedded.{stable,dev}<br />
mtn --db=/data/OE/OE.mtn checkout --branch=org.openembedded.stable</pre><br />
<p>&#160;</p><br />
<p>&#160;</p><br />
<p>&#160;</p><br />
<p><strong>1b) Kompilierumgebung aktualisieren</strong></p><br />
<pre>#!/bin/sh<br />
# file: /data/OE-update<br />
# update oe metadata<br />
cd /data/OE/org.openembedded.stable<br />
mtn pull monotone.openembedded.org org.openembedded.{stable,dev}<br />
mtn update</pre><br />
<p>&#160;</p><br />
<p>&#160;</p><br />
<p>&#160;</p><br />
<p><strong>2) Environment vorbereiten</strong></p><br />
<pre>#!/bin/sh<br />
# file: /data/OE-setupenv<br />
&#160;BBPATH=/data/OE/:/data/OE/build/:/data/OE/org.openembedded.stable/<br />
&#160;PKGDIR=/data/OE/build/ <br />
&#160;DL_DIR=/data/OE/downloads<br />
&#160;echo Setting up dev env for ??ngstr??m<br />
&#160;if [ -z ${ORG_PATH} ]<br />
&#160;then<br />
&#160; ORG_PATH=${PATH}<br />
&#160;&#160; export ORG_PATH<br />
&#160;&#160; fi<br />
&#160; if [ -z ${ORG_LD_LIBRARY_PATH} ]<br />
&#160; then<br />
&#160;&#160; ORG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}<br />
&#160;&#160;&#160; export ORG_LD_LIBRARY_PATH<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; fi<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; PATH=/data/OE/bitbake-1.8.10/bin:${ORG_PATH}<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; cd $PKGDIR<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; LD_LIBRARY_PATH=<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; export PATH LD_LIBRARY_PATH BBPATH<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; export LANG=C<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160; echo "Altered environment for OE Development"</pre><br />
<p>&#160;</p><br />
<p>&#160;</p><br />
<p>&#160;</p><br />
<p><strong>3) Konfiguration</strong></p><br />
<pre># file: /data/OE/org.openembedded.stable/conf/local.conf<br />
#<br />
# OpenEmbedded local configuration file (sample)<br />
#<br />
# Please visit the Wiki at http://openembedded.org/ for more info.<br />
#<br />
#<br />
# Be SURE to read this file in its entirety and the GettingStarted page on the<br />
# wiki before proceeding.<br />
#<br />
# Once you have done that, remove the line at the end of this<br />
# file and build away.<br />
# <br />
# WARNING: lines starting with a space (' ') will result in parse failures.<br />
# Remove '# ' from commented lines to activate them.<br />
#<br />
# NOTE: Do NOT use $HOME in your paths, BitBake does NOT expand ~ for you.&#160; If you<br />
# must have paths relative to your homedir use ${HOME} (note the {}'s there<br />
# you MUST have them for the variable expansion to be done by BitBake).&#160; Your<br />
# paths should all be absolute paths (They should all start with a / after<br />
# expansion.&#160; Stuff like starting with ${HOME} or ${TOPDIR} is ok).<br />
<br />
# Use this to specify where BitBake should place the downloaded sources into<br />
DL_DIR = "/data/OE/sources"<br />
<br />
# Delete the line below. Then specify which .bb files to consider for<br />
# your build. Typically this will be something like BBFILES = "/path/to/openembedded/packages/*/<strong>.bb"<br />
BBFILES := "/data/OE/org.openembedded.stable/packages/*/</strong>.bb"<br />
<br />
# Use the BBMASK below to instruct BitBake to <u>NOT</u> consider some .bb files<br />
# This is a regulary expression, so be sure to get your parenthesis balanced.<br />
BBMASK = ""<br />
<br />
# Uncomment this if you want to use a prebuilt toolchain. You will need to<br />
# provide packages for toolchain and additional libraries yourself. You also<br />
# have to set PATH in your environment to make sure BitBake finds additional binaries.<br />
# Note: You will definitely need to say:<br />
#&#160;&#160;&#160;&#160; ASSUME_PROVIDED += "virtual/arm-linux-gcc-2.95"<br />
# to build any of two Linux 2.4 Embedix kernels,<br />
# i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget<br />
# to rename the binaries as instructed in the Wiki.<br />
# ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc virtual/libc"<br />
<br />
# Select between multiple alternative providers, if more than one is eligible.<br />
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie"<br />
PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11"<br />
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"<br />
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"<br />
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"<br />
<br />
# Uncomment this to specify where BitBake should create its temporary files.<br />
# Note that a full build of everything in OpenEmbedded will take GigaBytes of hard<br />
# disk space, so make sure to free enough space. The default TMPDIR is<br />
# &lt;build directory&gt;/tmp<br />
# Don't use symlinks in in the path to avoid problems<br />
# TMPDIR = /usr/local/projects/oetmp<br />
<br />
# Uncomment this to specify a machine to build for. See the conf directory<br />
# for machines currently known to OpenEmbedded. This will automatically take care<br />
# of TARGET_ARCH<br />
MACHINE = "akita"<br />
<br />
# Use this to specify the target architecture. Note that this is only<br />
# needed when building for a machine not known to OpenEmbedded. Better use<br />
# the MACHINE attribute (see above)<br />
# TARGET_ARCH = "arm"<br />
<br />
# Use this to specify the target operating system.&#160; The default is "linux",<br />
# for a normal linux system with glibc. Set this to "linux-uclibc" if you want<br />
# to build a uclibc based system.<br />
# Normally the DISTRO of your choosing will take care of this <br />
# TARGET_OS = "linux"<br />
# TARGET_OS = "linux-uclibc"<br />
<br />
# Uncomment this to select a distribution policy. See the conf directory<br />
# for distributions currently known to OpenEmbedded.<br />
# Although it no longer contain version number in the (file-)name<br />
# openzaurus-unstable is a so called "versioned"&#160; distro, i.e. they <br />
# explicitely select specific versions of various packages.<br />
# Stay away from unversioned distros unless you really know what you are doing<br />
#DISTRO = "angstrom-2007.1"<br />
DISTRO = "angstrom-2007.12-r18"<br />
<br />
# So far, angstrom.conf sets ENABLE_BINARY_LOCALE_GENERATION<br />
# to generate binary locale packages at build time using qemu-native and<br />
# thereby guarantee i18n support on all devices. If your build breaks on <br />
# qemu-native consider disabling ENABLE_BINARY_LOCALE_GENERATION (note that<br />
# this breaks i18n on devices with less than 128MB RAM) or installing<br />
# a working third-party qemu (e.g. provided by your distribution) and<br />
# adding qemu-native to ASSUME_PROVIDED. Caveat emptor, since third-party<br />
# qemus lack patches needed to work with various OE targets.<br />
# ENABLE_BINARY_LOCALE_GENERATION = "0"<br />
# ASSUME_PROVIDED += "qemu-native"<br />
<br />
# If ENABLE_BINARY_LOCALE_GENERATION is set to "1", you can limit locales<br />
# generated to the list provided by GLIBC_GENERATE_LOCALES. This is huge<br />
# time-savior for developmental builds. Format: list of locale.encoding pairs<br />
# with spaces as separators.<br />
# GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 de_DE.UTF-8"<br />
<br />
# Uncomment this to select a particular major kernel version if the MACHINE setting<br />
# supports more than one major kernel version. Currently this is suported by the<br />
# following MACHINE types: poodle, tosa and simpad.<br />
# MACHINE_KERNEL_VERSION = "2.6"<br />
<br />
# Uncomment one of these to build packages during the build process.<br />
# This is done automatically if you set DISTRO (see above)<br />
# INHERIT = "package_ipk"<br />
# INHERIT = "package_tar"<br />
<br />
# Add the required image file system types below. Valid are <br />
# jffs2, tar(.gz|bz2), cpio(.gz), cramfs, ext2(.gz), ext3(.gz)<br />
# squashfs, squashfs-lzma<br />
IMAGE_FSTYPES = "jffs2 tar.gz"<br />
<br />
# Uncomment this to disable the parse cache (not recommended).<br />
# CACHE = ""<br />
<br />
# Uncomment this if you want BitBake to emit debugging output<br />
# BBDEBUG = "yes"<br />
<br />
# Uncomment these two if you want BitBake to build images useful for debugging. <br />
# Note that INHIBIT_PACKAGE_STRIP needs a package format to be defined.<br />
# Also note that OE now produces -dbg packages which contain debugging symbols.<br />
# DEBUG_BUILD = "1"<br />
# INHIBIT_PACKAGE_STRIP = "1"<br />
<br />
# Uncomment these to build a package such that you can use gprof to profile it.<br />
# NOTE: This will only work with 'linux' targets, not<br />
# 'linux-uclibc', as uClibc doesn't provide the necessary<br />
# object files.&#160; Also, don't build glibc itself with these<br />
# flags, or it'll fail to build.<br />
#<br />
# PROFILE_OPTIMIZATION = "-pg"<br />
# SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"<br />
# LDFLAGS =+ "-pg"<br />
<br />
# Uncomment this to enable parallel make.<br />
# This allows make to spawn mutliple processes to take advantage of multiple <br />
# processors. Useful on SMP machines. This may break some packages - we're<br />
# in the process of marking these so let us know if you find any.<br />
# PARALLEL_MAKE = "-j 4"<br />
<br />
# Uncomment this if you want BitBake to emit the log if a build fails.<br />
BBINCLUDELOGS = "yes"<br />
<br />
# Specifies a location to search for pre-generated tarballs when fetching<br />
# a cvs:// URI. Outcomment this, if you always want to pull directly from CVS.<br />
#CVS_TARBALL_STASH = ""<br />
<br />
# EDIT THIS FILE and then remove the line below before using!<br />
#REMOVE_THIS_LINE:="${@bb.fatal('Read the comments in your conf/local.conf')}"</pre><br />
<pre><pre><p></p><p><strong>4) axnet-Treiber patchen</strong></p><p>cd /data/OE/org.openembedded.stable/packages/linux/linux-rp-2.6.24/<br />
wget http://blog.h2o.ch/files/axnet_cs.patch</p><pre><pre><p></p><p>vi /data/OE/org.openembedded.stable/packages/linux/linux-rp_2.6.24.bb (zeile hinzufügen)</p><pre>"file://axnet_cs.patch;patch=1;status=hack "</pre><pre><pre><p></p><p><strong>5) Kompilieren</strong></p><pre>#!/bin/sh<br />
# file: /data/OE-build<br />
source /OE-setupenv<br />
cd /data/OE/org.openembedded.stable<br />
mtn pull ; mtn update<br />
# bitbake x11-image <br />
cd /data/OE/org.openembedded.stable/tmp/deploy/glibc/images/akita/<br />
#cd /data/OE/org.openembedded.stable/tmp/deploy/glibc/ipk/akita/kernel-module-axnet-cs_2.6.24-r9_akita.ipk</pre><br />
</pre></pre></pre></pre></pre></pre> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/19-Daten-sicher-loeschen.html" rel="alternate" title="Daten sicher löschen" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2008-08-22T11:06:12Z</published>
        <updated>2009-03-13T00:54:46Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=19</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/19-guid.html</id>
        <title type="html">Daten sicher löschen</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p><b>Dateien sicher löschen</b><br /><br />Beim überschreiben von Daten können (z.B. durch ungenaue Schreibkopf-Positionierung) alte Daten in den Randbereichen zwischen den Tracks zurückbleiben. Dadurch, dass nicht überall alte Daten zurückbleiben und weil in diesen Randbereichen die Fehlerrate hoch ist, wird man dort keine oder nur geringe Datenmengen retten können. Solche Datenrettungsversuche sind sehr aufwändig und koennen auch nicht durch Spezialfirmen in nützlicher Zeit durchgeführt werden. Das einmalige Überschreiben mit echten Zufallsdaten sollte also in den meisten Fällen ausreichen. Wer mehr Sicherheit wünscht, kann das Überschreiben beliebig oft wiederholen. Die Gutmann-Methode [1], welche 35 Mal mit bestimmten Mustern überschreibt, halte ich für übertrieben und durch den hohen Zeitaufwand nicht praktikabel. Eine Datei ein Mal komplett mit Zufallsdaten zu überschreiben geht z.B. mit: srm -vll &lt;Datei&gt;<br /><br />Bei Filesystemen mit Journaling reicht es eventuell nicht, eine Datei zu überschreiben. In diesem Fall ist es besser, die Datei normal zu löschen und anschliessend den freien Speicher auf der Festplatte komplett zu überschreiben. Den freien Speicher ein Mal zufällig überschreiben geht z.B. mit: sfill -vll &lt;Pfad&gt;</p><p>Unter Debian/Ubuntu sind srm und sfill im Paket secure-delete zu finden.<br /><br />Wie komplex Festplatten heutzutage aufgebaut sind, wie die Daten aufbereitet und auf die Disks geschrieben werden und welche Möglichkeiten zur Datenrettung bestehen, kann man unter [2] nachlesen.<br /><br /><br /><b>Daten auf Festplatten sicher entsorgen / löschen</b><br /><br />Wer sicher gehen will, dass die Daten auf einer Festplatte unwiderruflich vernichtet werden, sollte die Festplatte physikalisch beschädigen: Die Festplatte öffnen, alle Plattenoberflächen zerkratzen und die Platten verbiegen oder noch sicherer: Die Platten mit geeignetem Gerät zerkleinern. Wem dies zu aufwändig ist, kann von oben Löscher in die ungeöffnete Festplatte bohren, wo sich die Platten befinden.<br /><br />Das entfernen der Steuerplatine reicht nicht, da die Datenrettung durch den Austausch der Steuerplatine aus der selben Serie zum Erfolg führen kann. Jede Festplatte weist unterschiedliche Parameter auf, aber sie werden beim Burn-In ermittelt und mit der Firmware auf die Platte geschrieben.<br /><br />Wer die Festplatte weiterverwenden und nur löschen will, sollte die Festplatte mit einem geeigneten Programm überschreiben, z.B. mit DBAN [3].<br /><br /><br />Quellen:<br />[1] http://www.nber.org/sys-admin/overwritten-data-guttman.html<br />[2] http://www.actionfront.com/whitepaper/Drive-Independent%20Data%20Recovery%20Ver14Alrs.pdf<br />[3] http://www.dban.org/</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/18-Debian-IPv6-Parameter-in-etcsysctrl.conf-werden-nicht-ausgefuehrt.html" rel="alternate" title="Debian: IPv6-Parameter in /etc/sysctrl.conf werden nicht ausgefuehrt" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2008-08-12T22:54:14Z</published>
        <updated>2008-10-27T05:39:10Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=18</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/18-guid.html</id>
        <title type="html">Debian: IPv6-Parameter in /etc/sysctrl.conf werden nicht ausgefuehrt</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
Die Parameter muessen gesetzt werden, nachdem das IPv6-Modul geladen ist, aber bevor das Interface gestartet wird. Dies kann man so bewerkstelligen:<br /><ul><li>In /etc/network/interfaces :</li></ul><pre>iface eth0 inet6 static<br />  pre-up modprobe ipv6<br />  up echo 0 &gt; /proc/sys/net/ipv6/conf/eth0/autoconf<br />  (...)</pre> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/17-OpenWrt-auf-alix2c0-mit-Atheros-Wifi-und-nativem-IPv6-ueber-PPPoE.html" rel="alternate" title="OpenWrt auf alix2c0 mit Atheros-Wifi und nativem IPv6 über PPPoE" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2008-07-06T19:54:25Z</published>
        <updated>2009-01-28T22:53:12Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=17</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/17-guid.html</id>
        <title type="html">OpenWrt auf alix2c0 mit Atheros-Wifi und nativem IPv6 über PPPoE</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Eine knappe Anleitung, wie man auf <a href="http://www.pcengines.ch/alix2.htm">alix2-Boards von PC Engines</a> natives IPv6 (also nicht getunnelt) über PPPoE zum laufen bringt: </p><br />
<ul><li>Squashfs-Image unter Ubuntu erstellen</li></ul><pre>$ sudo apt-get install svn libncurses5-dev zlib1g-dev bison flex autoconf<br />$ mkdir kamikaze<br />$ cd kamikaze/<br />$ svn co https://svn.openwrt.org/openwrt/trunk/<br />$ make menuconfig</pre><p>Target System: x86 / Target Profile: PCEngines Alix / Kernel partition size: 12 / Filsystem part size: &lt;z.B. 224MB bei einer 256MB-Karte&gt;<br />Base package: qos-scripts, wireless-tools / Network: hostapd-mini, hostapd-utils, ip, iw, wpa-supplicant, wpa-cli<br />IPv6: ip6tables / Wireless driver: kmod-madwifi</p><pre>$ ./scripts/feeds update -a<br />$ make package/symlinks<br />$ make menuconfig</pre><p>Administration - webif: webif, webif-lang-de, webif-theme-xwrt</p><pre>$ make</pre><ul><li>Image auf CF schreiben. Achtung: Device darf nicht gemountet sein!</li></ul><pre>$ sudo dd if=bin/openwrt-x86-squashfs.image of=/dev/&lt;Device der CF-Karte&gt; bs=16k</pre><ul><li>Karte in alix2c0 einstecken, Serielles Kabel anschliessen, minicom mit 38400 Baud starten und alix2c0 booten</li><li>Passwort setzen mit passwd</li><li>PPPoE fuer IPv6 konfigurieren</li></ul><pre># vi /etc/ppp/options<br /><p>+ipv6<br />#debug<br />logfile /var/log/ppp.log</p></pre><p /><ul><li>IPv6 Autoconf abstellen</li></ul><pre># vi /etc/init.d/network</pre><pre>boot() {<br />        echo &quot;0&quot; &gt;/proc/sys/net/ipv6/conf/all/autoconf<br />        echo &quot;0&quot; &gt;/proc/sys/net/ipv6/conf/default/autoconf<br />        echo &quot;0&quot; &gt;/proc/sys/net/ipv6/conf/all/accept_ra</pre><ul><li>Netzwerk konfigurieren</li></ul><pre># vi /etc/config/network</pre><pre>config interface wan<br />	option ifname	eth1<br />	option proto	pppoe<br />	option username	'&lt;user&gt;'<br />	option password	'&lt;pass&gt;'<br />	option ppp_redial	'persist'</pre><pre>config  interface lan<br />	option ip6addr	&lt;IPv6-Adresse/Netzmaske&gt;</pre><ul><li>IPv6-Forwarding aktivieren</li></ul><pre># echo 1 &gt;/proc/sys/net/ipv6/conf/all/forwarding<br /># vi /etc/sysctrl.conf</pre><pre>net.ipv6.conf.all.forwarding=1</pre><ul><li>Netzwerk neu starten</li></ul><pre># /etc/init.d/network restart<br /># /etc/init.d/firewall restart</pre><ul><li>radvd installieren und konfigurieren (IPv6-Adresse des Gateways im LAN announcen)</li></ul><pre># opkg update<br /># opkg install radvd<br /><br /># vi /etc/config/radvd</pre><pre>config interface<br />	#option ignore          1</pre><pre>config prefix<br />	option prefix	'&lt;IPv6-Netz&gt;'<br />	#option ignore          1</pre><ul><li><pre>radvd aktivieren</pre></li></ul><pre># /etc/init.d/radvd enable</pre><ul><li><p>IPv6-Firewall-Script erstellen</p></li></ul><pre># vi /etc/init.d/firewall6</pre><pre>#!/bin/sh /etc/rc.common<br /># Copyright (C) 2006 OpenWrt.org<br /><br />## Please make changes in /etc/firewall6.user<br />START=45<br /><br />start() {<br />  echo &quot;Starting firewall (IPv6)...&quot;<br />  [ -f /etc/firewall6.user ] &amp;&amp; . /etc/firewall6.user<br /><br />  ip6tables -P INPUT DROP<br />  ip6tables -P FORWARD DROP<br /><br />  # --&gt; Firewall<br />  ip6tables -A INPUT -i ! ${UPLINK} -j ACCEPT<br />  ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />  ip6tables -A INPUT -p icmpv6 -j ACCEPT<br />  ip6tables -A INPUT -p tcp --dport 80 -j ACCEPT<br />  ip6tables -A INPUT -p tcp --dport 22 -j ACCEPT<br />  ip6tables -A INPUT -p tcp -j REJECT --reject-with tcp-reset<br />  ip6tables -A INPUT -p udp -j REJECT --reject-with icmp6-port-unreachable<br /><br />  # --&gt; LAN<br />  ip6tables -A FORWARD -i ! ${UPLINK} -j ACCEPT<br />  ip6tables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT<br />  ip6tables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu<br />  ip6tables -A INPUT -p icmpv6 -j ACCEPT<br />  for x in ${TCPSERVICES}; do<br />    ip6tables -A FORWARD -p tcp --dport ${x} -j ACCEPT<br />  done<br />  for x in ${UDPSERVICES};do<br />    ip6tables -A FORWARD -p udp --dport ${x} -j ACCEPT<br />  done<br />  ip6tables -A FORWARD -p tcp -j REJECT --reject-with tcp-reset<br />  ip6tables -A FORWARD -p udp -j REJECT --reject-with icmp6-port-unreachable<br />        <br />  #explicitly disable ECN<br />  if [ -e /proc/sys/net/ipv6/tcp_ecn ]; then<br />    echo 0 &gt; /proc/sys/net/ipv6/tcp_ecn<br />  fi   <br />} <br /><br />stop() {<br />  echo &quot;Stopping firewalll (IPv6)...&quot;<br />  ip6tables -F INPUT <br />  ip6tables -P INPUT ACCEPT<br />  ip6tables -F FORWARD <br />  ip6tables -P FORWARD ACCEPT<br />}</pre><ul><li><p>IPv6-Firewall konfigurieren</p></li></ul><pre># vi /etc/firewall6.user</pre><pre>#wan interface<br />UPLINK=&quot;ppp0&quot;<br /><br />#allowed services from wan to lan<br />TCPSERVICES=&quot;22 80&quot;<br />UDPSERVICES=&quot;&quot;</pre><ul><li>Firewall aktivieren</li></ul><pre># /etc/init.d/firewall6 enable</pre><p /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/15-NTP-einrichten.html" rel="alternate" title="NTP einrichten" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2008-06-03T17:35:59Z</published>
        <updated>2008-08-22T13:42:39Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=15</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/15-guid.html</id>
        <title type="html">NTP einrichten</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<code></code><p>Wie man unter Debian/Ubuntu die Zeit mit NTP-Server synchronisiert:</p><pre># apt-get install ntp ntpdate<br /># /etc/init.d/ntp stop<br /># ntpdate ntp.metas.ch<br /># /etc/init.d/ntp start</pre><p /> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/13-SATA-Harddisk-SMART-Monitoring-und-E-Mail-Benachrichtigung-unter-Ubuntu.html" rel="alternate" title="SATA Harddisk: SMART Monitoring und E-Mail-Benachrichtigung unter Ubuntu" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2008-05-01T17:22:42Z</published>
        <updated>2008-05-17T21:20:25Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=13</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=13</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/13-guid.html</id>
        <title type="html">SATA Harddisk: SMART Monitoring und E-Mail-Benachrichtigung unter Ubuntu</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Wie man unter Ubuntu seine SATA-Harddisks ueberwachen kann und E-Mails erhaelt, wenn eine HD ersetzt werden sollte:</p><ul><li>Pakete installieren</li></ul><pre>$ sudo apt-get install smartmontools mailx</pre><br />
<ul><li>Smartmontools aktivieren (&quot;#&quot; entfernen)</li></ul><pre>$ sudo vi /etc/default/smartmontools</pre><pre>start_smartd=yes</pre><ul><li>Devicescan deaktivieren (&quot;#&quot; hinzufuegen) und jedes SATA-Device einzeln eintragen (zusaetzlich &quot;-M test&quot; fuer E-Mail-Test) </li></ul><pre>$ sudo vi /etc/smartd.conf</pre><p>#DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner<br />/dev/sda -a -d sat -m me@example.com -M diminishing -M test<br />/dev/sdb -a -d sat -m me@example.com -M diminishing<br />/dev/sdc -a -d sat -m me@example.com -M diminishing<br />/dev/sdd -a -d sat -m me@example.com -M diminishing</p><ul><li>Exim fuer E-Mail-Versand an externe Hosts aktivieren</li></ul><pre>$ sudo dpkg-reconfigure exim4-config</pre><blockquote><ul><li>&quot;Internet Site&quot; auswaehlen</li></ul></blockquote><ul><li>Smartmontools starten</li></ul><pre>$ sudo /etc/init.d/smartmontools start</pre><p>Falls der Dienst nicht starten sollte, /var/log/daemon.log konsultieren. Bei Debian Etch muss man fuer SATA &quot;-d ata&quot; statt  &quot;-d sat&quot; verwenden.</p><ul><li>Testen, ob Mailversand erfolgreich</li></ul><pre>$ sudo tail /var/log/exim4/mainlog</pre><ul><li>Falls SoftRAID genutzt wird, sollten Fehlermeldungen von mdadm an die selbe Adresse versendet werden</li></ul><pre>$ sudo vi /etc/mdadm/mdadm.conf</pre><pre>#MAILADDR root<br />MAILADDR me@example.com</pre><pre>$ sudo /etc/init.d/mdadm restart</pre><p><br />
</p> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/12-Native-Instruments-Audio-8-DJ-unter-Ubuntu.html" rel="alternate" title="Native Instruments Audio 8 DJ unter Ubuntu" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2008-03-08T10:32:49Z</published>
        <updated>2008-05-17T16:02:42Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=12</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/12-guid.html</id>
        <title type="html">Native Instruments Audio 8 DJ unter Ubuntu</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
Eigentlich wollte ich Audio 8 DJ mit <a href="http://www.xwax.co.uk/">xwax</a> unter Ubuntu/Studiobuntu nutzen, aber das hat bis jetzt noch nicht funktioniert. Zumindest laesst sich Audio 8 DJ wie folgt ansteuern:<br /><ul><li>Sprachausgabe &quot;Front Left, Front Right&quot; auf Channel A und Channel B</li></ul><pre>speaker-test -c2 -D plughw:DJ,0,0 -twav -l 3<br />speaker-test -c2 -D plughw:DJ,0,1 -twav -l 3</pre><ul><li>Abspielen einer WAV-Datei  auf Channel A und Channel B</li></ul><pre><pre>cd /tmp<br />wget &quot;http://www.linksplace.com/wavsounds/madcow.wav&quot;<br />aplay -v -c 2 -D plughw:DJ,0,0 madcow.wav<br />aplay -v -c 2 -D plughw:DJ,0,1 madcow.wav</pre></pre><ul><li>10 Sekunden aufnehmen und abspielen auf Channel A und Channel B</li></ul><pre><pre><pre>cd /tmp<br />echo &quot;recording channel a...&quot;<br />arecord -r 48000 -f cd -t wav -D plughw:DJ,0,0 -d 10 chan1.wav<br />echo &quot;playing channel a...&quot;<br />aplay -c 2 -D plughw:DJ,0,0 chan1.wav<br />echo &quot;recording channel b...&quot;<br />arecord -r 48000 -f cd -t wav -D plughw:DJ,0,1 -d 10 chan2.wav<br />echo &quot;playing channel b...&quot;<br />aplay -c 2 -D plughw:DJ,0,1 chan2.wav<br />echo &quot;done&quot;</pre><br />
</pre></pre> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.h2o.ch/archives/10-Deutschweizer-Tastatur-Umlaute-unter-Ubuntu.html" rel="alternate" title="Deutschweizer Tastatur / Umlaute unter Ubuntu" />
        <author>
            <name>Junya Keller</name>
                    </author>
    
        <published>2007-11-15T22:27:40Z</published>
        <updated>2008-05-01T19:50:00Z</updated>
        <wfw:comment>http://blog.h2o.ch/wfwcomment.php?cid=10</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.h2o.ch/rss.php?version=atom1.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    
            <category scheme="http://blog.h2o.ch/categories/2-Linux" label="Linux" term="Linux" />
    
        <id>http://blog.h2o.ch/archives/10-guid.html</id>
        <title type="html">Deutschweizer Tastatur / Umlaute unter Ubuntu</title>
        <content type="xhtml" xml:base="http://blog.h2o.ch/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <br />
<p>Falls nachtraeglich eine Deutschweizer Tastatur angeschlossen wird, kann man die Konfiguration des X-servers mit &quot;sudo apt-get install xserver-xorg&quot; erledigen oder wie folgt manuell vornehmen:</p><ul><li><p>Konfiguration des X-Servers unter Section &quot;InputDevice&quot; ergaenzen / modifizieren</p></li></ul><pre>$ sudo vi /etc/X11/xorg.conf</pre><pre>Option &quot;XkbLayout&quot; &quot;ch&quot;<br />Option &quot;XkbVariant&quot; &quot;de&quot;</pre><ul><li><p>Relogon oder mit Ctrl-Alt-Backspace X &quot;abschiessen&quot;</p><pre /></li></ul><p /><hr width="100%" size="2" /><p>Falls man Umlaute auf einer US-Tastatur eingeben will, kann man die Compose-Funktion nutzen. Umlaute koennen durch rwin-shift-&quot; und durch druecken des gewuenschten Buchstabens eingegeben werden:</p><ul><li>Konfiguration des X-Servers unter Section &quot;InputDevice&quot; ergaenzen</li></ul><pre>$ sudo vi /etc/X11/xorg.conf</pre><pre>Option &quot;XkbOptions&quot; &quot;compose:rwin&quot;</pre><ul><li><p>Relogon oder mit Ctrl-Alt-Backspace X &quot;abschiessen&quot;</p></li></ul><pre><p>Eine andere interessante Moeglichkeit habe ich hier gefunden: <a href="http://www.messen-und-deuten.de/us-de.html">Aenderung der Tastaturbelegung unter X11R7</a></p><pre /></pre> 
            </div>
        </content>
        
    </entry>

</feed>
