Mounting remote directories over SSH from Windows, Linux and the mac.

Jul 29

I have a Linux server that I like very much. It’s at the hart of my home network and it houses all the data and projects I’m working on. My music collection, the podcasts I’ve downloaded, textfiles and scripts I’m working on and so forth.

The downside is that I don’t always have access to these files. I work on a variety of operating systems (A Windows laptop for work, A Mac for my creative splurges and a Linux workstation to fool around with). There are several solutions to “dail in” to your home network of course but somewhere I’ve found SSH to be one of the simplest ways to access remote machines, tunnel traffic and … access files.

Sometimes you want remote files to behave like local ones.

The problem is that sometimes you want to have your remote files and folders behave just like your local files and folders, without having to worry about vpn’s, netbios or FQDN names of certain files. You just want the data on your remote machine to act like data on your local one. Enter SSHFS.

SSHFS is based on SSH, a simple elegant and secure protocol that not only lets you connect to a remote server to run commands in a terminal environment, it’s also a pretty good poor-mans VPN you can tunnel all your tcraffic through (via SSHuttle). It’s also good to copy over files via secure ftp (with Filezilla for example). But copying files back and forth isn’t handy. You want real-time access to the juice man. Let’s get you fixed up and mount your remote linux folders, natively into your filesystem on Windows, Mac and Linux.

SSHFS on a Linux client.

SSHFS on Linux
On your Linux client you need to install sshfs
sudo apt instal sshfs

sudo apt instal sshfs

Then you create a directory on your local machine where you want to mound the files
Once installed you connect to your remote machine with the command

sshfs username@remotemachine:/directoryonremotemachine /directoryonlocalmachine

SSHFS from a MacOs client.

SSHFS on Mac
MacOs does not have sshfs capabilities by default but these can easily be installed via Brew
When brew is installed you can install sshfs with the brew command.
To mount your remote directory just use the same command as on Linux/

 brew install sshfs 
sshfs username@remotemachine:/directoryonremotemachine /directoryonlocalmachine

SSHFS from a Windows Machine

That also works but it does require a little more work to get it done AND Windows won’t let you mount to a folder nativey but points you to a driveletter instead.

First off install the following two applications:
sshfs-win
WinFsp

Next all you need to do is open a command line window and enter the following command.
net use .<yourdrive>: \sshfs\yourusename@remotehost….\directorystartingfromroot

 net use x: \sshfs\me@thedeathstar.empire....\deathstarplans R3belsRscumm 

In the end.

At the end of the day using SSHFS is a great way to quickly access files on a remote Linux system while having the files and folders integrated into the filestructure of whatever operating system you use. The additional encryption provided by SSH gives you good security. Both on Linux and on the mac you will be asked to authenticate with your password. If you don’t want to do that you setup ssh key exchange (see here) on how that is done. You can enter the commands in a script that you can just run (like a logon script).


Beware then when you are doing this on Windows your logon script might contain your login and your password for the remote system in clear text. So keep that somewhere safe.

Related Posts

Helium Linux: When your old machine needs some oxygen.

Jul 26

I have this old iMac lying around that I got off of some guy on Craigslist 2 years ago. It was a little bit of a “pet project” to tinker around with and to see how far I could take this computer from 2009. Swapping out the internal spinning-rust drive with an SSD was a very interesting piece of open-mac surgery and afterwards the machine was a tad faster then before.

Operating system no longer supported.

But the iMac would only upgrade its version of MacOs to a version that was no longer supported (El Capitan I think) so I thought let’s run Linux on it. I’ve had experience in running Linux on Macs for a couple of years now, but the installation of Ubuntu 18.04 was a little disappointing. The system was a little slow (I expected that from a 2009 machine) and got put by the wayside because it just wasn’t up to snuff.

I needed a place to focus.

Lately I’ve been having some issues with productivity. While (trying) to get stuff done (mostly when i’m writing), I’m constantly distracted by eMails, Social Media, Chatmessages and what have you. I had been looking for some ways to block them out (going offline, using apps like Focuswriter) but none of them helped. I needed a computer environment that was simple enough to let me get my writing done while being to slow or simple for anything else. The iMac popped back to mind.

Simplicity is the most complex thing to achieve.

But in order to be realy “functional” the machine needed a lighter and more serene operating system. I remembered a distro called “Crunchbang” from my netbook days. A lightweight and very geeky distro with an Openbox UI. But the distro was disconinued.. or was it?

Get me some Helium

It turns out “Crunchbang” is not dead after all. An organisation called Bunsenlabs has picked up the slack and forked “Helium” as a successor. The distribution is based on Debian 10 (not Ubuntu) and comes with a minimal of applications pre-installed. The graphical installer is sweet and simple and afterwards they run you through a text based post-install script that lets you choose what other options to install.

It’s like ‘less’ with ‘more’

The end result is a super minimalistic destkop interface with the classic openbox bar letting you open some classc apps like Firefox, Libreoffice and more. The developement team has gone out of its way to keep the interface clean and simple and to keep the apps as light as possible. In the end you get a slick, slim and FAST OS for an old machine.

A garden of Zen

I have only been using the OS for a couple of days now but I’ve managed to muddle through some pretty hefty copywriting and getting the stuff I needed done .. done. Aside from using Geany as the default Text editor and Firefox to surf around for research, I’ve resulted to mostly command line apps and scripts to get things done. (For example using MPV to play the “Mission Control” music station on Soma Fm). The end result: A fast system with minimal distractions and the very first time I’ve actually started using one of my ‘resurrected zombies’ in a production environment. If you have an old machine lying around or want to have a distraction free interface? Give it a try.

Related Posts

TLDR: Anyone still reading this? – Should you still ‘write’ your blogs?

Nov 09

TLDR, 4 gruesome letters that are the digital equivalent of a teenager shrugging and walking away in the middle of an epic speech (or regular nag-a-thon) recited by a parental unit. It’s a sign of the time. Whenever we are presented with information that grows beyond a certain volume, our micro sized attention spans switch off and go looking for the next picture of a fluffy cat on the internet.

There, in one paragraph I have completely summarized the problem Bloggers are facing today TLDR: Too long, Didn’t read. Since we have been scrolling vertically through Twitter feeds, Instagram pictures, Facebook posts and Linkedin updates our ability (or should I say ‘interest’) to go through large blocks of text has slowly started to erode away. We want our stuff fast in easy to consume small byte sized blocks. Perferably 140 characters or less.

For writers this is a challenge: Imagine being Marten Luther King, but only getting 30 seconds to deliver your ‘I have a dream’ speech before the crowd wanders off to play Pokemon or scroll Reddit. There just isn’t enough time to get the message across.

Results ? You cut corners. Condense arguments, leave out supporting information or even facts altogether. If that still isn’t enough its time for an provocative headline, or some ye-old click-bait. And if your content just isn’t cut out for this? Tough, they have already scrolled past your post and are looking at cat video’s.

“Well, you will just have to write better material then” That is the general response you get to when you lament the problem. But should we really do that? Some stories or arguments should not be broken up into 140 characters, they should be told with all the facts or with views from both sides of the fence. The constitution wasn’t written on a post-it either. So what to do ?

Write better, snappier sentences, short paragraphs, leave in plenty of whitespace and some interesting funky examples and emphatic visual analogies the reader can relate to. That should do the trick. But what if they still don’t make it to the 3rd paragraph?

I’m thinking of exchanging the written medium for video or audio. If you don’t have the time/interest to ‘read’ something, perhaps you would like to “listen’ to it instead. The “Storytime” podcasts have always been a big favorite of my community, “Reading out” a lengthily blogpost in a gripping audio-recording does make for some interesting reading. Perhaps a video recording using an autocue to read out the text ? Would that help?

I leave you to ponder (if your eyeballs ever make it down here) the question of TLDR. Should we continue to starve our attention spans with small bite sized information? Do we want to live off ever smaller growing pieces of content? Shorter blogposts, video’s, podcasts? Do we nibble our way trough the all-you-can-eat buffet of the blogosphere ? Is it TLDR or TLDC (Too long, don’t Care).

Related Posts

  • No Related Posts

Death of the butterflies.

Aug 03

Tap.. tap .. taptaptap.. Grunt, blowing sound, tap tap TAP.. yeah, it sounds like somebody is frustrated behind their keyboard write ? Some Shmo pounding out an angry flame mail to a bunch of co-workers with half the org-chart splattered across to to and bcc field. But .. thats not the case. It”s just me trying to write up a little blogpost on a computer that suffers from dying butterflies.

Downside ? It makes EVERYTHING you type sound like an angry hate-mail to POTUS, even if you are doing a love letter.

‘Chokin the butterfies’
The butterflies I refer to are the keys on my keyboard. In Apple’s grand opus of “Thinking Different”, somebody in the giant glass donut thought it would be a good idea to radically change the way they keyboard worked on their new Macbook Pro’s. So they decided the butterfly key would be a great idea. Superslim keys that have virtually no “keytravel” (How ‘deep’ your key goes when you tap it) and that make the keyboard look like a giant touchpad. Upside ?: Cool and pretty thin (allowing them to thin-down the laptop a few millimeters). Downside ? It makes EVERYTHING you type sound like an angry hate-mail to POTUS, even if you are doing a love letter.

DD I press ‘i’ ?

But the biggest downside is that these keys are NOT dirt resistant. Tiny mote of sand or dust gets underneath your key ? Boom. no more room for travel. If you are lucky the keystrike is still recorded and you get your character on the screen, but it “feels” like you just didn’t strike that key. And that totally throws you out of the zone. If it is worse , the just doesn’t work at all and you end up POUNDING the letter out of the laptop by jamming your finger on it with too much force required.

