July 4, 2009
I recently replaced a failing cable modem — the new one is an Ambit U10C109 Cable Modem. Plenty of configuration options provided you login with the admin:cableroot default username password, not the user:user one reported on the login page.
By default, remote configuration via HTTP and telnet servers is enabled. Since I couldn’t find a web-based method to disable this (you can change the ports from the defaults, but that seems to be it), instead I logged into the telnet server and disabled it from there. Here’s a transcript of the process (if you’ve changed the default port 64623, substitute your value in the telnet command below).
(Input in green, output in black, status fields of interest enhanced in italic)
$ telnet 192.168.0.1 64623
Trying 192.168.0.1...
Connected to 192.168.0.1 (192.168.0.1).
Escape charecter is '^]'.
Ambit U10C019 CableModem
login: admin
password: *********
>show telnet-access
Telnet Access Setting:
Local telnet access : Enable
Remote telnet access : Enable
Telnet Port : 64623
>show web-access
Web Access Settings:
Web Local Access : Enable
Web Remote Access : Enable
Http Port : 64680
>telnet-access remote disable
Disable telnet access from remote.
>web-access remote disable
Disable web access from remote.
>show telnet-access
Telnet Access Setting:
Local telnet access : Enable
Remote telnet access : Disable
Telnet Port : 64623
>show web-access
Telnet Access Setting:
Local telnet access : Enable
Remote telnet access : Disable
Telnet Port : 64623
>quit
Leave a Comment » |
Install, Internet, System Administration, Technology | Tagged: Ambit, Cable Modem, Remote Configuration, Telnet Server |
Permalink
Posted by Cyber Feen
April 8, 2009
Here’s a small bash script wrapper for vpnc, the open-source VPN client for Cisco’s vpn concentrator. Put it in your path, and make sure you have an entry for you in your /etc/sudoers file (see comments in the script file for more info), and then connect, query status, or disconnect with:
vpn on
vpn status
vpn off
As noted in the script it might be just as easy to “vpnc” or “vpnc-disconnect” but this has the added bonus of reporting elapsed connection time.
Leave a Comment » |
Install, Internet, Linux, System Administration, Technology | Tagged: vpn |
Permalink
Posted by Cyber Feen
April 2, 2009
Ok, short and sweet, this one. On newer flavors of 64-bit Linux (Cent OS 5.2 x86_64 in my case) you may notice Word 2000 (via Crossover Office) fails to start, instead putting out lots of lines like this one:
wine: Unhandled exception (thread 0009), starting debugger...
wine: Unhandled exception (thread 000b), starting debugger...
wine: Unhandled exception (thread 000d), starting debugger...
wine: Unhandled exception (thread 000f), starting debugger...
There’s a two-stage fix, the first being noted in the CodeWeavers support forums (run these commands as root, or via sudo):
# sysctl -w vm.mmap_min_addr=0
# cp -p /etc/sysctl.conf /etc/sysctl.conf~
# echo "# Support Crossover Office" >> /etc/sysctl.conf
# echo "vm.mmap_min_addr = 0" >> /etc/sysctl.conf
It should be noted that if /etc/sysctl.conf already has a setting for vm.mmap_min_addr, it should be changed, instead of adding a second definition of it as I did here.
At this point (x86_64 only I believe), you may see Word launching, but crashing without any apparent errors after a few seconds. Here, the fix is to modify how system prelinking is performed, first by undoing all prelinking, and then by modifying the prelinker settings to override Exec-Shield support (see the prelink man page for details):
# /usr/sbin/prelink -ua
# cd /etc/sysconfig
# mv prelink prelink~
# sed 's/-mR/"-mR --no-exec-shield"/' prelink~ > prelink
Leave a Comment » |
Linux, System Administration, Technology | Tagged: Crossover Office, Linux, Word |
Permalink
Posted by Cyber Feen
November 13, 2008
Some time back I was asked to set up a way to archive images from a PC (running WinXP Pro). An attached high-quality scanner was used to collect images each day. I use rsync for all sorts of situations where data needs to be copied or moved about, and here then was another opportunity to use it. Two requirements:
- open-source, or at least freeware
- automated, please!
On the PC I installed DeltaCopy, a free open source package built around rsync 2.6.6. It’s easy to install, easy to setup and then you forget about it. Since we wanted to save all images in E:Scans I set up the configuration on the scanner machine very simply:
[Scans]
/cygdrive/e/Scans
I also enabled a password with the username “archive”. You can find out how to do all this in the documentation that comes with DeltaCopy, it’s very clear.
The scanner machine had a firewall enabled, so I opened port 873/TCP to allow an rsync client to connect. Then on the Linux system which was going to perform the archiving, I set up a cron job to run nightly which ran the following command:
rsync −−verbose
−−recursive
−−modify-window=2
−−password-file=/root/pass.txt
archive@scannermachine::Scans /data/archive
This pulled any new files from the E:Scans folder each night. Of course having the plain-text password visible, even if only by root, isn’t ideal so using SSH keys instead would be preferable.
In archive :: stuff :: Part II we will look at building on this basic archive scheme, and provide details on upgrading rsync used by DeltaCopy to 2.6.9 for a handy extra feature.
Leave a Comment » |
System Administration, Technology | Tagged: archive, DeltaCopy, rsync |
Permalink
Posted by Cyber Feen