[lang_en-us]In linux.. you can use wget as your download manager. Wget has many features to make retrieving large files or mirroring entire web or FTP sites easy. How to use it?.. actually it’s pretty simple.
Say you want to download a url. Just type:[/lang_en-us]
[lang_ms-my]Dalam linux,korang boleh gunakan wget sebagai download manager untuk download sebarang file.Wget mempunyai pelbagai fungsi yang aku boleh katakan sangat berguna sebagai “simple tetapi advance” download manager. Cara gunakannya agak mudah.. hanya menggunakan arahan wget seperti[/lang_ms-my]
wget http://ibnuyahya.com/
[lang_en-us]But what will happen if the connection is slow, and the file is lengthy? The connection will probably fail before the whole file is retrieved, more than once. In this case, Wget will try getting the file until it either gets the whole of it, or exceeds the default number of retries (this being 20). It is easy to change the number of tries to 45, to insure that the whole file will arrive safely:[/lang_en-us]
[lang_ms-my]Satu soalan… apa yang akan terjadi jika sambungan internet korang terlalu perlahan dan fail yang nak di download tu sangat besar?. Pastinya mungkin korang akan hadapi masalah “connection fail” atau timeout. Dalam masalah ni,wget akan cuba download file tersebut sehingga selesai atau sehingga memenuhi had bilangan percubaan. Default had bilangan percubaan adalah 20 kali, tetapi kita boleh ubah dengan menggunakan arahan –tries. Contoh dibawah aku ubah had bilangan cubaan download menjadi 45 kali.[/lang_ms-my]
wget –tries=45 http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-desktop-i386.iso
[lang_en-us]Now let’s leave Wget to work in the background, and write its progress to log file log. It is tiring to type ‘–tries’, so we shall use ‘-t’.[/lang_en-us]
[lang_ms-my]jika malas nak tunggu wget selesai download .. boleh run wget sebagai background process dan log segala aktiviti didalam log file. arahan –tries juga boleh digantikan dengan -t untuk arahan singkat[/lang_ms-my]
wget -t 45 -o log http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-desktop-i386.iso &
[lang_en-us]The ampersand at the end of the line makes sure that Wget works in the background. To unlimit the number of retries, use ‘-t inf’.
if you want to resume your download file.. you can add -c parameter[/lang_en-us]
[lang_ms-my]ampersand di akhir line membolehkan wget di jalankan di belakang tabir walaupun korang dah tutup terminal console korang.
jika korang nak resume file download, korang boleh tambah arahan -c[/lang_ms-my]
wget -c http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-desktop-i386.iso
[lang_en-us] When you want to download multiple file.. you can use[/lang_en-us]
[lang_ms-my]Untuk download file melebihi satu file dengan satu arahan[/lang_ms-my]
wget http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-desktop-i386.iso http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-server-i386.iso
[lang_en-us]or.. create a text file. Since..im not familiar with vi.. i’m using nano ;p[/lang_en-us]
[lang_ms-my]ataupun lebih kemas kalau korang masukkan senarai url yang hendak di download kedalam text file. boleh gunakan vi kalau korang biasa dengannya. di sebabkan aku tak biasa, aku gunakan arahan nano je hehe[/lang_ms-my]
nano /tmp/download.txt
[lang_en-us]Then add your link.. put each link in a separate line[/lang_en-us]
[lang_ms-my]Lepastu masukkan link korang. pastikan setiap link dipisahkan dengan line yang baru[/lang_ms-my]
http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-desktop-i386.iso
http://mirrors.cytanet.com.cy/linux/ubuntu/releases/10.04/ubuntu-10.04-server-i386.iso
[lang_en-us]save and run[/lang_en-us]
[lang_ms-my]Save dan run[/lang_ms-my]
wget -i /tmp/download.txt
[lang_en-us]The rest of the wget manual you can read from here http://www.gnu.org/software/wget/manual/wget.html#Top
next time we explore aget command to enable multithread download just like usual download manager application
[/lang_en-us]
[lang_ms-my]Untuk maklumat lanjut dan lebih terperinci.. korang boleh lawati http://www.gnu.org/software/wget/manual/wget.html#Top
akan datang kita bincang pula macamana nak gunakan aget untuk fungsi multi-thread download macam kebanyak download manager buat.[/lang_ms-my]
Greg 7:53 pm on November 7, 2010 Permalink |
Still returned 0 for me
Greg 8:18 pm on November 7, 2010 Permalink |
Ignore the last comment… I forgot to reboot… worked perfectly thanks
admin 10:00 am on November 10, 2010 Permalink |
I’m happy to hear that
Michele 9:40 am on December 22, 2010 Permalink |
I ran this and the problem persists. After running the commands and then rebooting, it returns 1 but the connection still drops. I stay connected on other computers, it’s only my Ubuntu box that fails.
Wilson Media Systems 6:53 pm on April 13, 2011 Permalink |
I had a similar problem, my network connection suddenly stopped working. I had been using Maverick all the time, however.
Fortunately I could use another computer, and found this page.
Using the GUI, I selected network connections, selected my connection, clicked on the IPv6 tab and set method to ignore.
My network immediately sprang into life, without the need to reboot, or the need to manually edit any files.
Nicholas 11:43 pm on October 27, 2011 Permalink |
Ok.. so I am using Ubuntu. This is my first time using it. Just switched over from windows. When I look under my “Network Tools” It shows me the ipv6 thing but I can’t do anything with it. I tried typing in the commands in the terminal but it said that the directory does not exist or something of the like. What can I do. I had internet on for a while and it kept turning off. Now it doesn’t show my internet at all when I click on the connection icon. It still has Linksys as a wireless connection edit option. Any help would be very appreciated. Thank you
Tony 8:40 pm on November 22, 2011 Permalink |
Will this work on 10.04?
ibnuyahya 7:04 am on November 25, 2011 Permalink |
not sure.