lunes, 30 de septiembre de 2013

join several jpg files into one single pdf

one of the most advantage of the linux world is the simpliest and quickiest ways you can solve many issues.

this morning I needed to send some diagrams, comments and other stuff in one single pdf, each one was a jpg file, so the steps how to join them are:

1. sudo apt-get install imagemagick
2. convert *jpg myfile.pdf

that's all, if the image files have high resolution there are some parameters in order to decrease the size of the output file, check man convert and you'll see

have a nice week

miércoles, 25 de septiembre de 2013

rebuilding the X after a brute force shutdown

Well, some days ago I was downloading some files, after get a beverage I realized that I forgot to plug my laptop to the AC so it was shut down, then I tried to turned it on but I could not get the X server running, maybe files such as .Xauthority were locked it, I'm not sure, anyway the steps that I used to rebuild the X were:

1. reinstall xorg: sudo apt-get install --reinstall xorg
2. remove .Xauthority files in /home: sudo rm /home/myuser/.Xauthority*
3. reboot

that's it, it works for me, hope it might work for you