Sunday, February 13, 2011

wanna run server only with 5W

http://plugapps.com

perfect solution for a home server, its small fits right into your wall socket. comes pre-installled with linux.
512 MB + USB port

http://www.marvell.com/platforms/plug_computer/plug_dev_kit.html
http://www.globalscaletechnologies.com/p-22-sheevaplug-dev-kit-us.aspx

Saturday, February 12, 2011

monitor network usage in linux

monitor bandwidth for interface use this iftop

iftop -i eth0 -B

for the interface eth0 show usage is Bytes per second





















i am using Fedora 13, I had to install this...

yum search iftop 
search if this package is available in your respository

else..
yum install iftop

it's very small... < 60K

iGoogle

well kinda old but I thought its kinda cool...

this is what my home page looks like...

Wednesday, February 9, 2011

display cpu and memory configuration in linux

proc directory is a special directory contains runtime information about the process, memory, device configuration etc.


more /proc/meminfo memory configuration
more /proc/cpuinfo cpu configuration

reference(s):
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html

How to close a live/ hotmail account



closing your live or hotmail account...  go to the following web address (click the link). you are required to sign in to your account first :)

when you close your live or hotmail account, you cannot send or receive messages. But the account data remains.. I closed one of free accounts. when you send mails it just bounces back...  

Thursday, January 27, 2011

mount command

Linux file system or file hierarchy is a tree structure. It starts with the root directory / and branches out to other directories. Unlike windows in linux you can change the root directory using chroot command, you probably use in the rescue mode.

Everything in linux is a file.

mount command attaches file systems. see man mount for more details.
mount -t [type] [device/source] [directory/destination]
mount -t ntfs-3g /dev/sda3 /mnt/data

mount iso image files mount -o loop /mnt/data/Videos/Expendables.iso /mnt/data
finally use umount command to detach the filesystem umount /mnt/data

access your gmail from terminal

create shell script vi gmail.sh


insert the following code :) put your username and password
!#/bin/bash
wget --secure-protocol=TLSv1 --user=sjn4me --password=123 https://mail.google.com/mail/feed/atom -O -

execute ./gmail.sh

Tuesday, January 25, 2011

resizing images in linux

copy the images to a new folder and run the following command
mogrify -resize 1280 *.JPG it means resize images 1280px wide


convert -sample 80x40 input.jpg output.jpg
convert -sample 25%x25% input.jpg output.jpg


for img in `ls *.jpg`
do
convert -sample 25%x25% $img thumb-$img
done


rotate images convert -rotate 90 input.jpg output.jpg


convert to different formats convert input.jpg output.png


add a text label 
convert -font helvetica -fill white -pointsize 36 -draw 'text 10,50 "Floriade 2002, Canberra, Australia"' floriade.jpg comment.jpg
convert -font fonts/1900805.ttf -fill white -pointsize 36 -draw 'text 10,475 "jeromenicholas.co.cc"' floriade.jpg stillhq.jpg


get information on tiff files tiffinfo sample.tif
get information on png files pnginfo sample.png


add a charcoal effect convert -charcoal 2 input.jpg output.jpg
colorize effect convert -colorize 255 input.jpg output.jpg


convert -implode 4 input.jpg output.jpg
convert -solarize 42 input.jpg output.jpg
convert -spread 5 input.jpg output.jpg


multiple commands convert -sample 25%x25% -spread 4 \ -charcoal 4 input.jpg output.jpg


http://www.imagemagick.org/

Thursday, January 20, 2011

Installing mysql on Fedora 13

Installing mysql Fedora 13 - Goddard

change user to root su -
yum install mysql
yum install mysql-server
yum install mysql-devel

after installation.. files will be available on /var/lib/mysql
and user group called mysql will be created.. change the group ownership and permissions
chgrp -R mysql /var/lib/mysql/
chmod -R 770 /var/lib/mysql/

the next step is not necessary.. add the service in desired runlevel
chkconfig | grep mysqld
chkconfig mysqld on

start the service service mysqld start
set the passwords. (note single quote is important)
mysqladmin -u root password 'new-password'
mysqladmin -u root -h hostname password '
new-password'
login to mysql mysql -u root -p

show databases;
use mysql;
show tables;
describe user;
select user, password, host from user;
update user set password = '******' where user = 'root' and host = '127.0.0.1';

About

Blogger templates