Returned 5 Results for "box"

change linux process priority with nice and renice


2009-12-03 Digg! icurtain Delcious icurtain Technorati icurtain


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


find java path in ubuntu


2008-12-08 Digg! icurtain Delcious icurtain Technorati icurtain


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


Telnet to Netgear Box


2008-09-04 Digg! icurtain Delcious icurtain Technorati icurtain


To telnet to your Netgear box and play with all the onboard settings try the following

http://192.168.1.1/setup.cgi?todo=debug

where 192.168.1.1 is the IP of your router, then:
telnet 192.168.1.1
and you can play

  1. adsl
  2. adslctl
  3. ash
  4. ath_cli
  5. ath_helper
  6. atm
  7. atm_monitor
  8. atmarp
  9. atmarpd
  10. atmctl
  11. br2684ctl
  12. brctl
  13. busybox
  14. cat
  15. cfm
  16. chmod
  17. cmd_agent_ap
  18. conf
  19. cp
  20. crond
  21. dd
  22. dmesg
  23. dnrd
  24. dumpmem
  25. echo
  26. ez-ipupdate
  27. free
  28. fw-scripts/
  29. grep
  30. hostapd
  31. ifconfig
  32. init
  33. insmod
  34. iptables
  35. iwconfig
  36. iwpriv
  37. kill
  38. killall
  39. klogd
  40. lash
  41. ln
  42. ls
  43. lsmod
  44. mini_httpd
  45. mkdir
  46. more
  47. mount
  48. mv
  49. nbtscan
  50. netgear_ntp
  51. nvram
  52. pb_ap
  53. ping
  54. pot
  55. potcounter
  56. pppd
  57. pppoe
  58. pppoe-relay
  59. ps
  60. rc
  61. reaim
  62. reboot
  63. restore_config.cgi
  64. rm
  65. rmmod
  66. route
  67. routed
  68. rt2684d
  69. scfgmgr
  70. setmem
  71. setup.cgi
  72. sh
  73. sleep
  74. smtpc
  75. syslogd
  76. test
  77. touch
  78. udhcpc
  79. udhcpd
  80. umount
  81. upgrade_flash.cgi
  82. upnpd
  83. utelnetd
  84. wizard
  85. wlanconfig

whois on linux


2008-06-19 Digg! icurtain Delcious icurtain Technorati icurtain


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


Automatic Zimbra Backup


2008-03-10 Digg! icurtain Delcious icurtain Technorati icurtain


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"

Zimbra Backup Script

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