‘Cupertino is gonna fix it’
Its a known issue with Apple and they promised to fix it in the NEXT generation. But for the current owners ? Well, there is a replacement program. Only you need to bring us your Macbook Pro so we can fix it. Well, Fix it is a big word, they are going to replace my keyboard (AND my Touch bar AND my battery, because the glued it all together) with similar hardware. So the chance that THOSE butterflies are going to “clog up” is still very real.

Well, the only thing I can do is wait for my Mac to be back. In the meantime I’ve ‘Fallen back’ to my Dell XPS 13 laptop (Running Windows 10 Pro) and that is NOT a bad place to be. The machine is slim, light and fast and the keys are .. well, better. Rattling out blogposts like this kinda feels like being a coder pounding out the next killer app. No dead butterflies here 🙂 Keep you posted.

Related Posts

Why Offline is the new luxury

Jul 23

Fear of the dinosaur
I am really scared of a T-Rex. And when I say that i’m not talking about the 30 foot giant dino that scared the living crap out of those poor kids in the original Jurassic park film, but the little grey one that pops up in Chrome, when you don’t have an internet connection. Because that means that I am “Offline”. And these days “Offline” equals being lost at sea, or stuck in a cave, or stranded on one of the moons of Uranus. Or worse: Being stuck in a cave at the bottom of the sea on one of the moons of Uranus. You catch my drift: Being offline is bad.

Beyond the Blackberry: Offline is bad
Why is this? I vividly remember a time where 95% of my day was spent “offline”. Only when I would need to get “on the internet” would I use a little box that made screechy noises to temporarily connect my wonky PC to the world wide web. These days a computer without an internet connection is about as useful as can of window defroster in the Sahara.

It all changed when we got the first smartphones with a permanent connection. Those “Blackberry’s” in the hands of avidly tapping CEO’s would give them the infinite power to be connected all the time, everywhere. It was cool! That meant you could spam them 24/7 with useless questions like “When do I get a raise” knowing that would help to get a rise of of them (Hah).

But somewhere along the line this all changed and we needed to be connected all the time, first so we could be pinged and dinged 24/7, then because we had a massive case of FOMO (fear of missing out) and next because all of our data and our applications were in the could. No pipe? No Party.

The cloud is a blessing in disguise. Sure: our data was safe from failing hard drives and homework devouring K9’s, but we need a permanent pipe to get to them. That’s ok, bandwidth is cheap and connections are ubiquitous, but not omnipresent. Commuting by Train from Brussels does mean that at times the 4g connectivity on my phone is spotty and at some points cuts out altogether. Very annoying when you are in the middle of a cloud based session and not reliable at all. But instead of fearing those moments I’ve begun to embrace them.

I’ve found out “Offline” is great time to blog, to tinker with video’s. To edit down Audio file or to meticulously murder and decimate any mails that are hanging around in my inbox.

The luxury of begin without a connection
There is an incredible luxury about being offline because all the distractions you might encounter go away. No more pings, dings and doodah’s from Facebook or Whatsapp. No more side-quests to hunt down a life-sized My little pony on amazon. No silly youtube cat video’s that eat hours of your time. No more emails that drop into your inbox right when you are in the middle writing up a killer reply to the previous mails. Just … you, your keyboard and your computer. The virtual doors to your man (or woman) cave a closed, the doorbell is unplugged and you get to soak in the digital bubblebath of your own creativity (or focus) without being disturbed.

I’ve found out “Offline” is great time to blog, to tinker with video’s. To edit down Audio file or to meticulously murder and decimate any mails that are hanging around in my inbox. The sweet 90 minutes of Downtime I get as I zoom through the Belgian spotty cellphone-covered countryside are actually the most productive ones of my day.

Make the tech work
Sure I have to make sure the tech works. That means most of my services and clients need to able to ‘handle’ offline. Syncing to your local drive is a great option. Apps like Onedrive, Onenote, Outlook, Dropbox all have the ability to ‘work offline’ and push/pull incremental changes once the packets from the inter-webs return. Not every app or service support that. But think about it. If you NEED constant connectivity to do that one key thing you need to do, you are very vulnerable should the handy workmen decide to accidentally rip up your internet connection while doing some digging.

Are you a constantly connected cloud-crackwhore that cannot live without a public IP or a 4bar wireless signal ?

Enjoy the silence
So here is my question: How much CAN you still DO offline? Are you a constantly connected cloud-crackwhore that cannot live without a public IP or a 4bar wireless signal ? Are your workflows so tied into the cloud that without them the only think you are good at is grunting like a gorilla as you wave your useless smartphone around ? I’m dying to know. You can tell me all about it, when I get back online.

Related Posts

Tyranny of the default: Native or 3rd party apps ?

Jul 14


What apps do you prefer on your platform ?  Third party apps or Native apps ? We go through the pro’s and cons of both in today’s video-rant.

Related Posts