mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
Finished the note about sshfs on the rox page
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10072 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
574a402ab7
commit
5a9e610f1b
@ -5,7 +5,7 @@
|
||||
%general-entities;
|
||||
|
||||
<!ENTITY rox-filer-download-http
|
||||
"&sourceforge-repo;/rox/rox-filer-&rox-filer-version;.tar.bz2">
|
||||
"&sourceforge-repo;/rox/rox-filer-&rox-filer-version;.tar.bz2">
|
||||
<!ENTITY rox-filer-download-ftp " ">
|
||||
<!ENTITY rox-filer-md5sum "28e8494c9af783258ff86c830f8f0062">
|
||||
<!ENTITY rox-filer-size "1.8 MB">
|
||||
@ -30,30 +30,44 @@
|
||||
<sect2 role="package">
|
||||
<title>Introduction to rox-filer</title>
|
||||
|
||||
<para><application>rox-filer</application> is a fast, lightweight, gtk2 file
|
||||
manager.</para>
|
||||
<para>
|
||||
<application>rox-filer</application> is a fast, lightweight, gtk2 file
|
||||
manager.
|
||||
</para>
|
||||
|
||||
&lfs71_checked;
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>Download (HTTP): <ulink url="&rox-filer-download-http;"/></para>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&rox-filer-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download (FTP): <ulink url="&rox-filer-download-ftp;"/></para>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&rox-filer-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download MD5 sum: &rox-filer-md5sum;</para>
|
||||
<para>
|
||||
Download MD5 sum: &rox-filer-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Download size: &rox-filer-size;</para>
|
||||
<para>
|
||||
Download size: &rox-filer-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated disk space required: &rox-filer-buildsize;</para>
|
||||
<para>
|
||||
Estimated disk space required: &rox-filer-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Estimated build time: &rox-filer-time;</para>
|
||||
<para>
|
||||
Estimated build time: &rox-filer-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
@ -65,23 +79,27 @@
|
||||
<xref linkend="shared-mime-info"/>
|
||||
</para>
|
||||
|
||||
<para condition="html" role="usernotes">User Notes:
|
||||
<ulink url="&blfs-wiki;/rox-filer"/></para>
|
||||
<para condition="html" role="usernotes">
|
||||
User Notes: <ulink url="&blfs-wiki;/rox-filer"/>
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="kernel" id="rox-filer-kernel">
|
||||
<title>Kernel Configuration</title>
|
||||
|
||||
<para>If you want <application>rox-filer</application> to be able to update the
|
||||
contents of a directory when changes are made to the files by other
|
||||
applications (eg, if a script is running) you will need to enable dnotify
|
||||
support in your kernel. In <command>make menuconfig</command>:</para>
|
||||
<para>
|
||||
If you want <application>rox-filer</application> to be able to update
|
||||
the contents of a directory when changes are made to the files by other
|
||||
applications (eg, if a script is running) you will need to enable
|
||||
dnotify support in your kernel. In <command>make menuconfig</command>:
|
||||
</para>
|
||||
|
||||
<screen><literal>Filesystems --->
|
||||
[*] Dnotify support</literal></screen>
|
||||
|
||||
<para>Save the new <filename>.config</filename> and then compile the
|
||||
kernel.</para>
|
||||
<para>
|
||||
Save the new <filename>.config</filename> and then compile the kernel.
|
||||
</para>
|
||||
|
||||
<indexterm zone="rox-filer rox-filer-kernel">
|
||||
<primary sortas="d-rox-filer">rox-filer</primary>
|
||||
@ -91,8 +109,9 @@
|
||||
<sect2 role="installation">
|
||||
<title>Installation of rox-filer</title>
|
||||
|
||||
<para>Compile <application>rox-filer</application> with the following
|
||||
commands:</para>
|
||||
<para>
|
||||
Compile <application>rox-filer</application> with the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>cd ROX-Filer &&
|
||||
sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' src/main.c &&
|
||||
@ -101,8 +120,9 @@ cd build &&
|
||||
../src/configure LIBS="-lm -ldl" &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>Now install it as the <systemitem class="username">root</systemitem>
|
||||
user:</para>
|
||||
<para>
|
||||
Now install it as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>mkdir /usr/share/rox &&
|
||||
mv ../{Help,images,Messages,Options.xml,ROX,style.css,.DirIcon} /usr/share/rox &&
|
||||
@ -128,15 +148,19 @@ ln -sv application-{msword,rtf}.png</userinput></screen>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":'
|
||||
src/main.c</command>: This command hard codes /usr/share/rox as the
|
||||
directory for <application>rox-filer</application>'s private files. Without
|
||||
this sed rox needs the environment variable ${APP_DIR} to be set.</para>
|
||||
<para>
|
||||
<command>sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":'
|
||||
src/main.c</command>: This command hard codes /usr/share/rox as the
|
||||
directory for <application>rox-filer</application>'s private files.
|
||||
Without this sed rox needs the environment variable ${APP_DIR} to be set.
|
||||
</para>
|
||||
|
||||
<para><command>ln -sv application-...</command>: These commands duplicate
|
||||
the icons for some common mime types. Without these links
|
||||
<application>rox-filer</application> would just display the default "unknown
|
||||
binary blob" icon.</para>
|
||||
<para>
|
||||
<command>ln -sv application-...</command>: These commands duplicate the
|
||||
icons for some common mime types. Without these links
|
||||
<application>rox-filer</application> would just display the default
|
||||
"unknown binary blob" icon.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="configuration">
|
||||
@ -144,41 +168,48 @@ ln -sv application-{msword,rtf}.png</userinput></screen>
|
||||
|
||||
<sect3><title>Configuration Information</title>
|
||||
|
||||
<para>Most of the configuration of <application>rox-filer</application> is
|
||||
achieved by right clicking on a <application>rox-filer</application> window
|
||||
and choosing "Options" from the menu. It stores its settings in <filename
|
||||
class="directory">~/.config/rox.sourceforge.net</filename>.</para>
|
||||
<para>
|
||||
Most of the configuration of <application>rox-filer</application> is
|
||||
achieved by right clicking on a <application>rox-filer</application>
|
||||
window and choosing "Options" from the menu. It stores its settings in
|
||||
<filename class="directory">~/.config/rox.sourceforge.net</filename>.
|
||||
</para>
|
||||
|
||||
<para>A <application>rox-filer</application> feature is that if there is an
|
||||
executable file called <filename>AppRun</filename> in a directory
|
||||
<application>rox-filer</application> will first run <command>AppRun</command>
|
||||
before it opens the folder.</para>
|
||||
<para>
|
||||
A <application>rox-filer</application> feature is that if there is an
|
||||
executable file called <filename>AppRun</filename> in a directory
|
||||
<application>rox-filer</application> will first run
|
||||
<command>AppRun</command> before it opens the folder.
|
||||
</para>
|
||||
|
||||
<!-- <para>As an example of how this may be used, if you have
|
||||
<application>ssh<application> access to another computer (perhaps another
|
||||
computer on you local network) with <application>ssh</application>
|
||||
configured for passwordless logins and you have
|
||||
<ulink url="http://fuse.sourceforge.net/sshfs.html">sshfs</ulink>
|
||||
installed you can use <command>AppRun<command> to mount the remote
|
||||
computer in a local folder using <command>sshfs</command>. If the
|
||||
folder has the same name as the hostname of the remote computer:</para>
|
||||
<para>
|
||||
As an example of how this may be used, if you have ssh access to another
|
||||
computer (perhaps another computer on you local network) with ssh
|
||||
configured for passwordless logins and you have
|
||||
<xref linkend="sshfs-fuse"/> installed you can use AppRun to mount the
|
||||
remote computer in a local folder using <command>sshfs</command>. For
|
||||
this example AppRun script to work the folder must have the same name as
|
||||
the hostname of the remote computer:
|
||||
</para>
|
||||
|
||||
<screen><userinput>cat > /path/to/hostname/AppRun << "HERE_DOC"
|
||||
#!/bin/bash
|
||||
|
||||
MOUNT_PATH="$(dirname ${0})"
|
||||
HOST="$(basename ${MOUNT_PATH})"
|
||||
echo ${HOST}:/ ${MOUNT_PATH}
|
||||
|
||||
MOUNT_PATH="${0%/*}"
|
||||
HOST=${MOUNT_PATH##*/}
|
||||
export MOUNT_PATH HOST
|
||||
sshfs -o nonempty ${HOST}:/ ${MOUNT_PATH}
|
||||
rox -x ${MOUNT_PATH}
|
||||
HERE_DOC
|
||||
chmod 755 /path/to/hostname/AppRun</userinput></screen> -->
|
||||
chmod 755 /path/to/hostname/AppRun</userinput></screen>
|
||||
|
||||
<para>If you use a desktop environment like
|
||||
<application>Gnome</application> or <application>KDE</application> you may
|
||||
like to create a <filename>rox.desktop</filename> file so that
|
||||
<application>rox-filer</application> appears in the panel's menus. As the
|
||||
<systemitem class="username">root</systemitem> user:</para>
|
||||
<para>
|
||||
If you use a desktop environment like
|
||||
<application>Gnome</application> or <application>KDE</application> you
|
||||
may like to create a <filename>rox.desktop</filename> file so that
|
||||
<application>rox-filer</application> appears in the panel's menus. As the
|
||||
<systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>ln -s ../rox/.DirIcon /usr/share/pixmaps/rox.png &&
|
||||
cat > /usr/share/applications/rox.desktop << "HERE_DOC"
|
||||
@ -217,7 +248,9 @@ HERE_DOC</userinput></screen>
|
||||
<varlistentry id="rox-filer-prog">
|
||||
<term><command>rox</command></term>
|
||||
<listitem>
|
||||
<para>is the rox file manager.</para>
|
||||
<para>
|
||||
is the rox file manager.
|
||||
</para>
|
||||
<indexterm zone="rox-filer rox-filer-prog">
|
||||
<primary sortas="b-rox-filer">rox-filer</primary>
|
||||
</indexterm>
|
||||
|
Loading…
Reference in New Issue
Block a user