source: xsoft/other/rox-filer.xml@ 5feea08

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5feea08 was 5feea08, checked in by Andrew Benton <andy@…>, 12 years ago

Added a script to unmount fuse mountpoints to the Rox page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10075 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.5 KB
Line 
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
8 "&sourceforge-repo;/rox/rox-filer-&rox-filer-version;.tar.bz2">
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">
31 <title>Introduction to rox-filer</title>
32
33 <para>
34 <application>rox-filer</application> is a fast, lightweight, gtk2 file
35 manager.
36 </para>
37
38 &lfs71_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&rox-filer-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&rox-filer-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &rox-filer-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &rox-filer-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &rox-filer-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &rox-filer-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">rox-filer Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="libglade"/> and
79 <xref linkend="shared-mime-info"/>
80 </para>
81
82 <para condition="html" role="usernotes">
83 User Notes: <ulink url="&blfs-wiki;/rox-filer"/>
84 </para>
85 </sect2>
86
87 <sect2 role="kernel" id="rox-filer-kernel">
88 <title>Kernel Configuration</title>
89
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>
96
97<screen><literal>Filesystems -&#45;-&gt;
98 [*] Dnotify support</literal></screen>
99
100 <para>
101 Save the new <filename>.config</filename> and then compile the kernel.
102 </para>
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">
110 <title>Installation of rox-filer</title>
111
112 <para>
113 Compile <application>rox-filer</application> with the following commands:
114 </para>
115
116<screen><userinput>cd ROX-Filer &amp;&amp;
117sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' src/main.c &amp;&amp;
118mkdir build &amp;&amp;
119cd build &amp;&amp;
120../src/configure LIBS="-lm -ldl" &amp;&amp;
121make</userinput></screen>
122
123 <para>
124 Now install it as the <systemitem class="username">root</systemitem> user:
125 </para>
126
127<screen role="root"><userinput>mkdir /usr/share/rox &amp;&amp;
128mv ../{Help,images,Messages,Options.xml,ROX,style.css,.DirIcon} /usr/share/rox &amp;&amp;
129mv ../../rox.1 /usr/share/man/man1 &amp;&amp;
130mv ../ROX-Filer /usr/bin/rox &amp;&amp;
131chown -R root:root /usr/{bin,share}/rox &amp;&amp;
132cd /usr/share/rox/ROX/MIME &amp;&amp;
133ln -sv text-x-{diff,patch}.png &amp;&amp;
134ln -sv application-x-font-{afm,type1}.png &amp;&amp;
135ln -sv application-xml{,-dtd}.png &amp;&amp;
136ln -sv application-xml{,-external-parsed-entity}.png &amp;&amp;
137ln -sv application-{,rdf+}xml.png &amp;&amp;
138ln -sv application-x{ml,-xbel}.png &amp;&amp;
139ln -sv application-{x-shell,java}script.png &amp;&amp;
140ln -sv application-x-{bzip,xz}-compressed-tar.png &amp;&amp;
141ln -sv application-x-{bzip,lzma}-compressed-tar.png &amp;&amp;
142ln -sv application-x-{bzip-compressed-tar,lzo}.png &amp;&amp;
143ln -sv application-x-{bzip,xz}.png &amp;&amp;
144ln -sv application-x-{gzip,lzma}.png &amp;&amp;
145ln -sv application-{msword,rtf}.png</userinput></screen>
146 </sect2>
147
148 <sect2 role="commands">
149 <title>Command Explanations</title>
150
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>
157
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>
164 </sect2>
165
166 <sect2 role="configuration">
167 <title>Configuring Rox</title>
168
169 <sect3><title>Configuration Information</title>
170
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>
194
195<screen><userinput>cat &gt; /path/to/hostname/AppRun &lt;&lt; "HERE_DOC"
196#!/bin/bash
197
198MOUNT_PATH="${0%/*}"
199HOST=${MOUNT_PATH##*/}
200export MOUNT_PATH HOST
201sshfs -o nonempty ${HOST}:/ ${MOUNT_PATH}
202rox -x ${MOUNT_PATH}
203HERE_DOC
204chmod 755 /path/to/hostname/AppRun</userinput></screen>
205
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 &gt; /usr/bin/myumount &lt;&lt; "HERE_DOC" &amp;&amp;
218#!/bin/bash
219sync
220if mount | grep "${@}" | grep -q fuse
221then fusermount -u "${@}"
222else umount "${@}"
223fi
224HERE_DOC
225chmod 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
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
239 <application>rox-filer</application> appears in the panel's menus. As
240 the <systemitem class="username">root</systemitem> user:
241 </para>
242
243<screen role="root"><userinput>ln -s ../rox/.DirIcon /usr/share/pixmaps/rox.png &amp;&amp;
244cat &gt; /usr/share/applications/rox.desktop &lt;&lt; "HERE_DOC"
245[Desktop Entry]
246Encoding=UTF-8
247Type=Application
248Name=Rox
249Comment=The Rox File Manager
250Icon=rox
251Exec=rox
252Categories=GTK;Utility;Application;System;Core;
253StartupNotify=true
254Terminal=false
255HERE_DOC</userinput></screen>
256 </sect3>
257 </sect2>
258
259 <sect2 role="content">
260 <title>Contents</title>
261
262 <segmentedlist>
263 <segtitle>Installed Programs</segtitle>
264 <segtitle>Installed Directories</segtitle>
265
266 <seglistitem>
267 <seg>rox</seg>
268 <seg>/usr/share/rox</seg>
269 </seglistitem>
270 </segmentedlist>
271
272 <variablelist>
273 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
274 <?dbfo list-presentation="list"?>
275 <?dbhtml list-presentation="table"?>
276
277 <varlistentry id="rox-filer-prog">
278 <term><command>rox</command></term>
279 <listitem>
280 <para>
281 is the rox file manager.
282 </para>
283 <indexterm zone="rox-filer rox-filer-prog">
284 <primary sortas="b-rox-filer">rox-filer</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288 </variablelist>
289 </sect2>
290</sect1>
Note: See TracBrowser for help on using the repository browser.