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