Skip to main content

Posts

Showing posts with the label Linux

Convert JPG files to PDF in linux

Install imagemagick package apt-get install  imagemagick Go to the command prompt and Go to that folder containing jpg $cd path-to-your-jpg-files Use Covert  comand to convert jpg to PDF $convert path-to-your-jpg-files.jpg path-to-yournewfile.pdf We can use *.jpg to include all jpg files into folder files

Steps to Install Google Chrome in Ubuntu

sudo gedit /etc/apt/sources.list For Ubuntu 9.04 deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main Then,update the source list and install chromium sudo apt-get update sudo apt-get install chromium-browser After installation you can open up the browser at Applications–>Internet–>Chromium Web Browser,right click on it and select “add this launcher to panel”

Image Format Convertor : Script

To Covert all images from one folder from one format to another format Create file test.sh Add following line to that file for i in *png do echo $i temp=$(echo $i | sed -e 's|\.png||') convert -resize 640x200 $i $temp.gif done Save file Chmod +x test.sh Run File : ./test.sh Here I have used .png and .gif. We can try with other .jpg, .jpeg, tif, ttf, bmp etc.

mogrify : ImageMagic

Install ImageMagic : apt-get install imagemagick mogrify - With the use of resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert(1) writes to a different image file e.g Let's resize images mogrify -resize 500x300 Test/*.png

Easy Launch/Search for applications and files in linux

I found two ways to launch application in Linux 1.Application Launcher There is application launcher in Linux Which is accessible with keyboard shortcut ALT+F2 ,In which can find and launch application easily 2. Gnome Do GNOME Do is a popular, free application launcher for Linux by David Siegel.It allows you to search for applications and files also allows you to specify actions to perform on search results by providing instantaneous, action-oriented search results that adapt to reflect user habits and preferences.

“User’s $HOME/.dmrc” file is being ignored.

When your linux machine gives .dmrc problem "“User’s $HOME/.dmrc” file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permission. User $HOME directory must be owned by user and not writable by other users Do this.... sudo chmod 644 ~/.dmrc sudo chown your_username ~/.dmrc sudo chmod 755 /home/your_username sudo chown your_username /home/your_username