httrack is a program so that you can copy a website. I downloaded the file from their website for linux based computers and then extracted the files but now if I go and look for the file. I can't run the program or anything, it just appears as a bunch of random files such as html, lang, libtest, etc…
How can I actually run the file? Im a newbie to linux so please give simple instructions.
14 Answers
If you do not know that you can find the source code in this directory, then you'd better install the package via apt with this command
sudo apt-get install httrackand all is fine and you can start httrack via terminal to download the internet ;)
httrack "" -O "/tmp/"No, sorry, replace google.com with your target URL.
The hard way:
Install a helper
sudo apt-get install checkinstallCompile and install
cd wget tar xf httrack-3.48.21.tar.gz cd httrack-3.48.21 ./configure make sudo checkinstallYou could also use
sudo make installinstead ofsudo checkinstall.
As more than an alternative you can use wget to retrieve remote web pages.
wget is a treasure. You can do lots of things you can't imagine.
I also tried httrack in the past, it's my favorite in Windows platform. When I switched to Ubuntu I also tried it again but it was not I expected then I happened to know merits of wget. I made myself a .bashrc command which I use it frequently.
crwl() { wget --tries=inf --timestamping --recursive --level=inf --convert-links --page-requisites --no-parent "$@"
}Copy above function into your .bashrc
Then source your .bashrc file from your terminal in user directory or logout and login.
source .bashrc It's my function as it is, you can modify it to your needs.
You can use it like this:
crwl Further resources:
Stable packages
to get the full GUI version
apt-get update
apt-get install webhttrack
or to get the commandline version only
apt-get update
apt-get install httrack
While using Linux Platforms prefer wget instead of httrack. wget or web get downloads files over a network.It is non interactive(works in background).
The following command would download the files in current working directory. wget
This image can help you understand the usage of command