Blog
- Ubuntu / Debian or other Linux
- Lynx
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)
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 runapt-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
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.
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
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 :)
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.
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:
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
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 :)