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 :)
Subscribe to:
Posts (Atom)