Archive

Posts Tagged ‘network’

HOWTO: Connect to internet via Wireless connection in terminal

September 20, 2010 Leave a comment

(all commands should be runing as root “sudo -i” )

Static Address

paste to /etc/network/interfaces

iface wlan0 inet static
wireless-mode Managed
wireless-essid networkName
wireless-key networkKey
address 192.168.1.25
netmask 255.255.255.0
gateway 192.168.1.1
auto wlan0

Replace networkName and networkKey for your router SSID and key.

If needed change IP addresses too.

DHCP automatic IP

paste to /etc/network/interfaces

iface wlan0 inet dhcp
wireless-mode Managed
wireless-essid networkName
wireless-key networkKey
auto wlan0

Replace networkName and networkKey for your router SSID and key.

After that bring itnterface up by command in terminal:

ifdown wlan0 && ifup wlan0

Advertisements
Categories: Uncategorized Tags: , , ,

Downloading website to Hard Disc

September 2, 2010 4 comments

Downloading websites its easy on linux, all what we need is execute a command:

wget -r -l1 -k -p <address>

Arguments:

-r Recursive download (download all files and folders too)
-l1
Download depth for recursive download. (-l0 for infinite. Its -l zero not letter)
-k
Convert Links to local links. Able to browse website locally without manual converting links
-p
Download images too
<address> Address to download e.g. http://mypage.com

In example if we need a WxPython documentation locally we can download it by:

wget -r -l0 -k -p http://docs.wxwidgets.org/stable/

Warning: All files will be downloaded (e.g. zip rar and others)

Categories: None Tags: ,