VectorLinux
October 21, 2014, 11:40:12 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: HOWTO: Network Neighborhood (My Network) in VL 6 Standard/Light  (Read 4183 times)
newt
Vectorian
****
Posts: 1132



« on: September 05, 2009, 10:58:55 pm »

BROWSE YOUR NETWORK WITH ANY FILE MANAGER
(Thunar, PCManFM, Xfe, mc, console, etc)

These instructions will assist you in creating static network browsing capabilities similar to a "Network Neighborhood" or "My Network" showing workgroups/domains and their associated network systems.

Note: You will need nmblookup installed in order to build fusesmb. This utility is found in the samba package for VL6 Standard, and in the 'windows_networking' package for VL6 Light.

Note2: If you're using KDE or konqueror, you probably won't need this. But, then again, this may provide a more static network location similar to what you're used to in Windows.

Note3: When I wrote this I had not seen toothandnails HOWTO which also describes the process in very good detail. Please refer to http://forum.vectorlinux.com/index.php?topic=6193.0 for additional details and perspective. Sometimes reading the same thing written differently helps "paint the picture" even more clearly. Thanks ToothAndNails!!



SECTION 1: This section deals with getting your linux-to-windows browsing capabilities configured so you can easily browse your networked Windows systems.

AS ROOT:
1.Install fusesmb
   a. wget -c http://vectorlinux.osuosl.org/veclinux-5.9/extra/net/fusesmb-0.8.7-i586-1vl59.tlz
   b. installpkg fusesmb-0.8.7-i586-1vl59.tlz

      Alternative to above steps (build the fusesmb package using source and slackbuild):
      a. wget -c http://slackbuilds.org/slackbuilds/12.1/system/fusesmb.tar.gz
      b. tar -xvvzf fusesmb.tar.gz
      c. cd fusesmb
      d. wget -c http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/fusesmb-0.8.7.tar.gz
      e. ./fusesmb.SlackBuild
      f. installpkg /tmp/fusesmb-0.8.7-i486-1_SBo.tgz
      g. mv /tmp/fusesmb-0.8.7-i486-1_SBo.tgz /root

2. Create a 'fuse' group if one does not already exist.
   a. Group id 106 worked for me, but check your /etc/group file for the highest number less than 500 and
       increment one number higher. The following may help you quickly see all 3 digit group numbers:
           grep "[:][[:digit:]]\{3\}[:]" /etc/group
   b. groupadd -g <group_id_number> fuse
3. Add users to the 'fuse' group that should have access to network.
   a. manually edit /etc/group and add usernames to the fuse group
   b. example) fuse:x:106:<username>,root
   a. usermod -G fuse <username> (don't use this command; this will remove your user from their current groups)
   b. do once for each user you want added to the 'fuse' group
4. Enable the 'fuse' service via vasm (vasm/service/srvset/initlevel/fuse checkbox)

AS USER:
1. Create a network mountpoint.
   a. mkdir ~/My_Network
2. Create default fusesmb.conf
   a. mkdir ~/.smb
   b. cp /usr/doc/fusesmb-0.8.7/fusesmb.conf.ex ~/.smb/fusesmb.conf
   c. chmod 600 ~/.smb/fusesmb.conf
3. Configure fusesmb.conf for your local network
   a. nano ~/.smb/fusesmb.conf
   b. Uncomment: [global]
   c. Uncomment and adjust: username=user (this is your windows username)
   d. Uncomment and adjust: password=totallysecret (this is your windows password)
   e. More examples on configuring this file are found in fusesmb.conf.
4. Make sure your network is up and running, and you are connected.
5. Start fusesmb with your network mountpoint path
   a. fusesmb ~/My_Network

...at this point you are essentially done, however there are some useful tips/modifications below...

Browse/Bookmark using Thunar, PCManFM, Xfe, and simlar file managers:
1. Navigate to the network mountpoint and browse away.
2. (optional) Thunar/PCManFM: Drag the network mountpoint to left bar to make a permanent shortcut
3. (optional) Xfe: Browse to your network mountpoint, click on Bookmarks, choose Add Bookmark.
4. (optional) XFCE: Drag-and-drop your network mountpoint on your desktop for a desktop shortcut.

To unmount the network share if needed (as user):
1. fusermount -u ~/My_Network

Troubleshooting:
1. Make sure you uncommented '[global]' in ~/.smb/fusesmb.conf.
2. Reboot your system and check the network mountpoint after a couple minutes of uptime.
3. If your network mountpoint is not available, make sure fusesmb is started.
   a. As user: fusesmb ~/My_Network
   b. Wait 7 minutes and check if your workgroup shows up in the mountpoint
4. If still no network, try fusesmb.cache.
   a. As user: fusesmb.cache
   b. Wait 7 minutes and check mountpoint again (refresh browser if needed)
5. If still no network, please reply to this post with details of troubles and the community will gladly try to help.



SECTION 2: This section just sets your system up to autostart fusesmb upon reboot so your network mountpoint is active and ready once your system is up and running.

To make your new network mountpoint autostart on reboot:
1. edit /etc/rc.d/rc.local
   a. As root, add the following to end of file and save:
       su - <username> -c "fusesmb ~/My_Network"



SECTION 3: This section deals with configuring your linux system for easy windows-to-linux browsing. This section touches on configuring your server message block configuration file (/etc/samba/smb.conf), however since this file is highly configurable this is IN NO WAY a thorough description. I'll only touch on the tip of the tip of the iceberg - just enough to allow windows to "see" a networked linux system.

AS ROOT:
1. Edit your /etc/samba/smb.conf
   a. Change 'workgroup' to match your local workgroup (you could stop with this step if you want).
   b. Add linux shares towards end of file (you could stop with this step if you want).
   c. More generally, set smb.conf according to your needs.
2. Enable the 'samba' service (vasm/service/initlevel/samba checkbox)
3. Add your linux user to samba
   a. smbpasswd -a username
   b. set password when prompted (this can be different than your linux password)
   c. these are the credentials you'll use when accessing your system from a Windows system



I've tested this on VectorLinux 6.0 Standard Gold and Light, and can confirm that it works and is REALLY cool - talk about easy network browsing!! I hope you find this as useful as I have.

Cheers,
newt
« Last Edit: February 05, 2010, 02:46:12 pm by newt » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!