Blog

2011-06-29 14:49:11 INWX DNS Updater
INWX DNS Updater is a small bash script, allows you use InterNetworX API for dynamic DNS change. All you need:
  • Ubuntu / Debian or other Linux
  • Lynx
Under Ubuntu/Debian: apt-get install lynx Script usage: ./update.sh username password recordid where username and password are your credentials by INWX, recordid - DNS - Record ID. You can find it out in old web interface in link address of needed record. Download: INWX DNS Updater (.zip 4KB)
2011-01-04 02:47:06 Cisco 886 Router ADSL2+ (D Telekom) howto

I have bought this router last week.

Had small problems with settings, so i post here my way to configure it.

Wat i have:
1x Cisco 886W Router
1x 16Mbit ADSL2+ line from Telekom(Germany)

Lets go :)

1. Console

Connect blue cable to seriap port on your pc. Now you need software to access the router via telnet protocoll.

Under Windows you need to install buildin telnet client under add/remove Software -> add/remove features.

Under linux you can use minicom or other soft.

under ubuntu run apt-get install minicom minicom -S

Now you can configure serial interface settings:

Parameters: Baud 38400 FlowControll: no Stop 1

After this step you can leawe minicom setup with ctrl+a -> x and run it with no parameters.

2. Management Software

Download and install Cisco Configuration Professional. Its free to download, but you must have an account by cisco.com.

Standard IP's:

Router - 10.10.10.1 WiFi AccessPoint: 10.10.10.2

Default Username/Password: cisco/cisco.

3. Configure Router to sync with ADSL line:

interface ATM0 no ip address no ip redirects no ip unreachables no ip proxy-arp ip flow ingress no atm ilmi-keepalive ! interface ATM0.1 point-to-point no ip redirects no ip unreachables no ip proxy-arp ip flow ingress pvc 1/32 pppoe-client dial-pool-number 1 ! interface Dialer0 description $FW_OUTSIDE$ ip address negotiated no ip redirects no ip unreachables no ip proxy-arp ip mtu 1452 ip flow ingress ip nat outside ip virtual-reassembly in zone-member security out-zone encapsulation ppp dialer pool 1 dialer-group 1 ppp authentication chap pap callin ppp chap hostname YOURUSERNAME ppp chap password 7 YOURPASSWORD ppp pap sent-username YOURUSERNAME password 7 YOURPASSWORD no cdp enable

PPPoE
DSL mode: auto
VPI/VCI: 1/32
Authentification: pap and chap

4. Setup routing from local network to internet

Configure NAT

ip nat inside source list 102 interface Dialer0 overload ip route 0.0.0.0 0.0.0.0 Dialer0

Configure ACL

access-list 102 remark inside to outside access-list 102 remark CCP_ACL Category=2 access-list 102 permit ip 10.10.10.0 0.0.0.255 any
2010-02-17 19:14:28 Logitech mx3200: Disable zoom dynamic slider
1. You can disable the dynamic slider and the 100% hot key by pressing FN + Close. You can enable them by pressing FN + Doc Flip. 2. You can enable or disable the beep sound of the dynamic slider by pressing FN + Search Pics. *Note that the FN key is located beside the right Alt key
2009-12-11 02:48:36 Ubuntu 9.10 Server: boot failure at clean install

If you get an error "no such device" at clean install:

error: no such device: Failed to boot default entries.

At boot hold down the shift key, you will get the Grub menu.

In the grub menu press "e" to switch in edit mode.
Remove whole line starting with "search --nofloppy ..."
Then Ctrl+X to boot.
Now system must start.

Then edit /usr/lib/grub/grub-mkconfig_lib file.

Find this finction:

prepare_grub_to_access_device ()

Comment this lines with "#" or remove it:

if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then echo "search --no-floppy --fs-uuid --set ${fs_uuid}" fi

Save the file and run: "sudo update-grub" and restart.

This works by me fine.
2009-10-13 14:19:31 Live Video Broadcast: Ubuntu + Red5 + Adobe FME + JW FLV Player


All that we need:
Ubuntu (Server) | Red5 | Adobe Flash Media Encoder | JW FLW Player

Server

1. Install Ubuntu.
I have installed it on virtual machine (Sun VirtualBox).  Installations manual is on Ubuntu website available.

