forked from IgnorantGuru/spacefm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
488 lines (339 loc) · 17.7 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
README for SpaceFM v0.9.4
Homepage:
http://ignorantguru.github.io/spacefm/
Downloads:
http://sourceforge.net/projects/spacefm/files/
https://github.com/IgnorantGuru/spacefm/tree/pkg
Official Forum:
https://sourceforge.net/p/spacefm/discussion/general/
Guidelines For Distributing Modifications:
https://github.com/IgnorantGuru/spacefm/wiki/Guidelines-For-Distributing-Modifications
CONTENTS
DESCRIPTION
PACKAGES
INSTALLER
BUILD GTK2
BUILD GTK3
BUILD HAL
BUILD NEXT
BUILD DEBUG
CREATE DEB PACKAGE
UNINSTALL
ENABLE KERNEL POLLING
TRANSLATE
LICENSE
DESCRIPTION
SpaceFM is a multi-panel tabbed file manager with built-in VFS, udev-based
device manager, customizable menu system, and bash integration.
PACKAGES
Find or add packages, forum threads, and other info for your distro:
https://github.com/IgnorantGuru/spacefm/wiki/Distros
For other distros:
See INSTALLER below
NOTE: Enabling kernel polling is recommended after installing SpaceFM. See
the ENABLE KERNEL POLLING section below or visit:
http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#devices-kernpoll
INSTALLER
A self-extracting installer is available (spacefm-x.x.x-installer.sh):
https://github.com/IgnorantGuru/spacefm/tree/pkg
(To save a file, click on its filename and click 'View Raw')
The installer requires the build dependencies listed below in BUILD. If
any dependencies are missing, examine the error, install missing packages,
and try again.
The installer MUST be run in a terminal. It automatically builds and
installs. Run it like this:
bash spacefm-x.x.x-installer.sh
or to see options:
bash spacefm-x.x.x-installer.sh --help
To reinstall or upgrade, just run the latest installer again.
NOTE: Enabling kernel polling is recommended after installing SpaceFM:
http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#devices-kernpoll
BUILD GTK2
1) Install required build dependencies (below are Debian package names -
packages names on your distro may vary but should be similar):
autotools-dev bash build-essential desktop-file-utils libc6 libcairo2
libglib2.0-0 libglib2.0-dev libgtk2.0-0 (>=2.18) libgtk2.0-dev
libgtk2.0-bin libpango1.0-0 libx11-6 shared-mime-info intltool
pkg-config fakeroot libudev0 (>=143) libudev-dev
Also Recommended: udevil|pmount|udisks eject lsof wget ktsuss|gksu|kdesu
libstartup-notification0 libstartup-notification0-dev
dbus libdbus-1-3 libdbus-1-dev
configure will report anything missing when you run it as shown below.
2) Use these commands to download the SpaceFM tarball and build:
# Download & Extract
mkdir /tmp/spacefm-build && cd /tmp/spacefm-build
wget -O spacefm.tar.gz https://github.com/IgnorantGuru/spacefm/tarball/master
tar xzf spacefm.tar.gz
cd IgnorantGuru-spacefm-*
# Build & Install
./configure
make -s
sudo make install
sudo update-mime-database /usr/local/share/mime > /dev/null
sudo update-desktop-database -q
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/hicolor
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/Faenza
# Remove Temporary Files
cd / && rm -rf /tmp/spacefm-build
NOTES:
a) If configure reports missing dependencies, install them and run
configure again before proceeding to make.
b) Enabling kernel polling is recommended after installing SpaceFM:
http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#devices-kernpoll
c) SpaceFM supports ktsuss, gksu, gksudo, gnomesu, kdesu, and xdg-su.
To build with an additional custom su program ('/usr/bin/mysu' in this
example), add:
--with-preferable-sudo=/usr/bin/mysu # to the configure command
BUILD GTK3
The GTK3 build of SpaceFM uses the newer GTK libraries. BE SURE to use a
GTK3 theme which supports your CURRENT version of GTK3 (no theme warnings
should appear when spacefm is run in a terminal), or use adwaita. Use of GTK3
without any theme is NOT recommended.
PACKAGERS: Due to the unfinished and changing nature of GTK3, some users
may prefer the GTK2 build. Please consider providing both spacefm-gtk2 and
spacefm-gtk3 packages for your users.
1) Install required build dependencies (below are Debian package names -
packages names on your distro may vary but should be similar):
autotools-dev bash build-essential desktop-file-utils libc6 libcairo2
libglib2.0-0 libglib2.0-dev libgtk-3-0 libgtk-3-dev libgtk-3-bin
libpango1.0-0 libx11-6 shared-mime-info intltool pkg-config fakeroot
libudev0 (>=143) libudev-dev
Also Recommended: udevil|pmount|udisks eject lsof wget ktsuss|gksu|kdesu
libstartup-notification0 libstartup-notification0-dev
dbus libdbus-1-3 libdbus-1-dev
configure will report anything missing when you run it as shown below.
2) Use these commands to download the SpaceFM tarball and build:
# Download & Extract
mkdir /tmp/spacefm-build && cd /tmp/spacefm-build
wget -O spacefm.tar.gz https://github.com/IgnorantGuru/spacefm/tarball/master
tar xzf spacefm.tar.gz
cd IgnorantGuru-spacefm-*
# Build & Install
./configure --with-gtk3
make -s
sudo make install
sudo update-mime-database /usr/local/share/mime > /dev/null
sudo update-desktop-database -q
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/hicolor
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/Faenza
# Remove Temporary Files
cd / && rm -rf /tmp/spacefm-build
NOTES:
a) If configure reports missing dependencies, install them and run
configure again before proceeding to make.
b) Enabling kernel polling is recommended after installing SpaceFM:
http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#devices-kernpoll
c) SpaceFM supports ktsuss, gksu, gksudo, gnomesu, kdesu, and xdg-su.
To build with an additional custom su program ('/usr/bin/mysu' in this
example), add:
--with-preferable-sudo=/usr/bin/mysu # to the configure command
BUILD HAL
Device features are extremely limited with HAL. Use of this build is only
recommended if udev is not installed. SpaceFM HAL support is no longer
actively developed, yet please report any build problems.
1) Install required build dependencies (below are Debian package names -
packages names on your distro may vary but should be similar):
autotools-dev bash build-essential desktop-file-utils libc6 libcairo2
libglib2.0-0 libglib2.0-dev libgtk2.0-0 (>=2.18) libgtk2.0-dev
libgtk2.0-bin libpango1.0-0 libx11-6 shared-mime-info intltool
pkg-config fakeroot
hal libhal-dev libhal-storage-dev libhal-storage1 libhal1
dbus libdbus-1-3 libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-dev
Also Recommended: wget ktsuss|gksu libstartup-notification0
libstartup-notification0-dev
configure will report anything missing when you run it as shown below.
2) Use these commands to download the SpaceFM tarball and build:
# Download & Extract
mkdir /tmp/spacefm-build && cd /tmp/spacefm-build
wget -O spacefm.tar.gz https://github.com/IgnorantGuru/spacefm/tarball/master
tar xzf spacefm.tar.gz
cd IgnorantGuru-spacefm-*
# Build & Install
./configure --enable-hal
make -s
sudo make install
sudo update-mime-database /usr/local/share/mime > /dev/null
sudo update-desktop-database -q
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/hicolor
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/Faenza
# Remove Temporary Files
cd / && rm -rf /tmp/spacefm-build
NOTES:
a) If configure reports missing dependencies, install them and run
configure again before proceeding to make.
b) Enabling kernel polling is recommended after installing SpaceFM:
http://ignorantguru.github.io/spacefm/spacefm-manual-en.html#devices-kernpoll
c) SpaceFM supports ktsuss, gksu, gksudo, gnomesu, kdesu, and xdg-su.
To build with an additional custom su program ('/usr/bin/mysu' in this
example), add:
--with-preferable-sudo=/usr/bin/mysu # to the configure command
BUILD NEXT
The git 'next' branch of SpaceFM is a work in progress which eventually becomes
the next release version. To build from this branch, install the required
build dependencies listed above for your build, then:
# Download & Extract
mkdir /tmp/spacefm-next && cd /tmp/spacefm-next
wget -O spacefm-next.tar.gz https://github.com/IgnorantGuru/spacefm/tarball/next
tar xzf spacefm-next.tar.gz
cd IgnorantGuru-spacefm-*
# Build & Install
./configure
make -s
sudo make install
sudo update-mime-database /usr/local/share/mime > /dev/null
sudo update-desktop-database -q
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/hicolor
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/Faenza
# Remove Temporary Files
cd / && rm -rf /tmp/spacefm-next
BUILD DEBUG
If SpaceFM crashes or hangs on your system, you can help to correct this
problem by reporting it, including a full backtrace.
IF you are using Arch Linux, you can perform step 2 below, then install the AUR
spacefm-git package, which enables debugging.
For other distros:
1) Install build dependencies for your build (see BUILD sections above).
2) Install the 'gdb' GNU Debugger, and debugging symbols for gtk. For example
on Debian, this is done like this (packages on other distros should have
similar names):
apt-get install gdb libc6-dbg libglib2.0-0-dbg libgtk2.0-0-dbg librsvg2-dbg
3) Use these commands to download the SpaceFM tarball and build:
# Download & Extract
mkdir /tmp/spacefm-build && cd /tmp/spacefm-build
# substitute 'next' for 'master' below if next branch is desired
wget -O spacefm.tar.gz https://github.com/IgnorantGuru/spacefm/tarball/master
tar xzf spacefm.tar.gz
cd IgnorantGuru-spacefm-*
# Build & Install
CFLAGS='-ggdb3 -O1' STRIP='!strip' ./configure # pass any options here
make -s
sudo make install
sudo update-mime-database /usr/local/share/mime > /dev/null
sudo update-desktop-database -q
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/hicolor
sudo gtk-update-icon-cache -q -t -f /usr/local/share/icons/Faenza
# Remove Temporary Files
cd / && rm -rf /tmp/spacefm-build
4) Run spacefm with the debugger:
gdb /usr/local/bin/spacefm
In gdb, enter 'run' at the prompt. SpaceFM will start. When the crash
occurs, gdb will freeze SpaceFM. If SpaceFM hangs, press Ctrl-C in gdb to
interrupt it, or run 'killall -s KILL spacefm' in another terminal.
5) In the terminal running gdb enter 'bt full'. Provide the output with your
detailed bug report at https://github.com/IgnorantGuru/spacefm/issues
NOTE: When SpaceFM is built this way, it may run more slowly and use more
memory. Once you are done debugging, be sure to install a normal
(optimized) build.
CREATE DEB PACKAGE
To build a deb file of SpaceFM on your Debian-based distro:
1) Install build dependencies for your build (see above), plus debhelper.
2) Use these commands to download and extract the SpaceFM tarball (be sure to
USE A TMP BUILD PATH THAT DOES NOT CONTAIN SPACES):
mkdir /tmp/spacefm-build && cd /tmp/spacefm-build # no spaces in path
# Note: you can change "master" to "next" if you want the next branch:
wget -O spacefm.tar.gz https://github.com/IgnorantGuru/spacefm/tarball/master
tar xzf spacefm.tar.gz
cd IgnorantGuru-spacefm-*
3) Move the distros/debian directory into the source directory:
mv distros/debian .
NOTE: For newer Debian versions, some adjustments to the control file
(dependencies) may be necessary, or use official Debian packages.
4) IF GTK3 support IS desired:
cp debian/control-gtk3 debian/control
cp debian/rules-gtk3 debian/rules
sed -i 's/^spacefm \(.*\)/spacefm-gtk3 \1/' debian/changelog
5) IF hal support IS desired (cannot be used with GTK3 unless you edit rules):
cp debian/control-hal debian/control
cp debian/rules-hal debian/rules
sed -i 's/^spacefm \(.*\)/spacefm-hal \1/' debian/changelog
6) Build package: (the package files will appear in the parent directory)
dpkg-buildpackage -b -uc
cd .. && rm -rf IgnorantGuru-spacefm-* spacefm.tar.gz
7) To install the package you built:
dpkg -i spacefm*.deb
UNINSTALL
If you installed from a package, use your package manager to remove SpaceFM.
Otherwise, run these commands AS ROOT:
rm /usr/local/bin/spacefm /usr/local/bin/spacefm-auth
rm -r /usr/local/share/spacefm
rm /usr/local/share/pixmaps/spacefm.png
rm /usr/local/share/pixmaps/spacefm-*.png
rm /usr/local/share/icons/hicolor/*/apps/spacefm.png
rm /usr/local/share/icons/hicolor/*/apps/spacefm-*.png
rm /usr/local/share/icons/Faenza/apps/48/spacefm.png
rm /usr/local/share/icons/Faenza/apps/48/spacefm-*.png
rm /usr/local/share/locale/*/LC_MESSAGES/spacefm.mo
rm /usr/local/share/applications/spacefm*.desktop
rm /usr/local/share/mime/packages/spacefm-mime.xml
update-mime-database /usr/local/share/mime > /dev/null
update-desktop-database -q
gtk-update-icon-cache -q -t -f /usr/local/share/icons/hicolor
ENABLE KERNEL POLLING
You may need to enable kernel polling for device media changes to be
detected by SpaceFM. For example, if you insert a CD and SpaceFM still
says 'no media', this is a symptom that kernel polling is not enabled.
Kernel polling is a newer feature of the Linux kernel and udev, so some
distros don't yet have it enabled by default. To use kernel polling,
your Linux kernel may need to be 2.6.38 or newer, and udev may need to
be version 173 or newer.
TO DETERMINE IF KERNEL POLLING IS ENABLED:
cat /sys/module/block/parameters/events_dfl_poll_msecs
cat /sys/block/sr0/events_poll_msecs
If you get 0 or -1 from both of those commands, kernel polling may be
disabled.
TO ENABLE KERNEL POLLING PERMANENTLY (survives a reboot), add the
following command to your /etc/rc.local file (anywhere before the
'exit' line in that file):
echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs
Any number between 2000 and 5000 (milliseconds) should be reasonable -
the higher 5000 means poll every 5 seconds, which is less overhead but
a little slower.
OR pass this option to the kernel boot command line in grub:
block.events_dfl_poll_msecs=2000
OR add a udev rule to enable kernel polling on removable devices:
echo 'ACTION=="add", ATTR{removable}=="1", \
ATTR{events_poll_msecs}=="-1", ATTR{events_poll_msecs}="2000"' \
> /etc/udev/rules.d/61-removable-storage-polling.rules
A reboot will be required for the above changes to take effect, or...
TO ENABLE KERNEL POLLING TEMPORARILY AND IMMEDIATELY, enable common
polling for the block module:
sudo bash -c 'echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs'
OR you can enable polling just for a single device like this (/dev/sr0
in this example):
sudo bash -c 'echo 2000 > /sys/block/sr0/events_poll_msecs'
This change should be immediate - media will be detected. However, the
above change will be lost when you reboot.
References:
http://www.mail-archive.com/[email protected]/msg15714.html
http://blogs.gentoo.org/mgorny/2011/06/20/uam-can-now-mount-cds-and-dvds/
https://bugs.archlinux.org/task/25609
http://unix.stackexchange.com/questions/38582/
TRANSLATE
To help translate SpaceFM please visit:
https://github.com/IgnorantGuru/spacefm/wiki/Translate
At Transifex:
https://www.transifex.com/projects/p/spacefm/resource/spacefmpot_1/
Just sign up for a free Transifex account. For instructions visit:
http://help.transifex.com/intro/translating.html#translating
LICENSE
SpaceFM - Copyright (C) 2014 GPL3+
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
USE AT YOUR OWN RISK. This program is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU General Public License for more details.
The 'exo' libraries and source code used by this software are licensed
under the GNU General Public License and the GNU Lesser General Public
License version 3 (LGPL3).
You should have received a copy of the GNU General Public License and
the GNU Lesser General Public License along with this program; if not,
write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
Floor, Boston, MA 02110-1301, USA.
See COPYING and COPYING-LGPL files.
DERIVATIVE WORKS
If you plan to publish a significant amount of or the full source to
SpaceFM with your modifications, please see the following wiki article:
https://github.com/IgnorantGuru/spacefm/wiki/Guidelines-For-Distributing-Modifications