KW1402 – Fighting Your Distractions

Jul 30

On this episode of the Knightwise.com podcast we talk about fighting your online distractions.

Besieged by lolcats, social media, popups and the Google quest to find out which starship captain was both in Star Trek and ‘Murder She Wrote’, we look for a way to get fight distractions and things done.

Another storytime episode to kick back and relax to.

Enjoy!

Music: Vangelis, The Tegos Tapes Part 1 [youtube]

Related Posts


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

KW1301 – Getting iOS and Linux to Play Nicely Together

Jul 28

There are those times in life when you want to do things because you can… and sometimes you can leverage that in getting done all that you need to do.

Links

Code Snippets

  • Download your ‘watch later’ playlist
    youtube-dl -u <yourGmailAddress> -p <yourPassword> -f mp4 --playlist-start 1 https://www.youtube.com/playlist?list=WL
  • Download ‘audio only’
    youtube-dl -u <yourGmailAddress> -p <yourPassword> -f m4a --playlist-start 1 https://www.youtube.com/playlist?list=<your playlist id>

Credits

Episode produced by Keith Murray
Image courtesy of Blakespot on Flickr

Related Posts


KW1203 – Stick It

Dec 23

This week Knightwise dives back into a topic to help you make better use of hostile foreign computers. With the proliferation of high-speed high-capacity USB thumb drives it’s easier than ever before to carry your computing workload with you and run your life from a stick.

Links

Credits

Episode produced by Keith Murray
Home screen picture courtesy of MaxPixel

Related Posts