Posted on July 12, 2010 by govath
Suppose you want resize every your photos to put it on web. As you know, you can’t upload your photos on a web page with the highest resolution because a web gallery became inaccessible and too slow to load. Suppose that you have a folder containing every photos of you holidays and you want resize it at 640 of width maintaining original aspect ratio. To make a resize there are many tools but I suggest a command line tool called “mogrify”. This tool will be installed with ImageMagick Libraries, so you have to install ImageMagick on you Linux.
sudo apt-get install imagemagick
Now you can go to your home folder which you have saved your photos and do :
mogrify -resize 640×480! *.jpg
Thank
Filed under: Linux | Leave a Comment »
Posted on June 15, 2010 by govath
Description of few parameters of top command:
wa = Waiting for I/O
us = User space
sy = system/kernel
ni = Nice Process
id = Idle
hi = Hardware Interrupts
si = Software Interrupts
EDIT:
1. us -> User CPU time: The time the CPU has spent running users’ processes that are not niced.
2. sy -> System CPU time: The time the CPU has spent running the kernel and its processes.
3. ni -> Nice CPU time: The time the CPU has spent running users’ proccess that have been niced.
4. wa -> iowait: Amount of time the CPU has been waiting for I/O to complete.
5. hi -> Hardware IRQ: The amount of time the CPU has been servicing hardware interrupts.
6. si -> Software Interrupts.: The amount of time the CPU has been servicing software interrupts.
Filed under: Linux | Leave a Comment »
Posted on March 17, 2010 by govath
Log in as root and type the following
# arping -D -I eth0 -c 2 10.5.70.2
ARPING 10.5.70.2 from 0.0.0.0 eth0
Unicast reply from 10.5.70.2 [00:02:55:C7:1D:49] for 10.5.70.2 [00:02:55:C7:1D:49] 4.222ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
[root@govath-pc ~]# echo $?
1
Filed under: Linux | Leave a Comment »
Posted on March 15, 2010 by govath
Configure Pidgin . Do Ctrl+A to open the ‘Accounts’ window, then ‘Add’. On the ‘Basic’ tab, select the XMPP Protocol.
Username: Your Facebook username
Domain: chat.facebook.com
Resource: Pidgin
Password: your Facebook password
Local alias: Alias
On the Advanced tab, then enter the following:
Connect port: 5222
Connect server: chat.facebook.com
Uncheck ‘Require SSL/TLS’
You’re now set to use XMPP ‘Jabber’ with Pidgin
Filed under: Linux | Leave a Comment »
Posted on January 25, 2010 by govath
Some Basic examples of setting permissions to Files.
Granting an additional user read access
$ setfacl -m u:lisa:r file
Revoking write access from all groups and all named users (using the effective rights mask)
$ setfacl -m m::rx file
Removing a named group entry from a file’s ACL
$ setfacl -x g:staff file
Copying the ACL of one file to another
Methond 1:
$ getfacl file1 | setfacl --set-file=- file2
Method 2:
$ getfacl file1 > acls.txt
$ setfacl -f acls.txt file2
Copying the access ACL into the Default ACL
getfacl --access dir | setfacl -d -M- dir
Filed under: Linux | 2 Comments »