Monday, October 29, 2012

DNS stuff

Flush DNS Cache in Ubuntu 12.04 (Precise Pangolin)

To flush your system DNS Cache Resolver in Ubuntu 12.04, press Ctrl – Alt – T on your keyboard to open Terminal. When terminal opens, run the commands below to clear it.

sudo /etc/init.d/dns-clean

http://www.liberiangeek.net/2012/05/windows-7-vs-ubuntu-12-04-how-to-flush-your-system-dns-cache/


Add custom DNS

To avoid having your settings get revoked after reboots, or after periods of inactivity, you may need to make the following changes via the command line:
$ sudo cp /etc/resolv.conf /etc/resolv.conf.auto
NOTE: The dhclient.conf location may vary depending on you linux distribution.

To locate the correct file you can use:
$ sudo find /etc -name dhclient.conf

$ gksudo gedit /etc/dhcp3/dhclient.conf
# add the following line to the document before the 'return subnet-mask' command
supersede domain-name-servers 208.67.222.222,208.67.220.220;
# save and exit
$ sudo ifdown eth0 && sudo ifup eth0
You may be required to change eth0 to your own network device's name if it uses a non-standard name.


https://store.opendns.com/setup/device/ubuntu/


Check domain with custom DNS

DNS records are likely cached by your provider's DNS servers so if you want to check if the DNS changes you made were successful you can interrogate a DNS server from your domain hosting service with dig:

dig -t a ns1.myhostingcompany.com @domain_registrar_dns_server

It you want Ubuntu to start caching dns I recommend installing pdnsd together with resolvconf. nscd is buggy and not advisable.

Example: dig -t a @8.8.8.8 example.com

http://askubuntu.com/questions/2219/how-do-i-clear-the-dns-cache


Check your PC DNS in command-line

nm-tool

http://askubuntu.com/questions/152593/command-line-to-list-dns-servers


Check DNS related stuff online

http://www.iptools.com/

Monday, September 10, 2012

Linux alternative/equivalent for AcDsee

digiKam

digiKam is an advanced digital photo management application for Linux, Windows, and Mac-OSX.  The people who inspired digiKam's design are the photographers like you who want to view, manage, edit, enhance, organize, tag, and share photographs under Linux systems.

http://www.digikam.org

darktable

darktable is an open source photography workflow application and RAW developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.

http://www.darktable.org

Shutter - Screenshot tool

Shutter is a feature-rich screenshot program. You can take a screenshot of a specific area, window, your whole screen, or even of a website – apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all within one window. Shutter is free, open-source, and licensed under GPL v3.


http://shutter-project.org

Monday, August 6, 2012

Read & Remove EXIF Data From the Command Line

Most digital cameras will insert metadata into images. This metadata is stored using the exchangeable image file format (EXIF) and can contain camera specifications, exposure settings, thumbnails, GPS coordinates and more. This article outlines some Linux command line tools you can use for reading, editing and removing EXIF metadata from images.
Reading and Editing EXIF Metadata with ExifTool
ExifTool is powerful a Perl program that can be used to read and edit EXIF metadata in images. To install ExifTool as /usr/bin/exiftool on Fedora, install the perl-Image-ExifTool package:
su -c 'yum install perl-Image-ExifTool'
Alternatively, you can use CPAN to install ExifTool in /usr/local/bin/exiftool.
su -c "perl -MCPAN -e'install Image::ExifTool'"
After installation, you will have the exiftool command available in /usr/bin or /usr/local/bin. To view the EXIF metadata in an image, just past the image as an argument to exiftool.
exiftool dsc_0790.jpg
Here is a snippet of the output from the above command:
ExifTool Version Number : 7.60
File Name : dsc_0790.jpg
Directory : .
File Size : 4.4 MB
File Modification Date/Time : 2008:07:16 09:45:20-07:00
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Big-endian (Motorola, MM)
Make : NIKON CORPORATION
Camera Model Name : NIKON D200
Orientation : Horizontal (normal)
X Resolution : 300
Y Resolution : 300
Resolution Unit : inches
Software : Bibble 4.10a
Modify Date : 2007:06:23 22:00:14
Exposure Time : 1/40
F Number : 2.0
Exposure Program : Aperture-priority AE
ISO : 100
.
.
.

ExifTool has many options for editing and removing EXIF metadata in images. To see the available options, use the --help switch or read the ExifTool documentation.
exiftool --help
Reading EXIF Metadata with Jhead
Jhead is a command line tool for displaying EXIF data embedded in JPEG images. On Fedora, use Yum to install Jhead:
su -c 'yum install jhead'
Now, use /usr/bin/jhead to read EXIF metadata:
jhead dsc_0790.jpg
Here is an example of the output produced by the jhead command:
File name : dsc_0790.jpg
File size : 4654488 bytes
File date : 2008:07:16 09:45:20
Camera make : NIKON CORPORATION
Camera model : NIKON D200
Date/Time : 2007:06:23 22:00:14
Resolution : 3880 x 2608
Flash used : No
Focal length : 50.0mm (35mm equivalent: 75mm)
Exposure time: 0.025 s (1/40)
Aperture : f/2.0
ISO equiv. : 100
Exposure bias: 1.00
Whitebalance : Auto
Exposure : aperture priority (semi-auto)
GPS Latitude : ? ?
GPS Longitude: ? ?
======= IPTC data: =======
(C)Flag : 0
DateCreated : 20070623
Time Created : 220014
Record vers. : 4

Removing EXIF Metadata with ImageMagick
If you need to strip the EXIF metadata from images, use ImageMagick's mogrify command. To install ImageMagick on Fedora, use Yum:
su -c 'yum install ImageMagick'
After ImageMagick is installed, you will have /usr/bin/mogrify available. The mogrify command can be used to strip Exif data from images.
mogrify -strip imagename.jpg
If you need to process a large number of files, use find and xargs:
find ./folder_of_images -name '*.jpg' | xargs mogrify -strip


http://hacktux.com/read/remove/exif

Monday, July 16, 2012

Important Tweaks/Things to do After install of Ubuntu 12.04 Precise Pangolin

http://www.noobslab.com/2012/04/important-things-to-do-after-install_26.html

http://www.webupd8.org/2012/04/things-to-tweak-after-installing-ubuntu.html

http://www.techdrivein.com/2012/06/25-things-i-did-after-installing-ubuntu.html

http://www.omgubuntu.co.uk/2012/04/10-things-to-do-after-installing-ubuntu-12-04

http://howtoubuntu.org/things-to-do-after-installing-ubuntu-12-04-precise-pangolin/


Intel GM45 driver installation

https://launchpad.net/~xorg-edgers/+archive/ppa

http://askubuntu.com/questions/85318/how-can-i-get-my-intel-integrated-graphics-to-be-recognized-in-system-info

http://askubuntu.com/questions/129227/how-do-i-install-intel-hd-graphics-driver-on-ubuntu-12-04

http://intellinuxgraphics.org/index.html


Note:

Downgrade Mesa libraries,

sudo apt-get install libgl1-mesa-dri=8.0.2-0ubuntu3 mesa-common-dev=8.0.2-0ubuntu3
 
Link


CompizConfig

Delete .Xauthority in my home


rm -rf .compiz-1
 
rm -rf ~/.config/compiz-1/compizconfig/*
 
sudo apt-get purge compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager compiz-fusion-plugins-extra
 
unity --reset
 
Link  
 
 
 
VAAPI driver for Intel G45 & HD Graphics family 
 
 
https://launchpad.net/ubuntu/+source/intel-vaapi-driver/