KW1202 – One Linux to Rule Them All

One Linux

Sometimes the way to achieve “less” is to make more use of the things you already have. If the thing you already have is a fairly powerful old laptop, what you may find is that it makes the perfect home server. This week Knightwise tells us all about the laptop with the new lease on life.

Credits

Episode produced by Keith Murray
Home screen picture courtesy of PixaBay

 

Related Posts

Windows on the Dell

A little more then a year ago I bought my very first laptop that came pre-packaged with Linux. My slick, cool, small and light Dell XPS 13 was probably the first laptop I bought that did not have the OEM stickers stuck to the palm rest, removed. Usually I peel off these lame “Windows” or “Intel” stickers, but in this case the shiny orange UBUNTU sticker stayed on as a badge of honor.

I have been using the machine quite frequently over the last year, mostly tinkering with it to get the “pre-installed” version of Ubuntu “just right”. Because quite frankly, as “compatible” as this machine ought to be with Linux, it wasn’t. After several hours spent scrolling through forums, chatting on IRC and posting on Reddit I had rolled back the bios version and edited a bunch of config files just to stop the keyboard from jumping to “aaaaaaaaaaatttttorrrrrrrrrepeat” (very annoying). But like the owner of an Alfa Romeo I enjoyed the process because I love to tinker.

Fast forward about a year and my life is a little bit different. With a full time consultancy gig at one of my clients and quite a few business projects on the side, I don’t have as much free time as I used to have. As a result, the little Dell got started to get left out. Since I needed some business applications like Office, Visio and Outlook (for the gig at the client) I did not get a chance to play around with the Ubuntu sporting Dell as often as I wanted to.

Several times I’ve tried to switch over my workflow to be as “cross platform compatible” as I could, but when you need to send Visio or Word files back and forth, Open Office might be found lacking at times. The other point of sheer frustration was that I could not (neither with my own skills or those of the bluetooth stack developer) get a bluetooth mouse to work under linux. Result ? The XPS started collecting dust in favor of my Surface Pro 4 that went to work with me every day.

So this week I said “no more”. I was fed up with having an expensive laptop just sitting there because it’s OS doesn’t fit into my workflow and I don’t have the time to adjust my workflow. So I wiped it and installed Windows 10 on it gasp!

Have I betrayed my Linux roots? Have I forsaken my sliders promise? No. I have not.

I am still running Linux on it! 🙂 A fast, snappy and dark-themed version of Linux Mint is what i’m using right now, in a VM! Thats right I’ve decided to stop letting hardware issues and workflow incompatibly interfere with my chance to run Linux. Now I just run Linux on all my machines… in Virtual Machines! Along with whatever core OS (Windows, MacOS) sits on top of the hardware.

I’ll write about my experiences more later this week (don’t want to bore you with a mega long post) but suffice to say that thanks to modern day processors and snappy VM apps like VirtualBox, there is no noticeable difference between running Linux in a VM and running Linux natively on the hardware. Aside from the fact that everything just works! And I can just “slide” my mouse across to my second screen and finish up that Visio drawing, using my bluetooth mouse!

In the end everyone wins. I get to have Linux at my fingertips, I still have the power to use “work” related apps whenever I need to and my little Dell XPS 13 is living up to be a good investment because now I finally use it some more. I ended up dual-booting Linux years ago to go native. I’ve not given up running Linux natively; I just want to “slide” from OS to OS and with these VM’s that works just fine.

Image Credit: Pierre Lecourt on Flickr

Related Posts

KW1105 60 Minutes of Common Sense

The knightwise.com podcast is back this week with a splash of cold water and a dose of plain old common sense. This week we talk about some strategies to keep you, your devices and your data out of nefarious hands. Vigilance, my friends.

Links

Music

Credits

Related Posts

When wanting is more pleasing then having : What drives YOU to buy new gear ?

“Wanting is more pleasing then having” : It’s not logical, but it is the truth. It’s a line Spock must have quoted in some long gone Star Trek episode somewhere (please don’t ask me, I can’t remember which one). For some reason it has stuck in my mind for the longest time. “It’s not logical but it’s the truth” is the follow up line .. completing the entire statement and lifting it to the realm of existence-pondering quotes out there.

spock crying

I’m reminded of the quote as I’m browsing through a similar quote (of the financial kind) of my current gadget-infatuation (or toy-crush) : The Dell XPS13 laptop. This sleek small 13 inch laptop has been on the market for quite a while and sports very cool specs in a very small form factor. I could go on telling you about how its innards, the software, the reviews and the hours of research I have been doing about it .. but that is a little beside the point. To sum it up : I’m infatuated with it at the moment. Because its a cool new toy and I want it !
There .. I said it : I want it ! I have read reviews, talked to people who own one, looked up insanely detailed technical documentation on how to take it apart should I ever need to. Adds for the laptop have been popping up in Facebook and Youtube is now convinced my only goal in life is to watch MORE review video’s about the XPS13. If the XPS13 was a girl, I would be considered a stalker. But since its only a laptop (and a gorgeous one at that) it’s called research and I’m called a Geek.
I don’t wear sandals and have a neck beard.
Mulling over this quote in my hands I took the time and step back a little, to the days before my gadgetary obsession with the device to ask myself the question : When did the XPS13 become the perfect laptop for me ? Was it after some long quest through the digital wastelands in search for the perfect portable laptop ? Was it after a life changing event that made me realize that in fact did not OWN any portable computer ? Am I to become a Linux Developer working for canonical in the morning (and hence need such a device ?)…. No. I in fact have a laptop (and multiple portable devices) and I don’t wear sandals and have a neck beard. I can’t even write a decent bash script so .. the developer option is out.  Somewhere along the line I must have just decided that I wanted to have it.
The journey is more important then the destination.
What is important to know is that the journey that took me towards the point where I decided I really WANTED it, has never really started at any point where I NEEDED it. I’m not ashamed to point this out. My “urge” to posses the Dell XPS13 started when I read some article about its existence and from that point out I have started to dream up reasons why I need it. Sure, there were issues with the current size of my Macbook pro (in combination with my mobile lifestyle) that gave me some problems : The Macbook Pro is a little bit too big (and too expensive) to carry around everywhere and it would be handy to own something smaller. Also I have been playing around with Linux for a while now and have always wondered what it would be like to buy a machine pre-installed with Linux .. but none of these reasons truly validate the purchase of a new machine.
When it comes to the small form factor I have an older Surface Pro 1 which is perfectly portable (I take it to all my business meetings) and although Linux runs on it (I’ve tried it) the experience isn’t quite flawless. In its defense it does run Ubuntu linux perfectly in a full screen VM having plenty of power left. So if my “reasons”‘ for buying a new machine are that I need a small portable linux running device .. why don’t I settle for the machine I already have ?
I’ve probably been marketed.
The answer is probably marketing. Subconsciously I’ve been influenced by the mega marketing machine that is the internet into believing I NEED the Dell XPS13. And because of that I”ve started to rationalize the purchase by telling myself all the things I can do with it. Falling for the marketing trick is not something we should be ashamed of our shy away from. For one our economy would collapse and we would all end up living in our own cabin in the woods like hermits .. but it IS a good thing to be AWARE of this.
I for one have been taking a close look at those reasons I came up with why I NEEDED this new device.
– I needed something that was smaller then my Macbook Pro.
– I needed something that was powerful and portable so I could take it with me everywhere without being afraid to break our bump it.
– I would LIKE to have a machine that runs Linux flawlessly.
– It would be great to have a little laptop that I could take with me te blog on and record podcast.
– I would be so much more productive if I had this ONE laptop that could kind of do anything..
….
So dp I need it ? 
There are plenty of more reasons where these came from if you query me long enough .. So I decided to take this shortlist and throw it at the hardware I already have. (In this case my I5 Surface pro) . Turns out that (aside from running Linux natively) it CAN do all the things I want to do (and then some) Add in the stylus and the transformable laptop-tablet form factor and it is actually a more versatile device then the XPS.
Then why do I want it ? 
The second thing I did was to take long look at the list and figured out what it really meant. When I read beyond the technical desires there are some creative desires there. What my subconcious is actually trying to tell me is that I want to have more time to be creative. My creative urges see the XPS13 as kind of a promised land to write more, podcast more .. have more time to myself. They also are urging to have a less complicated life. Those are the things I really WANT.
The bottom line is that what I really WANT is more time to unleash my creativity and a less complex and hectic life to do this. Thanks to clever marketing the XPS (and its specs) has been heralded as the enabler of these solutions. The fact is : it’s not true. If I want to be more creative , i CAN … I just need to do it on the hardware I already have. Instead of upgrading my machine I might need to upgrade the way I spend my time. Perhaps I need to upgrade the importance of listening to my creative urges. Perhaps what I really want is an XPS version of my own life at the moment.
Its funny how a cool gadget triggers thoughts about what you really want out of life .. but in the end THAT is what matters. So when you feel the urge coming up to get a cool new toy you don’t really “need”‘ .. figure out WHY you want it. It might uncover some hidden desires or frustration that you want to resolve.. Getting those sorted out might be harder then just buying a cool new toy in a shiny box .. But it will be much more rewarding. So you see 🙂 Wanting is not as pleasing as having .. It’s not logical : It’s the truth.

Related Posts

KW1001 First impressions of the Ubuntu Phone

sl3

We kick off season 10 of the Knightwise.com podcast with a hands on review of the BQ Ubuntu Phone. We review the hardware, talk about the fledgling OS and see how the phone holds up in “daily use”. Splice in some cool tunes selected by Daniel Mesner and you have yourself the first episode of the Knightwise.com podcast, season 10.

Links

Music

Related Posts

Merging your operating systems.

“I run operating system X, I prefer distribution Y, I like desktop interface Y better” I’ve heard the discussions over and over again. Sometimes people stick to their guns and defend their choice, other times people hop around from OS to OS or from Linux distro to Linux distro just because they want thingie X that isn’t available in Distro Y.
The question is : Why do we still need to choose ? If we can train our digital workflows to be operating system independent, why can”t we take it one step further and instead of ‘choosing’ our operating system .. why not design it ourselves ?
The question came up when I got back from a visit to Fossdem this week (Belgians largest open source conference with attendees and speakers from all over the world). Seeing all these pretty Linux distributions and the powerful stuff you can do with them made me all eager to take the plunge once again and go “Full Linux” for a while. I slide from OS to OS (My main workhorse is a Mac, my traveling companion is a Chromebook that has Ubuntu on the side, my desktop runs Linux Mint and I have a Surface Pro running Windows 10). Lately I have been having hours of fun playing around with the Chromebook. Its simple operating system charms me into using it quite often. Its clutter free, not a lot of distractions and I like its simple elegance. However it is limited. Some things just don’t work on Chrome, but luckily for the Chromebook I can just ‘sidestep’ into the Ubuntu version I’ve installed via Crouton.
Hopping from OS to OS at the press of a button is a joy, however, since Ubuntu uses the same Root kernel Chrome OS does .. Some features are missing. (No iPTables means no way to use Sshuttle, my favorite vpn client) The other downsides from working on the Chromebook are its limited storage (16 gigs divided between Ubuntu and Chrome OS) and the low quality screen. I love working with the little machine when i’m on the road .. but it has its limits.
Meanwhile my super powerful Macbook Pro sits by the wayside, waiting patiently until I have a new task for it to do. (I do most of my audio and video production on my Mac and it IS the main machine for my business so tinkering with it is just not done). A bit of a shame really.

Side by side.
As I was once again working on both machines side-by-side this week, I wistfully thought : How cool would it be to have the power and screen size of the mac, the simplicity of the Chrome OS and the power of Linux rolled into one machine while still having the option to “slide” back and forth between the operating systems at a whim…
Sure, I could dual boot my Macbook pro with some flavor of Linux but that would violate one of my basic principles : My Mac is my work machine, my livelihood .. so excessive tinkering that might harm the OS or the data on the machine is NOT done. Furthermore, since the latest upgrade to OSX Yosemite, dual booting has become a lot more complicated. So the alternative was easy : Using a virtual machine. With plenty of Ram and an SSD drive I would have not trouble throwing some Gig’s and a few cores at my Linux distro of choice and run one on top of the other.

Chromixium-initial-screenshot

So what to choose ? Choosing your distro is always hard. And in my case I wanted something very specific. I wanted the distro to have a light graphical user interface (I don’t like clutter + I wanted it to be sharp and snappy so I didn’t get the feeling I was running a VM. On the other side I also wanted it to look like Chrome OS. So what to choose ?
Chromixium : A great distro that I found out there that does just that is Chromixium. Basically its a re-build of Chrome OS but using the open source version of the Chrome browser : Chromium. The Chrome-OS look and feel is done by heavily modifying an E17 interface and adding a plank dock. The operating system is light, elegant and well done. The great thing is : Where Chrome OS Stops, Chromixium go on. Instead of running on a shared Linux Kernel (like the Ubuntu installs in Chrome OS via Crouton) Chromixium is pure Ubuntu under the hood. That means : A terminal and access to the software center. Install whatever you please !

Looks like Chrome, Feels like Linux, Runs on a Mac.
So after I installed my favorite Linux applications (both Command line versions and actual apps) I have “morphed” my Chromixium into something that looks like Chrome OS but has the full power (and applications) of Ubuntu available at my fingertips. So now to get it to play nice with my Mac. In order for the Chromixium VM to be able to use the full resolution of my Retina display I made sure to assign it at least 32 meg of video memory in the Virtualbox control panel. I also assigned 2 cores and 4 gigs of ram. Next up it was time to install the Virtualbox Add ons into the guest operating system (Chromixium) to let it use the full resolution.

Retina Schmetina
The actual resolution of a 15 inc Retina Macbook Pro is 2650 by 1600 and I was puzzled why, no matter how I tried, I could not get my Chromixium VM up to that exact resolution when I put it in full screen mode. Turns out that this is actually impossible. The retina resolution is no longer tied to the actual resolution of your display. So you can “scale” the actual resolution of your desktop to ‘appear’ a certain resolution that is actually being ‘mapped’ on the actual resolution of your display. To make a long story short : I went into my Macs system preferences and set the host resolution of my system to a setting that “looked” like 1920 by 1200 and when I set my VM to fullscreen I saw that THAT was the actual ‘physical’ resolution the VM recognized.

So in the end I’m running an OS that is a mutated version of Chrome OS and that I have pimped out with a lot of “standard” Ubuntu applications ON TOP of my Yosemite install on my Macbook pro. It gives me the best of both worlds. The look and feel of Chrome OS , the power of the cloud (Both Chrome and Chromium can sync with my Google account and all settings, plugins and extensions are carried over between my Chromixium os, my Mac and my Chromebook) To power it all I have my Retina-display I7 Macbook pro and due to the fact this is a VM , I can easily make snapshots I can roll back to should something go wrong. I’ve already cloned the Virtual machine to my home server so I can access it remotely (via RDP) should I need to.
Tie in a couple of SSH connections and applications running on some of my other (remote) virtual machines and pretty soon I am having a hard time keeping track of what OS I’m actually using. And that is the whole point. The operating system needs to become abstract. A software layer that provides a you with the means to get things done. It is not there to be adored, it is not there to be fought over, its not there to make you choose.. its there to help you get stuff done .. regardless of what OS you choose…

Links : Chromixium

Related Posts

Building a simple Offsite backup server with an EEEpc and Bittorrent Sync.

Some gadgets are just hard to throw out. Perhaps you keep hanging on to them because you have this plan of “using them someday” for “some project”. Perhaps you keep hanging on to them because of nostalgia. Whatever reason you might choose, those geeky gadgets that keep occupying that box in your office aren’t getting any younger. Why not put them to good use ?

Lets take 2 items in MY junk-box as an example. An aging Asus EEE 701 Netbook PC that I have been hanging onto because of sentimental reasons. (I smuggled it in from the US way before these babies were available in Belgium) Its keyboard is broken and its low specs when it comes to storage, memory and cpu power aren’t helping it in finding something useful to do these days. The second item is my first 1tb external hard drive. I haven’t thrown this one out because its on my ‘for-some-project-some-day’ list. Its been on the list for 2 years now … So lets smash them together and turn them into a Remote backup solution using open source software and Bittorrent technology.

1013636_10152730916287912_8486272877834744564_n

Step 1 : Turn the EEEpc into a headless server.

I downloaded the Image for Ubuntu’s ‘minimal installer’ off the net and have had it kicking around on an old USB stick for a while now. Because of its small footprint its ideal to do ‘light’ installations of Ubuntu because you can choose which components you want to install. I chose the ‘minimal Ubuntu server’ and the SSH server component. When the installation was complete I rebooted the laptop and hooked up the external USB drive (that I had formatted in one big FAT32 partition)

Step 2 : Install Webmin and mount the drive.

Because I was going to use my external hard drive to store my remote backups on (the EEEpc doesn’t have enough storage) I needed to be sure it was always mounted correctly if my little laptop should have to reboot. So instead of messing around with stuff like FStab config files I installed Webmin. (a Web-based interface to your Linux server). Using the ‘Disk and network file system’ menu I mounted the external drive into a folder called ‘backup drive’ that I had created in my home directory. This way I was sure that the external drive was always mounted correctly in the same folder.

Links : Howto install Webmin.

Step 3 : Install Bittorrent Sync.
Next up I installed a copy of Bittorrent Sync both on my local server and on the old eeePc. Following THIS tutorial lets you install Bittorrent Sync and configure the Web interface to be accessible from all over your network. (So make sure you choose a very secure administrator password). When installing Bittorrent sync this way, you are also sure the service always starts up when your computer reboots.

Links : Howto install Bittorrent sync. 

After the installation was complete I surfed to the Bittorrent web interface of my home server (source system) in one tab, and to that of my EEEpc (remote destination system) on another one.

Step 4 : Share a folder on your Source system.

Now it was pretty smooth sailing. On the Bittorrent web interface of my SOURCE machine I made a bittorrent share of each folder I wanted to backup remotely. I right clicked “properties” once the folder was created and copied the ‘READ ONLY’ secret.

Step 5 : Enter the key for the shared folder on your remote destination system.

Next up I went to the tab of my ‘remote destination system’ and entered the READ ONLY key. I selected a folder on my external drive where the files needed to be synced towards. (in my /home/backupdrive/ directory)

Step 6 : Do the initial copy

After repeating the process above for all the folders I wanted to ‘sync remotely’ I just had to wait for the initial copy to complete. After that it was time to pickup the EEEpc and the External drive and bring them to their new (remote) home. I hooked the EEEpc up to the network, started up the machine and … that was that … headless remote backup solution done.

Epilogue.

Because Bittorrent sync doesn’t care about open ports or anything I didn’t have to mess with the router on the remote end of my backup solution. There were no ports to forward and even a static IP was not required for the remote machine. Just connect it , fire it up and .. boom. Using the ‘read only’ secret is an insurance that changes to my files are only synced one way : From the source to the remote system (and never the other way around).

You can expand this setup (and increase the security at the remote end) by syncing over encrypted ZIP files. That way people can’t access the data should your system be compromised.

In the end its a great simple way to use an old system (you can even use an old laptop with a broken screen for this) and give it a new lease on life. The setup is simple, the interfaces are web based and the whole setup is perfect for a remote backup destination at your parents or in laws.

So secure your data and put those old clunkers back in action !

Related Posts

Server week : Trust no-one with Owncloud.

Dropbox changed its terms of service so they can give you data to the Feds if they just ask for it, Ubuntu shuts down the online fileservice “Ubuntu One” : Who can you  trust these days ? The great thing with cloud solutions is that they are on a server far far away, most of them are free and you never have to maintain them. The downside is that they are on a server far far away, they are free and you cannot maintain them. We give up a certain level of control for the convenience of the cloud. It would be of course far nicer if you had a service that offered you all the luxury of the products mentioned above .. but gave you full control, absolute privacy and a completely controlled solution. (and free ! It has to be free).

oc5files

Do not fear : Owncloud is here.

Owncloud is a self hosted cloud solution that gives you the luxury of the cloud in the privacy of your own home (or on your own hosted environment). Its a cross platform webservice that gives you the ability to store files in the “cloud” and access them from anywhere, Sync those files with your desktop (like Dropbox) You can share your files with friends and access them using mobile clients on Android and IOS devices or a simple browser window.

Don’t trust the cloud with your Calendar and contacts ? Owncloud takes care of that too. Manage your contacts and calendars straight from Owncloud or sync them up with your mobile devices using open standards like .vcard and caldav. 

Tired of the tracks on Groovebox or spotify ? Would you like to stream your music (and movies) from your own hard drive at home ? Owncloud even has an answer for that. The built in media player lets you access your library from anywhere as long as you sport at least a browser (AND some underwear .. Owncloud is classy like that).

Want to tie all of your different cloud services together ? Owncloud supports connecting external storage to the service (like network and usb drives) but can also connect to Dropbox and Google Docs, offering ALL those files up in one simple interface.

So what does it take ? 

Installing Owncloud is pretty simple. All you need is a linux server and you can choose to install Owncloud either from the repositories (if you are using Ubuntu or Debian) or you can go and download version 6 straight from their website. 

Owncloud is based on a web based server so you can access everything from port 80 and add some security by choosing to go for https to do your authentication (highly recommended).  You can run it on your server at home OR on a webspace you rented somewhere (or if you are really lucking on your own hosted server in some datacenter). You don’t need a lot of power, but Owncloud does need some ram and some cpu power if it is going to manage and index thousands of files for you.

So how do I do it.

Find out more.

In all , Owncloud is a very powerful solution when it comes to hosting stuff yourself. It has come a long way since version 6 and I have been a big fan of the convenience, the cross platform compatible-ness (is that a word ?) and the sheer power of integrating multiple storage locations (usb drives, network drives, cloud storage) to ONE single web interface. Try it .. you’ll be on cloud 9.

Related Posts

Use Slurm to watch your bandwith via the command line.

Knowing “how busy” your network card is on your Linux system can be very handy in a variety of occasions. You might want to see whats holding up traffic if you use your Linux box as a router, You might want to check how fast that download is going on your torrent machine, you might want to see the top speed you can get out of your workstation. In any case : Getting a quick and comprehensible readout of how many bits you are spewing is not always easy, especially if you are connecting via the command line.

xINK4

Enter “Slurm” an app that does one thing and does it well. It gives you a graphical overview on how fast your system is up – and downloading data. This information is specified into your ‘real time data usage’, your average data usage, your amount of data received and transmitted. It also comes with a cool graph that, on a glance, gives you an idea on how busy your pipe is. 

Slurm is easy to use ( and does not have a ton of command line switches) an can be run on different network cards at the same time. This is very handy if you ever want to see how fast your home-built router is blasting bits on both interfaces.  Slurm is available by installing it from the command line on any ubuntu/debian based system via  sudo apt-get install slurm . You can use Slurm by hitting slurm -i eth0  (eth0 or 1 being the name of the network card you want to monitor.)

 

Related Posts

kw704 : Elementary OS and Thor Squared.

Its time to dive back into the audio podcasting after your Double Topping of F.A.C.T.S. video coverage last week. This week we grill wiseguy Thor about his experiences with Elementary Linux, a Distro spin on good old Ubuntu 12.04 with stunning looks and a soft spot for the hardware impaired. Afterwards we give you a last echo of the F.A.C.T.S. event with an interview we did with the people of Brainfreeze about one of Belgium’s most popular Manga & Anime websites and talk a little about Thor and why it is I am unable to lift Thor’s hammer.  We did have a little issue with the audio quality in the intro and outro of the show, so we hope you forgive us for this little blunder, it will all be fine next time .. We promise.

Shownotes.

Related Posts