[2fa7a3f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY rox-filer-download-http
|
---|
[5a9e610] | 8 | "&sourceforge-repo;/rox/rox-filer-&rox-filer-version;.tar.bz2">
|
---|
[2fa7a3f7] | 9 | <!ENTITY rox-filer-download-ftp " ">
|
---|
| 10 | <!ENTITY rox-filer-md5sum "28e8494c9af783258ff86c830f8f0062">
|
---|
| 11 | <!ENTITY rox-filer-size "1.8 MB">
|
---|
| 12 | <!ENTITY rox-filer-buildsize "3.7 MB">
|
---|
| 13 | <!ENTITY rox-filer-time "0.3 SBU">
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="rox-filer" xreflabel="Rox-&rox-filer-version;">
|
---|
| 17 | <?dbhtml filename="rox-filer.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date> </date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>Rox-&rox-filer-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="rox-filer">
|
---|
| 27 | <primary sortas="a-rox-filer">rox-filer</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[1b2d41b] | 31 | <title>Introduction to rox-filer</title>
|
---|
[2fa7a3f7] | 32 |
|
---|
[5a9e610] | 33 | <para>
|
---|
| 34 | <application>rox-filer</application> is a fast, lightweight, gtk2 file
|
---|
| 35 | manager.
|
---|
| 36 | </para>
|
---|
[2fa7a3f7] | 37 |
|
---|
[4c77a949] | 38 | &lfs71_checked;
|
---|
[2fa7a3f7] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[5a9e610] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&rox-filer-download-http;"/>
|
---|
| 45 | </para>
|
---|
[2fa7a3f7] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[5a9e610] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&rox-filer-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[2fa7a3f7] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[5a9e610] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &rox-filer-md5sum;
|
---|
| 55 | </para>
|
---|
[2fa7a3f7] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[5a9e610] | 58 | <para>
|
---|
| 59 | Download size: &rox-filer-size;
|
---|
| 60 | </para>
|
---|
[2fa7a3f7] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[5a9e610] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &rox-filer-buildsize;
|
---|
| 65 | </para>
|
---|
[2fa7a3f7] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[5a9e610] | 68 | <para>
|
---|
| 69 | Estimated build time: &rox-filer-time;
|
---|
| 70 | </para>
|
---|
[2fa7a3f7] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">rox-filer Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
[1b2d41b] | 78 | <xref linkend="libglade"/> and
|
---|
| 79 | <xref linkend="shared-mime-info"/>
|
---|
| 80 | </para>
|
---|
[2fa7a3f7] | 81 |
|
---|
[5a9e610] | 82 | <para condition="html" role="usernotes">
|
---|
| 83 | User Notes: <ulink url="&blfs-wiki;/rox-filer"/>
|
---|
| 84 | </para>
|
---|
[2fa7a3f7] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="kernel" id="rox-filer-kernel">
|
---|
| 88 | <title>Kernel Configuration</title>
|
---|
| 89 |
|
---|
[5a9e610] | 90 | <para>
|
---|
| 91 | If you want <application>rox-filer</application> to be able to update
|
---|
| 92 | the contents of a directory when changes are made to the files by other
|
---|
| 93 | applications (eg, if a script is running) you will need to enable
|
---|
| 94 | dnotify support in your kernel. In <command>make menuconfig</command>:
|
---|
| 95 | </para>
|
---|
[2fa7a3f7] | 96 |
|
---|
| 97 | <screen><literal>Filesystems --->
|
---|
| 98 | [*] Dnotify support</literal></screen>
|
---|
| 99 |
|
---|
[5a9e610] | 100 | <para>
|
---|
| 101 | Save the new <filename>.config</filename> and then compile the kernel.
|
---|
| 102 | </para>
|
---|
[2fa7a3f7] | 103 |
|
---|
| 104 | <indexterm zone="rox-filer rox-filer-kernel">
|
---|
| 105 | <primary sortas="d-rox-filer">rox-filer</primary>
|
---|
| 106 | </indexterm>
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="installation">
|
---|
[1b2d41b] | 110 | <title>Installation of rox-filer</title>
|
---|
[2fa7a3f7] | 111 |
|
---|
[5a9e610] | 112 | <para>
|
---|
| 113 | Compile <application>rox-filer</application> with the following commands:
|
---|
| 114 | </para>
|
---|
[2fa7a3f7] | 115 |
|
---|
| 116 | <screen><userinput>cd ROX-Filer &&
|
---|
| 117 | sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' src/main.c &&
|
---|
| 118 | mkdir build &&
|
---|
| 119 | cd build &&
|
---|
[bfe3828] | 120 | ../src/configure LIBS="-lm -ldl" &&
|
---|
[2fa7a3f7] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
[5a9e610] | 123 | <para>
|
---|
| 124 | Now install it as the <systemitem class="username">root</systemitem> user:
|
---|
| 125 | </para>
|
---|
[2fa7a3f7] | 126 |
|
---|
| 127 | <screen role="root"><userinput>mkdir /usr/share/rox &&
|
---|
| 128 | mv ../{Help,images,Messages,Options.xml,ROX,style.css,.DirIcon} /usr/share/rox &&
|
---|
| 129 | mv ../../rox.1 /usr/share/man/man1 &&
|
---|
| 130 | mv ../ROX-Filer /usr/bin/rox &&
|
---|
| 131 | chown -R root:root /usr/{bin,share}/rox &&
|
---|
| 132 | cd /usr/share/rox/ROX/MIME &&
|
---|
| 133 | ln -sv text-x-{diff,patch}.png &&
|
---|
| 134 | ln -sv application-x-font-{afm,type1}.png &&
|
---|
| 135 | ln -sv application-xml{,-dtd}.png &&
|
---|
| 136 | ln -sv application-xml{,-external-parsed-entity}.png &&
|
---|
| 137 | ln -sv application-{,rdf+}xml.png &&
|
---|
| 138 | ln -sv application-x{ml,-xbel}.png &&
|
---|
| 139 | ln -sv application-{x-shell,java}script.png &&
|
---|
| 140 | ln -sv application-x-{bzip,xz}-compressed-tar.png &&
|
---|
| 141 | ln -sv application-x-{bzip,lzma}-compressed-tar.png &&
|
---|
| 142 | ln -sv application-x-{bzip-compressed-tar,lzo}.png &&
|
---|
| 143 | ln -sv application-x-{bzip,xz}.png &&
|
---|
| 144 | ln -sv application-x-{gzip,lzma}.png &&
|
---|
| 145 | ln -sv application-{msword,rtf}.png</userinput></screen>
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="commands">
|
---|
| 149 | <title>Command Explanations</title>
|
---|
| 150 |
|
---|
[5a9e610] | 151 | <para>
|
---|
| 152 | <command>sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":'
|
---|
| 153 | src/main.c</command>: This command hard codes /usr/share/rox as the
|
---|
| 154 | directory for <application>rox-filer</application>'s private files.
|
---|
| 155 | Without this sed rox needs the environment variable ${APP_DIR} to be set.
|
---|
| 156 | </para>
|
---|
[2fa7a3f7] | 157 |
|
---|
[5a9e610] | 158 | <para>
|
---|
| 159 | <command>ln -sv application-...</command>: These commands duplicate the
|
---|
| 160 | icons for some common mime types. Without these links
|
---|
| 161 | <application>rox-filer</application> would just display the default
|
---|
| 162 | "unknown binary blob" icon.
|
---|
| 163 | </para>
|
---|
[2fa7a3f7] | 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | <sect2 role="configuration">
|
---|
| 167 | <title>Configuring Rox</title>
|
---|
| 168 |
|
---|
| 169 | <sect3><title>Configuration Information</title>
|
---|
| 170 |
|
---|
[5a9e610] | 171 | <para>
|
---|
| 172 | Most of the configuration of <application>rox-filer</application> is
|
---|
| 173 | achieved by right clicking on a <application>rox-filer</application>
|
---|
| 174 | window and choosing "Options" from the menu. It stores its settings in
|
---|
| 175 | <filename class="directory">~/.config/rox.sourceforge.net</filename>.
|
---|
| 176 | </para>
|
---|
| 177 |
|
---|
| 178 | <para>
|
---|
| 179 | A <application>rox-filer</application> feature is that if there is an
|
---|
| 180 | executable file called <filename>AppRun</filename> in a directory
|
---|
| 181 | <application>rox-filer</application> will first run
|
---|
| 182 | <command>AppRun</command> before it opens the folder.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | As an example of how this may be used, if you have ssh access to another
|
---|
| 187 | computer (perhaps another computer on you local network) with ssh
|
---|
| 188 | configured for passwordless logins and you have
|
---|
| 189 | <xref linkend="sshfs-fuse"/> installed you can use AppRun to mount the
|
---|
| 190 | remote computer in a local folder using <command>sshfs</command>. For
|
---|
| 191 | this example AppRun script to work the folder must have the same name as
|
---|
| 192 | the hostname of the remote computer:
|
---|
| 193 | </para>
|
---|
[2fa7a3f7] | 194 |
|
---|
| 195 | <screen><userinput>cat > /path/to/hostname/AppRun << "HERE_DOC"
|
---|
| 196 | #!/bin/bash
|
---|
[5a9e610] | 197 |
|
---|
| 198 | MOUNT_PATH="${0%/*}"
|
---|
| 199 | HOST=${MOUNT_PATH##*/}
|
---|
| 200 | export MOUNT_PATH HOST
|
---|
[2fa7a3f7] | 201 | sshfs -o nonempty ${HOST}:/ ${MOUNT_PATH}
|
---|
| 202 | rox -x ${MOUNT_PATH}
|
---|
| 203 | HERE_DOC
|
---|
[5a9e610] | 204 | chmod 755 /path/to/hostname/AppRun</userinput></screen>
|
---|
[2fa7a3f7] | 205 |
|
---|
[5feea08] | 206 | <para>
|
---|
| 207 | That works fine for mounting, but to unmount it we need to run the
|
---|
| 208 | command <command>fusermount -u ${MOUNTPOINT}</command>. You could set
|
---|
| 209 | that as your default umount command in your rox preferences, but you
|
---|
| 210 | would then be unable to unmount any normal mountpoints (that need
|
---|
| 211 | umount). What we need is a script that will unmount a Fuse mountpoint
|
---|
| 212 | with <command>fusermount -u ${MOUNTPOINT}</command> and everything else
|
---|
| 213 | with <command>umount</command>. As the
|
---|
| 214 | <systemitem class="username">root</systemitem> user:
|
---|
| 215 | </para>
|
---|
| 216 |
|
---|
| 217 | <screen role="root"><userinput>cat > /usr/bin/myumount << "HERE_DOC" &&
|
---|
| 218 | #!/bin/bash
|
---|
| 219 | sync
|
---|
| 220 | if mount | grep "${@}" | grep -q fuse
|
---|
| 221 | then fusermount -u "${@}"
|
---|
| 222 | else umount "${@}"
|
---|
| 223 | fi
|
---|
| 224 | HERE_DOC
|
---|
| 225 | chmod 755 /usr/bin/myumount</userinput></screen>
|
---|
| 226 |
|
---|
| 227 | <para>
|
---|
| 228 | Now, to make Rox use this simple script, open a Rox window, right click
|
---|
| 229 | on it and choose Options from the menu. In the left hand list choose
|
---|
| 230 | "Action windows" and then on the right hand side, where it says
|
---|
| 231 | "Unmount command" change <command>umount</command> to
|
---|
| 232 | <command>myumount</command>.
|
---|
| 233 | </para>
|
---|
| 234 |
|
---|
[5a9e610] | 235 | <para>
|
---|
| 236 | If you use a desktop environment like
|
---|
| 237 | <application>Gnome</application> or <application>KDE</application> you
|
---|
| 238 | may like to create a <filename>rox.desktop</filename> file so that
|
---|
[3a373116] | 239 | <application>rox-filer</application> appears in the panel's menus. As
|
---|
| 240 | the <systemitem class="username">root</systemitem> user:
|
---|
[5a9e610] | 241 | </para>
|
---|
[2fa7a3f7] | 242 |
|
---|
| 243 | <screen role="root"><userinput>ln -s ../rox/.DirIcon /usr/share/pixmaps/rox.png &&
|
---|
[c099902d] | 244 | mkdir -p /usr/share/applications &&
|
---|
[2fa7a3f7] | 245 | cat > /usr/share/applications/rox.desktop << "HERE_DOC"
|
---|
| 246 | [Desktop Entry]
|
---|
| 247 | Encoding=UTF-8
|
---|
| 248 | Type=Application
|
---|
| 249 | Name=Rox
|
---|
| 250 | Comment=The Rox File Manager
|
---|
| 251 | Icon=rox
|
---|
| 252 | Exec=rox
|
---|
| 253 | Categories=GTK;Utility;Application;System;Core;
|
---|
| 254 | StartupNotify=true
|
---|
| 255 | Terminal=false
|
---|
| 256 | HERE_DOC</userinput></screen>
|
---|
| 257 | </sect3>
|
---|
| 258 | </sect2>
|
---|
| 259 |
|
---|
| 260 | <sect2 role="content">
|
---|
| 261 | <title>Contents</title>
|
---|
| 262 |
|
---|
| 263 | <segmentedlist>
|
---|
| 264 | <segtitle>Installed Programs</segtitle>
|
---|
| 265 | <segtitle>Installed Directories</segtitle>
|
---|
| 266 |
|
---|
| 267 | <seglistitem>
|
---|
| 268 | <seg>rox</seg>
|
---|
| 269 | <seg>/usr/share/rox</seg>
|
---|
| 270 | </seglistitem>
|
---|
| 271 | </segmentedlist>
|
---|
| 272 |
|
---|
| 273 | <variablelist>
|
---|
| 274 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 275 | <?dbfo list-presentation="list"?>
|
---|
| 276 | <?dbhtml list-presentation="table"?>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="rox-filer-prog">
|
---|
| 279 | <term><command>rox</command></term>
|
---|
| 280 | <listitem>
|
---|
[5a9e610] | 281 | <para>
|
---|
| 282 | is the rox file manager.
|
---|
| 283 | </para>
|
---|
[2fa7a3f7] | 284 | <indexterm zone="rox-filer rox-filer-prog">
|
---|
| 285 | <primary sortas="b-rox-filer">rox-filer</primary>
|
---|
| 286 | </indexterm>
|
---|
| 287 | </listitem>
|
---|
| 288 | </varlistentry>
|
---|
| 289 | </variablelist>
|
---|
| 290 | </sect2>
|
---|
| 291 | </sect1>
|
---|