INDEX

MEEGO

Make sure fuse is not upgraded :

cat /etc/apt/sources.list.d/*home-rzr*
deb http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ ./

apt-get install sshfs encfs

RM680-02-6_PR_RM680:~# dpkg-query --list fuse-utils fuse encfs sshfs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                       Version                                    Description
+++-==========================================-==========================================-====================================================================================================
ii  encfs                                      1.7.4-2.4                                  encrypted virtual filesystem
un  fuse                                       <none>                                     (no description available)
ii  fuse-utils                                 2.8.6maemo5+0m7                            Filesystem in USErspace (utilities)
ii  sshfs                                      2.2-1                                      filesystem client based on SSH File Transfer Protocol

FeedBack at :

FUSE

wget https://openrepos.net/sites/default/files/packages/71/fuse_0.0.0rzr1_all_0.deb
/home/user/local # dmesg  | grep fuse
[    0.105834] fuse init (API version 7.13)
chgrp adm /etc/fuse.conf
chgrp adm /dev/fuse
chgrp adm /usr/bin/fusermount /sbin/mount.fuse /etc/fuse.conf
chmod g+s /usr/bin/fusermount /sbin/mount.fuse

ls -l /dev/fuse /usr/bin/fusermount  /sbin/mount.fuse /etc/fuse.conf
# crw-rw----    1 root     adm        10, 229 Jan  1  1970 /dev/fuse
# -rw-r-----    1 root     adm            215 Nov 17 00:24 /etc/fuse.conf
# -rwxr-xr-x    1 root     adm           6632 Apr  8  2011 /sbin/mount.fuse
# -rwxr-xr-x    1 root     adm          23992 Apr  8  2011 /usr/bin/fusermount

ToDo :

dh_gencontrol -s
Can't locate object method "binmode" via package "FileHandle" at /usr/share/perl5/Dpkg/Compression/FileHandle.pm line 254.
dh_gencontrol: dpkg-gencontrol -pfuse-utils -ldebian/changelog -Tdebian/fuse-utils.substvars -Pdebian/fuse-utils returned exit code 25

ENCFS

cat<<EOF>/etc/apt/sources.list.d/home-rzr-harmattan.list
deb http://rzr.online.fr/r/http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ ./
deb http://rzr.online.fr/r/http://repo.pub.meego.com/home:/rzr:/harmattan/harmattan/ ./
EOF
apt-get install encfs
apt-get install libboost-system1.42.0 libboost-filesystem1.42.0 libboost-serialization1.42.0 librlog5 fuse
dpkg -i encfs_1.7.4-2.4_armel.deb 
uid=29999
gid=29999
HOME=/home/user
s="${HOME}/MyDocs/local/private/"
s="${HOME}/local/private/"
d="${HOME}/mnt/encfs"
devel-su -c "umount $d"
mkdir -p "$s" "$d"
devel-su -c "encfs -o uid=$uid -o gid=$gid -o allow_other \"$s\" \"$d\" "
mkdir -p ~/mnt/encfs/private
# ...

It will work if using open kernel else error will be reported:

fuse: failed to open /dev/fuse: Permission denied
fuse failed.  Common problems:
- fuse kernel module not installed (modprobe fuse)
- invalid options -- see usage message

Fail :

cat /proc/version 
Linux version 2.6.32.54-dfl61-20121301 (harmattanpr13@openmode) (gcc version 4.4.1 ('cs2009q3-hard-67-sb16') ) #1 PREEMPT Wed Jul 4 23:01:55 EEST 2012

FeedBack :

ToDo : EquiVs

TODO

EncFS Password:
fusermount: mount failed: Operation not permitted
fuse failed.  Common problems:
 - fuse kernel module not installed (modprobe fuse)
 - invalid options -- see usage message

uname -a
Linux RM680 2.6.32.54-dfl61-20121301 #1 PREEMPT Sat Mar 2 23:11:21 EET 2013 armv7l GNU/Linux

BUILD

apt-get install libboost-date-time1.42-dev libboost-filesystem1.42-dev libboost-graph1.42-dev libboost-iostreams1.42-dev libboost-math1.42-dev libboost-program-options1.42-dev libboost-regex1.42-dev libboost-serialization1.42-dev libboost-signals1.42-dev libboost-system1.42-dev libboost-test1.42-dev libboost-thread1.42-dev libboost-wave1.42-dev libboost1.42-all-dev libboost1.42-dev  

SSHFS

I just rebuild fuse and sshfs in my public repo : http://rzr.online.fr/q/harmattan

Next job is to MounT a remote FileSystem on my HandSet running HarmattaN, the goal is to BuilD on DevicE and also some DebiaN ChrooT ScratchBoX hacks …

Note that for now It only works as root , but not user… I suspect I must learn more on aegis or InceptioN

FeedBack WelcomE :

INSTALL

As RooT :

devel-su
cat /etc/apt/sources.list.d/home-rzr-harmattan.list
deb http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ ./
deb http://repo.pub.meego.com/home:/rzr:/harmattan/harmattan/ ./
apt-get install sshfs # fuse-utils 
# ii  fuse-utils 2.8.6maemo5+0m7 Filesystem in USErspace (utilities)
# ii  libfuse2 2.8.6maemo5+0m7 Filesystem in USErspace library
# ii  sshfs 2.2-1 filesystem client based on SSH File Transfer Protocol
ssh-keygen # optional
ssh-copy-id user@localhost  # will save some typing 
mkdir -p ~/mnt/sshfs ; sshfs user@localhost:/  ~/mnt/sshfs
df
user@localhost:/       4128448   1717192   2201544  44% /root/mnt/sshfs

TODO

ToDo : As UseR

mkdir -p ~/mnt/sshfs ; sshfs user@localhost:/  ~/mnt/sshfs
# user@localhost's password: 
# fuse: failed to open /dev/fuse: Permission denied
sshfs -d user@localhost:/  ~/mnt/sshfs
# user@localhost's password:
# fusermount: failed to open /etc/fuse.conf: Permission denied
# fusermount: mount failed: Operation not permitted
chgrp adm /etc/fuse.conf
sshfs user@localhost:/  ~/mnt/sshfs
# user@localhost's password: 
# fusermount: mount failed: Operation not permitted
mkdir -p  ~/mnt/sshfs ; sshfs user@localhost:/  ~/mnt/sshfs
# user@localhost's password: 
# fusermount: mount failed: Operation not permitted
# strace
# mount("user@localhost:/", "/root/mnt/sshfs", "fuse.sshfs", MS_NOSUID|MS_NODEV, "max_read=65536,fd=4,rootmode=400"...) = -1 EPERM (Operation not permitted)
apt-cache  show sshfs | grep Version
# Version: 2.2-1

dpkg-query --list *fuse*
# ii  fuse-utils                      2.8.5maemo5+0m6                 Filesystem in USErspace (utilities)
# ii  libfuse2                        2.8.5maemo5+0m6                 Filesystem in USErspace library

Probably that one should be SigneD / AutH :

# fuse-utils: /usr/bin/fusermount

WorkAround as RooT :

# umount ~/mnt/sshfs ; sshfs -o allow_other user@localhost:/ ~/mnt/sshfs

ERRORS

ProbleM :

~ $ strace strace encfs ~/local/encfs ~/mnt/encfs 2>&1 | grep mount
EncFS Password: 
write(2, "mount(\"encfs\", \"/home/user/mnt/e"..., 110mount("encfs", "/home/user/mnt/encfs", "fuse.encfs", MS_NOSUID|MS_NODEV, "default_permissions,fd=4,rootmod"...) = 110
wait4(-1, fusermount: mount failed: Operation not permitted

SolutioN : WorkAround

Mount as root with -o options

ProbleM :

df: /home/user/mnt/encfs: Transport endpoint is not connected

SolutioN : WorkAround

  1. o reconnect -C -o workaround=all

http://kuttler.eu/post/sshfs-transport-endpoint-not-connecte/

http://stackoverflow.com/questions/16002539/fuse-error-transport-endpoint-is-not-connected

ProbleM : EncFs

df: /home/user/mnt/encfs: Transport endpoint is not connected

SolutioN : WorkAround

MISC

OBSOLETE RANDOM NOTES

TODO

[[RzR]]

ToDo Linux Kernel Module Driver :

“archfs” mount archive like loop files

I have in project to learn Linux modules, to make a wrapper to compression tools, to say it short :

mount -t archfs -o loop file.tar.bz2 /mnt/tmp # same for zip tar tar.gz rar iso avi etc etc etc

see:

Protocol

FUSE

sudo m-a auto-install --text lufs ; sudo modprobe -v fuse ; dmesg | tail
sudo apt-get install lufs-utils
TMPDIR=${TMPDIR}/tmp/tmp-${USER}-mnt/ ;   mkdir -p ${TMDIR} && cd ${TMPDIR}
sudo lufsmount  ftpfs://anonymous:ftp@kernel.org/ .
ls .
# for_mirrors_only  lost+found  pub  usr  welcome.msg
sudo lufsmount sshfs://root@remote/ /tmp/mnt/

http://wiki.thiesen.org/page/Fuseftp#Usage # ToDo Debian

http://fuse.sourceforge.net/filesystems.html

http://lufs.sourceforge.net/lufs/fs.html

[[Linux]] [[Kernel]] [[Driver]]

FileTransfers with Transparent mount ftp ssh etc :

http://lufs.sourceforge.net/lufs/fs.html
Lufsmount <file_system>://[[<user>[[:<pass>]]@]][[<host>]][[:<port>]][[/<remote_root>]] <mountpoint> [[OPTIONS]]
lufsmount  ftpfs://user:pass@host.com/path/ /mnt/tmp
# fs=file_system : the file system type to mount (localfs, sshfs, ftpfs)

SOFTWARE

MISC

MORE

@TaG : LinuxKernel UserLand FileSystem

@tag: Kernel module FileSystem fs mount linux ssh AegiS TrusT SshFs

<iframe width="420" height="315" src="//www.youtube-nocookie.com/embed/bcyX-fuohv0" frameborder="0" allowfullscreen></iframe>

clind.aimao.org_develop_japan_plaques_p1060245.jpg

fuse.txt · Last modified: 2020/09/08 20:43 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki