Returned 5 Results for "box"
Process priorities are set between 20 (lowest) and -19 (highest)
To launch a task with a priority of 5 try:
mike@mikebox:~$ sudo nice task 5
If you're laptop is overehating and kacpi_notify is stealing all your CPU power polling the CPU temperature you can use renice to change priority of a running process (pid 20) to priority 5
mike@mikebox:~$ sudo renice 5 -p 20
renice Usage:
renice [-n] priority [-p|--pid] pid [... pid]
renice [-n] priority -g|--pgrp pgrp [... pgrp]
renice [-n] priority -u|--user user [... user]
renice -h | --help
renice -v | --version
nice Usage: nice [OPTION] [COMMAND [ARG]...]
Run COMMAND with an adjusted niceness, which affects process scheduling.
With no COMMAND, print the current niceness. Nicenesses range from
-20 (most favourable scheduling) to 19 (least favourable).
-n, --adjustment=N add integer N to the niceness (default 10)
--help display this help and exit
--version output version information and exit
finding the java path in ubuntu is easy, just follow the links... most links live in /usr/bin so:
mike@mbox:/$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2008-12-07 22:16 /usr/bin/java -> /etc/alternatives/java
mike@mbox:/$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 40 2008-12-07 22:34 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk/jre/bin/java
To telnet to your Netgear box and play with all the onboard settings try the following
http://192.168.1.1/setup.cgi?todo=debugwhere 192.168.1.1 is the IP of your router, then:
telnet 192.168.1.1
and you can play
installing whois on a linux box
# sudo apt-get install jwhois
# yum install jwhois
or
browse to: http://packages.qa.debian.org/j/jwhois.html
find the latest version and
# wget http://ftp.debian.org/debian/pool/main/j/jwhois/jwhois_4.0.orig.tar.gz
tar xf jwhois_4.0.orig.tar.gz
# cd jwhois_4.0/
# ./configure
# make install
get your environment variables / path with:
# env
:: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
# cd /usr/local/bin
create a symbolic link so you can call whois url
# ln -s jwhois whois
then put the link in the path
# mv whois /usr/local/bin
If you are backing up Zimbra to a remote NFS file system then you should probably mount it in the fstab r the init.d - bear in mind that if the remote box cannot be found on boot or shutdown the machine will hang for ages before it times out.
#mounts remote file system
#init.d
mount remoteBox:/email/backup /mnt/emailbackup/
#fstab
remoteBox:/email/backup /mnt/emailbackup/ nfs rw,intr,bg 0 0
Zimbra's own script
#!/bin/bash
export time=`date +%Y-%m-%d_%H-%M-%S`
export backup_dir=/var/spool/zimbra/backup
export backup_file=$backup_dir/zimbra$time.tar.gz
export zimbra_dir=/opt/zimbra
mkdir -p $backup_dir
su zimbra --command="/opt/zimbra/bin/zmcontrol stop"
tar -czvf $backup_file $zimbra_dir
su zimbra --command="/opt/zimbra/bin/zmcontrol start"
Put this in /etc/cron.daily
#!/bin/sh
#deletes all files from remot drive older than 7 days
find /mnt/emailbackup/ -maxdepth 1 -ctime +7 -daystart -exec rm "{}" \;
#run back up
/opt/zimbra/bin/zmfullbackup > /var/spool/zimbra/backup/backup.log
#move back up to remote drive
mv /var/spool/zimbra/backup/* /mnt/emailbackup