1. Installation
- Make sure you have all of the dependencies met. On Xubuntu Edgy, this should be enough to get you going:
sudo apt-get install build-essential samba smbfs
- Download the latest pyNeighborhood from pyNeighborhood.sourceforge.net The latest version at the time of writing is 0.3.
- Unpack the archive into somewhere that has easy access, like your home directory, for example.
- Then, open a commandline to that directory and run
./configure
make
sudo make install
- Then, double-click on the pyNeighborhood application that should now have been created in the directory. Doing this will open the main window, create some config files in your home directory under HOME/.pyNeighborhood/, and add an entry to the System menu.
A few basics need to be taken care of. Open Edit --> Preferences.
- On the General tab, change the Mount Folder to a directory for which your user has write permissions. Typically, in your home directory.
- On the Network tab, you can (I did, but this wasn't needed) change the provided commands to include their full paths. Usually, /usr/bin.
- The same goes for the SMB tab.
- On the File Managers tab, I removed the provided entry and added one for thunar.
- One other change I had to make was to allow some of the commands to run with setuid. In other words, allow them to run as root, even when I am running them as a non-root user. The alternative to this is to run pyNeighborhood as superuser, but this can create other problems. To make these changes run:
sudo chmod +s /usr/bin/smbmnt3. Using the application
sudo chmod +s /usr/bin/smbumount
Using the application is quite straight forward. On the right, is a pane to with a globe icon. Right-click and select scan to scan your network for available workgroups. Usually, there will be a Windows PC with the default MSHOME workgroup around. Scanning again on the workgroup will list the machines found. Highlight one, and right-click Add to add it to the pane on the left-hand side.
Double-clicking the machine on the left-hand side should list all of the shares available. If the configuration is done, you should be able to right-click on a share, and mount it as a SMB. This will add it to the list of Mounts in the second tab of the main window. If the mount is successful, a thunar window should open with the contents of the share available to drag-and-drop, or whatever you want to do. This is now available as a mounted drive on your local machine and files in this mount should be accessible as if they were found locally.
Below is a screen shot of pyNeighborhood in action.
Technorati Tags: xubuntu, edgy, samba, pyneighborhood
5 comments:
Brilliant guide! I have a problem though, I get a dialog with the message: "Failed to mount." when I try to mount a share. Any help much appreciated!
Regards,
Andreas
Andreas,
Sorry for taking a while to reply.
There are a couple of things to do:
1. Check that you have write privileges to the mount directory listed in Preferences-->General. By default, it is /mnt/lan. A simple test is to change this to your home directory ("/home/andreas" or whatever it is called) and see if this makes things work.
2. If that doesn't help, have a look in the pyNeighborhood.log file in the ~/.pyNeighborhood directory.
Regards
Warren
I couldn't get this to work, but it is a lot easier just to run as root:
gksudo pyNeighborhood
I installed v0.4 from Feisty repo, and created a panel launcher with the above command. Then adjusted preferences (General tab) to remove mount points after unmount (to prevent multiple directories everywhere), and put "thunar" as only File Manager tab entry. Only problem is that this launches Thunar as root when network drives are mounted - so careful!
This application works really well once the smbmnt and smbumount commands have been chmod'd to run as root. I'm using Xubuntu 7.04. Nice howto, thanks.
Great guide. I already had the samba parts installed. So I added pyNeighborhood using the Synaptic Package Manager, created a folder in my home directory as you suggested, set Thunar as the file manager and it works.
I did not need the chmod commands. I am running Xubuntu 7.10
Thanks.
Post a Comment