Thursday, April 29, 2010

Command line downloads by using multiple connections

Today I try to search in the google that 'wget' can download one file in multiple threads , I found nothing to support this.

but I found the other program can, 'axel'

Axel - A lighter download accelerator for Linux and other Unices.
his program tries to accelerate the downloading process by using multiple connections for one file. Starting from version 0.97, the program can use multiple mirrors for one download as well. The program tries to be as light as possible (25-30k in binary form), so it might be useful as a wget clone on byte-critical systems.


install this program in ubuntu.
tatshuya# sudo apt-get install axel


## help
tatshuya# axel -h
Usage: axel [options] url1 [url2] [url...]

--max-speed=x -s x Specify maximum speed (bytes per second)
--num-connections=x -n x Specify maximum number of connections
--output=f -o f Specify local output file
--search[=x] -S [x] Search for mirrors and download from x servers
--header=x -H x Add header string
--user-agent=x -U x Set user agent
--no-proxy -N Just don't use any proxy server
--quiet -q Leave stdout alone
--verbose -v More status information
--alternate -a Alternate progress indicator
--help -h This information
--version -V Version information

## try download new ubuntu ( 10.04 ) with 5 connections
tatshuya# axel -n 5 http://cdimage.ubuntu.com/dvd/current/lucid-dvd-i386.iso


== TaTsHuYa ==

Monday, April 26, 2010

Resize and Clone disk in VirtualBox.

I have a space problem in my guest os ( windows ) because the first time I just created disk only 10 Gbytes and now it's nearly full.

I have a solution to resize disk by use Virtual Media in Virtual Box.

First, create new disk that larger than the old one.


Next, use command VBoxMedia to clone Harddisk
tatshuya# VBoxManage clonehd --existing "WinXP.vdi" "WinXP-New.vdi"

Sun VirtualBox Command Line Management Interface Version 3.1.6
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: e2785c5a-fbf3-499c-a1c3-2c70405d8184

Then, change Harddisk in Storage settting.



== TaTsHuYa ==

Sunday, April 25, 2010

Enable Java plugins for google chrome in Ubuntu 10.04

In Ubuntu 10.04, sun-java6 packages are not going to be available for ubuntu within the repositories.

So in this version I used "icedtea6-plugin" that is web browser plugin based on OpenJDK and IcedTea to execute Java applets.

First you just checked there is package installed in your system.

tatshuya# sudo dpkg -l icedtea6-plugin

ii icedtea6-plugin 6b18-1.8-0ubuntu1 web browser plugin based on OpenJDK and IcedTea to execute Java applets

Next, create directory plugin in google chrome directory.
tatshuya# sudo mkdir /opt/google/chrome/plugins


Create symbolic link for java plugin
tatshuya# sudo ln -s /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so /opt/google/chrome/plugins

Run google chrome with the parameter '--enable-plugins'
tatshuya# /opt/google/chrome/google-chrome --enable-plugins %U

Test java plugins by goto website 'http://www.bodo.com/javame.htm'


== TaTsHuYa ==

Monday, April 05, 2010

Install Driver DWL-520+ on ubuntu 9.10

Finally after I tried to find many ways to use My OLD PCI Wireless Card on Ubuntu 9.10, I found the easy way to use it by follow this instruction.

'https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper'

Install the ndisgtk package from the Ubuntu repositories.
$> sudo apt-get install ndisgtk

Download Driver for my wireless card.
$> wget ftp://ftp.dlink.com/Wireless/dwl520+/Driver/dwl520+_drivers_307.zip

Extract the Driver
$> unzip dwl520+_drivers_307.zip

Installing Windows driver
$> sudo ndiswrapper -i Drivers/WinXP/AIRPLUS.INF

Automatically loading at start-up
$> sudo echo ndiswrapper >> /etc/modules

==TaTsHuYa==
Load the new driver module
$> sudo depmod -a
$> sudo modprobe ndiswrapper