Cache uk http

MEEGO / HARMATTAN : WEBHTTRACK which websites will you copy cache using #Httrack on #MeeGo #Harmattan for #n9 !n950 ? I am about to #travel

Httrack needs to be installed and fixed as follow :

1st read

then FeedBack

sudo apt-get install webhttrack

sudo ln -fs ../../usr/bin/grob /etc/alternatives/x-www-browser
sudo ln -fs  ../../etc/alternatives/x-www-browser /usr/bin/x-www-browser

sudo cp /usr/bin/webhttrack  /usr/local/bin/webhttrack.orig
sudo cp -av /usr/local/bin/webhttrack  /usr/local/bin/webhttrack.mine
sudo ln -fs /usr/local/bin/webhttrack  /usr/bin/webhttrack 

now some fix should be applied :

mktemp -d

diff /usr/local/bin/webhttrack.orig /usr/local/bin/webhttrack.mine
--- /usr/local/bin/webhttrack.orig
+++ /usr/local/bin/webhttrack.mine
@@ -54,7 +54,7 @@
 user_name=`id -un`
 if test -n "${user_name}"; then
-ps -e -U "$user_name" | grep -E "(iceape|mozilla|netscape|firebird|firefox)" | grep -qv "grep -E"
+ps -e  "$user_name" | grep -E "(iceape|mozilla|netscape|firebird|firefox)" | grep -qv "grep -E"
@@ -161,7 +161,7 @@
 # Create a temporary filename
-TMPSRVFILE="/tmp/.webhttrack.$$.`head -c16 /dev/random | md5sum | cut -f1 -d' '`"
+TMPSRVFILE="/tmp/.webhttrack.$$.`dd if=/dev/random bs=1 count=15 | md5sum | cut -f1 -d' '`"
 >${TMPSRVFILE} || ! log "cound not create the temporary file ${TMPSRVFILE}" || exit 1
 # Launch htsserver binary and setup the server
 (${BINPATH}/htsserver "${DISTPATH}/" path "${HOME}/websites" lang "${LANGN}" $@; echo SRVURL=error) > ${TMPSRVFILE}&

mkdir -p MyDocs/local/websites
ln -fs MyDocs/local/websites ~/

bash -x webhttrack



offline.txt · Last modified: 2020/09/08 20:46 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki