<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>carrier-lost.org</title>
	<atom:link href="http://www.carrier-lost.org/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.carrier-lost.org/blog</link>
	<description>A digital native blogging about security, technology and life</description>
	<lastBuildDate>Fri, 19 Aug 2011 16:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Ubuntu Server 11.04 LTS, snd_intel, Realtek ALC892 und ALSA</title>
		<link>http://www.carrier-lost.org/blog/ubuntu-server-11-04-lts-snd_intel-realtek-alc892-und-alsa</link>
		<comments>http://www.carrier-lost.org/blog/ubuntu-server-11-04-lts-snd_intel-realtek-alc892-und-alsa#comments</comments>
		<pubDate>Fri, 19 Aug 2011 16:02:57 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[alc892]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[snd_intel]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=463</guid>
		<description><![CDATA[Vor ein paar Tagen habe ich Mainboard und CPU beim media pc getauscht. Das neue Board ist ein DH67BL von Intel und hat einen anderen Soundprozessor verbaut. Leider wird dieser vom aktuellen Paket im Repo nicht unterstützt. Erkannt wird er als: cat /proc/asound/card0/codec#0  &#124; grep Codec Codec: Realtek ALC892 &#160; Hier bzw. hier wird eine [...]]]></description>
			<content:encoded><![CDATA[<p>Vor ein paar Tagen habe ich Mainboard und CPU beim media pc getauscht. Das neue Board ist ein DH67BL von Intel und hat einen anderen Soundprozessor verbaut. Leider wird dieser vom aktuellen Paket im Repo nicht unterstützt.</p>
<p>Erkannt wird er als:</p>
<blockquote><p>cat /proc/asound/card0/codec#0  | grep Codec<br />
Codec: <strong>Realtek ALC892</strong></p></blockquote>
<p>&nbsp;</p>
<p><a title="Hier" href="http://black-pixel.net/alc892realtek-id-892-on-mint-linuxubuntu.html">Hier</a> bzw. <a href="http://www.spacefish.biz/blog/2010/06/alc892-b-z-w-realtek-id-892-unter-ubuntu-10-04/">hier</a><strong></strong> wird eine Lösung beschrieben.</p>
<p>Kurzfassung:</p>
<blockquote><p>wget http://files.spacefish.biz/LinuxPkg-5.15rc1.tar.bz2<br />
tar xvfj LinuxPkg-5.15rc1.tar.bz2<br />
cd realtek-linux-audiopack-5.15</p></blockquote>
<p>Bei Nicht-Ubuntu Systemen soll es wohl reichen, das install skript auszuführen, laut Readme.txt ist die Vorgehensweise etwas anders:</p>
<blockquote><p>tar xvjf alsa-driver-1.0.23-5.15rc1.tar.bz2<br />
cd alsa-driver-1.0.23<br />
./configure &#8211;with-cards=hda-intel<br />
make<br />
sudo make install</p></blockquote>
<p>Theoretisch kann man auch das install skript ausführen und den Fehler am Ende ignorieren, da es genau das selbe macht. Nach einem Neustart noch im alsamixer alle Kanäle &#8220;unmuten&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/ubuntu-server-11-04-lts-snd_intel-realtek-alc892-und-alsa/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schlankes XBMC unter Ubuntu Server</title>
		<link>http://www.carrier-lost.org/blog/schlankes-xbmc-unter-ubuntu-server</link>
		<comments>http://www.carrier-lost.org/blog/schlankes-xbmc-unter-ubuntu-server#comments</comments>
		<pubDate>Tue, 31 May 2011 15:44:32 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=437</guid>
		<description><![CDATA[Zur Installation von Ubuntu gibt es im Netz genügend Quellen und Anleitungen, die jeder an seine eigenen Bedürfnisse (RAID, LVM, Verschlüsselung) anpassen kann. Aus diesem Grund setze ich eine frische Installation voraus. Bei der Installation wurde der Nutzer xbmc angelegt. 1. Netzwerk Da in diesem Setup auf die Installation einer grafischen Oberfläche wie Gnome oder [...]]]></description>
			<content:encoded><![CDATA[<p>Zur Installation von Ubuntu gibt es im Netz genügend Quellen und Anleitungen, die jeder an seine eigenen Bedürfnisse (RAID, LVM, Verschlüsselung) anpassen kann. Aus diesem Grund setze ich eine frische Installation voraus. Bei der Installation wurde der Nutzer xbmc angelegt.</p>
<h4>1. Netzwerk</h4>
<p>Da in diesem Setup auf die Installation einer grafischen Oberfläche wie Gnome oder KDE verzichtet wird, muss die Konfiguration über die Shell und nicht z.B. den Network Manager erfolgen. Im Wiki findet man eine passende <a href="http://wiki.ubuntuusers.de/wlan/wpa_supplicant">Anleitung</a> für die Einrichtung einer WLAN Verbindung mittels wpa_supplicant. Je nach WLAN Chip, kann es nötig sein, Kernelmodule zu laden bzw. zu <a href="http://www.carrier-lost.org/blog/hama-wlan-usb-stick-300mbps-on-ubuntu-ralink-and-rt2800usb">blacklisten</a>.</p>
<p>Als Beispiel hier die Konfiguration (<em>/etc/network/interfaces</em>) für ein WLAN mit WPA2 Verschlüsselung und fester IP:</p>
<blockquote><p>auto lo<br />
iface lo inet loopback auto wlan0</p>
<p>iface wlan0 inet static<br />
address 192.168.1.2<br />
gateway 192.168.1.1<br />
dns-nameservers 8.8.8.8<br />
netmask 255.255.255.0<br />
wpa-driver wext<br />
wpa-ssid WLAN<br />
wpa-ap-scan 1<br />
wpa-proto RSN<br />
wpa-pairwise CCMP TKIP<br />
wpa-group CCMP TKIP<br />
wpa-key-mgmt WPA-PSK<br />
wpa-psk _HIER_WPA2_KEY_EINTRAGEN_</p></blockquote>
<p>&nbsp;</p>
<h4>2. Autologin</h4>
<p>Als nächstes wird das automatische Anmelden eingerichtet. Dazu wird rungetty installiert</p>
<blockquote><p>aptitude install rungetty</p></blockquote>
<p>und anschließend in der Datei <em>/etc/init/tty1.conf,</em> die Zeile</p>
<blockquote><p>exec /sbin/getty 38400 tty1</p></blockquote>
<p>durch die folgende ersetzt</p>
<blockquote><p>exec /sbin/rungetty &#8211;autologin BENUTZERNAME tty1</p></blockquote>
<p>Dabei natürlich BENUTZERNAME durch euren Benutzer ersetzen. In diesem Kontext also mit xbmc.</p>
<p>&nbsp;</p>
<h4>3. Xorg &amp; nvidia</h4>
<p>Installation des Xservers und der proprietären Nvidia Grafiktreiber</p>
<blockquote><p>aptitude install xorg aptitude install nvidia-current</p></blockquote>
<p>Evtl. reicht anschließend der Aufruf von</p>
<blockquote><p>nvidia-xconfig</p></blockquote>
<p>um eine geeignete Grundkonfiguration für den Xserver zu erstellen.</p>
<p>Hier meine <em>/etc/X11/xorg.conf</em> für eine Geforce GT220 und einen LG 37LH4000 LCD-TV.</p>
<blockquote><p>Section &#8220;ServerLayout&#8221;<br />
Identifier     &#8220;Prop. Nvidia&#8221;<br />
Screen      0  &#8220;Screen&#8221; 0 0<br />
EndSection</p>
<p>Section &#8220;ServerFlags&#8221;<br />
Option      &#8220;Xinerama&#8221; &#8220;off&#8221;<br />
EndSection</p>
<p>Section &#8220;Module&#8221;<br />
Load    &#8220;glx&#8221;<br />
EndSection</p>
<p>Section &#8220;Monitor&#8221;<br />
Identifier  &#8220;LG LCD&#8221;<br />
Option      &#8220;VendorName&#8221; &#8220;LG&#8221;<br />
Option      &#8220;ModelName&#8221; &#8220;37LH4000&#8243;<br />
Option      &#8220;DPMS&#8221; &#8220;true&#8221;<br />
Option      &#8220;PreferredMode&#8221; &#8220;1920&#215;1080&#8243;<br />
Option      &#8220;Position&#8221; &#8220;0 0&#8243;<br />
Option      &#8220;Rotate&#8221; &#8220;normal&#8221;<br />
Option      &#8220;Disable&#8221; &#8220;false&#8221;<br />
Option      &#8220;TargetRefresh&#8221; &#8220;50&#8243;<br />
Option      &#8220;DPI&#8221; &#8220;180 x 180&#8243;<br />
EndSection</p>
<p>Section &#8220;Device&#8221;<br />
Identifier  &#8220;Geforce GT220&#8243;<br />
Driver  &#8220;nvidia&#8221;<br />
Option  &#8220;NoLogo&#8221;                &#8220;true&#8221;<br />
Option  &#8220;DynamicTwinView&#8221;       &#8220;false&#8221;<br />
Option  &#8220;FlatPanelProperties&#8221;   &#8220;Scaling = Native&#8221;<br />
Option  &#8220;ModeValidation&#8221;        &#8220;NoVesaModes, NoXServerModes&#8221;<br />
Option  &#8220;ModeDebug&#8221;             &#8220;true&#8221;<br />
Option  &#8220;HWCursor&#8221;              &#8220;false&#8221;<br />
EndSection</p>
<p>Section &#8220;Screen&#8221;<br />
Identifier &#8220;Screen&#8221;<br />
Device     &#8220;Geforce GT220&#8243;<br />
Monitor    &#8220;LG LCD&#8221;<br />
DefaultDepth     24<br />
SubSection &#8220;Display&#8221;<br />
Depth     24<br />
Modes  &#8220;1920x1080_50&#8243; &#8220;1920x1080_60_0&#8243; &#8220;1920x1080_30&#8243; &#8220;1920x1080_25&#8243; &#8220;1920x1080_24&#8243;  &#8220;1920x1080_50i&#8221; &#8220;1920x1080_60i&#8221;<br />
EndSubSection<br />
EndSection</p>
<p>Section &#8220;DRI&#8221;<br />
Mode         0666<br />
EndSection</p></blockquote>
<p>&nbsp;</p>
<h4>4. Sound</h4>
<p>Wir verwenden zur Tonausgabe ALSA, diese erfolgt über die onboard Soundkarte, genauer: über den optischen Digitalausgang an einen externen Verstärker. Wer den Ton über hdmi ausgeben möchte, findet <a href="http://wiki.xbmc.org/index.php?title=HOW-TO_set_up_HDMI_audio_on_nVidia_GeForce_G210,_GT220,_or_GT240">hier</a> oder <a href="http://wiki.xbmc.org/index.php?title=HOW-TO_set_up_audio_over_HDMI_on_nVidia_GeForce/nForce_controller">hier</a> evtl. Hilfe.</p>
<blockquote><p>aptitude install alsa-base alsa-utils<br />
alsamixer</p></blockquote>
<p>Im Alsamixer alle Spuren am besten ein wenig aufdrehen. Darauf achten, dass unter den Spuren kein MM steht. Das bedeutet, dass die Spur gemutet ist. Zum &#8220;laut schalten&#8221; die Spur auswählen und m drücken. Außerdem muss der Benutzer noch zur audio Gruppe hinzugefügt werden. Dies passiert mit</p>
<blockquote>
<p dir="ltr">usermod -a -G audio xbmc</p>
</blockquote>
<p>&nbsp;</p>
<h4>5. XBMC</h4>
<p>Das xbmc Repository hinzufügen</p>
<blockquote><p>aptitude install python-software-properties<br />
add-apt-repository ppa:team-xbmc/ppa<br />
aptitude update</p></blockquote>
<p>und anschließend die standalone version von xbmc mit allen Abhängigkeiten installieren</p>
<blockquote><p>aptitude install xbmc-standalone</p></blockquote>
<p>Den korrekten Start kann man nun mit</p>
<blockquote><p>xinit xbmc-standalone</p></blockquote>
<p>testen. Damit das xbmc zukünftig automatisch gestartet wird, fügen wir die Zeilen</p>
<blockquote><p>if [ -z "$DISPLAY" ] &amp;&amp; [ $(tty) == /dev/tty1 ]; then<br />
xinit /usr/bin/ck-launch-session /usr/bin/xbmc-standalone<br />
fi</p></blockquote>
<p>in die Datei <em>.bash_profile</em> ein.</p>
<p>&nbsp;</p>
<h4>6. Fernbedienung mit Lirc</h4>
<p>Verwendet wird die HP Media Center Fernbedienung (<a href="http://h20000.www2.hp.com/bc/docs/support/SupportDocument/c00296394/c00297230.jpg">diese hier</a>), welche von <em>lsusb</em> als</p>
<blockquote><p>Bus 004 Device 002: ID 0471:0815 Philips eHome Infrared Receiver</p></blockquote>
<p>erkannt wird. Nach der Installation von lirc mittels</p>
<blockquote><p>aptitude install lirc</p></blockquote>
<p>sollte automatisch der Konfigurationsdialog starten. Für die oben genannte Fernbedienung</p>
<blockquote><p>Windows Media Center Transceivers/Remotes (all)</p></blockquote>
<p>und</p>
<blockquote><p>Microsoft Windows Media Center V2 (usb) : Direct TV Receiver</p></blockquote>
<p>auswählen. Abschließend den lirc daemon noch zum Autostart hinzufügen:</p>
<blockquote><p>update-rc.d lirc enable default</p></blockquote>
<p>Im xbmc sollte keine weitere Konfiguration nötig sein.</p>
<p>&nbsp;</p>
<h4>7. Power Management</h4>
<p>Das udisks Paket mit allen Abhängigkeiten mittels</p>
<blockquote><p>aptitude install udisks</p></blockquote>
<p>installieren und die Datei <em>/var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla </em>mit dem Inhalt</p>
<blockquote><p>[Actions for xbmc user]<br />
Identity=unix-user:xbmc<br />
Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.udisks.*<br />
ResultActive=yes</p></blockquote>
<p>erstellen.</p>
<p>Jetzt nur noch das xbmc selbst einrichten und das war es. Viel Vergnügen!</p>
<p>Quellen:<br />
<a href="http://wiki.ubuntuusers.de/autologin">http://wiki.ubuntuusers.de/autologin</a><br />
<a href="http://wiki.xbmc.org/?title=XBMCbuntu">http://wiki.xbmc.org/?title=XBMCbuntu</a><br />
<a href="http://wiki.xbmc.org/index.php?title=HOW-TO_install_XBMC_for_Linux_on_Ubuntu_with_a_minimal_installation,_an_unofficial_Step-by-Step_Guide">http://wiki.xbmc.org/index.php?title=HOW-TO_install_XBMC_for_Linux_on_Ubuntu_with_a_minimal_installation,_an_unofficial_Step-by-Step_Guide</a><br />
<a href="http://forum.xbmc.org/showthread.php?t=38804">http://forum.xbmc.org/showthread.php?t=38804</a><br />
<a href="http://wiki.ubuntuusers.de/lirc">http://wiki.ubuntuusers.de/lirc</a><br />
<a href="http://wiki.xbmc.org/index.php?title=Ubuntu_Suspend_/_Wake">http://wiki.xbmc.org/index.php?title=Ubuntu_Suspend_/_Wake</a><br />
<a href="http://forum.xbmc.org/showthread.php?t=73236">http://forum.xbmc.org/showthread.php?t=73236</a><br />
<a title="http://www.loggn.de/ubuntu-xbmc-10-0-dharma-pvr-repository/" href="http://www.loggn.de/ubuntu-xbmc-10-0-dharma-pvr-repository/">http://www.loggn.de/ubuntu-xbmc-10-0-dharma-pvr-repository/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/schlankes-xbmc-unter-ubuntu-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH keys nachträglich mit einem Passwort schützen</title>
		<link>http://www.carrier-lost.org/blog/ssh-keys-nachtraglich-mit-einem-passwort-schutzen</link>
		<comments>http://www.carrier-lost.org/blog/ssh-keys-nachtraglich-mit-einem-passwort-schutzen#comments</comments>
		<pubDate>Fri, 11 Mar 2011 11:17:39 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=425</guid>
		<description><![CDATA[Adding a passphrase/password to an existing ssh private key to secure the use of public key authentication]]></description>
			<content:encoded><![CDATA[<p>Hat man sich einmal an die Vorteile von public key Authentifizierung bei einem System gewöhnt, stellt man meist zügig alle anderen Systeme ebenfalls auf diese Art der Authentifizierung um. Möchte man sich von verschiedenen Systemen aus anmelden, muss der eigene private Key auf diese kopiert oder z.B. per USB-Stick mit sich geführt werden. Kommt dieser allerdings in falsche Hände, muss man einen neuen Schlüssel generieren und erneut an alle Systeme verteilen. Zum Schutz des privaten Keys, ist es möglich, diesen mit einem Passwort (besser: Passphrase) zu schützen. Dieses wird benötigt um den Key &#8220;freizuschalten&#8221;, die eigentliche Anmeldung am entfernten System läuft weiterhin über das public key Verfahren und benötigt kein Passwort.  Für eine einfachere Unterscheidung wird das Kennwort zur Freischaltung deshalb auch als &#8220;Passphrase&#8221; und nich als Passwort bezeichnet. Sollte man den privaten Schlüssel bei der Erstellung nicht mit einer Passphrase versehen haben, kann man dies noch nachträglich mit <em>ssh-keygen</em> tun.</p>
<blockquote><p>[pat@earth ~]$ ssh-keygen -p<br />
Enter file in which the key is (/home/pat/.ssh/id_rsa):  <em>[Enter]</em><br />
Key has comment &#8216;/home/pat/.ssh/id_rsa&#8217;<br />
Enter new passphrase (empty for no passphrase):  <em>newSuperSavePassword</em><br />
Enter same passphrase again:  <em>newSuperSavePassword</em><br />
Your identification has been saved with the new passphrase.</p></blockquote>
<p><strong>Quellen:</strong></p>
<p><a href="http://kimmo.suominen.com/docs/ssh/#passwd">http://kimmo.suominen.com/docs/ssh/#passwd</a></p>
<p><a href="http://www.manpagez.com/man/1/ssh-keygen/">http://www.manpagez.com/man/1/ssh-keygen/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/ssh-keys-nachtraglich-mit-einem-passwort-schutzen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPN einrichten mit pptpclient / pptp-linux</title>
		<link>http://www.carrier-lost.org/blog/vpn-einrichten-mit-pptpclient-pptp-linux</link>
		<comments>http://www.carrier-lost.org/blog/vpn-einrichten-mit-pptpclient-pptp-linux#comments</comments>
		<pubDate>Thu, 10 Mar 2011 13:33:20 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Arch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=403</guid>
		<description><![CDATA[Installation und Konfiguration eines virtuellen privaten Netzes (VPN) mit pptpclient/pptp-linux]]></description>
			<content:encoded><![CDATA[<p>Für den Netzzugang über ein <a href="https://secure.wikimedia.org/wikipedia/de/wiki/Virtual_Private_Network">virtuelles privates Netz (VPN)</a> gibt es sicherlich eine ganze Menge guter Gründe, einer davon ist z.B. die Überwindung der geobasierten Sperrung von Webseiten à la Youtube (&#8220;Dieses Video ist in deinem Land nicht verfügbar&#8221;). Auf Amerika beschränkte Angebote wie der Streaming Dienst <a href="http://www.hulu.com/">Hulu</a> sind damit in Deutschland nutzbar. Der Anbieter <a href="http://vpnod.com/">VPN on Demand</a> befindet sich seit einiger Zeit in der Betaphase und ermöglicht einen kostenlosen VPN Zugang. Dazu einfach eine E-Mail mit dem Betreff &#8220;<em>vpnod</em>&#8221; an promotion@vpnod.com schicken und kurze Zeit später gibt es die Zugangsdaten per E-Mail.</p>
<p>Als erstes muss der PPTP-Client installiert werden. Unter Arch Linux mittels</p>
<blockquote><p>[pat@earth ~]$ sudo pacman -S pptpclient</p></blockquote>
<p>unter Debian und Ubuntu heißt das Paket pptp-linux und wird mittels</p>
<blockquote><p>[pat@earth ~]$ sudo aptitude install pptp-linux</p></blockquote>
<p>installiert. Nach der Installation konfigurieren wir eine neue VPN Verbindung, hier im Beispiel von <a href="http://vpnod.com/">VPN on Demand</a>. Dazu legen wir im Verzeichnis <em>/etc/ppp/peers</em> eine Datei für die neue VPN-Verbindung an und tragen folgendes ein: (Die im folgenden verwendeten Variablen $BENUTZER und $PASSWORT sind natürlich mit den erhaltenen Zugangsdaten zu ersetzen)</p>
<blockquote><p>[pat@earth ~]$ sudo vim /etc/ppp/peers/vpnod</p>
<p>pty &#8220;pptp vpn.vpnod.com &#8211;nolaunchpppd&#8221;<br />
name $USER<br />
linkname vpnod<br />
remotename vpnod<br />
ipparam vpnod<br />
usepeerdns<br />
require-mppe-128<br />
file /etc/ppp/options.pptp</p></blockquote>
<p>In der Datei chap-secrets werden nun die Zugangsdaten definiert.</p>
<blockquote><p>[pat@earth ~]$ sudo vim /etc/ppp/chap-secrets</p>
<p>$BENUTZER vpnod $PASSWORT *</p></blockquote>
<p>Zum testen starten wir das VPN und setzen die Schnittstelle als Standardgateway, so dass der gesamte Internetverkehr über das VPN läuft. Am besten vorher und nachher <a href="http://www.heise.de/netze/tools/ip">diese</a> Seite zur Überprüfung der eigenen IP besuchen. <strong>Hinweis:</strong> Ab diesem Zeitpunkt wird jeglicher Traffic über das VPN geroutet, d.h. auch E-Mails, Instant Messenger oder andere Anwendungen die auf dem System laufen. Die Daten sind zwar bis zur VPN Gegenstelle verschlüsselt, ab dort ist es allerdings Aufgabe des Anwenders für die Verschlüsselung zu sorgen. Wer dem VPN Anbieter nicht traut (oder leicht zu Paranoia neigt <img src='http://www.carrier-lost.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) sollte hier die selben Sicherheitsvorkehrungen wie bei der Nutzung eines öffentlichen WLAN Hotspots, sprich HTTPS/SSL, vornehmen.</p>
<blockquote><p>[pat@earth ~]$ sudo pon vpnod<br />
[pat@earth ~]$ sudo route add default dev ppp0</p></blockquote>
<p>Sollte der Verbindungsaufbau scheitern, kann der Aufruf von pon mittels</p>
<blockquote><p>[pat@earth ~]$ sudo pon vpnod debug dump logfd 2 nodetach</p></blockquote>
<p>bei der Fehlersuche hilfreich sein.</p>
<p>Zum Abbau der Verbindung, die Route wieder entfernen (sollte poff automatisch machen) und die Verbindung trennen.</p>
<blockquote><p>[pat@earth ~]$ sudo route del default<br />
[pat@earth ~]$ sudo poff</p></blockquote>
<p>Klappt alles ohne Probleme, kann man das ganze nun automatisieren. Alle Scripte (*.sh) im Ordner <em>/etc/ppp/if-up.d/</em> werden automatisch nach dem Aufbau der VPN Verbindung ausgeführt. Da Rounting eine komplexe Sache und ein Post für sich wäre, hier nur beispielhalt ein Script zum routen des gesammten Traffics über das VPN.</p>
<blockquote><p>pat@earth ~]$ sudo vim /etc/ppp/ip-up.d/10-route.sh</p>
<p>#!/bin/bash</p>
<p># Interface (eth0 or wlan0 in most cases)<br />
INTERFACE=eth0</p>
<p># Interface as provided by calling pppd<br />
VPN=$1<br />
#VPN=ppp0</p>
<p>route del default ${INTERFACE}<br />
route add default dev ${VPN}</p></blockquote>
<p>Und erstellen ein weiteres Script, welches nach dem Abbau der VPN Verbindung wieder die richtige Route einträgt.</p>
<blockquote><p>[pat@earth ~]$ sudo vim /etc/ppp/ip-down.d/10-route.sh<br />
#!/bin/bash</p>
<p># Interface (eth0 or wlan0 in most cases)<br />
INTERFACE=eth0</p>
<p># Interface as provided by calling pppd<br />
VPN=$1</p>
<p># Gateway (use &#8216;route&#8217; to find out, IP or name)<br />
GATEWAY=192.168.2.1</p>
<p>route del default ${VPN}<br />
route add default gw ${GATEWAY} ${INTERFACE}</p></blockquote>
<p>Ist der Hostname oder die IP des Gateways nicht bekannt, hilft das Kommando <em>route</em>.</p>
<blockquote><p>[pat@earth ip-up.d]$ route<br />
Kernel IP routing table<br />
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br />
192.168.2.0    *               255.255.255.0   U     202    0        0 eth0<br />
default         <strong>192.168.2.1</strong> 0.0.0.0         UG    202    0        0 eth0</p></blockquote>
<p>Eine Möglichkeit das Ganze nun automatisch beim Systemstart zu machen, findet man für Arch Linux z.B. <a href="https://bbs.archlinux.org/viewtopic.php?id=96529">hier</a>.</p>
<p><strong>Quellen:</strong> <a href="http://pptpclient.sourceforge.net">http://pptpclient.sourceforge.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/vpn-einrichten-mit-pptpclient-pptp-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Must-have Firefox Add-ons</title>
		<link>http://www.carrier-lost.org/blog/must-have-firefox-add-ons</link>
		<comments>http://www.carrier-lost.org/blog/must-have-firefox-add-ons#comments</comments>
		<pubDate>Thu, 03 Feb 2011 15:00:56 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[addon]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=391</guid>
		<description><![CDATA[Ich wurde vor einiger Zeit gefragt welche Firefox Add-Ons ich verwende und diese Frage möchte ich heute beantworten. Da sich einige Add-Ons nicht exakt einer Kategorie zuordnen lassen, habe ich die Kategorien nur grob eingeteilt. Allgemein Adblock Plus &#8211; Blockt lästige Werbung und Pop-Ups NoScript &#8211; Selektives Erlauben/Verbieten von Javascript, Java etc. für einzelne Seiten [...]]]></description>
			<content:encoded><![CDATA[<p>Ich wurde vor einiger Zeit gefragt welche Firefox Add-Ons ich verwende und diese Frage möchte ich heute beantworten. Da sich einige Add-Ons nicht exakt einer Kategorie zuordnen lassen, habe ich die Kategorien nur grob eingeteilt.</p>
<p><strong>Allgemein</strong><br />
<a href="https://addons.mozilla.org/de/firefox/addon/adblock-plus/">Adblock Plus</a> &#8211; Blockt lästige Werbung und Pop-Ups<br />
<a href="https://addons.mozilla.org/de/firefox/addon/noscript/">NoScript</a> &#8211; Selektives Erlauben/Verbieten von Javascript, Java etc. für einzelne Seiten<br />
<a href="https://addons.mozilla.org/de/firefox/addon/omnibar/">Omnibar</a> &#8211; Integriert die Suchfunktion in die Adresszeile<br />
<a href="https://addons.mozilla.org/de/firefox/addon/optimizegoogle/">OptimizeGoogle</a> &#8211; Verbessert die Google Suchergebnisse und entfernt Werbung und Spam<br />
<a href="https://addons.mozilla.org/de/firefox/addon/session-manager/">Session Manager</a> &#8211; Speichert geöffnete Tabs/Fenster und stellt Sie nach einem Absturz wieder her<br />
<a href="https://addons.mozilla.org/de/firefox/addon/tab-preview/">Tab Preview</a> &#8211; Seitenvorschau wenn der Mauszeiger über das Tab fährt<br />
<a href="https://addons.mozilla.org/de/firefox/addon/colorfultabs/">ColorfulTabs</a> &#8211; Färbt Tabs in verschiedene Farben und verschafft so Überblick<br />
<a href="https://addons.mozilla.org/de/firefox/addon/faviconizetab/">FaviconizeTab</a> &#8211; Verkleinert Tabs auf die Größe der Favicons<br />
<a href="https://addons.mozilla.org/de/firefox/addon/xmarks-sync/">Xmarks</a> &#8211; Synchronisiert Lesezeichen/Passwörter zwischen mehreren Firefox Installationen<br />
<a href="https://addons.mozilla.org/de/firefox/addon/firefox-sync/">Firefox Sync</a> &#8211; Siehe Xmarks<br />
<a href="https://addons.mozilla.org/de/firefox/addon/fast-dial-5721/">Fast Dial</a> &#8211; Miniaturansicht von Lesezeichen als Startseite<br />
<a href="https://addons.mozilla.org/de/firefox/addon/febe/">FEBE</a> &#8211; Sicherung der Firefox Einstellungen, Add-Ons etc.<br />
<a href="https://addons.mozilla.org/de/firefox/addon/flashgot/">FlashGot</a> &#8211; Downloadmanager<br />
<a href="http://www.virustotal.com/advanced.html#browser-addons">VTzilla</a> &#8211; Untersucht download per Rechtsklick auf Viren mit VirusTotal</p>
<p><strong>Entwicklung</strong><br />
<a href="https://addons.mozilla.org/de/firefox/addon/web-developer/">Web Developer</a> &#8211; Menüleiste mit verschiedenen Tools zur Webentwicklung<br />
<a href="https://addons.mozilla.org/de/firefox/addon/colorzilla/">ColorZilla</a> &#8211; Pipette, ColorPicker etc.<br />
<a href="https://addons.mozilla.org/de/firefox/addon/firebug/">Firebug</a> &#8211; Webentwicklungs &#8220;suite&#8221;<br />
<a href="https://addons.mozilla.org/de/firefox/addon/codeburner-for-firebug/">CodeBurner for Firebug</a> &#8211; Erweitert Firebug um HTML und CSS Referenzen</p>
<p><strong>Sicherheit / Penetration Testing</strong><br />
<a href="https://addons.mozilla.org/de/firefox/addon/access-me/">Access Me</a> &#8211; Testet Lücken im Session Handling<br />
<a href="https://addons.mozilla.org/de/firefox/addon/add-n-edit-cookies-13793/">Add N Edit Cookies</a> &#8211; Kann Sessions und Cookies hinzufügen/bearbeiten<br />
<a href="http://www.scrt.ch/en/attack/downloads/fireforce">Fireforce</a> &#8211; GET/POST Formular BruteForcer<br />
<a href="https://addons.mozilla.org/de/firefox/addon/foxyproxy-standard/"> FoxyProxy Standard</a> &#8211; Proxy Manager<br />
<a href="https://addons.mozilla.org/de/firefox/addon/fxif/">FxIF</a> &#8211; Zeigt die EXIF Daten in den Bildeigenschaften an<br />
<a href="https://addons.mozilla.org/de/firefox/addon/hackbar/">HackBar</a> &#8211; Toolbar zur Unterstützung bei der Suche nach SQL Injections<br />
<a href="https://www.eff.org/https-everywhere">HTTPS-Everywhere</a> &#8211; Verwendet automatisch SSL auf vielen Seiten<br />
<a href="https://addons.mozilla.org/de/firefox/addon/live-http-headers/">Live HTTP headers</a> &#8211; Zeigt die HTTP Header einer Seite<br />
<a href="https://addons.mozilla.org/de/firefox/addon/passiverecon/">PassiveRecon</a> &#8211; Information Gathering Tool<br />
<a href="https://addons.mozilla.org/de/firefox/addon/showip/">ShowIP</a> &#8211; Zeigt die IP Adresse der aktuellen Seite in der Statusleiste<br />
<a href="https://addons.mozilla.org/de/firefox/addon/sql-inject-me/">SQL Inject Me</a> &#8211; Testet verschiedene SQL Injection Schwachstellen<br />
<a href="https://addons.mozilla.org/de/firefox/addon/tamper-data/">Tamper Data</a> &#8211; Kann HTTP(S) Header bearbeiten und verfolgen<br />
<a href="https://addons.mozilla.org/de/firefox/addon/wappalyzer/">Wappalyzer</a> &#8211; Erkennt die verwendete Software auf einer Webseite<br />
<a href="https://addons.mozilla.org/de/firefox/addon/xss-me/">XSS Me</a> &#8211; Testet eine Seite auf XSS Schwachstellen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/must-have-firefox-add-ons/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>humans.txt</title>
		<link>http://www.carrier-lost.org/blog/humans-txt</link>
		<comments>http://www.carrier-lost.org/blog/humans-txt#comments</comments>
		<pubDate>Thu, 03 Feb 2011 13:11:54 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[humanstxt]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=385</guid>
		<description><![CDATA[Vor ein paar Tagen bin ich auf die Seite humanstxt.org gestoßen und mir gefällt die Idee. It&#8217;s an initiative for knowing the people behind a website. It&#8217;s a TXT file that contains information about the different people who have contributed to building the website. &#8220;About&#8221; Seite meets robots.txt&#8230; oder so ähnlich. Ich finds gut: humans.txt. [...]]]></description>
			<content:encoded><![CDATA[<p>Vor ein paar Tagen bin ich auf die Seite <a href="http://humanstxt.org/">humanstxt.org</a> gestoßen und mir gefällt die Idee.</p>
<blockquote><p>It&#8217;s an initiative for knowing the people behind a website.<br />
It&#8217;s a TXT file that contains information about the different people who have contributed to building the website.</p></blockquote>
<p>&#8220;About&#8221; Seite meets robots.txt&#8230; oder so ähnlich. Ich finds gut: <a href="http://www.carrier-lost.org/humans.txt">humans.txt</a>.</p>
<p>UPDATE: <a href="http://wordpress.org/extend/plugins/humans-txt/">Hier</a> gibt es auch ein Plugin für WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/humans-txt/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install Adobe Air and TweetDeck on Ubuntu 10.10 64Bit</title>
		<link>http://www.carrier-lost.org/blog/how-to-install-adobe-air-on-ubuntu-10-10-64bit</link>
		<comments>http://www.carrier-lost.org/blog/how-to-install-adobe-air-on-ubuntu-10-10-64bit#comments</comments>
		<pubDate>Wed, 17 Nov 2010 12:01:20 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[adobe air]]></category>
		<category><![CDATA[tweetdeck]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=374</guid>
		<description><![CDATA[Short tutorial on how to install Adobe Air 2.x and TweetDeck on a 64bit Ubuntu Linux. Go to http://get.adobe.com/de/air/ and grab the latest 32bit version of Adobe Air, which is 2.5.1 when writing this. Select the .bin version in the dropdown below. Grab a copy of getlibs from here. (local copy) Use GDebi to install [...]]]></description>
			<content:encoded><![CDATA[<p>Short tutorial on how to install Adobe Air 2.x and TweetDeck on a 64bit Ubuntu Linux.</p>
<ol>
<li>Go to <a href="http://get.adobe.com/de/air/">http://get.adobe.com/de/air/</a> and grab the latest 32bit version of Adobe Air, which is 2.5.1 when writing this. Select the .bin version in the dropdown below.</li>
<li>Grab a copy of <a href="http://ubuntuforums.org/showthread.php?t=474790">getlibs</a> from <a href="http://frozenfox.freehostia.com/cappy/getlibs-all.deb">here</a>. (<a href="http://www.carrier-lost.org/files/getlibs-all.deb">local copy</a>)</li>
<li>Use GDebi to install the .deb or type in a terminal<br />
<blockquote><p>sudo dpkg -i getlibs-all.deb</p></blockquote>
</li>
<li>Run getlibs and download the required libraries<br />
<blockquote><p>sudo getlibs -l libnss3.so.1d libnssutil3.so.1d libsmime3.so.1d libssl3.so.1d \<br />
libnspr4.so.0d  libplc4.so.0d  libplds4.so.0d libgnome-keyring.so libgnome-keyring.so.0 \<br />
libgnome-keyring.so.0.1.1</p></blockquote>
</li>
<li>Run ldconfig to update the necessary links to the shared libraries<br />
<blockquote><p>sudo ldconfig</p></blockquote>
</li>
<li>Make the downloaded Adobe Air Installer executable and install Adobe Air<br />
<blockquote><p>sudo chmod +x AdobeAIRInstaller.bin<br />
sudo ./AdobeAIRInstaller.bin</p></blockquote>
</li>
</ol>
<p>Now the installation of TweetDeck. The default installation path for TweetDeck is in /opt, which suits my preferences. Since the installer needs the right to write to the installation directory (really! <img src='http://www.carrier-lost.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), I create a new subfolder and change the ownership of it my user.</p>
<ol>
<li>Create directory and change ownership<br />
<blockquote><p>sudo mkdir /opt/TweetDeck<br />
sudo chown $USER /opt/TweetDeck</p></blockquote>
</li>
<li>Go to <a href="http://www.tweetdeck.com/desktop/">http://www.tweetdeck.com/desktop/</a>, click the &#8220;Install TweetDeck&#8221; Button and change the installation path to /opt/TweetDeck. If you don&#8217;t have flash installed/enabled, download the .air file from <a href="http://www.carrier-lost.org/files/TweetDeck_0_36.2.air">here</a>.</li>
<li>If you&#8217;re not running Gnome or KDE, take a look at <a href="http://www.carrier-lost.org/blog/running-tweetdeck-on-the-linux-xfce-desktop">this</a> small script to make TweetDeck start without error. When you followed this tutorial, you have to make a small change to the script. Replace the line<br />
<blockquote><p>DIRNAME=”/opt/TweetDeck/bin”</p></blockquote>
<p>with</p>
<blockquote><p>DIRNAME=”/opt/TweetDeck/TweetDeck/bin”</p></blockquote>
</li>
<li><a href="http://twitter.com/patsbin">Follow me</a> in your fresh installed TweetDeck on 64Bit Ubuntu. <img src='http://www.carrier-lost.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/how-to-install-adobe-air-on-ubuntu-10-10-64bit/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 + Pidgin (libpurple) + ICQ (Oscar) = Fail!</title>
		<link>http://www.carrier-lost.org/blog/ubuntu-10-10-pidgin-libpurple-icq-oscar-fail</link>
		<comments>http://www.carrier-lost.org/blog/ubuntu-10-10-pidgin-libpurple-icq-oscar-fail#comments</comments>
		<pubDate>Wed, 17 Nov 2010 07:47:38 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[icq]]></category>
		<category><![CDATA[libpurple]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=369</guid>
		<description><![CDATA[Auch wenn ich der Meinung bin, man sollte lieber das Jabber Protokoll für Instant Messenger nutzen, wie beispielsweise Google es bei Google Talk macht, ist ICQ wohl immer noch in Deutschland am weitesten verbreitet. Gründe für den Wechsel findet man z.B. bei Wikipedia. Gelegentlich kommt es vor, dass Änderungen am ICQ Protokoll oder an der [...]]]></description>
			<content:encoded><![CDATA[<p>Auch wenn ich der Meinung bin, man sollte lieber das Jabber Protokoll für Instant Messenger nutzen, wie beispielsweise Google es bei <a href="http://www.google.com/talk/" target="_blank">Google Talk</a> macht, ist ICQ wohl immer noch in Deutschland am <a href="http://billionsconnected.com/blog/wp-content/uploads/2008/08/global_im_market_share_stats_july_08.pdf" target="_blank">weitesten</a> verbreitet. Gründe für den Wechsel findet man z.B. bei <a href="http://de.wikipedia.org/wiki/ICQ#Kritik">Wikipedia</a>.</p>
<p>Gelegentlich kommt es vor, dass Änderungen am ICQ Protokoll oder an der Infrastruktur vorgenommen werden und sich alternative Clients kurzzeitig nicht anmelden können. Genau das ist wohl dieses Wochenende passiert. Da laut offizieller Pidgin homepage nur Sicherheitsupdates außerhalb des Releasezyklus von Ubuntu angeboten werden, gibt es wohl erstmal keine automatisierte Lösung des Problems. <a href="http://forum.ubuntuusers.de/topic/nochmal-icq-netzwerkfehler/">In</a> <a href="http://wiki.pidgin-im.de/index.php?title=Aktuelle_Probleme">diversen</a> <a href="http://forum.pidgin-im.de/showthread.php?tid=743">Foren</a> gibt es mittlerweile verschiedene Lösungen, wobei das Deaktivieren von SSL die einfachste, allerdings auch &#8220;unschönste&#8221; Lösung ist, da somit eure Logindaten unverschlüsselt übertragen werden. Am sinnvollsten erscheint mir da die Installation des <a href="https://launchpad.net/~pidgin-developers/+archive/ppa/">pidgin ppa</a> und Aktualisierung auf das neuste Release.</p>
<p>Vorgehensweise:</p>
<ul>
<li>Installer paket herunterladen: <a href="https://launchpad.net/~pidgin-developers/+archive/ppa/+files/pidgin-ppa_0.0.3_all.deb">Pidgin PPA Package</a></li>
<li>Rechtsklick auf die Datei und &#8220;<strong>Mit GDebi Paket-Installationsprogramm öffnen</strong>&#8221; auswählen</li>
<li>Rechts auf den Button &#8220;<strong>Paket installieren</strong>&#8221; klicken</li>
<li>Nach der Installation die <strong>Aktualisierungsverwaltung</strong> öffnen (Unter xfce: Startmenü -&gt; System)</li>
<li>Auf Aktualisierungen überprüfen und anschließend installieren</li>
<li>Pidgin neustarten und die Einstellungen für das ICQ Konto öffnen (Konten -&gt; ICQ -&gt; Konto bearbeiten)</li>
<li>Auf dem Reiter Erweitert den Server auf <strong>slogin.icq.com</strong> ändern und ein Häkchen bei &#8220;<strong>Benutze SSL</strong>&#8221; und &#8220;<strong>clientLogin benutzen</strong>&#8221; setzen</li>
</ul>
<p>Danach sollte die Anmeldung am ICQ Server auch über SSL wieder funktionieren. Außerdem bekommt ihr durch die PPA Installation jetzt immer die neuste Version von Pidgin bequem über die Aktualisierungsverwaltung.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/ubuntu-10-10-pidgin-libpurple-icq-oscar-fail/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use the Twitter API with PHP and OAuth (single user)</title>
		<link>http://www.carrier-lost.org/blog/how-to-use-the-twitter-api-with-php-and-oauth-single-user</link>
		<comments>http://www.carrier-lost.org/blog/how-to-use-the-twitter-api-with-php-and-oauth-single-user#comments</comments>
		<pubDate>Tue, 16 Nov 2010 15:53:33 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[lang:en]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=362</guid>
		<description><![CDATA[Since a few months, applications have to use OAuth to authenticate a Twitter account using the REST API. If you want to write a php application for just one account (like your own small webclient), you don&#8217;t have to go the &#8220;ping-pong&#8221; way of authentication. You only need this to authenticate different users and as [...]]]></description>
			<content:encoded><![CDATA[<p>Since a few months, applications have to use <a href="http://de.wikipedia.org/wiki/Oauth" target="_blank">OAuth</a> to authenticate a Twitter account using the REST API. If you want to write a php application for just one account (like your own small webclient), you don&#8217;t have to go the &#8220;<a href="http://dev.twitter.com/pages/auth#intro" target="_blank">ping-pong</a>&#8221; way of authentication. You only need this to authenticate different users and as we only need access for one single user, it is possible to simplify the oauth authentication step. Nevertheless I find it much more comfortable to you a finished library. In this example we will use Abraham Williams&#8217; awesome <a href="https://github.com/abraham/twitteroauth" target="_blank">TwitterOAuth</a> library for PHP, which requires a minimum PHP version of 5.2.x, cURL and OpenSSL.</p>
<p>First you have to visit <a href="http://dev.twitter.com/apps" target="_blank">http://dev.twitter.com/apps</a> an register a new application. Choose &#8220;Browser&#8221; as application type and set the default access level to &#8220;Read &amp; Write&#8221;. You will need the printed &#8220;Consumer key&#8221; and &#8220;Consumer secret&#8221; in the next step. Also you will need the &#8220;Access Token (oauth_token)&#8221; and &#8220;Access Token Secret (oauth_token_secret)&#8221;, which can be found under &#8220;My Access Token&#8221; in the right menu.</p>
<p>Include the library in your PHP script. Change the path accordingly.</p>
<blockquote><p>
require_once(&#8216;twitteroauth/twitteroauth.php&#8217;);
</p></blockquote>
<p>Open your config file and define the 4 needed keys like:</p>
<blockquote><p>
define(&#8216;CONSUMER_KEY&#8217;,       &#8216;aAaAaAaAaAaAaAaAaAaA&#8217;);<br />
define(&#8216;CONSUMER_SECRET&#8217;,    &#8216;bBbBbBbBbBbBbBbBbBbB&#8217;);<br />
define(&#8216;OAUTH_TOKEN&#8217;,        &#8216;cCcCcCcCcCcCcCcCcCcC&#8217;);<br />
define(&#8216;OAUTH_TOKEN_SECRET&#8217;, &#8216;dDdDdDdDdDdDdDdDdDdD&#8217;);
</p></blockquote>
<p>To connect to Twitter, add in your PHP script:</p>
<blockquote><p>
$twitter = new TwitterOAuth (CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET);
</p></blockquote>
<p>You can now use the $twitter object to interact with the Twitter API. For example fetch your user information or post an update.</p>
<blockquote><p>
$twitter->get(&#8216;account/verify_credentials&#8217;);<br />
$twitter->post(&#8220;statuses/update&#8221;, array(&#8220;status&#8217;&#8221;=> &#8220;First tweet using my own Twitter app!&#8221;));
</p></blockquote>
<p>Check out the <a href="https://github.com/abraham/twitteroauth/blob/master/DOCUMENTATION">TwitterOAuth documentation</a> for more options and the <a href="http://dev.twitter.com/doc">Twitter documentation</a> for available ressources. </p>
<p>I hope this small guide helps you getting started and I would love to see some of your results. Questions? Comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/how-to-use-the-twitter-api-with-php-and-oauth-single-user/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Public Key Authentication on OpenWRT using dropbear</title>
		<link>http://www.carrier-lost.org/blog/public-key-authentication-on-openwrt-using-dropbear</link>
		<comments>http://www.carrier-lost.org/blog/public-key-authentication-on-openwrt-using-dropbear#comments</comments>
		<pubDate>Mon, 18 Oct 2010 09:41:34 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[lang:en]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openWRT]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.carrier-lost.org/blog/?p=351</guid>
		<description><![CDATA[password-less authentication using the public key authentication of ssh to connect to a openWRT device]]></description>
			<content:encoded><![CDATA[<p><a href="http://openwrt.org/">OpenWRT</a> is a linux distribution for embedded devices like a <a href="http://en.wikipedia.org/wiki/Router">router</a>. The installation of OpenWRT on your device instead of the original vendor&#8217;s firmware allows you to do some nifty stuff with your router like installing additional software out of openWRT&#8217;s own <a href="http://downloads.openwrt.org/backfire/10.03.1-rc3/brcm-2.4/packages/">repository</a>.</p>
<p>Although there is a package for the openSSH server available, <a href="http://matt.ucc.asn.au/dropbear/dropbear.html">dropbear</a> is the default choice. To enable password-less ssh access you first need to generate the ssh keys on your client machine if you haven&#8217;t already. If you want, you can secure your key by typing in a password, otherwise just press enter.</p>
<blockquote><p>pat@earth:~$ ssh-keygen</p></blockquote>
<p>Next you have to transfer your <strong>public</strong> key (the file ending with .pub) to your openWRT installation.</p>
<blockquote><p>pat@earth:~$ scp ~/.ssh/id_rsa.pub 192.168.1.1:/tmp/</p></blockquote>
<p>Replace 192.168.1.1 with the IP of your router. If you changed the Port of your ssh server, you have to define it using the <strong>-P</strong> parameter like <em>scp -P 4321</em> etc.</p>
<p>Connect to your router and add the transferred public key file to your authorized_keys. Unlike OpenSSH, Dropbear doesn&#8217;t look in .ssh underneath your home directory for the authorized_keys file, so you have to create the file in /etc/dropbear/.</p>
<blockquote><p>root@router:~# cd /etc/dropbear/<br />
root@router:~# cat /tmp/id_rsa.pub &gt;&gt; authorized_keys<br />
root@router:~# chmod 0600 authorized_keys</p></blockquote>
<p>Now you should be able to ssh from your client pc to your openWRT device without the need of a password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carrier-lost.org/blog/public-key-authentication-on-openwrt-using-dropbear/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

