VSFTPD: Lock Users in Home Directory
To lock users in their home directory in VSFTP, you need to edit file vsftpd.conf, usually found in (/etc/vsftpd/vsftpd.conf). and add the following line
chroot_local_user=yes
MacOS X Leopard Cool Wallpaper
I love the MacOS X Leopard snow wallpaper, but the problem with it tooo much bright, so can hardly see my icons, i've just created one which is half balck / half white. and i'm sharing it with you guys.
How to Mount an ISO image under Linux
To Mount an ISO image under Linux, you need simply to do the following steps.
1. you must be logged in as root
2. Create a mounpoint (Folder)
mkdir -p /mnt/isodisk
3. Use mount command as follows to mount iso file called dvd1.iso
mount -o loop dvd1.iso /mnt/isodisk
4. Change directory to list files stored inside an ISO image:
cd /mnt/disk
ls -l
ISO Image:
An ISO image is an archive file (disk image) of an optical disc using a conventional ISO (International Organization for Standardization) format. ISO image files typically have a file extension of .ISO. The name "ISO" is taken from the ISO 9660 file system used with CD-ROM media, but an ISO image can also contain UDF file system because UDF is backward-compatible to ISO 9660.
You can mount an ISO images via the loop device under Linux. It is possible to specify transfer functions (for encryption/decryption or other purposes) using loop device.
More about loop device
A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory using above commands.
How to find computer serial number
How to find computer serial number in Windows:
From the Command line prompt type
wmic bios get serialnumber
To get the computer model
wmic csproduct get name
How to find computer serial number in Linux:
from the command line type
dmidecode | grep "System Information" -a10
The Session Is Not Authenticated
While trying to convert a VM from one location to another you get the error: The Session is not authenticated
SOLUTION:
Exit the standalone converter and open your services (Start>Run and then type in services.msc and press enter.)
Locate following services and stop them in this order:
- VMWare vCenter Converter Server
- VMWare vCenter Converter Agent
Now start the services in this order:
- VMWare vCenter Converter Server
- VMWare vCenter Converter Agent
Start the vCenter Converter again and start the conversion process.
eAccelerator Best Settings
eaccelerator.shm_size="28"
eaccelerator.cache_dir="/var/cache/eaccelerator-php5/"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.debug="0"
eaccelerator.check_mtime="1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys="shm_and_disk"
eaccelerator.sessions="shm_and_disk"
eaccelerator.content="shm_and_disk"
Snow Leopard Java problems (and fix)
This workaround, will fix Zend Development Environment issues on Mac OS X Leopard Snow.
In the terminal:
Get the java 5 that was included in 10.5 "leopard" and unpack
cd /tmp/
curl -o java.1.5.0-leopard.tar.gz http://www.cs.washington.edu/homes/isdal/snow_leopard_workaround/java.1.5.0-leopard.tar.gz
tar -xvzf java.1.5.0-leopard.tar.gz
Move it to your System java folder (password needed)
sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard
Tell OS X that java 5 actually is java 5
cd /System/Library/Frameworks/JavaVM.framework/Versions/
sudo rm 1.5.0
sudo ln -s 1.5.0-leopard 1.5.0
sudo rm 1.5
sudo ln -s 1.5.0 1.5
Open Java Preferences
open "/Applications/Utilities/Java Preferences.app"
Change the properties to use Java 5 32-bit by default:
Salifert Nitrite (NO2) Test Kit Instructions
NO2 (Nitrite) Profi-Test
- In a properly cycled aquarium, nitrite is converted to nitrate and then, if there are areas deprived of oxygen such as in live rock and other filter materials, this nitrate is converted back to nitrite and then transformed into harmless nitrogen gas.
- If this cycle breaks down then nitrites, which are extremely toxic to fish and invertebrates, can form in high concentration.
- Many nitrite test kits suffer from interference caused by amines e.g. naturally occurring and essential amino acids. This can result in a too low measured value, especially when the nitrite concentration is relatively low.
- Because of its unique formulation, the Salifert Test Kit does not suffer from amine interference, and offers full color development within one minute. Also, the color is very intense making the detection of even minute traces of nitrite easy.
- The test kit has two different scales: an ultra-low scale for nitrite-nitrogen which ranges from 0.002 - 0.12 mg/L, and a medium scale for nitrite-nitrogen which ranges from 0.02 - 1.2 mg/L.
- Sufficient for 50 tests.
- Can be used for marine water, frewshwater and garden pond water
The temperature of the water has to be above 18C or 64F otherwise the complete color will not develop within 60 seconds. If the water temperature is below the above mentioned values then allow the water in the test tube to acclimate at room temperature for 10 minutes prior to testing.
Warning!
KEEP OUT OF REACH OF CHILDREN. Not for consumption. If swallowed contact a physician immediately. In case of contact with skin wash with plenty of water. In case of contact with eyes, wash eyes immediately with of water and contact a physician immediately.
Instructions:
1. Add with the syringe 1ml of water in the test vial.
2. Add to 1 level spoon of the NO2 powder. Swirl the contents of the test tube gently for 20 seconds. Allow to stand for 3 minutes.
3. Place the open test vial on top of the color chart on a part of the chart which is whiteand compare the colors looking from the top. Read the corresponding nitrite content. An intermediate color corresponds to an intermediate nitrite content.
The nitrite values are in ppm nitrite. If you prefer a reading in ppm Nitrite-Nitrogen then multiply the reading by 0.3 or use the table given below.
Higher Sensitivity
After your aquarium or garden pond has cycled you will need a much higher sensitivity. This is easily accomplished by looking through the side when comparing colors. Hole the test tube with its side against a white piece of color chart. The readings have to be divided by 10. In this way you will be able to detect 0.01 ppm as nitrite or 0.003 ppm as nitrite-nitrogen easily.
| Nitrite Table | |
| ppm Nitrite | ppm Nitrite-Nitrogen |
| 0.1 (too high) | 0.03 |
| 0.2 | 0.06 |
| 0.4 (danger) | 0.12 |
| 1.0 | 0.30 |
| 2.0 | 0.60 |
| 4.0 | 1.20 |
[RESOLVED] compiling PHP5/Imap: configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
if you get the following error while trying to compile php5 with imap.
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
on RedHat do the following:
yum install libc-client-devel
The try to recompile PHP
That should solve the problem.
compiling php with modules to php with custombuild (DA)
If you want to add any extra modules to php, they'll most likely need to be compiled in. Any module that needs to be compiled in will have a --with-module type flag which will need to be used. To add this flag, run the following:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -fp configure/ap2/configure.php5 custom/ap2/configure.php5
#add your --with-module line to the end of the custom/ap2/configure.php5 file,
# and make sure the \ character exists at the end of all lines except the last one.
./build php n
change configure.php5 to configure.php4 if you're using php4.
If you're using suphp, the paths would be configure/suphp/configure.php5 and custom/suphp/configure.php5.
Restart apache:
RedHat:
/sbin/service httpd restart

