sharing

HTGWA: Create an NFS share in Linux on a Raspberry Pi

This is a simple guide, part of a series I'll call 'How-To Guide Without Ads'. In it, I'm going to document how I create an NFS share in Linux on a Raspberry Pi.

Install NFS

$ sudo apt-get install -y nfs-kernel-server

Create a shared directory

$ sudo mkdir /mnt/mydrive/shared
$ sudo chmod -R 777 /mnt/mydrive/shared

I won't deal with permissions in this post; read this post for more suggestions.

Configure NFS to share that directory

Edit the NFS exports file with sudo nano /etc/exports, and add the following:

/mnt/mydrive/shared *(rw,all_squash,insecure,async,no_subtree_check,anonuid=1000,anongid=1000)

Update the NFS active exports

sudo exportfs -ra

Connect to the share

From another computer, access: nfs://[hostname-or-ip-of-pi]/mnt/mydrive/shared

HTGWA: Create a Samba (SMB) share on a Raspberry Pi

This is a simple guide, part of a series I'll call 'How-To Guide Without Ads'. In it, I'm going to document how I create Samba (SMB) shares in Linux on a Raspberry Pi.

Install Samba

This is important, for obvious reasons:

$ sudo apt install -y samba samba-common-bin

Create a shared directory

$ sudo mkdir /mnt/mydrive/shared
$ sudo chmod -R 777 /mnt/mydrive/shared

I won't deal with permissions in this post; read the Samba docs for that.

Configure Samba to share that directory

Edit the Samba config file with sudo nano /etc/samba/smb.conf, and add the following:

[shared]
path=/mnt/mydrive/shared
writeable=Yes
create mask=0777
directory mask=0777
public=no

Restart Samba so the new shared directory is available:

$ sudo systemctl restart smbd

Create a password for Samba access

The user must already exist on the system; in this example, I'll use the default pi user:

Posting to Facebook: Use a service or DIY via the Open Graph API?

For a very long time, for my simple Catholic News Live fan page on Facebook, I was using RSS Graffiti to post new stories to Facebook (usually in batches of 3-5). RSS Graffiti is super-easy to set up, and it simply ties into your existing site's RSS feed to post new stories from your site to Facebook.

However, after I redesigned the Catholic News Live website in Drupal 7, I decided I'd take a few extra minutes to rework the site's social integration for Twitter and Facebook (I was using HootSuite for Twitter postings—a batch of 5 stories per hour maximum—and RSS Graffiti for Facebook.

People who followed both accounts weren't engaging, liking, or even sharing/retweeting stories too much. The twitter account was doing okay, because Twitter doesn't seem to hide tweets from other users as much as Facebook likes hiding certain posts (especially those from automated apps like RSS Graffiti).

Viral Facebook Reach Graph
Other graphs, like the shares, likes, etc. are similarly aligned.

Dropbox: File Syncing for Everything!

I just upgraded my Dropbox account [referral-free link] from 2 GB to 50 GB; I started using the file synchronization service about a year ago, and since the day I started using it, it's been one of the best pieces of software and Internet services I've ever used.

Dropbox Upgrade Image

Neat little upgrade graphic!

There has been zero downtime, their software works flawlessly through proxies, through firewalls, through SOCKS5, etc. (and, of course, through an unprotected connection), and it's always as fast as my connection allows. I rarely give such a complete recommendation for a software product, but Dropbox, like TextMate and Tweetie, is an absolutely indispensable program for my needs.

Tethering Your iPhone to Your Mac with OS 3.0

Tethering your iPhoneAlongside today's news that Apple has finally released the iPhone/iPod Touch OS 3.0 to the public (download it by opening iTunes, connecting your iPhone or iPod Touch and clicking the 'Check for Update' button), some websites are noting that it is easy to enable tethering on your iPhone, even if AT&T hasn't officially announced support for this feature.

Tethering is great for small Internet browsing sessions, or when your iPhone just isn't enough to do what you need to do (for instance, adding content to a website, or uploading a large file). But don't Tether too much: First, if a lot of people are tethering, it can slow down the network for everyone else, and second, your iPhone's battery takes a huge hit (even if charging) while you're using it's 3G signal for tethering.

[NOTE: Visual Voicemail may stop working after you follow the steps below. To get it back, simply go to the Settings app, tap on General, then Network, then Cellular Data Network; tap on the "Visual Voicemail" APN and change it from wap.cingular to acds.voicemail.]

Connecting to a Windows File Share from a Mac

Here's a quickie: A lot of Mac users are on Windows networks, and need to sometimes connect to a shared folder on their network to share/retrieve documents with other Windows users. The easiest way to do this is to type in the path to the shared folder in the "Connect to Server..." dialog box. To do this, just:

  1. Switch to the Finder.
  2. Choose the "Connect to Server..." menu option in the Go menu (or press Command-K).
  3. Type in the path to your windows shared folder as follows:

smb://SERVER_NAME/share-name/folder-name

Hopefully, a dialog box will open up asking you to type in your username and password. If you need to find out the path of your windows shared folder, ask your network administrator. (note: private shared folders usually have a dollar sign after them—for example, smb://SERVER_NAME/share-name/folder-name$).