quota-tools - Utilities for setting/getting disk usage limits ChangeLog

HOWTO


# quota-tools 3.13
# ================
# Slackware 8.1's 'quota' package includes version 3.06, 9.0's includes
# 3.08, 9.1's includes 3.09, and 10.0's, 10.1's, and 10.2's include 3.12

# Prerequisites:
# e2fsprogs' libext2fs

cd
test -f installed/quota-3.13.tar.gz && mv installed/quota-3.13.tar.gz .
test ! -f quota-3.13.tar.gz &&
wget http://download.sf.net/linuxquota/quota-3.13.tar.gz
mkdir -p -m 0700 src
cd src
test -d ./quota-tools && rm -r ./quota-tools
find -maxdepth 1 -type d -name "quota-tools-*" -exec rm -r {} \;
tar xzvf ~/quota-3.13.tar.gz
mv quota-tools quota-tools-3.13
cd quota-tools-3.13
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --disable-nls --enable-rootsbin
make

## If make fails with an error like this:
# cannot find any C preprocessor (cpp)
# rpcgen: C preprocessor failed with exit code 1
## re-run it like this:
# make RPCGEN="rpcgen -Y /usr/bin"

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg quota
rm -f /sbin/convertquota
make install

# To view the docs, use sgml-tools:
cd doc
# html:
sgml2html quotadoc.sgml
lynx ./quotadoc.html
# text:
sgml2txt quotadoc.sgml
less ./quotadoc.txt
# info:
sgml2info quotadoc.sgml
info ./quotadoc.info

# If you want to set up warnquota to e-mail users when they are over their
# softlimit, modify /etc/warnquota.conf as necessary, then create a cronjob
# to run it every day.  See 'man warnquota' for commandline options.  If the
# user accounts on the machine don't actually get mail locally, make sure
# there's an alias or .forward for each user sending their mail to where
# they do get it.
cat << EOF > /etc/cron.daily/warnquota
#!/bin/sh
/usr/sbin/warnquota
EOF
chmod 700 /etc/cron.daily/warnquota

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/quota-*.tar.*
mv quota-3.13.tar.gz installed/


# If you ever want to uninstall quota-tools, this should do it:
su
( cd /etc ; rm -f quotagrpadmins quotatab warnquota.conf )
( cd /sbin ; rm -f quotacheck quotaoff quotaon )
rm -f /usr/bin/quota /usr/man/man1/quota.1 /usr/man/man2/quotactl.2 \
/usr/man/man3/rquota.3
( cd /usr/man/man8 ; rm -f convertquota.8 edquota.8 quot.8 quotacheck.8 \
  quotaon.8 quotastats.8 repquota.8 rquotad.8 setquota.8 warnquota.8 \
  xqmstats.8 )
( cd /usr/include/rpcsvc ; rm -f rquota.h rquota.x )
( cd /usr/sbin ; rm -f convertquota edquota quot quotastats repquota \
  rpc.rquotad setquota warnquota xqmstats )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "quota-tools-*" -exec rm -r {} \;
rm -f ~/installed/quota-tools-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2006-01-13 10:01am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]