Difference between revisions of "Linux-hda commands"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
<strong>General Linux/HDA Commands</strong><br>
+
= General Linux/HDA Commands =
service httpd start = restart web server<br>
+
  service httpd start = restart web server
yum -y update = Automatically update fedora<br>
+
  yum -y update = Automatically update fedora
rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm = updates HDA<br>
+
  rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm = updates HDA
rpm -q hda-platform = check to see what version of HDA your running.<br>
+
  rpm -q hda-platform = check to see what version of HDA your running.
ps guax | grep yum = kills all yum process
 
  
<strong>ushare</strong><br>
+
= Linux Basic Commands =
service amahi-ushare restart = restart ushare after adding new content
+
[[Basics|Linux Basic Commands]] most users will need.
  
<strong>VNCServer</strong><br>
+
= uShare =
vncserver = Starts the VNCServer<br>
+
  service amahi-ushare restart = restart ushare after adding new content
vncserver -kill :1 = Stops the VNCServer
 
  
<strong>mt-daapd</strong><br>
+
= VNCServer =
/etc/init.d/mt-daapd start<br>
+
  vncserver = Starts the VNCServer
/etc/init.d/mt-daapd stop
+
  vncserver -kill :1 = Stops the VNCServer
  
<strong>greyhole</strong><br>
+
= mt-daapd =
greyhole --daemon = Start the daemon<br>
+
  /etc/init.d/mt-daapd start
greyhole --fsck = Schedule a fsck<br>
+
  /etc/init.d/mt-daapd stop
greyhole --balance = Balance available space on storage pool devices<br>
 
greyhole --stats = Display statistics<br>
 
greyhole --empty-attic = Empty attic<br>
 
greyhole --debug <filename> = Debug file operations<br>
 
greyhole --thaw = List frozen directories<br>
 
greyhole --thaw <share/directory> = Thaw a frozen directory<br>
 
greyhole --prerotate = Pre-rotate task<br>
 
greyhole --postrotate = Post-rotate task<br>
 
  
When <path>, one of your storage pool directories, is/will become unavailable:<br>
+
= Greyhole =
greyhole --wait-for <path> = <path> will return soon<br>
+
Use just "greyhole" in a Terminal to get the list, since those could change in the future. Currently, they are:
greyhole --gone <path> = <path> is gone for good<br>
 
greyhole --going <path> = <path> will be gone for good
 
  
 
+
  Usage: greyhole [ACTION] [OPTIONS]
[[Basics|Linux Basic Commands]] most users will need.
+
 
 +
  Where ACTION is one of:
 +
    -?, --help            Display this help and exit.
 +
    -D, --daemon          Start the daemon.
 +
    -f, --fsck            Schedule a fsck.
 +
    -l, --balance        Balance available space on storage pool devices.
 +
    -s, --stats          Display storage pool statistics.
 +
    -S, --status          Display what the Greyhole daemon is currently doing.
 +
    -q, --view-queue      Display the current work queue.
 +
    -a, --empty-attic    Empty the attic.
 +
    -b, --debug=filename  Debug past file operations.
 +
    -p, --prerotate      Pre-rotate task (for logrotate).
 +
    -P, --postrotate      Post-rotate task (for logrotate).
 +
    -t, --thaw[=path]    Thaw a frozen directory. Greyhole will start working on
 +
                          files inside <path>. If you don't supply an option, the list
 +
                          of frozen directories will be displayed.
 +
    -w, --wait-for[=path] Tell Greyhole that the missing drive at <path> will return
 +
                          soon, and that it shouldn't re-create additional file copies
 +
                          to replace it. If you don't supply an option, the available
 +
                          options (paths) will be displayed.
 +
    -g, --gone[=path]    Tell Greyhole that the missing drive at <path> is gone for
 +
                          good. Greyhole will start replacing the missing file copies
 +
                          instantly. If you don't supply an option, the available
 +
                          options (paths) will be displayed.
 +
    -n, --going[=path]   Tell Greyhole that you want to remove a drive. Greyhole will
 +
                          then make sure you don't loose any files, and that the
 +
                          correct number of file copies are created to replace the
 +
                          missing drive. If you don't supply an option, the available
 +
                          options (paths) will be displayed.
 +
 
 +
  For --fsck, the available OPTIONS are:
 +
    -e, --email-report    Send an email when fsck completes, to report on what was
 +
                          checked, and any error that was found.
 +
    -y, --dont-walk-graveyard
 +
                          Speed up fsck by skipping the scan of the graveyard
 +
                          directories. Scanning the graveyards is only required to
 +
                          re-create symbolic links that might be missing from your
 +
                          shared directories.
 +
    -c, --if-conf-changed Only fsck if greyhole.conf changed since the last fsck.
 +
                          Used in the daily cron to prevent unneccesary fsck runs.
 +
    -d, --dir=path        Only scan a specific directory, and all sub-directories.
 +
                          The specified directory should be a Samba share, or a
 +
                          sub-directory of a Samba share.

Revision as of 20:22, 16 December 2010

General Linux/HDA Commands

 service httpd start = restart web server
 yum -y update = Automatically update fedora
 rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm = updates HDA
 rpm -q hda-platform = check to see what version of HDA your running.

Linux Basic Commands

Linux Basic Commands most users will need.

uShare

 service amahi-ushare restart = restart ushare after adding new content

VNCServer

 vncserver = Starts the VNCServer
 vncserver -kill :1 = Stops the VNCServer

mt-daapd

 /etc/init.d/mt-daapd start
 /etc/init.d/mt-daapd stop

Greyhole

Use just "greyhole" in a Terminal to get the list, since those could change in the future. Currently, they are:

 Usage: greyhole [ACTION] [OPTIONS]
 
 Where ACTION is one of:
   -?, --help            Display this help and exit.
   -D, --daemon          Start the daemon.
   -f, --fsck            Schedule a fsck.
   -l, --balance         Balance available space on storage pool devices.
   -s, --stats           Display storage pool statistics.
   -S, --status          Display what the Greyhole daemon is currently doing.
   -q, --view-queue      Display the current work queue.
   -a, --empty-attic     Empty the attic.
   -b, --debug=filename  Debug past file operations.
   -p, --prerotate       Pre-rotate task (for logrotate).
   -P, --postrotate      Post-rotate task (for logrotate).
   -t, --thaw[=path]     Thaw a frozen directory. Greyhole will start working on
                         files inside <path>. If you don't supply an option, the list
                         of frozen directories will be displayed.
   -w, --wait-for[=path] Tell Greyhole that the missing drive at <path> will return
                         soon, and that it shouldn't re-create additional file copies
                         to replace it. If you don't supply an option, the available
                         options (paths) will be displayed.
   -g, --gone[=path]     Tell Greyhole that the missing drive at <path> is gone for
                         good. Greyhole will start replacing the missing file copies
                         instantly. If you don't supply an option, the available
                         options (paths) will be displayed.
   -n, --going[=path]    Tell Greyhole that you want to remove a drive. Greyhole will
                         then make sure you don't loose any files, and that the
                         correct number of file copies are created to replace the
                         missing drive. If you don't supply an option, the available
                         options (paths) will be displayed.
 
 For --fsck, the available OPTIONS are:
   -e, --email-report    Send an email when fsck completes, to report on what was
                         checked, and any error that was found.
   -y, --dont-walk-graveyard
                         Speed up fsck by skipping the scan of the graveyard
                         directories. Scanning the graveyards is only required to
                         re-create symbolic links that might be missing from your
                         shared directories.
   -c, --if-conf-changed Only fsck if greyhole.conf changed since the last fsck.
                         Used in the daily cron to prevent unneccesary fsck runs.
   -d, --dir=path        Only scan a specific directory, and all sub-directories.
                         The specified directory should be a Samba share, or a
                         sub-directory of a Samba share.