Posts Tagged ‘network’

Connecting to SMB shares from the command line in OS X

October 19th, 2011

 

I’ll keep this one short for brevity. It’s sweet and simple. If you’re anything like me you’re probably using at least 10 different operating systems at once. Well, that might be a slight over exaggeration, but I certainly use at least three in my home. Here’s the problem that I faced this evening and how I overcame it.

I have a linux server which is sharing some data using a samba share (SMB). Connecting to this from my windows box is simple, since microsoft is good enough to make mounting shares over SMB a piece of cake. My MacbookPro running OS X Lion, however, was a different story.

One option is to use the finder to manually connect to the share, but since I often connect to various computers using SSH I wanted to find a purely command-line solution. Thankfully, it’s super simple. Just use the UNIX command mount – as follows:

mount -t smbfs //<username>@<ip or fqdn>/<share name> <mount point>

The example of this on my network is as follows:

mount -t smbfs //james@192.168.0.4/james /Users/jamesanslow/linuxserverfiles

Note: you will require smbfs + samba installed + configured for this to work (duh?)

Network Problem

May 12th, 2011

I’ve been having a really strange networking issue at the office for the past few months.  The reason I’m posting here, rather than in IRC or a Forum, is that it’s quite an interesting problem, and I’d quite like to post the solution.  I’ve contacted my Internet Provider, and unfortunately they don’t seem to be able to comprehend the problem, let alone work out a way of diagnosing it.

We have 8/9 devices sharing our internet connection in the office, across wireless and wired, which pass through our Debian Router, then through a cable modem to the Internet.  In order to make sure the problem was not with the router.  The same symptoms occurred with a direct connection to the cable modem.

The issues is as follows:

Our internet connection doesn’t appear to drop.  According to our ISP our modem has been connetced fine for the last 15 days, and they ‘can see no problem with our line.’  When downloading a large file (<100MB) or streaming Youtube videos, the connection just stops.  The video stops downloading or, in the case of the files, the connection just stops.  This is also evident when running large downloads through apt (such as do-release-upgrade) – during the file download sometimes it just stops downloading – yet on a cancel and restart it continues to download just fine.

I’d like to work out how I can get some documentary evidence of this connection hanging – what is the proper technical term for it – and hopefully find a way to reproduce the problem in a consistent manner.  I have OSX, Linux, and Windows machines all exhibiting the same behaviour – so I’m pretty sure it’s not a clientside bug.

If you can help me out, please let me know in the comments below.

Cheers! and Thanks in Advance.

Electricity Development

February 23rd, 2011

In Kerala, I visted a village high up in the mountains that was disconnected from the main electricity grid. It was, however, connected to a smaller local grid. This grid though was smaller and suffered loss of power most days, and rarely lasted the whole summer.  This is mainly due to Kerala’s reliance on hydro-electric power, and with smaller monsoon rains, coupled with population increase draining the reservoirs faster, the situation is unlikely to improve without developing other means of electricity generation.



View Larger Map

The really ironic thing about it all, is that Kerala State are introducing new methods.  They’ve erected massive wind turbines across the local landscape, and one right next to the village.  The unfortunate thing about this, is that in order for the electricity harvested by the wind farm to be useful to the local community, it would require a substation.  This substation is situated a few miles away down the valley, and the electricity produced by this turbine allegedly isn’t connected to the same grid that the village are on.