Family, Work, Life

Server, Network and Phone reconfiguration

November 14th, 2008 Ansi

Moin
I am going to shutdown the server and network and the phone system now for complete reinstall and hardware upgrade / exchange. Hopefully the phone will work in one hour again and the network right after. The server can take a little bit longer… May be the tux with me….

Share/Save/Bookmark

Video Mashup

October 30th, 2008 Ansi

Moin

I am soooo sorry…

Share/Save/Bookmark

How to export display via SSH after sudo su

October 8th, 2008 Ansi

Moin
Just figured out together with DrScofield how to export the Display via an SSH tunnel after changing user to root via sudo. And hey it sound trivial but was not easy to find out. Here is the step by step way.

  1. ssh -X server #as normal user
  2. xterm #for testing if export display as normal user works
  3. echo $DISPLAY #write it down
  4. xauth #enters the shell of xauth
    1. list # find the line with the display number from step 3 for me it was “wpsvm054/unix:12 MIT-MAGIC-COOKIE-1 071df2e12cfff0ed75fd0af5869665f7″ remember the first part of it
    2. quit #to leave the shell
  5. xauth extract filename system/unix:12 # the line from step 4.1
  6. sudo su - # to become root
  7. xauth merge filename # filename from step 5
  8. export DISPLAY=:nummer.0 #Displaynumber from step 3 resp. 4.1
  9. xterm #for testing

Hope it works on other systems too.

Share/Save/Bookmark

Microblogging

September 30th, 2008 Ansi

Moin

Lets find some slides on Microblogging, some videos and some examples. When I tell people about microblogging (or as some people call it “twitter“) they look at me like “what a freak!”. But let me try to explain why microblogging is realy something new and different from chat, blogs or SMS. First of all lets have a look on Slideshare what presentations are available on this topic.

Slides

There is one very good one in german language:

140 - einhundertvierzig
View SlideShare presentation or Upload your own. (tags: 4newbies deutsch)

And one in english with the basic facts:

Twitter and your Company
View SlideShare presentation or Upload your own. (tags: web2 media)

Videos

Twitter in plain english


Twitter in pain german


The Bleeper Movie - MyVideo

Some Twitters:

IBM

http://twitter.com/IBM_System_z
http://twitter.com/sametime
http://twitter.com/ibmevents

Conferences

http://twitter.com/w2e_NY08

Election and Twitter

http://election.twitter.com
http://twitter.com/BarackObama
http://twitter.com/JohnMcCain

German politicans

http://twitter.com/muentefering
http://twitter.com/hubertus_heil
http://twitter.com/neuepolitik
http://twitter.com/diegruenen_at
http://twitter.com/pofalla

Satire

http://twitter.com/schaeuble
http://twitter.com/rolandkoch
http://twitter.com/merkel

Share/Save/Bookmark

OpenStreetMap

September 30th, 2008 Ansi

Moin

Last weekend on the Barcamp in Stuttgart (#bc0711) I learned more about OpenStreetMap. Extreme impressing! What I really liked was the tremendous power of communities. Peter gave a very good presentation on Openstreetmap.

Presentation:

Openstreetmap im Tourismus

View SlideShare presentation or Upload your own. (tags: barcamp castlecamp)

Here are the live examples:

Buenos Aires

Google:


Größere Kartenansicht

OpenStreetMap:


View Larger Map

Hanoi:

Google:


Größere Kartenansicht

OpenStreepMap:


View Larger Map

Kapstadt:

Google:


Größere Kartenansicht

OpenStreetMap:


View Larger Map

Share/Save/Bookmark

The otherinbox

September 18th, 2008 Ansi

I plan to analyse at least one WEB 2.0 service per day and write a short blog on that.

Starting today with the “Otherinbox“. Nice combination of instant email service and web emailer. If you subscribe to the service you get a domain like ansi.otherinbox.com where you can use several email addresses like facebook@ansi.otherinbox.com or intershop@ansi.otherinbox.com. The service accepts all emails for this domain and shows them in a web based mailer in seperate folders. Nice and usefull. At the moment they are in closed beta but you can follow them on twitter at @otherinbox.

Share/Save/Bookmark

Convert

September 18th, 2008 Ansi

Played around a little bit with ImageMagick and specially with the convert command.

Nice feature is to add Text on a picture like a watermark:

convert -font \
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/luximri.ttf \
-pointsize 160 -fill black -draw "text 0,590 'Text auf Spike'" \
P1020049.JPG spike.jpg

or make a border arround a picture

convert -border 10x10 -bordercolor "#000000" P1020049.JPG spike2.jpg

Nothing special but was nice to play with it.

Share/Save/Bookmark

Using Garmin with linux and gpsbabel

August 19th, 2008 Ansi

This post if more for myself then for others because you can find this information on many places. I bought a Garmin GPS Map 60 some time ago. It works great with Linux and the GPSBabel software. In order to transfer the loc files from the Geocaching.com side you can use this script:

#!/bin/bash
rm a.csv
rm a.kml
rm a.gpx
for i in *.loc
do
gpsbabel -i geo -f $i -o csv,prefer_shortnames -F $i.csv
cat  $i.csv >> a.csv
rm  $i.csv
done
gpsbabel -i csv -f a.csv -o kml -F a.kml
gpsbabel -i csv -f a.csv -o gpx -F a.gpx

sudo gpsbabel -i gpx -f a.gpx -o garmin -F usb:0
sudo gpsbabel -i garmin,power_off -f usb:0

This script converts all the *.loc files in one folder into one GPX and one KML file. the KML file can be placed on a webserver and then fiewed with google maps or via google earth. Here are some usefull commands:

Upload route:

sudo gpsbabel -r -i garmin -f usb:0 -o kml -F u.kml

Tracks downloaden from Garmin:

sudo gpsbabel -t -i garmin -f usb:0 -o gpx -F tracks.gpx

Switch the Garmin off:sudo gpsbabel -i garmin,power_off -f usb:0

Best Webpage I found for creating routes for bike tours is Marengo

And now have fun. :-)

Share/Save/Bookmark

Howto extract all followers from twitter into list of RSS feeds

July 24th, 2008 Ansi

I had this idea to use build a real distributed microblogger system a while ago. Unfortunately I was a little bit to late and twitter lost so many links between users (follow and followers) this night. But better now then never. I will post here from time to time parts of the pig picture how to build such a system. This time how to extract the list of friends from your Twitter account and generate a list of RSS feeds out of it.

Twitter has a cool API wich we can use legally. The xml list of users you follow can be retrieved with

http://twitter.com/statuses/friends/USERNAME.xml?lite=true&page=1..n (for me its ansi)

Having at the moment 112 user I follow (yesterday more then 160. :-( ) page 1 and 2 are all my guys.

This small xsl stylesheet extracts the userids. (if anyone is into xsl please help me here. Would be great to extract username, realname and user with comma separated per line. Please add comments if you know the solution, I appreciate it!)

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 <xsl:strip-space elements="*"/>

 <xsl:template match="/users/user">
     <xsl:for-each select="id">
      <xsl:value-of select="." />
      <xsl:text>&#10;</xsl:text>
     </xsl:for-each>
 </xsl:template>

Save this code snip to a file called extractIDs.xslt and call it with the processor:

xsltproc extractIDs.xslt friendsPage1.xml  | sed 1d >list_of_ids.txt
xsltproc extractIDs.xslt friendsPage2.xml  | sed 1d >>list_of_ids.txt

So now next step howto get the rss feeds out of it. The API offers this call

http://twitter.com/statuses/user_timeline/USERID.atom

Short bashscript like

 for i in `cat list_of_ids.txt`
 do
  echo "http://twitter.com/statuses/user_timeline/$i.atom" >>list_of_rrs_feeds.txt
 done

is doing the job. So we end up with a text file each line with one RSS feed. I totally agree its much easier at the moment to call the “user and friend” rss feed from twitter but the idea behind this is to get a list of each user so future systems can really be distributed among many microblogging systems.

Share/Save/Bookmark

Howto Setup Ubuntu postfix to send email with 1und1 as smarthost

July 24th, 2008 Ansi

Installing Postfix with

apt-get install postfix

or choose dpkg-reconfigure postfix when you allready installed postfix before.

The configuration working for me is “satelite”.

  1. System Mail Name: your maildomain name (interblc.com) not the dns name of your server.
  2. SMTP relay host:smtp.1und1.de
  3. Root and Postmaster mail recipient: your user account or external email address
  4. Other destinations to accept mail for: your servername, localhost.localdomain,localhost
  5. Force synchronous updates on mail queue: If you have ext3 oder reiser NO otherwise better YES
  6. Local Networks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  7. Procmail for local delivery: Yes
  8. Mailbox size limit: 0
  9. Local address extension character: +
  10. Internet Protocol:All

Edit /etc/postfix/main.cf and add these lines at the end:

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password

Create /etc/postfox/sasl_password with one line:

smtp.1und1.de MAILACCOUNT_at_1und1:PASSWD

Create and db file from this passwd file with

postmap /etc/postfix/sasl_password

Restart postfix with:

/etc/init.d/postfix restart
Now it should work. Give it a try with

date | mail -s “testing” regen@wetter.de

and watch the logfile with

tail -f /var/log/mail.log

Share/Save/Bookmark