Thursday, March 31, 2011

xen slow network and packet dropped

http://xen.1045712.n5.nabble.com/Slow-network-solved-td2570997.html

finally :)
currently reading on:

reboot kernel only once

http://www.brianessig.com/2009/09/grub-reboot-to-new-kernel-once/

Source : IWH senior suport

xen with PAE kernel

ayoyo..
cat /proc/meminfo
MemTotal: 2207744 kB
MemFree: 1227388 kB

it is4GB

will be updated later

NAT made easy

new webmin module released. this is what i'm looking for

Simple Firewall Creator module released

Thanks to Manny Fernandez for open-sourcing a new module for easily creating firewalls on Linux and FreeBSD systems, using pre-built blocks of rules and services. You can download it from itsecure-firewall.wbm.gz, and install it in Webmin at Webmin Configuration ->Webmin Modules.

Thank you for developer. :)

setup mail server on linux

http://mysql-apache-php.com/mailserver.htm

this is good tutorial for beginers. like it.

Sunday, March 27, 2011

mysql dump and restore

http://www.patrickpatoray.com/?Page=30

mysqldump --user=XXXXXXXX --password=XXXXXXXX --databases DB_NAME --tables TABLE_NAME > /PATH/TO/DUMPFILE.SQL

mysql --verbose --user=XXXXXXXX --password=XXXXXXXX DB_NAME < /PATH/TO/DUMPFILE.SQL

forward NAT rules

http://www.linuxtopia.org/online_books/centos_linux_guides/centos_linux_security_guide/s1-firewall-ipt-fwd.html

By default, the IPv4 policy in Red Hat Enterprise Linux kernels disables support for IP forwarding, which prevents boxes running Red Hat Enterprise Linux from functioning as dedicated edge routers. To enable IP forwarding, run the following command:

sysctl -w net.ipv4.ip_forward=1

iptables nat with webmin

http://www.trbailey.net/tech/iptables.html

iptables nat with webmin

how to configure NAT with iptables

this guide will show step by step how to configure nat on your network





Monday, March 21, 2011

check processor vt support

http://www.cyberciti.biz/faq/linux-xen-vmware-kvm-intel-vt-amd-v-support/

egrep ‘(vmx|svm)’ /proc/cpuinfo
this will show AMD or Intel VT support if available
update: http://www.howtogeek.com/howto/linux/linux-tip-how-to-tell-if-your-processor-supports-vt/

the error:
Alert: Could Not Start Vps, Reason: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?:

for intel
# grep --color vmx /proc/cpuinfo

for amd
grep --color svm /proc/cpuinfo

finally
cat /sys/hypervisor/properties/capabilities

Sunday, March 20, 2011

secure tmp folder for cpanel

this is shortcut if you do not want to manually edit file

http://apis17.blogspot.com/2011/03/how-to-secure-tmp.html

use command

/scripts/securetmp

Tuesday, March 15, 2011

how to secure tmp

Step 1: Securing /tmp
Step 1.1: Backup your fstab file

cp /etc/fstab /etc/fstab.bak

Step 1.2: Creating tmpmnt partition file (Around 1Gb in size)

cd /var
dd if=/dev/zero of=tmpMnt bs=1024 count=1048576

Step 1.3: Format the new partition

mkfs.ext3 -j /var/tmpMnt

Press Y when asked
Step 1.4: Making backup of old /tmp

cp -Rp /tmp /tmp_backup

Step 1.5: Mount the tmp filesystem

mount -o loop,noexec,nosuid,rw /var/tmpMnt /tmp

Step 1.6: Set the right permissions

chmod 0777 /tmp

Step 1.7: Copy the files back to new tmp folder

cp -Rp /tmp_backup/* /tmp/

Step 1.8: Adding new /tmp filesystem to fstab

echo "/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0" >> /etc/fstab

Step 2: No need for 2 tmp filesystems, so we symlink /var/tmp to /tmp

rm -rf /var/tmp/
ln -s /tmp/ /var/tmp

celcom. how to know your number

hi.
today i have tips & tricks for you all

to get your own celcom phone number (in case forget your own number) or have too many numbers to remember.

dial *118#
answer 8. My account
answer 1. Check Balance

then you will receive SMS Berjaya Dihantar

you will get sms from 2888
Baki 01x xxxxxxx RM100.00, sah sehingga 7/1/2012, tarif plan 3G Blue

now you get your phone number.

alternatively: send sms "BAL" to 2888

good luck :)
Related Posts Plugin for WordPress, Blogger...