You are not logged in.
Is there a way to automate network lan reconnection?
Sometimes my lan network disconnects and by typing in terminal "smbnetfs ~/network"
it connects again... is there a way (script) to make reconnection of the lan every 10- 50 sec, so I could always have a working lan?
Last edited by klanger (2009-03-27 08:10:31)
Offline
Hi!
I just found this thread
http://ubuntuforums.org/showthread.php? … &page=2#12
And it works.
But I don't know how to do this automatic.:)
Offline
I update and that was a lot.
sudo apt-get update && sudo apt-get install sambaI edit the "restart.sh"
I also make the terminal commads one more time , just see and make sure that I "got it".
At the end there is an Permission denied.hc@hc:~$ smbnetfs ~/network
fusermount: failed to open /etc/fuse.conf: Permission denied
fusermount: failed to access mountpoint /home/hc/network: Permission denied
hc@hc:~$
and the forlder ~/network is still enty.
I guess you got the answer?
I have the same problem, permission denied. nothing in the ~/network directory...
gychang
--
hanging around the desert with a bum foot
--
Offline
Fixed!
Created file ~/.smb/smbnetfs.auth
in that file, added the line
auth "workgroup/user" "password"
chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.networkBingo!
when I reboot, I lose files in ~/network. Is this the fix for that problem?
do I create file with exact words including the quotes?
--
auth "workgroup/user" "password"
chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.network
--
can u perhaps explain each line?
thanks,
gychang
Last edited by gychang (2009-04-12 19:27:18)
--
hanging around the desert with a bum foot
--
Offline
yello wrote:Fixed!
Created file ~/.smb/smbnetfs.auth
in that file, added the line
auth "workgroup/user" "password"
chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.networkBingo!
when I reboot, I lose files in ~/network. Is this the fix for that problem?
do I create file with exact words including the quotes?
--
auth "workgroup/user" "password"chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.network
--can u perhaps explain each line?
thanks,
gychang
I tried this creating the file, substitutingmy user password with the quotes.
after I reboot, I see the ~/.network directory but nothing there (even hidden files), when I look as root then the ~/.network directory dissappears... crazy...
gychang
--
hanging around the desert with a bum foot
--
Offline
A good idea needed to view network shares has already been thoroughly explained in this earlier post http://crunchbanglinux.org/forums/post/1730/#p1730
I agree,
but there is something with #!8.10 make this function instabil. I have an the other hand just tested on my own LAN.....and one more time...works great with #!8.04:)
(I have tested with 4-5 PCs)
I am having the same problem with 8.10!!
gychang
--
hanging around the desert with a bum foot
--
Offline
Fixed!
Created file ~/.smb/smbnetfs.auth
in that file, added the line
auth "workgroup/user" "password"
chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.networkBingo!
can someone verify if this works?
assume Bingo! is not part of line... he he he.
gychang
--
hanging around the desert with a bum foot
--
Offline
yello wrote:Fixed!
Created file ~/.smb/smbnetfs.auth
in that file, added the line
auth "workgroup/user" "password"
chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.networkBingo!
can someone verify if this works?
assume Bingo! is not part of line... he he he.
gychang
well it worked for me - but often system shut down conection (God knows why)...
Offline
gychang wrote:yello wrote:Fixed!
Created file ~/.smb/smbnetfs.auth
in that file, added the line
auth "workgroup/user" "password"
chmod 600 smbnetfs.auth
fusermount -u ~/.network
smbnetfs ~/.networkBingo!
can someone verify if this works?
assume Bingo! is not part of line... he he he.
gychang
well it worked for me - but often system shut down conection (God knows why)...
tried and it does not work for me.
gychang
--
hanging around the desert with a bum foot
--
Offline
tried and it does not work for me.
did you add the following to autostart.sh (in openbox menu) and then reboot?
# Launch LAN connection at start up
(sleep 1s && smbnetfs ~/network) &
hope it helps
Last edited by klanger (2009-04-27 04:41:58)
Offline
tried and it does not work for me.
did you add the following to autostart.sh (in openbox menu) and then reboot?
# Launch LAN connection at start up
(sleep 1s && smbnetfs ~/network) &hope it helps
I had tried it without entering sleep1s &&) but now will try it.
gychang
--
hanging around the desert with a bum foot
--
Offline
Hi all,
(First time poster, really enjoy the general attitude of these forums and of course, #!)
For you guys who've used smbnetfs - I really like its simplicity, reasonable ease of set up, and it does ALMOST everything that I want it to.
The last bit would be to prompt for user authentication when logging in shares (or somehow get it from a keyring of sorts a la Windows Authentication). I have a workstation set up (at work) to authenticate users off of the PDC and to create all the home directories upon login (if not already existing). However, I don't like the idea of manually adding "auth" statements in the smbnetfs.conf - security issues aside. Does anybody have any ideas on how to resolve this?
Without adding such statements, I believe it maps shares as "guest" users - which of course doesn't give ANY access to shares beyond browsing.
Thanks!
Offline
I use Gigolo to handle my shares. Has bookmarking and automouting futures, all the mounted shares goes in to ~/.gvfs. It's in the crunchbang ppa(intrepid), and in the ubuntu jaunty repo.
Dependencies:
0.3.0-0ubuntu1 - libatk1.0-0 (2 1.20.0) libc6 (2 2.4) libcairo2 (2 1.2.4) libfontconfig1 (2 2.4.0)
libfreetype6 (2 2.2.1) libglib2.0-0 (2 2.16.0) libgtk2.0-0 (2 2.16.0)
libpango1.0-0 (2 1.14.0) libx11-6 (0 (null)) gvfs-bin (0 (null)) sion (0 (null)) sion (0 (null)) Offline
I have CB (8.10) installed in 3 different computers at home and none can "remember" the net connection after reboot, frustrating....
Anyone have it working?
gychang
--
hanging around the desert with a bum foot
--
Offline
Ok, with my limited scripting experience, I think I got something to work.
if [ ! -f ~/.smb/smbnetfs.auth ]
then
user=$( zenity --entry --title="Username" --text="Enter your username:" )
password=$( zenity --entry --title="Password" --text="Enter your password:" --hide-text )
echo 'auth "'$user'" "'$password'"' > ~/.smb/smbnetfs.auth
chmod 600 ~/.smb/smbnetfs.auth
mkdir ~/network
fi
smbnetfs ~/networkThis checks to see if the auth file exists - if not, then pops up gui windows prompting for user/password and creates the file (and changes permissions to hide it). Then it creates the ~/network folder.
Lastly, it'll mount it (after creating the *.auth file, or using the existing one).
Somebody with better scripting skills can clean it up for me . . .
My next step is to install a dock and create an icon for this script so that it can be run on demand (by less savy users), but you can just call the script in the autostart.sh
Oh, and my goal was create a machine with "roaming logins" that can access network shares, but according to security groups preset by our LDAP server. So these files live in the /etc/skel directory.
Last edited by Kruce (2009-06-04 21:37:40)
Offline
I use Gigolo to handle my shares. Has bookmarking and automouting futures, all the mounted shares goes in to ~/.gvfs. It's in the crunchbang ppa(intrepid), and in the ubuntu jaunty repo.
Dependencies: 0.3.0-0ubuntu1 - libatk1.0-0 (2 1.20.0) libc6 (2 2.4) libcairo2 (2 1.2.4) libfontconfig1 (2 2.4.0) libfreetype6 (2 2.2.1) libglib2.0-0 (2 2.16.0) libgtk2.0-0 (2 2.16.0) libpango1.0-0 (2 1.14.0) libx11-6 (0 (null)) gvfs-bin (0 (null)) sion (0 (null)) sion (0 (null))
how do i set Gigolo to see my other (windows xp) computer via lan?
Offline
cut_copy wrote:I use Gigolo to handle my shares. Has bookmarking and automouting futures, all the mounted shares goes in to ~/.gvfs. It's in the crunchbang ppa(intrepid), and in the ubuntu jaunty repo.
Dependencies: 0.3.0-0ubuntu1 - libatk1.0-0 (2 1.20.0) libc6 (2 2.4) libcairo2 (2 1.2.4) libfontconfig1 (2 2.4.0) libfreetype6 (2 2.2.1) libglib2.0-0 (2 2.16.0) libgtk2.0-0 (2 2.16.0) libpango1.0-0 (2 1.14.0) libx11-6 (0 (null)) gvfs-bin (0 (null)) sion (0 (null)) sion (0 (null))how do i set Gigolo to see my other (windows xp) computer via lan?
Go to windows share, and then fill in the info. ( GUI Path: Connect > Service type > Windows Share )
Example:
Server: 192.168.1.104
Share: my_share
Domain: WORKGROUP
User Name:
You can get an overview over your network samba/win shares with the "smbtree" command:
$ smbtree
Password:
WORKGROUP
\\SERVU servU server (Samba, Ubuntu)
\\SERVU\IPC$ IPC Service (servU server (Samba, Ubuntu))
\\SERVU\NED WD_BLACK
\\SERVU\160GB 160GB disk
\\SERVU\media multimediaOffline
klanger wrote:cut_copy wrote:I use Gigolo to handle my shares. Has bookmarking and automouting futures, all the mounted shares goes in to ~/.gvfs. It's in the crunchbang ppa(intrepid), and in the ubuntu jaunty repo.
Dependencies: 0.3.0-0ubuntu1 - libatk1.0-0 (2 1.20.0) libc6 (2 2.4) libcairo2 (2 1.2.4) libfontconfig1 (2 2.4.0) libfreetype6 (2 2.2.1) libglib2.0-0 (2 2.16.0) libgtk2.0-0 (2 2.16.0) libpango1.0-0 (2 1.14.0) libx11-6 (0 (null)) gvfs-bin (0 (null)) sion (0 (null)) sion (0 (null))how do i set Gigolo to see my other (windows xp) computer via lan?
Go to windows share, and then fill in the info. ( GUI Path: Connect > Service type > Windows Share )
Example:
Server: 192.168.1.104
Share: my_share
Domain: WORKGROUP
User Name:You can get an overview over your network samba/win shares with the "smbtree" command:
$ smbtree Password: WORKGROUP \\SERVU servU server (Samba, Ubuntu) \\SERVU\IPC$ IPC Service (servU server (Samba, Ubuntu)) \\SERVU\NED WD_BLACK \\SERVU\160GB 160GB disk \\SERVU\media multimedia
well I get something like this:
smbtree
Password:
MSHOME
\\STIEP STIEP
\\STIEP\IPC$ Zdalna komunikacja mi®dzyprocesowa (RIPC)
\\STIEP\MYDOCUMENTS
\\STIEP\C
\\IBM-5FC4E19940F LAB
\\IBM-5FC4E19940F\LEXMARK \\H3Z7U0\LEXMARK
\\IBM-5FC4E19940F\Golczak
\\IBM-5FC4E19940F\C$ Domyślny udział
\\IBM-5FC4E19940F\ADMIN$ Administracja zdalna
\\IBM-5FC4E19940F\Drukarka2 Lexmark E220
\\IBM-5FC4E19940F\SIEĆ
\\IBM-5FC4E19940F\Aga
\\IBM-5FC4E19940F\Drukarka5 HP Business Inkjet 2200/2250 (HPA)
\\IBM-5FC4E19940F\Sławek P
\\IBM-5FC4E19940F\G$ Domyślny udział
\\IBM-5FC4E19940F\Moje dokumenty
\\IBM-5FC4E19940F\TME'05
\\IBM-5FC4E19940F\Pulpit IBM
\\IBM-5FC4E19940F\Mars-K.Langer
\\IBM-5FC4E19940F\SharedDocs
\\IBM-5FC4E19940F\print$ Sterowniki drukarek
\\IBM-5FC4E19940F\IPC$ Zdalne wywołanie IPC
\\IBM-5FC4E19940F\Drukarka Panasonic KX-P6500
\\IBM-5FC4E19940F\DYM
I would like to connect to \\IBM-5FC4E19940F\SIEĆ
where or how can I get the server name or adress (is this - \\IBM-5FC4E19940F LAB - its name?)
is (yours) my_share in my case \\IBM-5FC4E19940F\SIEĆ?
Domain: - in my case is MSHOME?
and also when running gigolo do I need samba + extras or smbnetfs?
I like this Gigolo, but can't get connected 
Offline
cut_copy wrote:klanger wrote:how do i set Gigolo to see my other (windows xp) computer via lan?
Go to windows share, and then fill in the info. ( GUI Path: Connect > Service type > Windows Share )
Example:
Server: 192.168.1.104
Share: my_share
Domain: WORKGROUP
User Name:You can get an overview over your network samba/win shares with the "smbtree" command:
$ smbtree Password: WORKGROUP \\SERVU servU server (Samba, Ubuntu) \\SERVU\IPC$ IPC Service (servU server (Samba, Ubuntu)) \\SERVU\NED WD_BLACK \\SERVU\160GB 160GB disk \\SERVU\media multimediawell I get something like this:
smbtree
Password:
MSHOME
\\STIEP STIEP
\\STIEP\IPC$ Zdalna komunikacja mi®dzyprocesowa (RIPC)
\\STIEP\MYDOCUMENTS
\\STIEP\C
\\IBM-5FC4E19940F LAB
\\IBM-5FC4E19940F\LEXMARK \\H3Z7U0\LEXMARK
\\IBM-5FC4E19940F\Golczak
\\IBM-5FC4E19940F\C$ Domyślny udział
\\IBM-5FC4E19940F\ADMIN$ Administracja zdalna
\\IBM-5FC4E19940F\Drukarka2 Lexmark E220
\\IBM-5FC4E19940F\SIEĆ
\\IBM-5FC4E19940F\Aga
\\IBM-5FC4E19940F\Drukarka5 HP Business Inkjet 2200/2250 (HPA)
\\IBM-5FC4E19940F\Sławek P
\\IBM-5FC4E19940F\G$ Domyślny udział
\\IBM-5FC4E19940F\Moje dokumenty
\\IBM-5FC4E19940F\TME'05
\\IBM-5FC4E19940F\Pulpit IBM
\\IBM-5FC4E19940F\Mars-K.Langer
\\IBM-5FC4E19940F\SharedDocs
\\IBM-5FC4E19940F\print$ Sterowniki drukarek
\\IBM-5FC4E19940F\IPC$ Zdalne wywołanie IPC
\\IBM-5FC4E19940F\Drukarka Panasonic KX-P6500
\\IBM-5FC4E19940F\DYMI would like to connect to \\IBM-5FC4E19940F\SIEĆ
where or how can I get the server name or adress (is this - \\IBM-5FC4E19940F LAB - its name?)is (yours) my_share in my case \\IBM-5FC4E19940F\SIEĆ?
Domain: - in my case is MSHOME?
and also when running gigolo do I need samba + extras or smbnetfs?
I like this Gigolo, but can't get connected
In your case the input will be something like this:
Server: IBM-5FC4E19940F (I prefer to use the IP address)
Share: SIEĆ
Domain: MSHOME
You shouldn't need to install any extra packages, perhaps gvfs-fuse, if it's not installed already.
Offline
[solved]
well with your help I did connect #! to windows computer... gigolo says it is connected and I'm connected 
Thanks a lot!!!!
... update...
well it seems that I can connect to windows server with gigolo (connected: YES) but I can not open folder with files that are hosted on windows computer... could you help me with that... 
"By default, Gigolo uses gvfs-open to open the connected remote resources. On some systems this will either result in an error or open the wrong file manager because gvfs-open uses the mime types to determine which application it should launch and those mime types are often not configured properly.
First, you need to install the gvfs-fuse backend for GVFS and fuse-utils so that GVfs mounts the remote resources in ~/.gvfs. Make sure that your user is in the fuse group or this will not work. The easiest way to do add your user to the fuse group is to run the following command as root:
gpasswd -a username fuse
or as user using sudo:
sudo gpasswd -a username fuse
Obviously, you should replace username by your actual used username."
so, sudo gpasswd -a your username fuse hepls 
once again, thanks! this gigolo should be added to #! as default!
Last edited by klanger (2009-06-08 11:49:44)
Offline
Hey, thanks, the ~.smb ... and the ~/network worked. And now I see that there were two other pages, but I am up.
The dns 323 has it's quirks and I have never been able to get the fun shell script to activate. I used .gvfs a lot on other puter
And that was about the first thing I did after update-manager -d today.
What a feisty little linux distro. Machine is a eee900a with /home as a quicker 16gb sdhc. again thanks
Jean Vanier wrote "Being Human" and "A Short History of Progress" by Ronald Wright. Gotta love the Massey Lectures.
Offline
This is an interesting thread with some great information.
The sad fact is though, that if you're not running KDE or Gnome, Network Shares are REALLY hard work to get going, which was the case when i started full time with Linux aroun 5 years ago!! How can this be? Why is it still soooo hard/difficult to get this sorted?
I often just install Konqueror just to avoid all this crap, which in a way kind of defeats the object of having a lightweight distro such as #! (although i have to say that i really do like Konq - i find KDE horrible overall, but Konq is a Gem!)
In the end, i resort to the above (using Konq) or just use USB keys and do it manually. It's a pain, but i've found that the amount of time that i spend getting nowhere with network shares in Linux, far outweighs the time spent copying to USB etc and doing it via "Sneaker-Net!". 
Last edited by DJiNN (2009-07-17 15:20:59)
Offline
hc@hc:~$ smbnetfs ~/network
fusermount: failed to open /etc/fuse.conf: Permission denied
fusermount: failed to access mountpoint /home/hc/network: Permission denied
hc@hc:~$
I'm still encountering this error and can't see anywhere in the thread that remedies it, can anyone help? I realise that it's looking for the fuse.conf file which is there but don't understand the permission denied. I tried the su command, put in my password and authentication failed. I followed the script to install the network folder and the SMB folder and files.
What am i doing wrong?
I tried setting up an auth file as detailed in previous posts but then i get...
lorenzo@lcnetbook:~$ smbnetfs ~/network
5864->ReadConfigFile: Error: Insecure config file permission.
Can't apply 'auth' directive.
Run 'chmod 600 smbnetfs.auth' to fix it.
5864->ReadConfigFile: Error: (file: smbnetfs.auth) Invalid input line : chmod 600 smbnetfs.auth
5864->ReadConfigFile: Error: (file: smbnetfs.auth) Invalid input line : fusermount -u ~/.network
5864->ReadConfigFile: Error: (file: smbnetfs.auth) Invalid input line : smbnetfs ~/.network
fusermount: failed to open /etc/fuse.conf: Permission denied
fusermount: failed to access mountpoint /home/lorenzo/network: Permission denied
lorenzo@lcnetbook:~$
Last edited by Lorcav (2009-07-17 22:39:22)
I don't think necessity is the mother of invention — invention, in my opinion, arises directly from idleness, possibly also from laziness. To save oneself trouble. - Agatha Christie
Offline
Great thread, I've mounted my workgroup in the network folder. The problem is i can access all the computers on my lan that don't require authentication but any that do, it tries to browse them without asking me for a username/password. I see someone made a script for something like this but wouldn't that just change your username/password that you access the entire workgroup with and not each individual computers login details?
Offline
IMHO this should be default in future #! releases, since it works GREAT!
BTW - this is how Linux Mint Xfce solved it up until ver. 7 when they decided to change it, for whatever reason...
My artwork at deviantART | My Tweet | My upcoming web page
Crea diem!
Lenovo ThinkPad E320 | 8GB | 512GB Samsung 840 PRO SSD | Xubuntu 13.04 & #! Waldorf
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.