Archive for the ‘thunar’ Category

-= My first offering to XFCE goddess =-

pyNeighborhood enables you to access your local network, mounting and unmounting shared folders, almost (yes, almost) 100% GUI – point and click. It works with both Windows and Linux shares,though I will cover the more problematic Windows share here. There are few guides floating around regarding pyNeighborhood but they falls short in tackle certain part as well as pose potential hazardous root access and alteration through file manager.


$ sudo apt-get install pyNeighborhood


1. Set up the directory to be mounted

– If you prefer less troublesome procedure then just create one folder in your ‘/home/[username]’

– I prefer not to cluster my home, so I will set up the mount point in “/mnt/lan”

$ sudo mkdir /mnt/lan
$ sudo chown tux:tux /mnt/lan

You need to change ‘tux:tux’ to your username (owner) and group. Say your username is ‘foo’ then the syntax will be ‘foo:foo’.

2. pyNeighborhood can be accessed through “Applications” -> “Network” -> “pyNeighborhood”

3. Now, select “Edit” -> “Preferences” in pyNeighborhood.

– ‘General’ tab:  ‘Mount folder’ will be the path to the folder we set up in step 1.

– ‘Network’ tab: Tick ‘Always use msbrowse’ if unchecked as well as ‘Try to retreive IP address when adding a machine from the group browser’.

– ‘SMB’ and’CIFS’ tab: append this chunk in front of each command. Say my username is ‘tux’ again, for example SMB tab mount command will now be:

‘sudo -u tux smbmount’

Repeat the same for the rest of the mount and unmount command but replace your username instead of tux.

This step is IMPORTANT because it let you mount without entering root password and your filemanager will not having root access thus avoid the potential hazardous alternation. Everything will be inside your userspace only. The -u (user) option causes sudo to run the specified command as a user other than root.

– ‘File Managers’ tab, remove the xterm one and a new entry: ‘thunar’ (or whatever filemanager you are using).

~* USING pyNeighborhood *~

From the left panel, you will see an icon with a name of ‘Groups’. Select it then Right click and select ‘Scan using msbrowse’

Your local workgroup will appear in the left panel under ‘Groups’, so right click on it and click ‘scan’ to show the machines under that workgroup. [Error might occur here, go to troubleshooting part later in the guide]

Choose a machine to browse, right click on it, and click ‘Add’. Alternatively, you can also double click. Try to retrieve the machine’s IP address if it is not already entered, and then click ‘Ok’.

The machine will appear in the right hand pane. Right click on the machine and click ‘scan’ to show the machine’s shared folders.

To mount a share, right click on it and click ‘mount -> mount as SMB’ (note: if SMB does not work the share will automatically be mounted through CIFS). Alternatively, you can also double click. You will see the ‘Mountpoint’ beside change to the path of your mount folder.

Right click the share, ‘unmount’ to unmount or ‘File Manager’ to access the file.

Have fun! 🙂

~* Troubleshooting *~

Thing will get a bit frustrating when you see this error on the status bar when you try to scan for machine under workgroup: ‘Failed to scan workgroup WORKGROUP’. Here we have to use commandline to get detail for the machine on the network then add to pyNeighborhood.

Open your terminal, type in the following command, note the workgroup and machine.

$ smbtree -S

So there is a machine HP040 in workgroup WORKGROUP. Now we will have to look for the IP of the machine we want using the following command. Just replace HP040 with whatever the smbtree spit out or the machine you want to connect to.

$ nmblookup -I \HP040
querying HP040 on HP040<00>

The IP of HP040 is, so note that down.

Go back to our pyNeighborhood, ‘Edit’ – ‘Add Machine’

‘Network Name’ : Name of the workgroup spit out by smbtree

‘IP address’ : the ip above

‘Display in a list as’ : whatever you fancy of.

That’s it. We’re done. You can mount and view the machine from the right panel. 🙂

A picture speaks a thousand words:


Read Full Post »