This is a tutorial for HP-Compaq TC4400 Users on Ubuntu. Note, that I'm a total beginner with Linux, so this page will contain everything I did with my Notebook called Alice :-)
2009. március 30.
Notice: pdfnup --trim
It removes a given amount of margins on the side, with the syntax 'left bottom right top'.
2009. január 18.
How to change default application for a filetype?
Right click on the file, choose Properties, select Open with tab, change the application.
2009. január 15.
How to change your MAC Addresses
$ sudo gedit /etc/network/interfacesadd the hwaddress line under the apposite device - for example:auto eth0
#iface eth0 inet dhcp
hwaddress ether UR:MA:CA:DD:RE:SS
(ether is the type of device, according to ifconfig - "Link encap:Ethernet")to restart / stop /start networking:
$ sudo /etc/init.d/networking restart
$ sudo /etc/init.d/networking stop
$ sudo /etc/init.d/networking start
2009. január 3.
ImageMagick converting multiple files
*I do not use this method anymore, although it was a great start.*
After being a book-worm for half a day, I found out how can I write a working script to solve my imagemagick output problem.
It looks like this:
2.) copy paste the script
3.) save as anyname.sh
4.) make it executable
Usage:
1.) copy anyname.sh in the folder containing only the image files you want to make simple
2.) go (cd) to this folder in the terminal
3.) type ./anyname.sh
4.) wait and see.
How to convert this to pdf?
How to join these single-page pdfs?
After being a book-worm for half a day, I found out how can I write a working script to solve my imagemagick output problem.
It looks like this:
#!/bin/sh1.) open your favorite text editor
for i in `find -iname '*.jpg'`
do
convert $i -background white -flatten -colorspace Gray -negate -edge 1 -negate -normalize -sharpen 1 -threshold 50% -despeckle -blur 0x.5 -normalize +dither -posterize 8 gif:- >> $i.gif
done
2.) copy paste the script
3.) save as anyname.sh
4.) make it executable
Usage:
1.) copy anyname.sh in the folder containing only the image files you want to make simple
2.) go (cd) to this folder in the terminal
3.) type ./anyname.sh
4.) wait and see.
How to convert this to pdf?
mogrify -format pdf *.JPG
How to join these single-page pdfs?
pdfjoin *.pdf --outfile newname.pdf
2008. december 29.
ImageMagick
I gave up on tesseract, so now I'm modifying the photos I took to a smaller size, and attaching them in a PDF with gscan2pdf.
I installed ImageMagick with synaptic, and found the matching script on it's webpage.
I had to modify this script, because convert didn't find the
- input filename globbing (convert *.JPG [outputfilename])
- output filename references (convert *.jpg myimage-%d.jpg) which should produce myimage-1.jpg, myimage-2.jpg, etc.
However, the output just didn't want to work. It always gave me a single file: the last file. But the procedure was so long, I think the program did the work, just saved all the images over that one file.
To see if this is only because of the older version (2.4) of the program, I tried to install, the newest version(2.6). It installed well, however, something went wrong, and I got the following error while trying to use convert
I installed ImageMagick with synaptic, and found the matching script on it's webpage.
I had to modify this script, because convert didn't find the
-contrast-stretch.
Now it looks like this:
convert eredeti.JPG -background white -flatten -colorspace Gray -negate -edge 1 -negate -normalize -sharpen 1 -threshold 50% -despeckle -blur 0x.5 -normalize +dither -posterize 8 verzio_dit3.gifSince I want to modify a lot of images, I tried to do this simple, so I tried to use these tricks:
- input filename globbing (convert *.JPG [outputfilename])
- output filename references (convert *.jpg myimage-%d.jpg) which should produce myimage-1.jpg, myimage-2.jpg, etc.
However, the output just didn't want to work. It always gave me a single file: the last file. But the procedure was so long, I think the program did the work, just saved all the images over that one file.
To see if this is only because of the older version (2.4) of the program, I tried to install, the newest version(2.6). It installed well, however, something went wrong, and I got the following error while trying to use convert
error while loading shared libraries:libMagickCore.so.1Now I'm reinstalling, following these tips./configure LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib"Installation was a success.
However, converting more files at once still doesn't work.
2008. december 15.
Cinelerra
Installing:
- Synaptic Package Manager: Settings -> Repositories.
Make sure you have universe, multiverse and restricted sources checked in the first tab.
Click on tab Third Party. Click on the Add button and enter your chosen repository (for me the next line):
(for AMD64 (and also Core Duo Intel64), by Valentina Messeri)
Clicking Add Source will display the new repository enabled in the Software Sources window.
You should now see Cinelerra in the list of packages available in Synaptic.
Follow Synaptic instructions for installation.
With Synaptic Package Manager:
Open the Software Sources Window:- Synaptic Package Manager: Settings -> Repositories.
Make sure you have universe, multiverse and restricted sources checked in the first tab.
Click on tab Third Party. Click on the Add button and enter your chosen repository (for me the next line):
deb http://giss.tv/~vale/ubuntu64 ./(for AMD64 (and also Core Duo Intel64), by Valentina Messeri)
Clicking Add Source will display the new repository enabled in the Software Sources window.
You should now see Cinelerra in the list of packages available in Synaptic.
Follow Synaptic instructions for installation.
Feliratkozás:
Bejegyzések (Atom)
