Tikejhya: Ashish Nepal

Knowledgebase

Month: August 2011 (Page 1 of 4)

VMware (growing disc to preallocated disk)

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

here is how we can change growing disk type to preallocated disk type in VMWare.

vmware-vdiskmanager -r sourceDisk.vmdk -t 2 targetDisk.vmdk

your cpu doesnot supoprt long mode. Use a 32 bit distribution (Solution)

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

your CPU doesn’t support long mode. Use a 32 bit distribution

If you ever get this,

Solution: change the virtualization mode (Enable) into your CPU.

centos NetInstallation Guide.

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Website Name: mirror.centos.org/centos/6.0/os/i386 or centos/6.0/os/x86_64
Centos 6.0 does accept st. url

Setup CentOS 5.8 Netinstall URL (Installation Web site name and CentOS directory)

Web site name:
mirror.centos.org
CentOS directory for i386:
/centos/5/os/i386
or
/centos/5.8/os/i386
CentOS directory for x86_64:
/centos/5/os/x86_64
or
/centos/5.8/os/x86_64

Change Timezone of Linux Machine

ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

Note: you can be there in zoneinfo/ tab tab to search ur place match the accurate one,

Rsyslog Tips And Tricks

Tips And Tricks Debug Command – RSYSLOG

log: rsyslogd -f /etc/rsyslog.com -N1
rsyslogd -c3 -dn > /var/log/rsyslog.test
Rsyslog – Tips – Table name might be looking for rsyslog.tablename where it might have gone as rsyslog.rsyslog_EventsSystem

Determine the folder size

Determine the folder size

How to check folder size in linux machine

$du -ah /path/to/dir
du -s /dir/

http to http requestHeader

Change http header request to https

RequestHeader set X_FORWARDED_PROTO ‘https’

Convert Date timestamp

`date +’%Y-%m-%d%H:%M:%S’`

find and delete older files

find /home/ashish.nepal/dump/ -mtime +10 -exec rm -rf {} ;

Can always do with scripting to delete dumped files.

Crontab (Special String)

Special string Meaning
@reboot Run once, at startup.
@yearly Run once a year, “0 0 1 1 *”.
@annually (same as @yearly)
@monthly Run once a month, “0 0 1 * *”.
@weekly Run once a week, “0 0 * * 0”.
@daily Run once a day, “0 0 * * *”.
@midnight (same as @daily)
@hourly Run once an hour, “0 * * * *”.

Page 1 of 4

Powered by WordPress & Theme by Anders Norén