Monday, May 4. 2009
Folgendes im Terminal ausfuehren und anschliessend Firefox neu starten sudo apt-get update sudo apt-get install flashplugin-installer sun-java6-jre sudo ln -sf /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjavaplugin_jni.so /etc/alternatives/mozilla-javaplugin.so sudo ln -sf /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjavaplugin_jni.so /etc/alternatives/firefox-javaplugin.so sudo ln -sf /etc/alternatives/mozilla-javaplugin.so /usr/lib/mozilla/libjavaplugin.so sudo ln -sf /usr/lib/jvm/java-6-sun/jre/bin/javaws /etc/alternatives/ sudo ln -sf /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/ Besten Dank fuer den Tipp von Daniele auf: come-installare-java-a-64-bit-su-ubuntujaunty
Friday, March 13. 2009
Wifi mit Socket Rugged CF 10/100 Card Treiber entfernen: ipkg remove kernel-module-pcnet-cs Treiber installieren: kernel-module-axnet-cs für Kernel 2.6.24 Wireless Konfig vi /etc/network/interfaces iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant.conf wpa-driver hostap vi /etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid="meine-ssid" proto=WPA2 pairwise=TKIP psk="mein-passwort" priority=1 GPRS Config ipkg update; ipkg install gpe-bluetooth vi /etc/bluetooth/rfcomm.conf (nokia telefon hinzufügen) rfcomm0 { # Automatically bind the device at startup bind yes;
# Bluetooth address of the device device nokias-bt-adresse;
# RFCOMM channel for the connection channel 1;
# Description of the connection comment "nokia"; } diverse pppd-konfigurationsdateien und gprs-startscript speichern nokia mit zaurus paaren: passkey-agent --default mein-PIN anschliessend im gui-tool beide geräte paaren und dabei mein-PIN eingeben. GPRS mit startgprs_nokia.sh starten, Verbindung beenden mit "killall pppd". USB Serial Adapter Treiber installieren: kernel-module-mct-u232 für Kernel 2.6.24 echo >/etc/modules/ohci-hcd "ohci-hcd"; update-modules vi /etc/default/usb-gadget USB_MODE="host-mode" Reboot & z.B. minicom installieren und /dev/ttyUSB0 nutzen Socket Cordless Serial Adapter vi /etc/bluetooth/rfcomm.conf (serial adapter hinzufügen) rfcomm1 { # Automatically bind the device at startup bind no;
# Bluetooth address of the device device serial-adapters-bt-adresse;
# RFCOMM channel for the connection channel 1;
# Description of the connection comment "socket cordless serial adapter"; } z.B. minicom installieren und /dev/ttyUSB0 nutzen
1a) Kompilierumgebung erstellen #!/bin/sh # file: /data/OE-install # http://www.angstrom-distribution.org/building-angstrom # http://developer.berlios.de/projects/bitbake/ # http://oe.linuxtogo.org/snapshots/ mkdir -p /data/OE/build cd /data/OE wget http://download.berlios.de/bitbake/bitbake-1.8.10.tar.gz wget http://wiki.openembedded.net/snapshots/OE.mtn.bz2 tar zxf /data/OE/bitbake-1.8.10.tar.gz bunzip2 /data/OE/OE.mtn.bz2 mtn --db=/data/OE/OE.mtn pull monotone.openembedded.org org.openembedded.{stable,dev} mtn --db=/data/OE/OE.mtn checkout --branch=org.openembedded.stable 1b) Kompilierumgebung aktualisieren #!/bin/sh # file: /data/OE-update # update oe metadata cd /data/OE/org.openembedded.stable mtn pull monotone.openembedded.org org.openembedded.{stable,dev} mtn update 2) Environment vorbereiten #!/bin/sh # file: /data/OE-setupenv BBPATH=/data/OE/:/data/OE/build/:/data/OE/org.openembedded.stable/ PKGDIR=/data/OE/build/ DL_DIR=/data/OE/downloads echo Setting up dev env for ??ngstr??m if [ -z ${ORG_PATH} ] then ORG_PATH=${PATH} export ORG_PATH fi if [ -z ${ORG_LD_LIBRARY_PATH} ] then ORG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH} export ORG_LD_LIBRARY_PATH fi PATH=/data/OE/bitbake-1.8.10/bin:${ORG_PATH} cd $PKGDIR LD_LIBRARY_PATH= export PATH LD_LIBRARY_PATH BBPATH export LANG=C echo "Altered environment for OE Development" 3) Konfiguration # file: /data/OE/org.openembedded.stable/conf/local.conf # # OpenEmbedded local configuration file (sample) # # Please visit the Wiki at http://openembedded.org/ for more info. # # # Be SURE to read this file in its entirety and the GettingStarted page on the # wiki before proceeding. # # Once you have done that, remove the line at the end of this # file and build away. # # WARNING: lines starting with a space (' ') will result in parse failures. # Remove '# ' from commented lines to activate them. # # NOTE: Do NOT use $HOME in your paths, BitBake does NOT expand ~ for you. If you # must have paths relative to your homedir use ${HOME} (note the {}'s there # you MUST have them for the variable expansion to be done by BitBake). Your # paths should all be absolute paths (They should all start with a / after # expansion. Stuff like starting with ${HOME} or ${TOPDIR} is ok).
# Use this to specify where BitBake should place the downloaded sources into DL_DIR = "/data/OE/sources"
# Delete the line below. Then specify which .bb files to consider for # your build. Typically this will be something like BBFILES = "/path/to/openembedded/packages/*/.bb" BBFILES := "/data/OE/org.openembedded.stable/packages/*/.bb"
# Use the BBMASK below to instruct BitBake to NOT consider some .bb files # This is a regulary expression, so be sure to get your parenthesis balanced. BBMASK = ""
# Uncomment this if you want to use a prebuilt toolchain. You will need to # provide packages for toolchain and additional libraries yourself. You also # have to set PATH in your environment to make sure BitBake finds additional binaries. # Note: You will definitely need to say: # ASSUME_PROVIDED += "virtual/arm-linux-gcc-2.95" # to build any of two Linux 2.4 Embedix kernels, # i.e. openzaurus-sa-2.4.18 and openzaurus-pxa-2.4.18 - and don't forget # to rename the binaries as instructed in the Wiki. # ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc virtual/libc"
# Select between multiple alternative providers, if more than one is eligible. PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie" PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross" PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
# Uncomment this to specify where BitBake should create its temporary files. # Note that a full build of everything in OpenEmbedded will take GigaBytes of hard # disk space, so make sure to free enough space. The default TMPDIR is # <build directory>/tmp # Don't use symlinks in in the path to avoid problems # TMPDIR = /usr/local/projects/oetmp
# Uncomment this to specify a machine to build for. See the conf directory # for machines currently known to OpenEmbedded. This will automatically take care # of TARGET_ARCH MACHINE = "akita"
# Use this to specify the target architecture. Note that this is only # needed when building for a machine not known to OpenEmbedded. Better use # the MACHINE attribute (see above) # TARGET_ARCH = "arm"
# Use this to specify the target operating system. The default is "linux", # for a normal linux system with glibc. Set this to "linux-uclibc" if you want # to build a uclibc based system. # Normally the DISTRO of your choosing will take care of this # TARGET_OS = "linux" # TARGET_OS = "linux-uclibc"
# Uncomment this to select a distribution policy. See the conf directory # for distributions currently known to OpenEmbedded. # Although it no longer contain version number in the (file-)name # openzaurus-unstable is a so called "versioned" distro, i.e. they # explicitely select specific versions of various packages. # Stay away from unversioned distros unless you really know what you are doing #DISTRO = "angstrom-2007.1" DISTRO = "angstrom-2007.12-r18"
# So far, angstrom.conf sets ENABLE_BINARY_LOCALE_GENERATION # to generate binary locale packages at build time using qemu-native and # thereby guarantee i18n support on all devices. If your build breaks on # qemu-native consider disabling ENABLE_BINARY_LOCALE_GENERATION (note that # this breaks i18n on devices with less than 128MB RAM) or installing # a working third-party qemu (e.g. provided by your distribution) and # adding qemu-native to ASSUME_PROVIDED. Caveat emptor, since third-party # qemus lack patches needed to work with various OE targets. # ENABLE_BINARY_LOCALE_GENERATION = "0" # ASSUME_PROVIDED += "qemu-native"
# If ENABLE_BINARY_LOCALE_GENERATION is set to "1", you can limit locales # generated to the list provided by GLIBC_GENERATE_LOCALES. This is huge # time-savior for developmental builds. Format: list of locale.encoding pairs # with spaces as separators. # GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 de_DE.UTF-8"
# Uncomment this to select a particular major kernel version if the MACHINE setting # supports more than one major kernel version. Currently this is suported by the # following MACHINE types: poodle, tosa and simpad. # MACHINE_KERNEL_VERSION = "2.6"
# Uncomment one of these to build packages during the build process. # This is done automatically if you set DISTRO (see above) # INHERIT = "package_ipk" # INHERIT = "package_tar"
# Add the required image file system types below. Valid are # jffs2, tar(.gz|bz2), cpio(.gz), cramfs, ext2(.gz), ext3(.gz) # squashfs, squashfs-lzma IMAGE_FSTYPES = "jffs2 tar.gz"
# Uncomment this to disable the parse cache (not recommended). # CACHE = ""
# Uncomment this if you want BitBake to emit debugging output # BBDEBUG = "yes"
# Uncomment these two if you want BitBake to build images useful for debugging. # Note that INHIBIT_PACKAGE_STRIP needs a package format to be defined. # Also note that OE now produces -dbg packages which contain debugging symbols. # DEBUG_BUILD = "1" # INHIBIT_PACKAGE_STRIP = "1"
# Uncomment these to build a package such that you can use gprof to profile it. # NOTE: This will only work with 'linux' targets, not # 'linux-uclibc', as uClibc doesn't provide the necessary # object files. Also, don't build glibc itself with these # flags, or it'll fail to build. # # PROFILE_OPTIMIZATION = "-pg" # SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}" # LDFLAGS =+ "-pg"
# Uncomment this to enable parallel make. # This allows make to spawn mutliple processes to take advantage of multiple # processors. Useful on SMP machines. This may break some packages - we're # in the process of marking these so let us know if you find any. # PARALLEL_MAKE = "-j 4"
# Uncomment this if you want BitBake to emit the log if a build fails. BBINCLUDELOGS = "yes"
# Specifies a location to search for pre-generated tarballs when fetching # a cvs:// URI. Outcomment this, if you always want to pull directly from CVS. #CVS_TARBALL_STASH = ""
# EDIT THIS FILE and then remove the line below before using! #REMOVE_THIS_LINE:="${@bb.fatal('Read the comments in your conf/local.conf')}" 4) axnet-Treiber patchen cd /data/OE/org.openembedded.stable/packages/linux/linux-rp-2.6.24/ wget http://blog.h2o.ch/axnet_cs.patch vi /data/OE/org.openembedded.stable/packages/linux/linux-rp_2.6.24.bb (zeile hinzufügen) "file://axnet_cs.patch;patch=1;status=hack " 5) Kompilieren #!/bin/sh # file: /data/OE-build source /OE-setupenv cd /data/OE/org.openembedded.stable mtn pull ; mtn update # bitbake x11-image cd /data/OE/org.openembedded.stable/tmp/deploy/glibc/images/akita/ #cd /data/OE/org.openembedded.stable/tmp/deploy/glibc/ipk/akita/kernel-module-axnet-cs_2.6.24-r9_akita.ipk
Friday, August 22. 2008
Dateien sicher löschen
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 <Datei>
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 <Pfad> Unter Debian/Ubuntu sind srm und sfill im Paket secure-delete zu finden.
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.
Daten auf Festplatten sicher entsorgen / löschen
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.
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.
Wer die Festplatte weiterverwenden und nur löschen will, sollte die Festplatte mit einem geeigneten Programm überschreiben, z.B. mit DBAN [3].
Quellen: [1] http://www.nber.org/sys-admin/overwritten-data-guttman.html [2] http://www.actionfront.com/whitepaper/Drive-Independent%20Data%20Recovery%20Ver14Alrs.pdf [3] http://www.dban.org/
Wednesday, August 13. 2008
Die Parameter muessen gesetzt werden, nachdem das IPv6-Modul geladen ist, aber bevor das Interface gestartet wird. Dies kann man so bewerkstelligen: - In /etc/network/interfaces :
iface eth0 inet6 static pre-up modprobe ipv6 up echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf (...)
Sunday, July 6. 2008
Eine knappe Anleitung, wie man auf alix2-Boards von PC Engines natives IPv6 (also nicht getunnelt) über PPPoE zum laufen bringt:
- Squashfs-Image unter Ubuntu erstellen
$ sudo apt-get install svn libncurses5-dev zlib1g-dev bison flex autoconf $ mkdir kamikaze $ cd kamikaze/ $ svn co https://svn.openwrt.org/openwrt/trunk/ $ make menuconfig Target System: x86 / Target Profile: PCEngines Alix / Kernel partition size: 12 / Filsystem part size: <z.B. 224MB bei einer 256MB-Karte> Base package: qos-scripts, wireless-tools / Network: hostapd-mini, hostapd-utils, ip, iw, wpa-supplicant, wpa-cli IPv6: ip6tables / Wireless driver: kmod-madwifi $ ./scripts/feeds update -a $ make package/symlinks $ make menuconfig Administration - webif: webif, webif-lang-de, webif-theme-xwrt $ make - Image auf CF schreiben. Achtung: Device darf nicht gemountet sein!
$ sudo dd if=bin/openwrt-x86-squashfs.image of=/dev/<Device der CF-Karte> bs=16k - Karte in alix2c0 einstecken, Serielles Kabel anschliessen, minicom mit 38400 Baud starten und alix2c0 booten
- Passwort setzen mit passwd
- PPPoE fuer IPv6 konfigurieren
# vi /etc/ppp/options
+ipv6 #debug logfile /var/log/ppp.log # vi /etc/init.d/network boot() { echo "0" >/proc/sys/net/ipv6/conf/all/autoconf echo "0" >/proc/sys/net/ipv6/conf/default/autoconf echo "0" >/proc/sys/net/ipv6/conf/all/accept_ra# vi /etc/config/network config interface wan option ifname eth1 option proto pppoe option username '<user>' option password '<pass>' option ppp_redial 'persist' config interface lan option ip6addr <IPv6-Adresse/Netzmaske> - IPv6-Forwarding aktivieren
# echo 1 >/proc/sys/net/ipv6/conf/all/forwarding # vi /etc/sysctrl.conf net.ipv6.conf.all.forwarding=1 # /etc/init.d/network restart # /etc/init.d/firewall restart - radvd installieren und konfigurieren (IPv6-Adresse des Gateways im LAN announcen)
# opkg update # opkg install radvd
# vi /etc/config/radvd config interface #option ignore 1 config prefix option prefix '<IPv6-Netz>' #option ignore 1 # /etc/init.d/radvd enable # vi /etc/init.d/firewall6 #!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org
## Please make changes in /etc/firewall6.user START=45
start() { echo "Starting firewall (IPv6)..." [ -f /etc/firewall6.user ] && . /etc/firewall6.user
ip6tables -P INPUT DROP ip6tables -P FORWARD DROP
# --> Firewall ip6tables -A INPUT -i ! ${UPLINK} -j ACCEPT ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT ip6tables -A INPUT -p icmpv6 -j ACCEPT ip6tables -A INPUT -p tcp --dport 80 -j ACCEPT ip6tables -A INPUT -p tcp --dport 22 -j ACCEPT ip6tables -A INPUT -p tcp -j REJECT --reject-with tcp-reset ip6tables -A INPUT -p udp -j REJECT --reject-with icmp6-port-unreachable
# --> LAN ip6tables -A FORWARD -i ! ${UPLINK} -j ACCEPT ip6tables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT ip6tables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu ip6tables -A INPUT -p icmpv6 -j ACCEPT for x in ${TCPSERVICES}; do ip6tables -A FORWARD -p tcp --dport ${x} -j ACCEPT done for x in ${UDPSERVICES};do ip6tables -A FORWARD -p udp --dport ${x} -j ACCEPT done ip6tables -A FORWARD -p tcp -j REJECT --reject-with tcp-reset ip6tables -A FORWARD -p udp -j REJECT --reject-with icmp6-port-unreachable #explicitly disable ECN if [ -e /proc/sys/net/ipv6/tcp_ecn ]; then echo 0 > /proc/sys/net/ipv6/tcp_ecn fi }
stop() { echo "Stopping firewalll (IPv6)..." ip6tables -F INPUT ip6tables -P INPUT ACCEPT ip6tables -F FORWARD ip6tables -P FORWARD ACCEPT } # vi /etc/firewall6.user #wan interface UPLINK="ppp0"
#allowed services from wan to lan TCPSERVICES="22 80" UDPSERVICES="" # /etc/init.d/firewall6 enable
Tuesday, June 3. 2008
Wie man unter Debian/Ubuntu die Zeit mit NTP-Server synchronisiert: # apt-get install ntp ntpdate # /etc/init.d/ntp stop # ntpdate ntp.metas.ch # /etc/init.d/ntp start
Thursday, May 1. 2008
Wie man unter Ubuntu seine SATA-Harddisks ueberwachen kann und E-Mails erhaelt, wenn eine HD ersetzt werden sollte: $ sudo apt-get install smartmontools mailx
- Smartmontools aktivieren ("#" entfernen)
$ sudo vi /etc/default/smartmontools start_smartd=yes - Devicescan deaktivieren ("#" hinzufuegen) und jedes SATA-Device einzeln eintragen (zusaetzlich "-M test" fuer E-Mail-Test)
$ sudo vi /etc/smartd.conf #DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner /dev/sda -a -d sat -m me@example.com -M diminishing -M test /dev/sdb -a -d sat -m me@example.com -M diminishing /dev/sdc -a -d sat -m me@example.com -M diminishing /dev/sdd -a -d sat -m me@example.com -M diminishing - Exim fuer E-Mail-Versand an externe Hosts aktivieren
$ sudo dpkg-reconfigure exim4-config - "Internet Site" auswaehlen
$ sudo /etc/init.d/smartmontools start Falls der Dienst nicht starten sollte, /var/log/daemon.log konsultieren. Bei Debian Etch muss man fuer SATA "-d ata" statt "-d sat" verwenden. - Testen, ob Mailversand erfolgreich
$ sudo tail /var/log/exim4/mainlog - Falls SoftRAID genutzt wird, sollten Fehlermeldungen von mdadm an die selbe Adresse versendet werden
$ sudo vi /etc/mdadm/mdadm.conf #MAILADDR root MAILADDR me@example.com $ sudo /etc/init.d/mdadm restart
Saturday, March 8. 2008
Eigentlich wollte ich Audio 8 DJ mit xwax unter Ubuntu/Studiobuntu nutzen, aber das hat bis jetzt noch nicht funktioniert. Zumindest laesst sich Audio 8 DJ wie folgt ansteuern: - Sprachausgabe "Front Left, Front Right" auf Channel A und Channel B
speaker-test -c2 -D plughw:DJ,0,0 -twav -l 3 speaker-test -c2 -D plughw:DJ,0,1 -twav -l 3 - Abspielen einer WAV-Datei auf Channel A und Channel B
cd /tmp wget "http://www.linksplace.com/wavsounds/madcow.wav" aplay -v -c 2 -D plughw:DJ,0,0 madcow.wav aplay -v -c 2 -D plughw:DJ,0,1 madcow.wav
- 10 Sekunden aufnehmen und abspielen auf Channel A und Channel B
cd /tmp echo "recording channel a..." arecord -r 48000 -f cd -t wav -D plughw:DJ,0,0 -d 10 chan1.wav echo "playing channel a..." aplay -c 2 -D plughw:DJ,0,0 chan1.wav echo "recording channel b..." arecord -r 48000 -f cd -t wav -D plughw:DJ,0,1 -d 10 chan2.wav echo "playing channel b..." aplay -c 2 -D plughw:DJ,0,1 chan2.wav echo "done"
Thursday, November 15. 2007
Falls nachtraeglich eine Deutschweizer Tastatur angeschlossen wird, kann man die Konfiguration des X-servers mit "sudo apt-get install xserver-xorg" erledigen oder wie folgt manuell vornehmen: $ sudo vi /etc/X11/xorg.conf Option "XkbLayout" "ch" Option "XkbVariant" "de"
Falls man Umlaute auf einer US-Tastatur eingeben will, kann man die Compose-Funktion nutzen. Umlaute koennen durch rwin-shift-" und durch druecken des gewuenschten Buchstabens eingegeben werden: - Konfiguration des X-Servers unter Section "InputDevice" ergaenzen
$ sudo vi /etc/X11/xorg.conf Option "XkbOptions" "compose:rwin" Eine andere interessante Moeglichkeit habe ich hier gefunden: Aenderung der Tastaturbelegung unter X11R7
Sunday, November 11. 2007
- Neuestes Angstrom-x11-image-*.tgz und zImage-*.bin herunterladen unter Unstable Images Akita
- Angstrom-x11-image-*.tgz entpacken, initrd.bin und updater.sh auf CF oder SD kopieren
- zImage-*.bin in zImage.bin umbenennen und ebenfalls auf CF oder SD kopieren
- Firmware installieren gemaess C1000-Install-Anleitung
- ipkg update; ipkg install bzip2 nmap aircrack-ng pidgin tcpdump links-x11 minimo sylpheed-claws notecase minisip gpdf
Tuesday, September 4. 2007
Die Video-Qualitaet ist hervorragend, auch bei wenig Umgebungslicht. Das integrierte Mirofon funktioniert bei mir seit Kernel 2.6.23.12.
mkdir linux-uvc; cd linux-uvc; svn checkout http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk cd trunk; make; sudo make install - Webcam anschliessen und mit "dmesg" testen, ob Treiber geladen:
sb 1-7.1: USB disconnect, address 10 usb 1-7.1: new high speed USB device using ehci_hcd and address 11 usb 1-7.1: configuration #1 chosen from 1 choice uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990) usbcore: registered new interface driver uvcvideo USB Video Class driver (v0.1.0) - Ekiga undV4L2- Plugin installieren:
sudo apt-get install ekiga libpt-plugins-v4l2 - Ekiga starten, als Video Driver "V4L2" waehlen, fertig!
- Bei Problemen zuerst luvcview herunterladen und kompilieren. Anschliessend mit "luvcview -d /dev/video0" (oder /dev/video[1-9]) testen, ob die Webcam ueberhaupt funktioniert.
Thursday, August 30. 2007
Dokumentation OpenWRT Konfiguration (Kamikaze) Minimale Netzwerk-Konfiguration - Neueste Firmware herunterladen von X-Wrt (mit Web-Interface) oder OpenWrt (ohne Web-Interface)
Linksys WRT54GSv1: openwrt-wrt54gs-2.4-squashfs.bin, Asus WL-500gP: openwrt-brcm-2.4-squashfs.trx - Image flashen
- telnet 192.168.1.1
- passwd (root-passwort setzen fuer ssh-zugriff)
- vi /etc/config/network
config interface lan option ipaddr <lan ip> option netmask <netmask> option dns "<nameserver 1> <nameserver 2>" Mit PPPoE: config interface wan option ifname eth1 option proto pppoe option username '<user>' option password '<pass>' option defaultroute 1 option ppp_redial persist Mit statischer IP: config interface wan option proto static option ipaddr <wan ip> option netmask <netmask> option gateway <gateway> Wifi-Konfiguration config wifi-device wl0 option disabled 0 config wifi-iface option ssid <ssid> option encryption psk2 option key <preshared key> 1-1-NAT einrichten (falls mehrere fixe IP's verfuegbar) Achtung: In neueren Versionen muss die Datei unter /etc/config/firewall aktiviert werden ### ip-addressen hinzufuegen fuer 1-1-NAT ifconfig $(uci get network.wan.ifname):0 add <wan-ip> netmask <netmask>
### 1-1-NAT # postrouting_rule genommen, da posrouting_wan nicht geht # /etc/init.d/firewall: [ -z "$WAN" ] || iptables -t nat -A POSTROUTING -i "$WAN" -j postrouting_wan # iptables -A POSTROUTING mit Option -i --> Fehler
O2OWAN=<wan-ip> O2OLAN=<lan-ip> iptables -t nat -A prerouting_rule -d $O2OWAN/32 -j DNAT --to $O2OLAN iptables -t nat -A postrouting_rule -s $O2OLAN -j SNAT --to $O2OWAN iptables -A forwarding_rule -d $O2OLAN -j ACCEPT - In neueren Versionen postrouting_rule zuerst verarbeiten
vi /lib/firewall/uci_firewall.sh # $IPTABLES -A POSTROUTING -t nat -j postrouting_rule $IPTABLES -I POSTROUTING 1 -t nat -j postrouting_rule
Optionale Pakete installieren Achtung: In neueren Versionen "opkg" statt "ipkg" verwenden.
- ipkg update
- ipkg install ntpclient tcpdump etherwake
QoS einrichten- ipkg install qos-scripts
- vi /etc/config/qos.conf
- Fuer option download/upload sollte man beim Einsatz von PPPoE (z.B. ADSL) die Brottodatenrate in kbit/s durch 9 mal 7 verwenden (z.B. 6400/9*7=4978). Die maximal erreichbare Datenrate per FTP liegt bei ca. 93% des errechneten Wertes.
- reboot
So kann man die Hotkeys eines "Microsoft Wireless Keyboard 2000" unter Debian verwenden: - sudo apt-get install hotkeys libxosd2
- sudo vi /usr/share/hotkeys/mswk2k.def
<?xml version="1.0"?> <definition> <config model="Microsoft Wireless Keyboard 2000"> <PrevTrack keycode="234"/> <NextTrack keycode="233"/> <Play keycode="162"/> <VolDown keycode="174" adj="1"/> <Mute keycode="160"/> <VolUp keycode="176" adj="1"/> <WebBrowser keycode="130"/> <Search keycode="122"/> <Email keycode="236"/> <Calculator keycode="161"/> </config> <contributor> <name>Junya Keller</name> </contributor> </definition> - sudo vi /etc/hotkeys.conf
Kbd=mswk2k PrevTrack=xmms --rew NextTrack=xmms --fwd
Play=xmms --play-pause WebBrowser=iceweasel Search=iceweasel http://www.google.com/ncr
Email=icedove Calculator=qalculate - hotkeys starten --> fertig!
- Man kann es auch automatisch starten: vi ~/.config/autostart/Hotkeys.desktop
[Desktop Entry] Encoding=UTF-8 Version=0.9.4 Type=Application Name=Hotkeys Comment= Exec=hotkeys StartupNotify=false Terminal=false Hidden=false
Achtung! Sicherheitsproblem: Die Hotkeys koennen auch verwendet werden, wenn der Bildschirm gelockt ist.
Friday, June 8. 2007
~/.vimrc erstellen: set t_ku=^[OA set t_kd=^[OB set t_kr=^[OC set t_kl=^[OD ^[ ist zu ersetzen mit [ctrl-v] [esc]
|
 |
 |
 |
|