Saturday, August 14, 2010

Useful IP commands in Linux

Display NIC's configurations:
# for all NIC's
$ ifconfig

# Just for eth0
$ ifconfig eth0

Assign an IP to a NIC:
$ ifconfig eth0 192.168.0.1

# assign multiple IPs
$ ifconfig eth0:0 192.168.0.1
$ ifconfig eth0:1 192.168.0.2

# assign subnet
$ ifconfig eth0 192.168.0.1 netmask 255.255.255.0

Disable/Enable NICs:
# enable
$ ifconfig eth0 up

# disable
$ ifconfig eth0 down

IP/hostname Lookup:
# look up hostname
$ host 192.168.0.1
# for more info
$ dig -x 192.168.0.1

# trace route
$ traceroute www.example.com

# trace path
$ tracepath www.example.com

# DNS test
$ host www.example.com

Friday, April 9, 2010

How to Prevent Files from Being Used by Other Website?

Added these lines to your .htaccess file.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?askapache.com/.*$ [NC]
RewriteRule \.(gif|jpg|swf|flv|png)$ /feed/ [R=302,L]

Wednesday, March 10, 2010

Microsoft Office 2010 Opens for Beta Testing!

Microsoft is inviting IT professionals around the world to test Office 2010 and reflect feedbacks. This is a pre-release version of Office Professional Plus 2010, so take your pre-caution before installing.

To register and download this beta version, click here.

Make sure you have the following:
Internet access (to download Office Professional Plus 2010 Beta and get updates)

A PC with these minimum recommended specifications:
  • 500 MHz 32-bit or 64-bit processor or higher
  • 256 MB of system memory or more
  • 3.5 GB of available disk space
  • 1024x768 or higher resolution monitor
  • DVD-R/W Drive
Supported Operating Systems:
  • Windows XP with Service Pack (SP) 3 (32-bit)
  • Windows Vista with SP1 (32-bit or 64-bit)
  • Windows Server 2003 R2 (32-bit or 64-bit)
  • Windows Server 2008 with SP2 (32-bit or 64-bit)
  • Windows 7 (32-bit or 64-bit)