Text Books Short Manuals That You Really Need!

13Jun/100

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

Tagged as: , No Comments
1Jun/100

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.

31May/100

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

17Jan/100

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"

3Jan/100

[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.

Filed under: PHP No Comments
3Jan/100

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

Filed under: Direct Admin No Comments