2013-11-17

How to download multiple files using cURL

A few months ago I've bought Kobo Aura HD eBook reader. That is my best investment this year :) I am using every chance to read books, but also I am reading magazines that do have ePub format (PragProg, Libre!, FullCircle, BSDMag and Linux Magazine.

But I've had a problem to download all issues of some magazine. If download URL for particular issue can be guessed than cURL will do the job perfectly. As example here is a command to download all 78 issues of FullCircle:

curl http://dl.fullcirclemagazine.org/issue[1-78]_en.epub --create-dirs -o "/home/zlatan/Downloads/fullcircle/fullcirclemagazine#1.epub"

Particular url is http://dl.fullcirclemagazine.org/issueXX_en.epub where XX is issue number. The option o controls output, and because there are 78 files filename will be constructed from fullcircleXX.epub name where XX is corresponding issue number taken from URL

cUrl is free software that exists as package for almost all platforms. So Linux user can use their package manager to install cUrl (if packege is not installed already) and MS Windows users can downloaded it from: http://curl.haxx.se/download.html

Simillary  to download all epub versions of PCLinuxOS Magazine copy and paste the following line into terminal:

curl http://pclosmag.com/download-epub.php?f=[2012-2013][01-12]epub.epub --create-dirs -o "/home/zkadragic/Downloads/pclinuxos/pclinuxos#1-#2.epub"

2013-02-10

How to install Lotus Notes 8.3 on Kubuntu 12.04

Installing Lotus Notes became easier than in previous versions and fortunately there is no need to edit .deb files anymore.
Follow these steps to install Lotus Notes (Kubuntu 12.04.1 32b):

  1. untar the installation: tar xvf lotus_notes853_linuxUb_en.tar
  2. run installer: sudo dpkg -i ibm-lotus-notess-8.5.3.i586.deb
  3. dpkg will throw missing dependencies, you should search and install all that dependencies using apt-get, aptitude or Muon package manager
  4. run: sudo dpkg -i ibm-lotus-notess-8.5.3.i586.deb again
  5. install other lotus notes parts: sametime, activities and so on using the same approach
  6. similarly untar and install fixpack
  7. install the wrapper:
mkdir -p /tmp/notesfix
cd /tmp/notesfix
 
wget –no-check-certificate https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/Makefile
 
wget –no-check-certificate https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/libnotesgtkfix.c
 
wget –no-check-certificate https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/notes-wrapper
 
make
chmod +x notes-wrapper
 
sudo cp notes-wrapper libnotesgtkfix.so /opt/ibm/lotus/notes/
The final step is to edit menu. Right click to Kickoff App Launcher -> Edit Application, find the Lotus Notes entry in Office menu, and put this line into command field:

sudo -u $USER env  GTK2_RC_FILES="/usr/share/themes/Raleigh/gtk-2.0/gtkrc" /opt/ibm/lotus/notes/framework/../notes-wrapper
Now you can "enjoy" your Lotus Notes :)