2. Install Red5 Server
At first install red5_0.7.0_all.deb.
wget http://www.nielsenaa.com/red5-installers/red5_0.7.0_all.deb
sudo dpkg -i red5_0.7.0_all.deb
sudo apt-get install -f

Download  red5-0.8.0-java5.tar.gz (red5 v0.8.0 has no .deb file at this time. v 0.7.0 don't support FME)
Remove all items in /usr/lib/red5/
unpack copy all from red5-0.8.0-java5.tar.gz    to   /usr/lib/red5/

Restart Red5:
/etc/init.d/red5 stop
/etc/init.d/red5 start

Test it:
telnet localhost 5080


Streaming Source Client

1. Download and install Adobe Flash Media Encoder (Its Free)

2. Config FME:

Format: VP6
FMS URL: rtmp://Ubuntu_Server_IP/oflaDemo/live
Stream: live

Other configs at your choice.

 

 

Viewer Client

1. Download JW FLW Player

2. Create index.htm whith this code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

<head>

<title>Video Client</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>

<script type="text/javascript">
var flashvars =
{
'streamer':                     'rtmp://Ubuntu_Server_IP/oflaDemo/live',
'file':                          encodeURIComponent('live?videoKeyframeFrequency=5&totalDatarate=248'),
'type':                         'rtmp',
'controlbar':                   'over',
'stretching':                   'fill',
'frontcolor':                   'ffffff',
'backcolor':                    'cccccc',
'lightcolor':                   'ffffff',
'screencolor':                  'ffffff',
'id':                           'playerID',
'autostart':                    'true'
};

var params =
{
'allowfullscreen':              'true',
'allowscriptaccess':            'always',
'bgcolor':                      '#FFFFFF'
};

var attributes =
{
'id':                           'playerID',
'name':                         'playerID'
};

swfobject.embedSWF('/swf/player.swf', 'player', '720', '500', '9.0.124', false, flashvars, params, attributes);
</script>

</head><body>
<center>
<div id="playercontainer" style="margin-top:30px; width: 720px; height:500px; background-color: #fff; -moz-border-radius: 3px; -webkit-border-radius: 3px; border: 3px solid #aaa; overflow:hidden;"><a id="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
</center>

</body></html>

<

3. You have to change this settings:

'streamer':                     'rtmp://Ubuntu_Server_IP/oflaDemo/live',
'file':                          encodeURIComponent('live?videoKeyframeFrequency=5&totalDatarate=248'),

'streamer': FMS URL in FME + Stream name in FME
encodeURIComponent(' ?videoKeyframeFrequency=5&totalDatarate=248')
totalDatarate - Total Bandwidth required to stream in FME
videoKeyframeFrequency - Format > Advanced Encoder Settings > Keyframe Frequency in FME

 

 

Start Live Broadcast

1. Press Start button in FME. When no errors - stream success.
2. Open index.htm in Browser.

EOF :)

2009-09-29 00:06:20 Windows 7. Kernel auf Port 80?

Hab grad probiert nginx auf meinem Windows-7-System zu starten, der stürtzte aber beim Start ab mit Socket-Fehler.

Der Befehl netstat-ano und "bull's-eye": Der Prozess mit der ID 4 (Kernel) lauschte am Port 80.

Und hier die Lösung:

1) Erstmal RegEdit starten: 2) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP 3) Neues DWORD (32-bit) hinzufügen 4) in "NoRun" umbenennen (ohne "" natürlich) 5) Doppelklick auf "NoRun" 6) Im "Wert"-Feld "1" (auch ohne "") und OK klicken. 7) Rechner neu starten

Jetzt soll der 80-ger Port eigentlich frei sein.

2009-08-19 18:36:48 LogServer v0.7
LogServer

LogServer is python script to receive log messages from D-Link routers.

Features:

  • Save log in file
  • Get SRC-IP info for kernel intrusions
  • Cross-platform
  • Its free

System Requiments:
Pyton 2.6 +

Screenshoot:

LogServer_screen01

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Download: LogServer_v0.7.zip Size: 4 kB

2009-08-14 00:34:22 Time to learn Python
python-logo I'm currently leaning toward Python and began doing so last week. Python is extremely fun to develop in. My first project implemented with phyton is LogServer for DLink routers. The next time i post this tool here as OpenSource :)