User Disk Quota in Linux using Webmin- essentials for Hosting Web Hosting Platform Rumi, May 23, 2008 Quotas on Linux are tricky, not because they are difficult to setup, but because they are so poorly documented, and what documentation exists is more often than not incorrect to the point of not working. If you are using a relatively recent Linux version, the following instructions should work without difficulty. Prior to Linux Installation: Yes, a major & key point in Linux Partition is /home directory. VHost is widely setup on almost all control panel mechanism on /home location, since – Users & Groups – FTP server – User shell – Apache and all that other directives are constructed on this /home partition So, home should be created as a Logical Volume on a Linux native File system (ext3). In my later section, I’d assume there is already a /home partition (and it’d also wise to have this partition as much disk space as you want to give away to your clients. Because, even mails and even mysql data will also be stored in this volume. Step-1 System > Disk & Network Filesystems On the System > Disk & Network Filesystem you’ll get something like this- On the “Mounted As” column select “/home” to go to next screen which is similar as below- Down below to “ext2/ext3 specific options section” look for the options “Use Quotas?” and select “User and Group” from the drop down menu. Click “SAVE” and you’re almost done! Step-2 System > Disk Quotas Once you completed the above step, you should find something similar like- On “Action” column, click “Enable Quotas” You’re done! And that’s it! I’m sorry nothing more to do. Are Quotas Working? To test to be sure your quotas are actually enabled, you can use the “repquota /home” utility to see what the current quota usage looks like. It should looke something like this: Related Configurations (Linux) Networking
Install wkhtmltopdf on Debian 8, 9 August 3, 2018January 18, 2019 Installation on Debian 8 apt-get update aptitude install xfonts-base xfonts-75dpi fontconfig xvfb mkdir ~/src/wkhtmltopdf -p cd ~/src/wkhtmltopdf wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb echo ‘xvfb-run –server-args=”-screen 0, 1024x768x24″ /usr/local/bin/wkhtmltopdf $*’ > /usr/bin/wkhtmltopdf.sh chmod a+rx /usr/bin/wkhtmltopdf.sh ln -s /usr/bin/wkhtmltopdf.sh /usr/local/sbin/wkhtmltopdf /usr/local/sbin/wkhtmltopdf https://www.google.fr output.pdf Installation on Debian 9 Related Read More
Setting default boot kernel in Grub on Debian/Ubuntu June 6, 2014 In a terminal, run sudo update-grub Then, type grep menuentry /boot/grub2/grub.cfg Counting from 0, find the number of the line containing the 2.6 entry you want. Set that as default in /etc/default/grub and run sudo update-grub again. Since the option for "Other Linux Versions" is on line 3 of… Read More
Layer-4 Load Balancing with HAProxy for MariaSQL May 25, 2020 If you have a MariaSQL Galera Cluster (All master) deployed, you can use HAProxy L-4 load balancing proxy. Configure HAProxy on Layer4 Mode. On this example, configure MariaDB backend like the following environment. Configure HAProxy. Related Read More