SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#51 2009-03-26 08:06:03

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: view LAN

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

Be excellent to each other!

#52 2009-04-11 01:30:34

artay
Member
From: Earth
Registered: 2009-04-07
Posts: 42
Website

Re: view LAN

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.:)


... never run for the train ...

http://artayart.com

Offline

#53 2009-04-12 19:18:28

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

Tosick wrote:

I update and that was a lot.
sudo apt-get update && sudo apt-get install samba

I 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

#54 2009-04-12 19:26:44

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

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 ~/.network

Bingo!

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

#55 2009-04-12 19:42:45

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

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 ~/.network

Bingo!

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

#56 2009-04-26 19:25:52

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

Tosick wrote:

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

#57 2009-04-26 20:10:04

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

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 ~/.network

Bingo!

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

#58 2009-04-26 20:18:26

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: view LAN

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 ~/.network

Bingo!

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

#59 2009-04-26 23:15:16

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

klanger wrote:
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 ~/.network

Bingo!

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

#60 2009-04-27 04:41:18

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: view LAN

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

#61 2009-04-27 11:32:41

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

klanger wrote:

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

#62 2009-06-03 19:36:54

Kruce
Member
Registered: 2009-06-03
Posts: 38

Re: view LAN

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

#63 2009-06-04 00:33:00

cut_copy
Member
Registered: 2009-03-03
Posts: 24
Website

Re: view LAN

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

#64 2009-06-04 12:52:14

gychang
#! CrunchBanger
From: Phoenix, AZ
Registered: 2009-04-01
Posts: 235

Re: view LAN

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

#65 2009-06-04 19:50:59

Kruce
Member
Registered: 2009-06-03
Posts: 38

Re: view LAN

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 ~/network

This 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

#66 2009-06-05 08:40:16

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: view LAN

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?

Offline

#67 2009-06-05 09:59:40

cut_copy
Member
Registered: 2009-03-03
Posts: 24
Website

Re: view LAN

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

Offline

#68 2009-06-05 10:42:36

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: view LAN

cut_copy wrote:
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 sad

Offline

#69 2009-06-05 11:38:46

cut_copy
Member
Registered: 2009-03-03
Posts: 24
Website

Re: view LAN

klanger wrote:
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              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 sad


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

#70 2009-06-05 11:58:17

klanger
#! Die Hard
Registered: 2009-02-18
Posts: 596

Re: view LAN

[solved]

well with your help I did connect #! to windows computer... gigolo says it is connected and I'm connected big_smile

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... smile

"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 big_smile

once again, thanks! this gigolo should be added to #! as default!

Last edited by klanger (2009-06-08 11:49:44)

Offline

#71 2009-07-09 04:45:47

paxmark1
#! CrunchBanger
From: Winnipeg, MB Canada
Registered: 2009-07-08
Posts: 114

Re: view LAN

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

#72 2009-07-17 15:20:31

DJiNN
#! Member
From: UK
Registered: 2009-04-23
Posts: 70

Re: view LAN

This is an interesting thread with some great information. smile  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!". smile

Last edited by DJiNN (2009-07-17 15:20:59)

Offline

#73 2009-07-17 22:11:51

Lorcav
Member
From: Morden, London
Registered: 2009-07-08
Posts: 36

Re: view LAN

Tosick wrote:

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

#74 2009-07-22 09:39:28

timt
New Member
Registered: 2009-07-02
Posts: 6

Re: view LAN

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

Help fund CrunchBang, donate to the project!

#75 2009-09-07 19:10:33

Zwopper
The GIMP Pimp
From: Deep in The Swedish Woods
Registered: 2008-11-28
Posts: 580
Website

Re: view LAN

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

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo