Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[HOWTO] ShFs Mounting Everywhere

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
19 posts • Page 1 of 1
Author
Message
koma
Advocate
Advocate
User avatar
Posts: 2702
Joined: Fri Jun 06, 2003 10:13 am
Location: Italy
Contact:
Contact koma
Website

[HOWTO] ShFs Mounting Everywhere

  • Quote

Post by koma » Fri Nov 12, 2004 8:07 pm

ShFS
Ovvero come montare una directory remota in locale senza uso di samba ftp o simili ma del solo ssh

Premessa
Non so quanti di voi si sono posti la domanda del tipo:
"non ho un server ftp non posso trasferire via mail non penso nemmeno a usare cd o floppy tra due pc in rete e il samba non funziona l'unico mezzo che ho è l'ssh... come fare?"

Il programma
E' contenuto in portage e non è mascherato potete emergerlo tranquillamente con

Code: Select all

emerge net-fs/shfs

Code: Select all

*  net-fs/shfs
      Latest version available: 0.35
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 125 kB
      Homepage:    http://shfs.sourceforge.net/
      Description: Secure Shell File System
      License:     GPL-2
Installato
Una volta installato controlliamo che il modulo sia stato installato a dovere lanciamo un

Code: Select all

modprobe shfs
E se va a buon fine possiamo fare in modo che questo venga fatto ad ogni boot in automatico così per il kernel 2.6:

Code: Select all

 echo "shfs" >> /etc/modules.autoload.d/kernel-2.6
e così per il 2.4

Code: Select all

 echo "shfs" >> /etc/modules.autoload.d/kernel-2.4
Montiamo una directory
Il tutto va eseguito da root.

Code: Select all

#shfsmount UTENTE@HOST:PATHHOSTDIRECTORY PATHLOCALE
esempio pratico:

Code: Select all

#shfsmount koma@serverino.mio:/home/koma /mnt/homekomaserverino

\\A quersto punto ci viene richiesta una password

Password:

\\Se è giusta siamo apposto
#
ATTENZIONE NON SI POSSONO USARE CARATTERI SPECIALI COME ~ (TILDE) O . (PUNTO)


sMontiamo una directory
Per smontare una directory molto più semplicemente diamo

Code: Select all

#shfsumount PATHLOCALE
esempio pratico:

Code: Select all

#shfsumount /mnt/homekomaserverino
ALERT
EDIT:
Snake mi ha fatto notare una cosina, usando la funzione nel kernel "local version append to kernel release" si crea un piccolo bug che sussiste con la maggior parte dei programmi che creano un modulo nel kernel, che alla lettura di uname -r che mostra la release del kernel finiscono per creare il modulo in una path sbagliata (invece di /lib/modules/*versionedelkernel* in
/lib/modules/*versionedelkernel*+quellocheavetescrittonell'append).
Avete due soluzioni:

a) Andate nella dir e copiate brutalmente il file shfs.ko nella corrispettiva directory del kernel giusta
b) non usate l'append

Entrambe le soluzioni lavorano perfettamente per quanto sporche (a) o radicali (b) non esistono altre soluzioni a quanto ne so apparte modificare il sorgente andando a inserire nella riga KERNEL si prendere il valore si /usr/src/linux ma penso sia uno sbattimento inutile.
Spero vi sia utile! Baci baci Koma
Last edited by koma on Wed Jan 12, 2005 12:36 am, edited 1 time in total.
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Top
randomaze
Bodhisattva
Bodhisattva
User avatar
Posts: 9985
Joined: Tue Oct 21, 2003 7:55 am
Contact:
Contact randomaze
Website

  • Quote

Post by randomaze » Fri Nov 12, 2004 10:10 pm

Interessante :)
Ciao da me!
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Fri Nov 12, 2004 10:35 pm

Interessantissimo aggiunto ai post utilissimi sezione howto
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
koma
Advocate
Advocate
User avatar
Posts: 2702
Joined: Fri Jun 06, 2003 10:13 am
Location: Italy
Contact:
Contact koma
Website

  • Quote

Post by koma » Fri Nov 12, 2004 10:47 pm

fedeliallalinea wrote:Interessantissimo aggiunto ai post utilissimi sezione howto
'ace
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Top
gaffiere
Guru
Guru
User avatar
Posts: 406
Joined: Thu Nov 13, 2003 10:33 pm
Location: Provincia Milano

  • Quote

Post by gaffiere » Fri Nov 12, 2004 10:53 pm

ficoso :) grazie mille!

see ya
Thomaz "Gaffiere"
Middle-Earth XP2200+, 1Gb Ram, 80Gb + 160Gb Hd, SbLive!, Nvidia 6800GT AGP8x
Gentoo Gnu/Linux 2.6.12-gentoo-r10
Top
lavish
Bodhisattva
Bodhisattva
Posts: 4296
Joined: Mon Sep 13, 2004 10:33 am
Contact:
Contact lavish
Website

  • Quote

Post by lavish » Sun Nov 14, 2004 8:18 am

Bello e utile! Complimentoni koma :D
minimalblue.com | secgroup.github.io/
Top
Nemesix2001
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Sun Oct 24, 2004 3:14 pm

  • Quote

Post by Nemesix2001 » Sun Nov 14, 2004 8:42 am

che dite quali sono i pro e contro tra shfs e nfs a questo punto??...
Ciao ciao
Top
assente
Guru
Guru
User avatar
Posts: 570
Joined: Mon Apr 12, 2004 7:59 pm
Location: Torino, italia, New Europe
Contact:
Contact assente
Website

  • Quote

Post by assente » Sun Nov 14, 2004 10:12 am

Bello, come va riguardo prestazioni di trasferimento e sicurezza?
Blog
E8400, 4850, P5q
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Nov 14, 2004 12:37 pm

Per la sicurezza e' ok perche' mi pare che usi ssh
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Sun Nov 14, 2004 1:02 pm

sicurezza ok, tralasciando attacchi tipo man in the middle (ssharp ad esempio).
velocita' ho dei seri dubbi, considerando il fatto che viene aggiunto l'overhead del canale SSL.
diciamo che e' un buon compromesso, se non l'unica alternativa quando si ha accesso remoto a una macchina via ssh, e solo quello.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
koma
Advocate
Advocate
User avatar
Posts: 2702
Joined: Fri Jun 06, 2003 10:13 am
Location: Italy
Contact:
Contact koma
Website

  • Quote

Post by koma » Wed Jan 12, 2005 12:37 am

aggiornato con l'alert grazie a snake
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Top
koma
Advocate
Advocate
User avatar
Posts: 2702
Joined: Fri Jun 06, 2003 10:13 am
Location: Italy
Contact:
Contact koma
Website

  • Quote

Post by koma » Wed Jan 12, 2005 12:43 am

FonderiaDigitale wrote:sicurezza ok, tralasciando attacchi tipo man in the middle (ssharp ad esempio).
velocita' ho dei seri dubbi, considerando il fatto che viene aggiunto l'overhead del canale SSL.
diciamo che e' un buon compromesso, se non l'unica alternativa quando si ha accesso remoto a una macchina via ssh, e solo quello.
Aspetta non corriamo troppo ^_^ se vofliamo proprio trovare un'alternativa c'è ed è scp ed esistono moltissimi client windows e linux che lo supportano non serve alcun tipo di autorizzazione per giunta. La mia soluzione permette + che altro di avere la cartella SEMPRE mountata mentre scp è un compromesso file per file in consolle ^_^ e un compromesso client-adapted per qls os.
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Top
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

  • Quote

Post by FonderiaDigitale » Wed Jan 12, 2005 1:18 am

in konqueror, il protocollo e' fish://
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
Manuelixm
l33t
l33t
User avatar
Posts: 832
Joined: Sat Apr 03, 2004 1:05 pm
Location: Brescia

  • Quote

Post by Manuelixm » Wed Feb 23, 2005 4:18 pm

Ciao a tutti, volevo suggerire l'aggiunta anche della faq ufficiale, per chi avesse dei problemi nel motare cartelle o altro.
Oggi ho avuto un problema nel montare il dvd da un pc ad un altro, l'user non poteva accedervi, guardando su questa faq ho risolto. Posto sotto il link, spero sia utile.

http://shfs.sourceforge.net/faq.html

Complimenti a koma per l'howto.
Linux user#370732
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Wed Feb 23, 2005 4:30 pm

Non avevo mail letto questo thread :(

Davvero interessante :)
Registered as User #281564 and Machines #163761
Top
Dhaki
Guru
Guru
User avatar
Posts: 325
Joined: Wed Jun 16, 2004 3:23 pm
Location: Ticino - CH

  • Quote

Post by Dhaki » Mon Jul 18, 2005 6:34 pm

Grazie koma dell'howto!!

P.S:
gutter wrote:Non avevo mail letto questo thread :(
Anche io invece di "rotto" scrivo "rooto" :lol:
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Tue Jul 19, 2005 7:46 am

Dhaki wrote: Anche io invece di "rotto" scrivo "rooto" :lol:
Cose che capitano ;)
Registered as User #281564 and Machines #163761
Top
masterbrian
Guru
Guru
User avatar
Posts: 461
Joined: Fri Feb 13, 2004 4:07 pm

  • Quote

Post by masterbrian » Tue Jul 19, 2005 8:43 am

FonderiaDigitale wrote:sicurezza ok, tralasciando attacchi tipo man in the middle (ssharp ad esempio).
velocita' ho dei seri dubbi, considerando il fatto che viene aggiunto l'overhead del canale SSL.
diciamo che e' un buon compromesso, se non l'unica alternativa quando si ha accesso remoto a una macchina via ssh, e solo quello.
Mai provato lo shell link di mc? Funziona esattamente nello stesso modo :) Non c'e' bisogno di creare il modulo per il kernel ed offre lo stesso tipo di sicurezza (basata su ssl).

Riguardo alle performance.. bhe non e' il massimo
Image
Top
koma
Advocate
Advocate
User avatar
Posts: 2702
Joined: Fri Jun 06, 2003 10:13 am
Location: Italy
Contact:
Contact koma
Website

  • Quote

Post by koma » Wed Feb 01, 2006 4:17 pm

ho letto ora i ringraziamenti.... prego ;)
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Top
Post Reply
  • Print view

19 posts • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy