» Follow me on Twitter

After hours of trying and trying and trying, I finally got my two PCs and my laptop to share files seamlessly at home. All three run on Debian Linux Testing. Basically what I wanted was for any user on any of these machines to be able to share files with each other. Each PCs shared folder should be fully writeable and readable to the other machines. I admit that this is not a secure setup but the topic is not about security anyway. I might tackle that next time.

So here’s what I did. Instructions will be for Debian users though you other Linux distro users will most likely get the idea.

Step 1. Install the necessary stuff and create necessary folders

# su
# apt-get update
# apt-get install samba smbfs smbclient autofs

# mkdir -p /path/to/shared/folder
# chmod 0777 /path/to/share/folder
# mkdir -p /path/to/automount/point

Step 2. Edit Samba config file

Edit /etc/samba/smb.conf so that it looks something like this:

[global]
workgroup = MYGROUP

[sharename]
path = /path/to/shared/folder
read only = No
create mask = 0777
directory mask = 0777
guest ok = Yes
browseable = Yes

Step 3. Edit /etc/auto.smb file

Look for the line that says, ‘opts=”-fstype=cifs”‘ and change it to ‘opts=”-fstype=smbfs,fmask=0777″‘ then save the file.

Step 4. Edit /etc/auto.master file

Add the following line to your /etc/auto.master file.
/path/to/automount/point /etc/auto.smb –timeout=2

Save the file.

Step 5. Restart Samba and Autofs services

# /etc/init.d/samba restart
# /etc/init.d/autofs restart

Step 6. Do the same for each PC that in your network that you want to have a shared folder of their own.

Step 7. Test it.

To test it, do this as any user in your system

# cd /path/to/automount/point/computername/sharename

Note that the computername/sharename won’t appear in your /path/to/automount/point until they are accessed. This is a normal behaviour of autofs.

Tip: You can create a symlink to each shared folder for easier access. What I usually do is:

# mkdir /shares
# cd /shares
# ln -s /path/to/automount/point/computername1 .
# ln -s /path/to/automount/point/computername2 .

This way, I can easily browse through all shared folders by using any GUI file manager. (By the way, I use Thunar - apt-get install thunar). The symlink will simply appear as a broken link if the share is not available and will restore itself when the share becomes available.

Ok, I guess that’s about it. You now have an automounting samba shared folder for every PC that you want and is fully writeable and readable to any user in the system. I hope this helps you.


» Follow me on Twitter


July 28, 2006 · Posted in Technology  
    

I checked Benj Arriola’s website and found his post about this website called Geek’s Manual which appears to attempt to compile manuals into one place.  Nice try but I don’t think it would be of any use unless the webmaster provides a way to download said manuals.  They’re not even searchable so I’d rather go to the true manuals.  But heck, who knows.  It may evolve into something better. :D


July 19, 2006 · Posted in Technology  
    

I heard that IE7 supports tab browsing.  Also, I was told that it has this nifty feature that allows the user to preview all open tabs as thumbnails.  Upon knowing this, my quest for finding a firefox extension/plugin/addon began and after a quick search, I found the the Tab Catalog.  Pretty cool plugin as it shows me a catalog of thumbnails of all my open tabs.

Here are a couple of screenshots from the developer…

Thumbnail view of tabs
Context menu on thumbnails

And here’s a screenshot that I made myself…

My Own Screenshot of Firefox Thumbnail Tab Catalog Addon

I think this plugin is really cool…  Get it now at: https://addons.mozilla.org/firefox/1937/


July 8, 2006 · Posted in Technology  
    

I’ve been using Linux for almost three years already and I wasn’t able to find a decent way of typing the enye character.  In Windows, it’s just as simple as using the Alt+164 combo for enye in small caps and Alt+165 for capital enye.  I searched a lot about this before and I found none that provides the same ease of typing these characters in Linux.  I knew there has to be an easy or similar way to do it and guess what, I was right!  I found out that unicode characters can be entered easily by pressing Shift+Ctrl plus the hexadecimal value of the unicode character that is to be typed.

So for capital enye (Ñ), it’s just typing Shift+Ctrl+D1 and for small enye (ñ), just type Shift+Ctrl+F1.  There you go!  Problem solved!!!  Never thought it would take me these long to discover this!

Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ Ññ…

Woohoooooo!


July 6, 2006 · Posted in Technology  
    

Start a Franchising Business in the Philippines