14.9.08

Putty, Linux and utf8

Do make putty show correct "Umlaute" in Linux with Utf8, you should use the following settings in putty:


(Connection): Terminal-Type-String: Linux
Window Translation: UTF8
Click Use Unicode line drawing code points

25.5.08

php5 and apache2

If you try to get apache2 with php5 to work and you get the errormessage

httpd.exe: Syntax error on line 127 of C:/development/httpd/conf/httpd.conf: Can
not load C:/development/httpd/php/php5apache2.dll into server: The specified mod
ule could not be found.

then you should use "php5apache2_2.dll". Don't ask me why...

31.3.08

Infrared and Nokia 6310i

For using the Nokia 6310i with an up-to-date Windows XP you normally don't need any software. What you only need to adjust is a setting in the "System Control", "Wireless Connections", "Hardware", "Settings", "Extended". Here set the Infrarottransceiver A to "HP HSDL-2300/3600". With the default one it didn't work.

Now you can install the PC Nokia Suite (Version only up to 4.81) and do whatever you like.

30.3.08

Yakumo 300 GPS combined with Nokia 6310i using infrared (gprs-internet)

Just a short manual on using my Yakumo PocketPC (PPC) with my Nokia 6310i (6310) in order to get into the internet via gprs(provider alice):

Mostly from: http://www.ppc-hilfe.de.vu/

1. Start, Einstellungen, Verbindungen
2. Neue Modemverbindung
3. GPRS-Verbindung, generisches IRDA eingeben
4. No using of "Wählregeln", since they confuse the system
5. Dialed numner is *99#
6. Username and Password can be set to anything
7. Click on "Erweitert"
8. Setting Baudrate to "115200"
9. Don't use "Auf Freizeichen warten"
10. Additional Modemcalls: "+cgdcont=1,"IP","internet.partner1"

Thats it!

Now allow the infrared-connection on the 6310i (Point 10 in the menu) and start the just created grps-connection. Now use Internet Explorer for surfing or install Opera.


Some good programs:

Opera for Pocket-PC
easySMS - SMS versenden über den PPC
Flexmail - Perfect for retrieving imap-mails (incl. imap-idle!)

20.1.08

Symlinks for apache under Windows

When you run an apache under Windows, you can't just go the easy way in doing a symlink like under linux (you know, ln -s etc.).

But there is a tool on the Microsoft Homepage called Junction, which is using some capable stuff on the ntfs-filesystem to create this kind of symlink. It is only working for directories.

Junction

1.12.07

Alice Home-TV mit Wlan-Modem kombinieren

Seit ein paar Wochen bin ich stolzer Besitzer von Alice Home-TV. Benutzt habe ich es bisher, bis auf ein paar Test-Sessions, gar nicht. Grund war, dass ich wieder ein neues Siemens-Modem (CL-040-I) von Alice bekommen habe, welches weder WLAN hat noch sich als Router betreiben lässt. Jedoch muss dieses verwendet werden, damit Home-TV funktioniert (zwei parallele DSL-Verbindungen oder so ähnlich).

Die Lösung war jedoch trivial: Einfach das neue Siemens als Modem verwenden und in meinem vorhandenen DSL-Router (Speedtouch 585i v6) das Modem deaktivieren und über einen der LAN-Ports des Routers eine pppoe-Verbindung auf das Siemens-Modem aufbauen.

Anleitung (von speedtouchforum.de):


eth bridge ifdelete intf=ethport4
eth ifadd intf=eth4_wan
eth ifconfig intf=eth4_wan dest=ethif4
ppp ifadd intf=pppoe_sdsl
ppp ifconfig intf=pppoe_sdsl dest=eth4_wan user=xxxxxxx password=xxxx
ppp rtadd intf=pppoe_sdsl dst=0.0.0.0/0 src=0.0.0.0/0
eth ifattach intf=eth4_wan
nat ifconfig intf=pppoe_sdsl translation=enabled
ppp ifattach intf=pppoe_sdsl


Der Port 4 beim Speedtouch-Router wird an das Siemens-Modem angeschlossen und baut hierüber die pppoe-Verbindung auf. Hierdurch kann wie gewohnt der Router verwendet werden.

Jetzt muss nur noch die Netzwerkverbindung ins Wohnzimmer dazukommen...

Fußball Bundesliga live im Internet

Auch schon etwas älter, aber heute wieder neu entdeckt: Live-Fußball im Internet schauen. Eine gute Übersichtsseite gibt es bei chip.de

Der Linux-Aspekt darf natürlich auch nicht fehlen: Die meisten der vorgestellten Programme funktionieren nur unter Windows bzw. wenn man diversen Seiten glauben darf mit Wine auch unter Linux. Sopcast bzw. die graphische Oberfläche gsopcast bilden hier eine erfreuliche Ausnahme.

Links zu den aktuellen Spielen gibt es unter myp2p.eu. Technisch ist das ganze auch höchstinteressant, da hierbei p2p-Techniken verwendet werden, um die Inhalte zu verteilen. Die Zeitverzögerung hielt sich dabei im Rahmen, man sah die Tore bevor der Spiegel.de-Liveticker aktualisiert wurde.

Die Qualität ist dabei jedoch eher mau; für nebenbei schauen und im Internet surfen jedoch prima geeignet. Und der Ton sollte abgeschaltet werden, außer man ist der chinesischen Sprache mächtig.

3.4.06

Archlinux and k3b



To allow users to use the cd-burners, you have to add them in arch to the group optical: gpasswd -a foouser optical

Removing packed bitstream



In Order to process avi-Files (divx and xvid) for playing on a standalone-dvd-divx-player, you probably have to remove the packed bitstream. Everything is pretty clear described under UnpackCL.

29.3.06

Konqueror


If Konqueror happens to be pretty slow (compared to firefox or whatever), someone should do one of this (or both together):

  • export KDE_NO_IPV6=true _before_ kde is loaded (in any startup-script)

  • Change the dns-server in /etc/resolv.conf to a public one

Archlinux


Recently I changed my Distribution, back to Archlinux. Shortly: I am surprised about the speed and the quality of the distribution. A year ago everything was a little messed (espacially the ATI-driver).

To install the original Ati-Drivers, you need:

  • pacman -S ati-fglrx ati-fglrx-utils

  • modprobe fglrx or change your rc.conf to load fglrx at bootup

  • create new xorg.conf or use your old one and run aticonfig (very useful program with many options regarding your ati-card)

  • and change manually /etc/X11/xorg.conf: Uncomment the lines regarding "dri 0666" - Background: Normal users are not allowed to touch the acceleration of the graphic card


Sorry, ubuntu, you've had your chance, but arch is faster, updated regularly and everything is working now...

26.2.06

ogg2mp3-Konverter

Nachdem es im Netz nichts vernüntiges gab, um oggs in mp3s zu konvertieren, hab ich mich mal selber drangesetzt und nebenbei ein bißchen Python gelernt :) Das Ergebnis ist hier zu bewundern. Achso, ich weiß natürlich, das das ganze eine lausige Qualität geben sollte, aber das ist meinem usb-mp3-Player egal :)

4.2.06

DVB-T unter Ubuntu

Kurz zum später nachschauen: Um die DVB-T-Karte von Twinhan mit dem Namen Vision Plus zu installieren, müssen unter Ubuntu noch folgende modprobe-Befehle laufen:

modprobe bttv i2c_hw=1 card=0x71

modprobe dvb-bt8xx

modprobe dst dst_type=0

Dann kann Kaffeine auch mit DVB-T automatisch was anfangen.

Achtung: Vorher für Kaffeine die xine-Enginge installieren! Im Synaptic nach Kaffeine und xine suchen.

30.10.05

Latex und die Literatur

Heute habe ich mich wieder mit Latex beschäftigt. Wegen der anstehenden Diplomarbeit dann auch mal Gedanken über ein vernünftiges Quellenverzeichnis nachgegoogelt. Folgendes kam dabei heraus:



Einführung in Bibtex

Bibtex-Zitiervorlagen nach deutscher Din-Norm

Bibtex-Editor in Java

Literaturdatenbank mit Bibtex-Einträgen - nur noch copyandpaste und die pdf-Dateien dazu sind auch schon im Netz verlinkt

19.10.05

Ubuntu und WPA: Heute habe ich meine ganze WLAN-Kommunikation auf WPA umgestellt. Folgendes, exzellentes Howto habe ich dabei bei Ubuntuforums gefunden:

Wlan und WPA

Hier die Kopie davon:

Pre-amble:

I've been bashing at this for the last few hours as I just got myself a shiny new wireless router and wanted to use WPA-PSK rather than WEP. I don't pretend to be any sort of guru at this; I spent most of my time reading FAQs and Wiki entries; swore at my computer for a while when it didn't work and then just started experimenting. I've finally got what appears to be a fairly nice configuration that works great for me - I'm writing it up in the hopes that it helps someone else.

