LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-22-2013, 02:40 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,353

Rep: Reputation: 83
auto mount of ~/samba using fuse?


Hello,

Code:
$ cat .smb/
fusesmb.cache  fusesmb.conf   smb.conf
I have been trying to mount the samba of a server but not results. This does not work
Would you know how to fix this?

thanks

Code:
ProcedureInitSmbFs() { 
  echo "INIT OF FILES !"
  clear
  echo "-----------------"
  echo "Please enter for smb:"
  printf "Login: " ; read SMBLOGIN
  printf "Password: " ; read SMBPASS
  echo "-----------------"

  echo "Installing..."

  if [ ! -d ~/.smb/ ] ; then
    mkdir ~/.smb/
  fi
  if [ ! -d ~/samba/ ] ; then
    mkdir ~/samba/
  fi


  # fusesmb.conf
  echo "[global]" > ~/.smb/fusesmb.conf
  echo "username = $SMBLOGIN " >> ~/.smb/fusesmb.conf
  echo "password = $SMBPASS " >> ~/.smb/fusesmb.conf
  echo "showhiddenshares=true" >> ~/.smb/fusesmb.conf
  echo "timeout = 10" >> ~/.smb/fusesmb.conf
  echo "interval = 10" >> ~/.smb/fusesmb.conf

  # smb.conf
  echo "[global]" > ~/.smb/smb.conf
  echo "username = $SMBLOGIN " >> ~/.smb/smb.conf
  echo "password = $SMBPASS " >> ~/.smb/smb.conf
  echo "showhiddenshares=true" >> ~/.smb/smb.conf
  echo "timeout = 10" >> ~/.smb/smb.conf
  echo "interval = 10" >> ~/.smb/smb.conf

  # fusesmb.cache
  echo "/MSHOME/DEBIANSERVER/$SMBLOGIN" > ~/.smb/fusesmb.cache

  chmod 600 ~/.smb/*

}

Code:
the mounting would be done if the user have fuse:
cd ; fusesmb samba


Code:
Unknown parameter encountered: "password"
Ignoring unknown parameter "password"
Unknown parameter encountered: "showhiddenshares"
Ignoring unknown parameter "showhiddenshares"
Unknown parameter encountered: "timeout"
Ignoring unknown parameter "timeout"
Unknown parameter encountered: "interval"
Ignoring unknown parameter "interval"
Ignoring unknown parameter "password"
Ignoring unknown parameter "showhiddenshares"
Ignoring unknown parameter "timeout"
Ignoring unknown parameter "interval"

Last edited by Xeratul; 01-22-2013 at 02:42 AM.
 
Old 02-03-2013, 03:54 AM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,353

Original Poster
Rep: Reputation: 83
Hi

I have looked at here:
https://help.ubuntu.com/community/FuseSmb

but it gives me:

Code:
$ fusesmb  samba
params.c:OpenConfFile() - Unable to open configuration file "/home/xeraturl/.smb/smb.conf":
        No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/home/xeraturl/.smb/smb.conf.append":
        No such file or directory
ls .smb/
fusesmb.cache.pid fusesmb.conf



I still do not know how to mount a samba. Here smb4k is too much heavy to install.

Code:
apt-get install --no-install-recommends  smb4k
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cifs-utils kdebase-runtime kdebase-runtime-data kdelibs-bin kdelibs5-data kdelibs5-plugins kdoctools libattica0
  libclucene0ldbl libgraphicsmagick3 libiodbc2 libkde3support4 libkdecore5 libkdesu5 libkdeui5 libkdnssd4 libkfile4
  libkhtml5 libkio5 libkjsapi4 libkjsembed4 libkmediaplayer4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4
  libkparts4 libkpty4 libkrosscore4 libktexteditor4 libkutils4 libnepomuk4 libnepomukquery4a libplasma3 libpolkit-qt-1-0
  libqca2 libqt4-opengl libraptor1 librasqal2 librdf0 libsolid4 libsoprano4 libssh-4 libstreamanalyzer0 libstreams0
  libthreadweaver4 libxcb-shape0 libxine1 libxine1-bin libxine1-console libxine1-ffmpeg libxine1-misc-plugins
  libxine1-plugins libxine1-x oxygen-icon-theme phonon-backend-xine plasma-scriptengine-javascript
  shared-desktop-ontologies smbclient smbfs soprano-daemon
Suggested packages:
  djvulibre-bin icoutils graphicsmagick-dbg hspell libqca2-plugin-cyrus-sasl libqca2-plugin-gnupg libqca2-plugin-ossl
  libqca2-plugin-pkcs11 raptor-utils rasqal-utils librdf-storage-postgresql librdf-storage-mysql librdf-storage-sqlite
  redland-utils gxine xine-ui libxine1-doc libxine-doc libxine1-gnome kwalletmanager
Recommended packages:
  hal virtuoso-minimal kaboom
The following NEW packages will be installed:
  cifs-utils kdebase-runtime kdebase-runtime-data kdelibs-bin kdelibs5-data kdelibs5-plugins kdoctools libattica0
  libclucene0ldbl libgraphicsmagick3 libiodbc2 libkde3support4 libkdecore5 libkdesu5 libkdeui5 libkdnssd4 libkfile4
  libkhtml5 libkio5 libkjsapi4 libkjsembed4 libkmediaplayer4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4
  libkparts4 libkpty4 libkrosscore4 libktexteditor4 libkutils4 libnepomuk4 libnepomukquery4a libplasma3 libpolkit-qt-1-0
  libqca2 libqt4-opengl libraptor1 librasqal2 librdf0 libsolid4 libsoprano4 libssh-4 libstreamanalyzer0 libstreams0
  libthreadweaver4 libxcb-shape0 libxine1 libxine1-bin libxine1-console libxine1-ffmpeg libxine1-misc-plugins
  libxine1-plugins libxine1-x oxygen-icon-theme phonon-backend-xine plasma-scriptengine-javascript
  shared-desktop-ontologies smb4k smbclient smbfs soprano-daemon
0 upgraded, 62 newly installed, 0 to remove and 149 not upgraded.
Need to get 72.3 MB of archives.
After this operation, 189 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
There

Last edited by Xeratul; 02-03-2013 at 03:55 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fuse installation problems: "cannot remove `/sbin/mount.fuse': Permission denied" kvm1983 Linux - Software 3 02-05-2012 11:34 PM
Do I have to have static IP assignment to auto-mount Samba shares? buccaneere Linux - Networking 1 03-31-2009 12:29 PM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 06:42 PM
auto mount samba file system nanjil Suse/Novell 1 11-25-2005 10:19 AM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM


All times are GMT -5. The time now is 06:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration