Buy either
Oracle Load Testing Accelerator for Oracle E-Business Suite
Oracle Load Testing Accelerator for Siebel
Wednesday, April 20, 2011
Tuesday, April 19, 2011
linux bandwidth control
1. behind a router (easily done in mikrotik with queues)
2. using tc with iptables mangle
3. using redirection of traffic via squid proxy
2. using tc with iptables mangle
3. using redirection of traffic via squid proxy
Monday, February 28, 2011
MSM LSI MEGARAID
Install the latest MSM Megaraid manager regardless of whatever version actually belongs to the storage card on LSI website
Wednesday, January 19, 2011
Monday, January 10, 2011
Sunday, January 09, 2011
resize LVM by adding new disk to lvm
fdisk /dev/sdb
mkfs -t ext3 -c /dev/sdb1
pvcreate /dev/sdb1
vgextend VolGroup00 /dev/sdb1
lvextend -L+1G /dev/VolGroup00/LogVol00 ;for adding one more GB to Logical Volume LogVol01
resize2fs /dev/VolGroup00/LogVol00
Thanks to http://sujithemmanuel.blogspot.com/2007/04/how-to-add-disk-to-lvm.html
amplify sound volume of a video file
To amplify - increase sound volume of - a video file do
ffmpeg -i myvideo.avi -vcodec copy -vol 5000 myvideo_louder.avi
thanks to http://superuser.com/questions/13552/how-to-amplify-the-audio-in-a-video-file
Thursday, January 06, 2011
VMWARE ESX 4.1 boot from ISO does not work
Remember to check the box which says "Connected", the damn thing took soooo much of my time.
Monday, December 20, 2010
Tuesday, December 07, 2010
linux detach screen
to exit a session created by screen command without stopping what is going on in the session do a
CTRL+a then d
CTRL+a then d
Friday, November 19, 2010
awk dmidecode output
dmidecode | awk 'BEGIN {RS = "\n\n"} /System Information/'
thanks to http://aixhealthcheck.com/index.php?id=246
thanks to http://aixhealthcheck.com/index.php?id=246
Wednesday, October 27, 2010
Tuesday, October 26, 2010
copy and backup
find /tmp/test/ -name '*.csv' -exec cp --backup=numbered {} /tmp/test2/ \;
if a file exists in the destination cp will create a copy first like filename.~1~
Thanks to RAMIN the RAMPALO
Sunday, October 24, 2010
Saturday, October 23, 2010
linux iptables SNAT
you do not have to have the ip address of a machine behind iptables set on the gateway machine before you can SNAT with the ipaddress of the machine behind the firewall. In other words you can keep your valid ip address on the machine behind the gateway and still ask your gateway to SNAT with that IP.
Wednesday, October 20, 2010
Visio add text to shape with yellow dot
In detail, it goes something like this:
1. Create or select a shape (duh!)
2. Open the ShapeSheet via Window > Show ShapeSheet
Go to: Insert > Section and check Controls and Text Transform (if it isn’t grayed out)
You should now see both the Controls section and the Text Transform section in the ShapeSheet.
3. In the Text Transform section, set the TxtPin cells as follows:
TxtPinX = Controls.Row_1.X
TxtPinY = Controls.Row_1.Y
4. In the drawing window, reposition the control handle to a suitable default position. The text should follow along!
Taken from: http://www.visguy.com/2009/05/06/top-twelve-text-tips/
Wednesday, August 25, 2010
rsync from windows to linux
1.
vi /etc/xinetd.d/rsync
set disabled = no
2.
cat /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[pub]
comment = Random things available for download
path = /home/oracle/work
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub
secrets file = /etc/rsyncd.secrets
[share2]
comment = t2
path = /home/oracle/work2
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub2
secrets file = /etc/rsyncd.secrets
3.
cat /etc/rsyncd.secrets
pub:pub
pub2:pub2
4.
chmod 600 /etc/rsyncd.secrets
5.
download http://www.brentnorris.net/rsync.zip
6. rsync like this:
rsync -aPv rsync://pub@192.168.0.213/pub .
vi /etc/xinetd.d/rsync
set disabled = no
2.
cat /etc/rsyncd.conf
max connections = 2
log file = /var/log/rsync.log
timeout = 300
[pub]
comment = Random things available for download
path = /home/oracle/work
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub
secrets file = /etc/rsyncd.secrets
[share2]
comment = t2
path = /home/oracle/work2
read only = yes
list = yes
uid = oracle
gid = oinstall
auth users = pub2
secrets file = /etc/rsyncd.secrets
3.
cat /etc/rsyncd.secrets
pub:pub
pub2:pub2
4.
chmod 600 /etc/rsyncd.secrets
5.
download http://www.brentnorris.net/rsync.zip
6. rsync like this:
rsync -aPv rsync://pub@192.168.0.213/pub .
Saturday, August 14, 2010
Windows XP enable AHCI mode after IDE Install
1. download the corresponding Intel Matrix Storage driver for your Motherboard (ICHX)
2. c:\iata_enu.exe -a
3. copy c:\Program Files\Intel\Intel Matrix Storage Manager\IaStor.sys c:\windows\system32\drivers
4. find the corresponding AHCI.reg file from the internet for your motherboard (ICHX)
5. load the reg file into you registry
6. reboot and enable AHCI mode
7. When windows started cancel automatic hard disk detection and install Intel Matrix Storage and reboot
taken from http://forums.hexus.net/hexus-hardware/112584-how-enable-ahci-raid-mode-without-reinstalling-windows-p35-ich9-ich9r-4.html
2. c:\iata_enu.exe -a
3. copy c:\Program Files\Intel\Intel Matrix Storage Manager\IaStor.sys c:\windows\system32\drivers
4. find the corresponding AHCI.reg file from the internet for your motherboard (ICHX)
5. load the reg file into you registry
6. reboot and enable AHCI mode
7. When windows started cancel automatic hard disk detection and install Intel Matrix Storage and reboot
taken from http://forums.hexus.net/hexus-hardware/112584-how-enable-ahci-raid-mode-without-reinstalling-windows-p35-ich9-ich9r-4.html
Wednesday, August 11, 2010
exporting files from a specific user
/var/www/html/mp3 *(ro,sync,all_squash,anonuid=100,anongid=101)
This will answer request from nfs clients as if the request has come from the specific use anonuid:anongid
This will answer request from nfs clients as if the request has come from the specific use anonuid:anongid
Monday, August 09, 2010
terminal services and iptables
for terminal services to work behind an iptables firewall, if the terminal server does not have a valid IP address, a full cone nat is required, which in iptables terms means that you need both a PREROUTING and a POSTROUTING statement.
Saturday, July 31, 2010
Friday, July 30, 2010
Thursday, July 29, 2010
Tuesday, July 20, 2010
linux sendmail delete outgoing mails
delete in files in /var/spool/mqueue
also you can see the queue using mailq
also you can see the queue using mailq
Saturday, June 19, 2010
linux install i2o raid
to install linux on servers like supermicro X6DH8-G you should install the i2o driver, to install the i2o driver do a
"linux noprobe text" and when "add device" is displayed, load the i2o block driver and things will be LA LA LA LA
"linux noprobe text" and when "add device" is displayed, load the i2o block driver and things will be LA LA LA LA
Tuesday, June 15, 2010
mikrotik load balancing
Load balancing, connection aggregation, multi-homing, miltiple internet connections teaming
http://wiki.mikrotik.com/wiki/NTH_load_balancing_with_masquerade
LOVE IT!
http://wiki.mikrotik.com/wiki/NTH_load_balancing_with_masquerade
LOVE IT!
Sunday, June 13, 2010
Saturday, June 12, 2010
EASEUS FREE Partition Manager
EASEUS FREE Partition Manager (epm.zip)
http://www.partition-tool.com/download.htm
http://www.partition-tool.com/download.htm
Tuesday, June 01, 2010
FTP server behind iptables firewall
To enable firewall access behind firewall other than opening port 21 on the firewall one needs to
Add
IPTABLES_MODULES="ip_nat_ftp"
to
/etc/sysconfig/iptables-config
BIG Thanks to RAMPALO
Add
IPTABLES_MODULES="ip_nat_ftp"
to
/etc/sysconfig/iptables-config
BIG Thanks to RAMPALO
Saturday, May 29, 2010
Thursday, May 13, 2010
windows delete share and connect to the same share with another username
windows delete share and connect to the same share with another username
net use \\servername\sharename /delete
WEEHA
Friday, May 07, 2010
mikrotik select gateway based on source address
ip firewall mange
prerouting, mark packets from a special source with a routing mark (any name you like) and add the 0.0.0.0/0 route again and choose the routing mark you specified before with a desired gatway which can be different from the original 0.0.0.0/0 route gatway
prerouting, mark packets from a special source with a routing mark (any name you like) and add the 0.0.0.0/0 route again and choose the routing mark you specified before with a desired gatway which can be different from the original 0.0.0.0/0 route gatway
Tuesday, April 13, 2010
change timezone in centos
yum -y install tzdata
cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime
BIG thanks to: http://blog.connexeon.com/sysadmin/linux/change-timezone-on-centos/
mikrotik data connections with other types of interfaces
there are 2 interfaces that seem to work ethernet/ip and ip/ip both need for the two end points to have accessible valid ip addresses.
In case you use mikrotik to do PPPOE, you need to put the host OS nic in PROMISC=yes mode so that the PPPOE ack packets can be received by the gust OS.
In case you use mikrotik to do PPPOE, you need to put the host OS nic in PROMISC=yes mode so that the PPPOE ack packets can be received by the gust OS.
Monday, April 05, 2010
Sunday, March 14, 2010
httpd.conf and the Aliases
When the alias reads like below
Alias /cacti/ /var/www/cacti/
DirectoryIndex index.php
Options -Indexes
AllowOverride all
order deny,allow
deny from all
allow from 127.0.0.1
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc on
php_flag track_vars on
to display the alias successfully in the browser do not forget the terminating slash at the end, so
http://localhost/cacti/ is right.
Alias /cacti/ /var/www/cacti/
DirectoryIndex index.php
Options -Indexes
AllowOverride all
order deny,allow
deny from all
allow from 127.0.0.1
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc on
php_flag track_vars on
to display the alias successfully in the browser do not forget the terminating slash at the end, so
http://localhost/cacti/ is right.
Tuesday, February 23, 2010
Persistent SSH SOCKS5 tunnel in Linux
ssh -c arcfour -o TCPKeepAlive=yes -N -f -D localhost:1080 user@remoteserver.com
instead of -c arcfour one can use -c blowfish-cbc as well. The performance of the tunnel gets better with a more lightweight cipher.
instead of -c arcfour one can use -c blowfish-cbc as well. The performance of the tunnel gets better with a more lightweight cipher.
Monday, January 25, 2010
Oracle dbca press finish nothing happens
If you press finish at the end of database creation of dbca and nothing happens, it is (in my case) an X problem. What I did was not to use the X server on windows instead I installed X11 on linux and used that one and it went smoothly.
Saturday, January 23, 2010
Sunday, January 03, 2010
Linksys WAP54GS to act as router with dd-wrt
to make WAP54GS a router
1. Install dd-wrt
2. change the assignment of WAN port from vlan1 to vlan0
3. TADA!!!!!
1. Install dd-wrt
2. change the assignment of WAN port from vlan1 to vlan0
3. TADA!!!!!
Friday, January 01, 2010
vmware change MAC
in the virtual machine (config) vmx file:
# ethernet0.addressType = "generated"
# RANGE ALLOWED: 00:50:56:00:00:00-00:50:56:3F:FF:FF
ethernet0.addressType = "static"
# ethernet0.generatedAddress = "00:0c:29:94:43:71"
ethernet0.Address = "00:0c:29:94:43:70"
# ethernet0.addressType = "generated"
# RANGE ALLOWED: 00:50:56:00:00:00-00:50:56:3F:FF:FF
ethernet0.addressType = "static"
# ethernet0.generatedAddress = "00:0c:29:94:43:71"
ethernet0.Address = "00:0c:29:94:43:70"
Wednesday, December 09, 2009
Monday, November 30, 2009
slow sendmail startup
When sendmail is slow at startup do either of these things in /etc/hosts
127.0.0.1 localhost.localname machinename
or
192.168.1.100 machinename.domainname
if you have only machinename sendmail will be slow
127.0.0.1 localhost.localname machinename
or
192.168.1.100 machinename.domainname
if you have only machinename sendmail will be slow
Friday, October 23, 2009
firefox download flash
do a about:cache?device=disk and search for the URL or filename
many thanks to
http://labnol.blogspot.com/2005/11/save-flash-from-firefox-and-ie.html
many thanks to
http://labnol.blogspot.com/2005/11/save-flash-from-firefox-and-ie.html
Wednesday, October 21, 2009
MYSQL grant REMEBER 'user'@'server'
REMEMBER THIS:
grant all on DB1 to 'user'@'localhost' identified by 'password';
grant all on DB1 to 'user'@'localhost' identified by 'password';
putty connect to session instead of server from command line
to make putty connect to session (based on the name of the session) instead of server from command line DO:
putty @SESSION_NAME
putty @SESSION_NAME
putty default font permanent
To change the default font in putty change the font settings in the Default Settings in the main window
Thursday, October 15, 2009
linux upgrade problem
If you get something like "there are multiple partitions labelled /, they must be unique" simply use remove the label by:
tune2fs /dev/sda2 -L ''
# HOORAY
tune2fs /dev/sda2 -L ''
# HOORAY
Sunday, October 11, 2009
error reading information on service keytable: No such file or directory
if you get
error reading information on service keytable: No such file or directory
error: %trigger(kbd-1.08-10.2.i386) scriptlet failed, exit status 1
rpm -e kbd-1.08-10.2 --noscripts
error reading information on service keytable: No such file or directory
error: %trigger(kbd-1.08-10.2.i386) scriptlet failed, exit status 1
rpm -e kbd-1.08-10.2 --noscripts
Remote upgrade linux RHEL redhat 3 to 4
1. mount the installation cd and copy vmlinuz and initrd.img to /boot renaming them to vmlinuz_remote and initrd_remote.img
2. vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/
initrd /initrd-2.4.21-15.EL.img
title Remote Install
root (hd0,0)
kernel /vmlinuz_remote ks=hd:hda1:/ks.cfg vnc vncconnect=192.168.162.1 ramdisk_size=8192
initrd /initrd_remote.img
replace the above devices with the ones on your system(hd:hda1->points to /boot)
3. vi /boot/ks.cfg
#System language
lang en_US
#Language modules to install
langsupport --default=en_US
#System keyboard
keyboard us
#System mouse
mouse generic3ps/2
#network
network --bootproto static --ip 192.168.162.129 --netmask 255.255.255.0 --gateway 192.168.162.1 --nameserver 192.168.162.1 --hostname l
#Use interactive kickstart installation method
interactive
#Use hard drive installation media USE YOUR OWN HARDDRIVE
harddrive --dir=/iso --partition=hda2 #replace with your own device (this points to /)
bootloader --location=mbr
#Reboot after installation
reboot
#Upgrade existing installation
upgrade
%pre
#!/bin/sh
mkdir /tmp/boot # create mount point
#-USE YOUR OWN HARDDRIVE ADDR
# mount filesystem on /dev/sda1 onto /tmp/boot (hiding mount's boot dir)
# /dev/hda1 point to /boot
mount -t ext3 /dev/hda1 /tmp/boot
# so below here /tmp/boot/... is actually /boot/... on harddrive device
# 'date' preserves original grub.conf through multiple boot attempts
cp /tmp/boot/grub/grub.conf /tmp/boot/grub/grub.conf.$(date"+%Y%m%d-%H%M%S")
cp /tmp/boot/grub/grub.conf /tmp/boot/grub/grub.sve
cp /tmp/boot/grub/grub.bak /tmp/boot/grub/grub.conf
4. put your CD or DVD iso in /iso, they can be multiple isos
5. just to be safe try loading the second option to grub you just added once as below, so if things went wrong you can come back
echo "savedefault --default=1 --once" | grub --batch
reboot
2. vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/
initrd /initrd-2.4.21-15.EL.img
title Remote Install
root (hd0,0)
kernel /vmlinuz_remote ks=hd:hda1:/ks.cfg vnc vncconnect=192.168.162.1 ramdisk_size=8192
initrd /initrd_remote.img
replace the above devices with the ones on your system(hd:hda1->points to /boot)
3. vi /boot/ks.cfg
#System language
lang en_US
#Language modules to install
langsupport --default=en_US
#System keyboard
keyboard us
#System mouse
mouse generic3ps/2
#network
network --bootproto static --ip 192.168.162.129 --netmask 255.255.255.0 --gateway 192.168.162.1 --nameserver 192.168.162.1 --hostname l
#Use interactive kickstart installation method
interactive
#Use hard drive installation media USE YOUR OWN HARDDRIVE
harddrive --dir=/iso --partition=hda2 #replace with your own device (this points to /)
bootloader --location=mbr
#Reboot after installation
reboot
#Upgrade existing installation
upgrade
%pre
#!/bin/sh
mkdir /tmp/boot # create mount point
#-USE YOUR OWN HARDDRIVE ADDR
# mount filesystem on /dev/sda1 onto /tmp/boot (hiding mount's boot dir)
# /dev/hda1 point to /boot
mount -t ext3 /dev/hda1 /tmp/boot
# so below here /tmp/boot/... is actually /boot/... on harddrive device
# 'date' preserves original grub.conf through multiple boot attempts
cp /tmp/boot/grub/grub.conf /tmp/boot/grub/grub.conf.$(date"+%Y%m%d-%H%M%S")
cp /tmp/boot/grub/grub.conf /tmp/boot/grub/grub.sve
cp /tmp/boot/grub/grub.bak /tmp/boot/grub/grub.conf
4. put your CD or DVD iso in /iso, they can be multiple isos
5. just to be safe try loading the second option to grub you just added once as below, so if things went wrong you can come back
echo "savedefault --default=1 --once" | grub --batch
reboot
Saturday, October 10, 2009
Linux YP NIS config with autofs
1. mkdir /data/user10
2. useradd -g users -d /data/user10 user10
3. vi /etc/auto.master
# add this
/data auto.data --ghost
4. vi /etc/auto.data
* /data/& #something like this
5. vi /var/yp/Makefile
make an auto.data entry just like auto.home
6. do a make in var/yp
7. on the client service autofs restart
2. useradd -g users -d /data/user10 user10
3. vi /etc/auto.master
# add this
/data auto.data --ghost
4. vi /etc/auto.data
* /data/& #something like this
5. vi /var/yp/Makefile
make an auto.data entry just like auto.home
6. do a make in var/yp
7. on the client service autofs restart
Saturday, June 06, 2009
ubuntu network configuration
root@ali-desktop:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto usb0
iface usb0 inet static
address 192.168.111.2
netmask 255.255.255.0
auto eth0
iface eth0 inet dhcp
auto lo
iface lo inet loopback
auto usb0
iface usb0 inet static
address 192.168.111.2
netmask 255.255.255.0
auto eth0
iface eth0 inet dhcp
Tuesday, May 26, 2009
Couldn't make mmap of X bytes - mmap
mount -t tmpfs none /var/cache/apt
mkdir -p /var/cache/apt/archives/partial
apt-get update
mkdir -p /var/cache/apt/archives/partial
apt-get update
Monday, May 11, 2009
pango ARM cross compile
./configure --prefix=/home1 --host=arm-ip-linux-gnueabi LDFLAGS=-L$YOUR_OWN_COMPILED_GLIB_DIR (eg /opt/lib)
Saturday, May 09, 2009
GLIB ARM Cross compile
IPLinux GLIB BUILD
cat config.cache
glib_cv_stack_grows=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_posix_getgrgid_r=yes
glib_cv_uscore=yes
./configure --host=arm-linux --cache=config.cache
cat config.cache
glib_cv_stack_grows=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_posix_getgrgid_r=yes
glib_cv_uscore=yes
./configure --host=arm-linux --cache=config.cache
Saturday, April 25, 2009
samba passwordless login
smbpasswd -a ali
/etc/samba/smb.conf
security=share
[public]
path = /home/ali
read only = no
guest ok = yes
public = yes
browsable = yes
force user = ali
/etc/samba/smb.conf
security=share
[public]
path = /home/ali
read only = no
guest ok = yes
public = yes
browsable = yes
force user = ali
Tuesday, April 21, 2009
Thursday, April 16, 2009
VOIP FXO FXS
REMEMBER
FXO = Foreign Exchange Office is connected to PSTN.
FXS = Foreign Exchange Subscriber is connected to a normal phone.
http://www.patton.com/technotes/fxs_fxo.pdf
FXO = Foreign Exchange Office is connected to PSTN.
FXS = Foreign Exchange Subscriber is connected to a normal phone.
http://www.patton.com/technotes/fxs_fxo.pdf
Tuesday, April 14, 2009
Saturday, April 11, 2009
microsoft fonts for linux i386
taken and rpm-built from http://corefonts.sourceforge.net/
for rpm based Linuces
msttcorefonts-2.0-1.noarch.rpm
for rpm based Linuces
msttcorefonts-2.0-1.noarch.rpm
Thursday, April 09, 2009
Wive 0.61 on DWL-G700AP
When installing Wive on DWL-G700AP remember that after putting the access point in TFTP mode you have to use the EXACT ip address "192.168.1.6" for tftp regardless of whatever the actual LAN interface IP is.
Saturday, March 28, 2009
trixbox backup and restore
Install tbm-backup trixbox module in both machines, create a backup in BOTH machines, restore the backup from old machine into the new one (mysql password for asteriskuser may not be the same so before the restoration of the backup file make them the same).
windows 2003 limit bandwidth usage per IP
1. squid with delay pools support
(http://markus.revti.com/2007/06/installing-squid-cache-for-windows/)
2. softperfect bandwidth manager
(http://markus.revti.com/2009/01/squid-transparent-proxy-server-on-windows-server-2003/)
(http://markus.revti.com/2007/06/installing-squid-cache-for-windows/)
2. softperfect bandwidth manager
(http://markus.revti.com/2009/01/squid-transparent-proxy-server-on-windows-server-2003/)
Tuesday, March 17, 2009
Saturday, March 14, 2009
multiple domain controllers (DC) on the same LAN
Use the DHCP of one of the DCs and split the LAN into 2 SUB-LANS
this is done using a superscope in the DHCP of domain controller.
- one scope 192.168.1.0/255.255.255.128
- another scope 192.168.1.128/255.255.255.128
The two sub scopes will not be able to access one another
Put one of the servers in first scope and the other in the second one.
In the scope options each have their own DNS and default route
To make the clients become a member of a certain scope fix the clients MAC address and create a reservation
this is done using a superscope in the DHCP of domain controller.
- one scope 192.168.1.0/255.255.255.128
- another scope 192.168.1.128/255.255.255.128
The two sub scopes will not be able to access one another
Put one of the servers in first scope and the other in the second one.
In the scope options each have their own DNS and default route
To make the clients become a member of a certain scope fix the clients MAC address and create a reservation
Saturday, March 07, 2009
vmware guest OS on windows RRAS host OS problem
If you need to have vmware installed on a machine with RRAS, because of incompatibilities between proxy arp of RRAS and vmware your guest OS packets will not be routed, what you need to do is:
[in this example host machine has 2 NICs. One toward Internet and one local.]
1. Add a NIC to the host machine. (not virtual)
2. In the guest OS bridge one NIC to the Internet NIC of the host OS and the other to the newly added NIC of the host OS (which is connected to the local LAN)
3. Assign an IP address to the host and guest machine (the same range as the host machine)
Walla! ping outside
[in this example host machine has 2 NICs. One toward Internet and one local.]
1. Add a NIC to the host machine. (not virtual)
2. In the guest OS bridge one NIC to the Internet NIC of the host OS and the other to the newly added NIC of the host OS (which is connected to the local LAN)
3. Assign an IP address to the host and guest machine (the same range as the host machine)
Walla! ping outside
Wednesday, March 04, 2009
vnc enterprise vncconfig problem
run vncconfig with the -service parameter to change the config of the service mode not user mode
"E:\Program Files\RealVNC\VNC4\vncconfig.exe" -service
"E:\Program Files\RealVNC\VNC4\vncconfig.exe" -service
Sunday, February 15, 2009
mysql import and export
export:
mysqldump -u user -p db > dump.sql
import:
mysql -u user -p db < dump.sql
mysqldump -u user -p db > dump.sql
import:
mysql -u user -p db < dump.sql
Friday, February 13, 2009
howto install cpanel
It is not free, needs a licence from cpanel.net after the trial period
Installing cPanel on a linux box is as simple as:
cd /home
wget layer1.cpanel.net/latest
sh latest
from: http://paragonhost.wordpress.com/2006/11/16/howto-install-cpanel-on-a-linux-os-server/
Installing cPanel on a linux box is as simple as:
cd /home
wget layer1.cpanel.net/latest
sh latest
from: http://paragonhost.wordpress.com/2006/11/16/howto-install-cpanel-on-a-linux-os-server/
Tuesday, February 03, 2009
Saturday, January 31, 2009
Office 2003 Slow send in Vista
simply remove all office 2007 components on your PC and things will be cooooooool :)
Tuesday, December 30, 2008
نیاز به حساب درست و حسابی بانکی و نتایج اعتماد


ما سرویس "حساب بانکی آمریکا" را در سایت ابزارها ازگوگل پیدا کردیم http://www.abzarha.com
پول دادیم (130 هزار تومان). و برای ما با پست یک عدد کارت فرستادند و یک بروشور.
با خدمات مشتریان صادر کننده کارت در آمریکا تماس گرفتیم و فرمودند این فقط کارت است حساب بانکی نیست.

سعی کردیم در پی پل رجیستر کنیم دوباره به دیوار خوردیم.
جواب های این فروشنده محترم جناب آقای مهدی جزینی را بینید.
نامه دوم و جواب ایشان
-----Inline Attachment Follows-----پول دادیم (130 هزار تومان). و برای ما با پست یک عدد کارت فرستادند و یک بروشور.

با خدمات مشتریان صادر کننده کارت در آمریکا تماس گرفتیم و فرمودند این فقط کارت است حساب بانکی نیست.

سعی کردیم در پی پل رجیستر کنیم دوباره به دیوار خوردیم.
جواب های این فروشنده محترم جناب آقای مهدی جزینی را بینید.
نامه دوم و جواب ایشان
Dooste aziz in hesabha hich moshkeli nadare! (lotfan bejaye karhaye bachegane kami ham be harfhaye man deghat konin bad nist !!!) ini ke shoma migin paypal ekhtar mide ke nemitoone add kone. ehtemalan az shanse shoma boode. (motasefane hamishe ham shanse bad dare khooneye kasaii ro mizane ke az hame talabkaran !!! ) gooya kasi ehtemal midam shomareye hesabesho dar paypal masalan yeki do adad pasopish zade (ke hesabe shoma boode) va hamoontor ke midoonin vaghti kasi shomare hesabi ro be paypal add kone. hata ghabl az confirm oon. hich rahi baraye pak kardane oon nadare. magar inke shoma ba customer support paypal tamas begirin va begin >>> ehtemalan kasi shomareye hesabe shoma ro be eshtebah dar paypalesh add karde ke confirm ham nashode. va oonha ba kamale meyl va be sadegi pas az gereftane etelaati az shoma va taiide oon be sadegi oono pak mikonan ta shoma betoonin hamoon banketoon ro add konin. be hamin sadegi. dige vaghte pasokhgooii bishtar ro be shoma nadarimchoon saremoon sholooghebe khatere 5 toman sood dahane tarafo service nemikonan ke shoma kardin !!!bye
On Tue, Dec 30, 2008 at 2:23 AM, Ali Sadeghi-Ardestani
Dear Sir,Looks like my account number which no one knew except you and me has been already registered in paypal. Please check attachment.
Regards,
Ali Sadeghi Ardestani
نامه اول و جواب ایشان
dooste man eshtebah az ma naboode bank be ma etela nadade bood ke tarigheye doroste wire be in accountha chi hast. choon taze oomade. hamoontor ke dobare khedmatetoon email kardam shoma bayad be soorati ke dar file attach shode dar in email dadam havale konin na mostaghim!va agar balad nistin ke yek sarafi dorost peyda konin inkar ro ham baratoon anjam midam vali dige baghish be ma marboot nist. ma ke nabayad ta payane omre donya shoma ro support konim!!! ma faghat forooshandeiim. har moshkeli darin dige ba poshtibaniye hamoon bank tamas begirin moshala englishetoon ham ke khoobe!!!
in linke yek sarafi dar tehran hast ke ba (bank of america) ham kar mikone:
http://www.ketabeavval.ir/Profile/?id=136433
dige baghish be ma marboot nemishe bazam migam ma faghat forooshandeiim va support ba hamoon telephoni hast ke dar broshooretoone
On Mon, Dec 29, 2008 at 3:35 PM, Ali Sadeghi-Ardestani
Dear Sir,
After the attached transaction was rejected twice by two different exchange houses and I lost 135,000 TOMANS for money transfer costs and right after I got the Bank of America Transfer Information from you, I talked to customer support and told them that I need to have this account to buy stocks so the my brokrage firm that is buying the stocks for me needs to have access to my account using a direct method like
ACC NUMBER+NAME+BANK+ROUTING or any other method like this.
They said and I quote "Your account with us is not connected to a bank, so you can not get your brokerage firm to access your account. All you can do with this card is to get your employer to put your salary here and you can then get cash from ATMs". Alhamdolella I did not try the second method you offered otherwise I would have lost more. They asked where I got the card from and I gave them your website, they said that I can ask you for the same card but the Visa enabled one. I do not think you have it, because I asked you once.
When I asked about transfers from paypal, they said I can use paypal but as you may already know paypal has really strict rules about fraud and once they get a feeling that your activity is strange they simply block your account just like my old paypal account.
Now what I am asking you is to refund me and get your card back and also to remove the "HESABE BANKI AMRIKA" from your website because it is misleading and very simply put not TRUE not forgetting how time/money consuming it is to come to the above conclustion.
Regards
Ali Sadeghi Ardestani
Monday, December 29, 2008
Excel find nth occurrence of a string within another
Function FindN(sFindWhat As String, _
sInputString As String, N As Integer) As Integer
Dim J As Integer
Application.Volatile
FindN = 0
For J = 1 To N
FindN = InStr(FindN + 1, sInputString, sFindWhat)
If FindN = 0 Then Exit For
Next
End Function
sInputString As String, N As Integer) As Integer
Dim J As Integer
Application.Volatile
FindN = 0
For J = 1 To N
FindN = InStr(FindN + 1, sInputString, sFindWhat)
If FindN = 0 Then Exit For
Next
End Function
Sunday, December 28, 2008
Friday, December 26, 2008
utorrent slow download
remember to update tcpip.sys using http://www.lvllord.de/?url=downloads&lang=en every time you install a service pack. This helps increase the number of half open connections from 10 to 50. And downloads will explode.
Thursday, December 25, 2008
create RPM repository from ISO DVD CD
Thanks to http://www.cyberciti.biz/tips/redhat-centos-fedora-linux-setup-repo.html
# mkdir -p /var/www/html/centos/5/os/i386
# mount -o loop /path/to/centos.iso /var/www/html/centos/5/os/i386
** (put it in /etc/fstab later)
createrepo /var/www/html/centos/5/os
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
baseurl=http://$IP_ADDRESS/centos/5/os/
enabled=1
gpgcheck=0
service httpd restart
** not other servers is the subnet can use this repository as well as this service onto which the iso resides
# mkdir -p /var/www/html/centos/5/os/i386
# mount -o loop /path/to/centos.iso /var/www/html/centos/5/os/i386
** (put it in /etc/fstab later)
createrepo /var/www/html/centos/5/os
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
baseurl=http://$IP_ADDRESS/centos/5/os/
enabled=1
gpgcheck=0
service httpd restart
** not other servers is the subnet can use this repository as well as this service onto which the iso resides
Sunday, November 09, 2008
Wordpress Persian (Farsi) bluehost
1. Install wordpress from bluehost interface
2. Install the farsi patch from wp-persian.com
3. edit the wp-config-sample.php and remove the below:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
2. Install the farsi patch from wp-persian.com
3. edit the wp-config-sample.php and remove the below:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
Sunday, October 05, 2008
mysql change database charset to unicode
SELECT concat('ALTER TABLE `', t.`TABLE_SCHEMA`, '`.`', t.`TABLE_NAME`, '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;') as stmt
FROM `information_schema`.`TABLES` t
WHERE 1
AND t.`TABLE_SCHEMA` = 'database_name'
ORDER BY 1
FROM `information_schema`.`TABLES` t
WHERE 1
AND t.`TABLE_SCHEMA` = 'database_name'
ORDER BY 1
Friday, October 03, 2008
OLAT email problem
once you could not send emails and came accross this:
DEBUG: setDebug: JavaMail version 1.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk]
java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.(javax.mail.Session, javax.mail.URLName)
you should install java mail components, I installed:
geronimo-javamail-1.3.1-api-1.1-4jpp
sun-mail-1.4-3jpp
classpathx-mail-1.1.1-4jpp.2
And the problem was solved.
DEBUG: setDebug: JavaMail version 1.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,gnu.mail.providers.smtp.SMTPTransport,nferrier@tapsellferrier.co.uk]
java.lang.NoSuchMethodException: gnu.mail.providers.smtp.SMTPTransport.
you should install java mail components, I installed:
geronimo-javamail-1.3.1-api-1.1-4jpp
sun-mail-1.4-3jpp
classpathx-mail-1.1.1-4jpp.2
And the problem was solved.
Tuesday, September 23, 2008
jdk installation
when installing jdk depenging on the version for JRE to work correctly as well
java-sun-compat
has to be installed too.
for example for jdk-6u6-linux-i586.rpm to work along with tomcat you need to install java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm as well, otherwise tomcat and the applications that need jre 1.5 upwards will not work.
java-sun-compat
has to be installed too.
for example for jdk-6u6-linux-i586.rpm to work along with tomcat you need to install java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm as well, otherwise tomcat and the applications that need jre 1.5 upwards will not work.
Friday, September 05, 2008
Strange Linux PPTP problem
When using Linux PPTP service web pages fail to load completely [freeze] (aka common PPTP MTU problem) all one has to do is to:
> cat /etc/ppp/ip-up.local
#!/bin/bash
/sbin/ifconfig $1 mtu 1400
> cat /etc/ppp/ip-up.local
#!/bin/bash
/sbin/ifconfig $1 mtu 1400
Thursday, September 04, 2008
Tor problem
When Tor can not connect the first thing you do is to check the date/time of your machine!
Friday, August 01, 2008
Jalali Date - Javascript
Jalali date in java script as active desktop element
it can be downloaded from:
http://sites.google.com/site/alisade/Home/fdate.zip?attredirects=0
it can be downloaded from:
http://sites.google.com/site/alisade/Home/fdate.zip?attredirects=0
Sunday, July 06, 2008
a simple bash prompt PS1
export PS1="\[\e[32;1m\]\d \t\[\e[36;1m\]\n\u@\h\n\[\e[31;1m\]\w > \[\e[0m\]"
Thursday, June 12, 2008
openvpn config parameter seems compulsory
Although I used to do openvpn TLS without the "tls-auth ta.key 0" directive for years, now it looks like it has become compulsory, otherwise handshake will not occcur completely although the first
TLS: Initial packet from xxx.xx.xx.xx:1194, sid=42fb5c72 1f286ab1
is exchanged with no problems
TLS: Initial packet from xxx.xx.xx.xx:1194, sid=42fb5c72 1f286ab1
is exchanged with no problems
Saturday, June 07, 2008
linux disable single user mode
do not try to disable the single user mode instead use a grub password.
Monday, May 19, 2008
Join a computer to windows 2003 domain
When joining a computer to a windows 2003 box remember to add the .com at the end of the domain name otherwise the dns will not find the SRV record of the domain name
Monday, March 31, 2008
free totally legal Nastaliq font by http://www.scict.ir/
http://www.box.net/shared/bh9ioqs2ss originally from http://www.scict.ir/
Sunday, March 16, 2008
command line download accelerator for windows
AXEL is a command line accelerator for the *nix, I have compiled it under cygwin and have put it here:
http://www.box.net/shared/avraot95w8
Enjoy!
http://www.box.net/shared/avraot95w8
Enjoy!
Saturday, March 15, 2008
Tuesday, March 11, 2008
red hat root login in telnet,...
edit /etc/pam.d/login and /etc/pam.d/remote and
comment out
auth required pam_securetty.so
comment out
auth required pam_securetty.so
Monday, March 03, 2008
crontab does not accept
crontab does not accept commands with `command to execute` within command line
Saturday, March 01, 2008
Subscribe to:
Posts (Atom)