It is currently Sun Dec 22, 2024 1:24 am

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum

Regenerate maildirsize for account(s) on cPanel server

This utility regenerates maildirsize files used by the maildir+ capable clients to assist in mailbox size calculations.
# /scripts/generate_maildirsize
Must specify "--confirm" to begin. Please read and understand the usage.

Usage: generate_maildirsize <modifier> <user>

This utility regenerates maildirsize files used by the maildir+
capable clients to assist in mailbox size calculations.

Modifier Flags:
--confirm - This flag indicates that we really want to use this
utility

--allaccounts - This utility was originally intended to
assist ...
Read more : Regenerate maildirsize for account(s) on cPanel server | Views : 8208 | Replies : 0 | Forum : Server Side Actions




Datacentermap.com

Read more : Datacentermap.com | Views : 1984 | Replies : 0 | Forum : Interesting links


Unison file-synchronization tool for Unix/Windows

Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.

Unison shares a number of features with tools such as configuration management packages (CVS, PRCS, Subversion, BitKeeper, etc.), distributed filesystems (Coda, etc.), uni-directional mirroring ...
Read more : Unison file-synchronization tool for Unix/Windows | Views : 2160 | Replies : 0 | Forum : Interesting links




Set custom LABEL for SWAP partition

It is possible to set the label of a SWAP partition by using the mkswap command with the '-L' option.

Command syntax is:
Code: Select all
mkswap -L <label> <partition>
              Specify a label, to allow swapon by label.

Replace <label> with the label you would like to use. Replace the partition with the SWAP partition. If following is the output of:
Code: Select all
fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors ...
Read more : Set custom LABEL for SWAP partition | Views : 3330 | Replies : 0 | Forum : Linux specific


Install PHP PECL uploadprogress

PECL uploadprogress page

Code: Select all
wget "http://pecl.php.net/get/uploadprogress"
tar xzvf uploadprogress
rm -f uploadprogress
cd uploadprogress*
phpize
./configure
make
make install

If everything is going well, you will see last message as bellow:
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

Now, locate your PHP configuration file:
Code: Select all
php -i|grep php.ini

And include uploadprogress extention support:
Code: Select all
extension="uploadprogress.so"

Restart webserver and check phpinfo() output. This also can be done from the console:
Code: Select all
php -i|grep -i uploadprogress

or
Code: Select all
php -m
Read more : Install PHP PECL uploadprogress | Views : 2890 | Replies : 0 | Forum : Linux specific


Winetricks script

Winetricks is a quick and dirty script to download and install various redistributable runtime libraries sometimes needed to run programs in Wine.
http://wiki.winehq.org/winetricks

This script can help you prepare your system for Windows applications
that mistakenly assume all users' systems have all the needed
redistributable runtime libraries or fonts.
Some options require the Linux 'cabextract' program.

Options:
-q quiet. You must have already agreed to the EULAs.
-v verbose
-V display Version
Packages:
7zip 7-zip ...
Read more : Winetricks script | Views : 3601 | Replies : 0 | Forum : Interesting links


Add IP Aliases in RH or CentOS

If you want to add additional IPs to the same NIC you should do the following:

1. Adding a network alias from command line in RH or CentOS Linux:
Code: Select all
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0 10.0.0.1
/sbin/ifconfig eth0:1 192.168.0.1
/sbin/ifconfig eth0:2 192.168.0.2


2. Configure a script to setup your network/IP aliases on boot:
Code: Select all
cd /etc/sysconfig/network-scripts/
cp ifcfg-eth0 ifcfg-eth0:1
cp ifcfg-eth0 ifcfg-eth0:2

Then edit ifcfg-eth0:1 and ifcfg-eth0:2 files and add your IP aliases there. ...
Read more : Add IP Aliases in RH or CentOS | Views : 5505 | Replies : 0 | Forum : Linux specific




 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron