Posts tagged ‘Linux’

TP-Link TD-W8961ND DSL router can not access admin web page after 24 hours or so

This is a security feature. If the Admin web page has not been accessed for some time the router disables the access completely. Router does still work, ping is OK, WLAN and WWAN connections are working, you just can not access the admin web page.

As I am running a Linux server I decided to make a hourly cron job that simply accesses the router admion web page every hour. So I can access the admin web all time without the need to cycle it’s power 🙁

I added a cron.hourly bash script to access the admin page every hour:

#!/bin/sh
wget -O - -q -t 1 --user=<adminusername> --password=<yourpassword> http://<yourrouterip>

Replace the user name, password entry and ip with the ones of your router and copy that bash shell script to /etc/cron.hourly. Don’t forget to make it executable (chmod a+x ).

Update: although the above is running the web admin page could not be reached after some days. Odd security mechanism 🙁

Howto dump all texts of a web site

Recently I wanted to get all texts from a web site to prepare a translation. Although I found the one or other tip, here is the easy solution with a linux system.
Simply use lynx:

lynx -crawl -traversal http://website.de

(just replace website.de with the URL you want to get the texts from).

To get all html pages (no images etc) you can use wget:
wget -r -k -L -A htm,html http://website.de

With lynx you will get all texts as dat files and can start reading/translating offline.

Linux Mint Debian Edition 201101 on AOA 150

I started to install and run LMDE 201101 on my Acer Aspire One D150.

Changes after install:
Touchpad-In control Center-Hardware-Mouse-Enable Mouse clicks with touchpad

After suspend (lid closed) and resume there was no display. Added one line in “/usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-acer.fdi” and commented out another line:

 
<!-- Aspire One 110 -->
 <match key="system.hardware.product" prefix_outof="AOA110;AOA150">
 <!--<merge key="power_management.quirk.none" type="bool">true</merge>-->
 <merge key="power_management.quirk.quirk-vbe-post" type="bool">true</merge>
 </match>

Then restarted hal with
sudo /etc/init.d/hal restart
After this change suspend/resume does work OK for display.

(see also http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/blank-screen-after-resume-from-suspend-764822/ and http://forums.debian.net/viewtopic.php?f=16&t=44378 why I did this)

Now the last initial change: let the fan be controled by temperature I used the lines

>sudo su
>echo -n “enabled” > /sys/class/thermal/thermal_zone0/mode

That’s it for now…