Assumptions:
  • You can already access the network/internet -without- WPA or other encryption.
  • You're using an ndiswrapper-based driver (probably not essential, but you'll have to modify a few of the commands if you're using madwifi or one of the native drivers - YMMV).
  • Your wireless card comes up with an interface name of 'wlan0' (if not, you'll need to modify my examples to suit).
  • You want to use WPA-PSK with either TKIP or AES/CCMP.
  • Your router (or whatever) provides IP address details via DHCP (not essential, but you'll have to modify one of the files beyond my examples).
  • Your router or WAP broadcasts its' SSID. Sorry, haven't worked out how to make this work with broadcasting switched off yet. :/
  • You're working with an installation of Ubuntu Hoary.
  • You're comfortable editing files and working with badly-written HOWTOs.

OK, here we go..

You should already have your wireless working -without- WPA encryption. If you don't, the rest of this probably won't help you.

First up, you'll need the wpasupplicant package. It's in the Universe repository, so you'll need to have that in your sources.list file. If you've already installed this package, I recommend that you reinstall; use these commands to get rid of it:
sudo killall wpasupplicant
sudo dpkg --purge wpasupplicant
Now install a fresh copy:
sudo apt-get install wpasupplicant
After you've got it installed, start by modifying the "default" file -- I'm not sure why to be honest, but the installer told me to start there and I did:
sudo vi /etc/default/wpasupplicant
Here's what mine looks like; modify yours to taste:

Code:
# /etc/default/wpasupplicant

# WARNING! Make sure you have a configuration file!

ENABLED=1

# Useful flags:
# -D Wireless Driver
# -i Interface (required, unless specified in config)
# -c Configuration file
# -d Debugging (-dd for more)
# -w Wait for interface to come up

# OPTIONS="-w"

Save and exit.

Next, you'll need to sort your pre-shared key out. My router allows me to input the passphrase that makes up the key itself; I originally tried putting this passphrase in as the wireless key, which failed to work altogether for fairly obvious reasons. Hindsight is wonderful like that. Take the passphrase that you used in your router or WAP and use wpa_passphrase to generate the key. You use this command in the following format:
wpa_passphrase
So the command I ran looks something like this:
wpa_passphrase MyHomeWireless SuperSecretPassphrase
..which gives you an output something like:

Code:
network={
ssid="MyHomeWireless"
#psk="SuperSecretPassphrase"
psk=e42ac2538ef03f906d37332a0df4446150e04cdcdd392e309486075065a70a1f
}

Copy all that - we'll need in a moment. You now need to put that in to a configuration file for wpa_supplicant, which you first need to create. Given that you'll have the keys to your wireless access in this file, a little extra precaution is in order. Use the following commands to create and then open the file for editing:
sudo touch /etc/wpa_supplicant.conf
sudo chmod 600 /etc/wpa_supplicant.conf
sudo vi /etc/wpa_supplicant.conf
Using the output of wpa_passphrase we copied earlier as a base, you'll need to tell wpa_supplicant a few more details about your network. Here's what my copy of this file looks like when complete, with the sample data:

Code:
network={
ssid="MyHomeWireless"
#psk="SuperSecretPassphrase"
psk=e42ac2538ef03f906d37332a0df4446150e04cdcdd392e309486075065a70a1f
key_mgmt=WPA-PSK
proto=WPA
}

Save and exit.

You should probably test this now - here's a good command to copy/paste to your cli (this will only work if you fulfill the assumptions of this HOWTO):
sudo ifconfig wlan0 up && /usr/sbin/wpa_supplicant -Bw -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf && dhclient wlan0
If that doesn't get you to the point where you can ping other hosts on your network, something is most likely wrong with wpa_supplicant (I'm assuming that it hasn't got anything to do with DHCP). Run these two commands:
sudo dhclient -r wlan0 && ifconfig wlan0 down && killall wpa_supplicant
sudo ifconfig wlan0 up && /usr/sbin/wpa_supplicant -w -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf -dd
This will give you a bunch of debugging output, and someone who is much more skilled than I might be able to help you out. Sorry, but this HOWTO isn't going to help you much more, as it's beyond my ken completely.

If you got lucky and you -are- able to ping hosts on your network, now is the time to automate it. It's actually really easy. Run this command first to bring the wireless link down cleanly:
sudo dhclient -r wlan0 && ifconfig wlan0 down && killall wpa_supplicant
You need to tell your network interface configuration file how to deal with the wireless config nicely; here's what you need to put in for your wireless card (again, if you don't completely fulfill the assumptions of this HOWTO, you'll need to change a few things). Open up /etc/network/interfaces:
sudo vi /etc/network/interfaces
..here's the part you'll need to add/modify in yours for the wireless:

Code:
auto wlan0
iface wlan0 inet dhcp
pre-up /usr/sbin/wpa_supplicant -Bw -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

Save and exit.

We're all done! Wireless will now come up on boot (assuming that your computer already detects the card and loads the drivers for it already), and you can start/stop the wireless link with the following two commands:
sudo ifup wlan0
sudo ifdown wlan0
--

13.10.05

Probleme mit AsRock Mainboard und Sound unter Ubuntu

Kleiner Schalter, Große Wirkung:

Wenn der Sound unter Ubuntu nicht läuft, obwohl eigentlich alles erkannt worden ist, dann funktioniert was nicht mit den Mixern. Also zuerst prüfen, ob alle Mixer an sind. Dann folgendes überprüfen:

Starte den Gnome-Mixer.
- Datei -> Gerät wechseln -> "SiS SI7012 (Alsa Mixer)" auswählen
- Bearbeiten -> Einstellungen
- In der Liste "Sichtbare Tonspuren" nach "IEC958 Capture Monitor" suchen und aktivieren. -> Schließen
- Jetzt sollte neben "Wiedergabe" und "Aufnahme" ein weiterer Tab mit "Schalter" im Mixer-Fenster zu sehen sein.
- Kontrollieren ob unter "Schalter" der Punkt "IEC958 Capture Monitor" aktiviert ist, wenn ja: deaktivieren!

Das gleiche geht auch mit dem Mixer unter KDE. Sobald der letzte Schalter aus war, ging der Sound ohne Probleme.

Neues Ubuntu

Sehr schön, heute früh kam dann das neue Ubuntu raus und ich hab gleich ein Update gemacht. Nur soviel: Sieht affengeil aus das neue. Gefällt mir richtig.

Updateanleitung für Hoary-Benutzer:

Alle Quellen in /etc/apt/sources.list von hoary auf breezy ändern, apt-get update machen und dann apt-get dist-upgrade. Dann wird das ganze automatisch heruntergeladen und installiert. Sind zwar 900 MB gewesen, aber dann wird der DSL-Anschluß mal wirklich benutzt.

6.10.05

Desktop-Suchmaschine unter Linux

Nachdem ich schon so oft unter Windows die Desktopsuchmaschinen gesehen habe, wollte ich sowas auch mal für Linux ausprobieren. Gab bisher nur die Möglichkeiten, eine java-kompatible zu benutzen, die leider nicht wirklich das gemacht hat, was ich wollte...

Jetzt gerade bei www.heise.de gelesen, daß es unter Beagle eine neue Desktopsuchmaschine gibt. Werde ich nachher mal ausprobieren und dann näheres berichten. Was mich wirklich fasziniert hat, ist das hier:

Firefox and Epiphany web pages (as you view them, through browser extensions)

Mal gucken, wie das geht...

Update: Naja, funktioniert schon, nur braucht ewig zum Index erstellen (ist ja auch logisch, einmal durch alle Dokumente durch). Da viele pdfs dabei sind und die pdf2text Funktion benutzt wird unter Linux, dauert das ganze...

Lieber eine vernünftige Ordnerstruktur, dann sollte man alles wichtige eigentlich auch schnell finden.

17.9.05

mp3 über die Suchmaschine finden

Nach einem Artikel im Spiegel bin ich auf folgende Möglichkeit gekommen, mp3s neben allofmp3.com herunterzuladen:

Einfach auf die chinesische Suchmaschine baidu.cn gehen, Titel eingeben und gucken, ob es das gibt. Die Auswahl ist zwar nicht unbedingt die größte, aber mal eben schnell einen pop-Titel herunterzuladen sollte ohne Probleme gehen. Und besser als Filesharing ist es allemal.

FTP-Server auf die Schnelle installieren unter Linux

Wenn man mal eben auf die schnelle Daten unter Linux zwischen zwei Rechnern kopieren möchte, gibt es die verschiedensten Varianten (FTP, SCP, RCP, Sync, Samba, ...)

Mir ging es jedoch darum, auf die schnelle was zu kopieren und habe mir darum mal das ftp-Protokoll und deren Implementierung unter Ubuntu / Debian angeguckt.

Ein einfaches apt-get hat gereicht, um die Pakete pure-ftpd-common und pure-ftpd zu installieren. Die Standardeinstellungen sind so gestrickt, das sich die normalen linux-Benutzer ganz normal einloggen können und auf ihr gesamtes Dateisystem zugreifen können, für das sie leseberechtigt / schreibberechtigt sind. Das kopieren selber ist mit ftp richtig flott, die 100mbit wird fast komplett ausgelastet. Ist halt ein Protokoll mit nur einem geringen Overhead.