The Dell Inspiron 11-3000 2-in-1 – a review


I recently purchased a Dell Inspiron 11-3000 2-in-1. Specifically, the model number is Dell Inspiron 11-3148. I was able to get a deal via Woot, paying $325 shipped. I selected this particular model for a number of reasons, namely…

  • generally good Linux support
  • decent keyboard
  • attractive visual design
  • an i3-4010U is a bargain for $325
  • upgradeable HDD and RAM (an increasingly rare feature these days)
  • touchscreen + 2-in-1 functionality is interesting

In general, I am pleased with it, and would consider it a good value for the price I payed. I should probably point out a few things before continuing though…

  • Mine was refurbished (although in great condition) – you will probably not find a similar unit new-in-box for the same price
  • I run ArchLinux on mine; other distros with older kernels may have a hard time with the wifi drivers

The “guts”

The specs on my model are…

  • i3-4010U
  • 4GB DDR3 (1x low voltage SO-DIMM)
  • 500GB 5200RPM HDD
  • Broadcom Corporation BCM43142 802.11b/g/n network adapter
  • 2x USB 2.0 ports
  • 1x USB 3.0 port
  • 1x HDMI port
  • 1x MicroSD card reader
  • 1x audio jack
  • 1x weird Dell proprietary security lock slot
  • 1366×768 glossy touchscreen

As a system, the whole thing is performant and generally as responsive as a 5200RPM drive will permit. The screen is nice and bright, although the 720p resolution is a little disappointing. I have so far had a difficult time maxing out the CPU. The addition of hyperthreading is nice, and CPU-bound tasks tend to be reasonably quick.

However, the wifi adapter is somewhat problematic. While drivers are available currently in Arch which work, performance is adequate but not great, and custom kernels will not work (eg. the -ck kernel precompiled for Haswell broke the wifi, and I could not be bothered to build the ck kernel myself with the correct driver included). Additionally, the wifi card while removable, seems to be of a non-standard form factor, meaning replacing it with another card is probably not possible. (if anyone can point me towards a better card using the same connector, please let me know!)

Additionally, the lack of an integrated Ethernet port is irritating, and necessitates the usage of an external USB Ethernet adapter.

Fit and finish

Overall, I am also pleased with the “fit and finish” of the system as a whole. Most of the media keys work properly out of the box (mute, volume up, volume down, play/pause, and the brightness keys all generate correct XF86 key codes when pressed). Even the volume buttons on the side work properly without modification. The keyboard deactivates correctly when the screen is rotated into tablet mode (although the track pad does not). The touchscreen also works out of the box, and while it does not support multi-touch under Linux, two-finger right click works properly.

The keyboard and track pad are nice as well. They keyboard and it’s function key mappings are fairly sane, and the keys have a nice feel to them – a mixture of springy and squishy. I would have to say the keyboard on this thing is one of my favorite laptop keyboards aside from the old-school ThinkPads. The track pad is nice and large, and quite responsive. Two finger scrolling works well if enabled, as does two-finger right click and three-finger middle click. While I still think the Force-Touch track pads on current Apple computers are my favorite, this one would have to be the best non-Apple track pad I have used in some time.

There are a few small issues however. For one, X does not change orientation when the screen is rotated, although this is almost certainly a Linux issue, not a hardware problem. Some of the other special keys are not recognized correctly (which does not bother me, as I would not use them anyway). Additionally, the track pad is very sensitive, which made me accidentally register clicks by brushing it while typing frequently, until I disabled tap to click (I don’t like the way “disable track pad while typing” works currently).

Software setup

Other than needing a USB Ethernet adapter to install Arch, the installation was pretty painless. I had no issues disabling secure boot, and Arch boots quite happily via legacy boot. I tested Cinnamon and Mate, and both worked well, recognizing and utilizing the media and brightness keys correctly out of box.

Ultimately, I settled on i3, as usual. My config files (namely ~/.i3/config) are already up in my dotfiles repo. I have also since made a small addition – running an xfce4-session within i3 so that my track pad, preferred applications, and power management settings work properly. This change hasn’t been committed at time of writing, but can be accomplished by adding exec xfce4-session to ~/.i3/config.

The verdict

Overall, the Dell Inspiron 11-3000 2-in-1 is a great piece of hardware, which I am generally pleased with (with the exception of the wifi). It works very well with Linux, well enough to be my daily-driver, although it certainly also demonstrates the shortcomings of Linux on convertible devices – an area I expect we will see significant improvements to in the coming years.

Performance testing


A hardinfo report for the system may be accessed here.

Download this article here (99kb, tar.xz)

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Auto-mounting NFS shares on OSX with autofs

A little known tool baked into OSX is autofs, also available for Linux, which automatically mounts filesystems when they become available. This is useful for several reasons. Namely, it saves you from having to open the terminal and type a mount command, or mounting through finder’s connect to server dialog. Additionally, autofs should make OSX more fault tolerant in the event that the device becomes unreachable, although I have yet to test this in real world applications.


On my home network, I have a computer at, exporting /data to my LAN over nfsv4. No authentication is used, ldap, nis, kerberos, or otherwise (indeed, all users are squashed to the owner of /data anyway). Perhaps not the most secure setup, but it gets the job done. My macbook (running OSX 10.10 Yosemite) is connected to the network via an access point, bridged at layer 2 with my router, meaning my setup should be functionally identical to someone with a typical wifi router. No other netowrk services or appliances are on this network that would be relevant to nfs.


Using autofs is relatively simple, although it is poorly documented, and can be a little fidgety to get going. The first step is to edit /etc/auto_master. Mine looks like this:

# Automounter master map
/mnt     auto_data
+auto_master        # Use directory service
/net            -hosts      -nobrowse,hidefromfinder,nosuid
/home           auto_home   -nobrowse,hidefromfinder
/Network/Servers    -fstab
/-          -static

This is pretty much the default audo_master, except for the line /mnt auto_data, which specifies the map audo_data should be mounted onto /mnt. For a different mount point, replace /mnt with the desired mount point. Keep in mind that autofs, at least on mac, does not directly mount the export to the mountpoint, but rather to a subfolder. For example, mounting myserver:/export to /mnt, would result in myserver:/export being mounted on /mnt/export.

To define our automount map, edit /etc/auto_data (or /etc/auto_$yourmapname if you want a different name). Mine looks like this:

data    -fstype=nfs,resvport,rw,bg,soft,intr,tcp

The first column specifies the subfolder onto which the export will be mounted under the mountpoint (in my case, this results in /mnt/data). The second specifies mount options. If you are mounting an nfs share, your mount options should look about the same, however you may wish to replace soft option with hard depending on use case (read the nfs manpage for more information). If you want to mount smb, try this link (not tested), and if you want to mount afp, try this one (not tested).

Finally, run sudo automount -vc to mount your shares. The output should look something like this:

automount: /mnt updated
automount: /net updated
automount: /home updated
automount: no unmounts

However, if you mess up with your automounter maps, it is liable to fail silently.


  • You can navigate to your mount point with finder with Go->Go to Folder, then drag it to your finder side panel for easy access later.
  • If you do not use authentication, or your nfs export does not squash all users to the export’s owner, you may encounter permissions issues, as your OSX UID will usually be different than your Linux, *BSD, or freeNAS UID.

Further Resources

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Download this post in markdown and pdf format (zip – 91kb)

Easy logging in c++ with YAECPPL

I am pleased and proud to announce the release of YAECPPL (Yet Another Easy C Plus Plus Logger). I created this project because, in spite of it’s name, there are not any easy to use logging utilities for C++ that I could find. This project aims to make it simple to add effective logging to any C++ project; creating a log entry can be as easy as

log.logstream << "this is a log entry";

or even

log.logMessage("this is a log entry"); 

The full source, along with the 0.1 build can be found here, and the documentation can be found here. This project is licensed under the BSD 3-clause license.

Debian on OSX

An example of the results
The end result.


About a year back, someone on reddit posted a very clever trick, running linux applications natively in OSX using a headless Debian virtual machine, connected to over ssh. I decided to replicate this on my own system, and finding documentation and guide lacking, I have decided to create my own for others wishing to follow in my footsteps.

While getting this type of thing up and running is not as hard as it looks, you will still need some basic knowledge. For this guide, I will assume you are familiar with the following. In case you are not, each bullet point is a link with information on the topic.

But why?

  • It’s cool

  • You can impress your friends and co-workers

  • Run Linux-only packages on OSX (for me, this makes using keepassx much easier)

  • Access a true Linux shell on your local machine

  • Valuable learning experience


  1. Install Debian in Virtualbox

  2. Configure the Debian installation

  3. Configure SSH

  4. Mac OSX integration

  5. Start on login


  • VirtualBox installed on your mac

  • installed on your mac

Install Debian in Virtualbox

As previously stated, this guide assumes you are already familiar with VirtualBox and installing Debian, so I will not cover this process in great detail. However, I will make a few recommendations on how your Debian installation should be configured.

  • You should select xfce as your desktop environment (others will probably work, but this guide covers xfce)

  • Depending on your system, you should give Debian at least 10GB of disk space, at least two CPU cores, and at least 2GB of RAM. You can probably get by with less, but performance may be impacted; these numbers seem about right to me on a Macbook Pro 2015, and I notice no major slowdowns in OSX or Debian.

  • Be sure to install the VirtualBox guest additions, we will need them for folder sharing later on.

Configure the Debian Installation

First, we need to setup a host to guest network to run our ssh connections over. This step will create a private network which only the virtual machine and it’s host computer can connect to. Under VirtualBox->Preferences->Network->Host-only Networks, click “add network”

Press OK when you are finished.

Now, with your Debian Virtual Machine selected, navigate to Settings->Network->Adapter 2. Set the Attached to field to Host-only Adapter, and the Name filed to the network you created in the previous step.

Edit your VM's settings

Configure the adapter

Next we need to configure Debian to use both network adapters (Adapter 1 will provide us access to the Internet, Adapter 2 will let us access our private host-guest network). Log into your VM now, and open the graphical network connections editor (Usually under Applications Menu->Settings->Network Connections). Click Add. Under the Ethernet tab, set Device MAC address to eth1, and Connection name to vboxnet. You should be able to leave all other settings at their defaults. Network Manager should immediately report it has connected to vboxnet, if not, try clicking it from the Network Manager applet in your system tray. If it still does not work, go back and verify you configured everything correctly.

Network Settings
vboxnet settings

Now we should verify the host and guest can connect to one another over the network. Open a terminal in OSX and run the ifconfig command. You will see a number of network connections listed; look for the one named vboxnet0. It should look something like this:

    ether 0a:00:27:00:00:00
    inet netmask 0xffffff00 broadcast

Now run the same command in the terminal on the guest. Note that you may need to run ifconfig as root on Debian. You should see something like this:

eth0      Link encap:Ethernet  HWaddr 08:00:27:f0:7b:91  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::a00:27ff:fef0:7b91/64 Scope:Link
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4726 (4.6 KiB)  TX bytes:35783 (34.9 KiB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:cc:60:37  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::a00:27ff:fecc:6037/64 Scope:Link
          RX packets:352 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52947 (51.7 KiB)  TX bytes:11439 (11.1 KiB)

Notice that both interfaces have an inet addr. Finally, you should try to ping the guest from the host, and the host from the guest. In my case, I should be able to ping from the guest, and from the host. You should also be able to ping the guest by it’s hostname, for example ping debian-vbox.local.

Configure SSH

First, you should set up a ssh server on your Debian installation, if you did not do so during install. Next you should enable ssh access on OSX, if you have not done so already. You can do so under System Preferences->Sharing->Remote Login. You should now verify you can ssh into the host from the guest, and to the guest from the host.

Now you must setup password-less ssh both from the host to the guest and vice-versa. You can verify this is working by sshing from the host to the guest, and the other way around; you should not be asked for a password.

Next we need to verify X-forwarding is working. On the host computer, run ssh -Y $username@$hostname.local xterm, replacing $username with your username, and $hostname with the hostname of the VM. If you did everything correctly, an xterm window logged into the VM should appear. If not, try running the same command through xterm in If the xterm window does appear, ssh has been configured correctly, and you may proceed to the next step.

Mac OSX integration

Running a proper xfce session within

One thing you have probably noticed, if you tried launching applications other than xterm, is that they look hideous, being forced to use’s GTK theme. Some applications may not run at all, such as those which depend on dbus. We can fix this by launching a minimalistic xfce session within Specifically, run the following two commands on the host while the guest is running:

ssh -Y $username@$hostname.local dbus-launch&
ssh -Y $username@$hostname.local xfsettingsd&

You can do this automatically each time you log in by creating a simple script:

sleep 120 # give the VM time to spin up
# nohup prevents the process from terminating when the shell session ends
nohup ssh -Y $username@$hostname.local dbus-launch& 
nohup ssh -Y $username@$hostname.local xfsettingsd&

You can have the script execute each time you log in under System Preferences->Users & Groups->Your Username->Login Items (replacing Your Username with your username, naturally). To add the script, simply select the + icon int he lower left corner of the Login Items tab, then select your script.

Launching Linux applications from OSX

While you can of course launch each application you want from a terminal, this can get a bit tedious. With the X11 application running, select it in the dock, then navigate to Applications->Customize. You should add a new entry with the command ssh -Y $username@hostname.local xfce4-appfinder. You can repeat the exercise for each application you want to be able to launch quickly by replacing xfce4-appfinder with a command of your choice.

an example

You should now be able to launch xfce4-appfinder, and any other applications you have configured in this way via the Applications menu in

Setting an OSX browser as your default browser in Debian

One of the pet peeves I had with this setup at first was that open in browser in Debian applications would open an instance of Iceweasel to display the webpage. While I have nothing against Iceweasel, I would prefer links to open in the browser on my host system (in my case Google Chrome). Therefore, I created a simple script:

ssh $username@$hostname.local "/Users/$username/Applications/Google Chrome $1"

Naturally, $username should be your username on the host, and $hostname should be the hostname or ip (in my case, it was necessary to specify the host system by ip) of your host system on the host-guest network.

Now simply set your script, in my case ~/bin/ as your default web browser via xfce4-settings-manager under Preferred Applications->Web Browser->Other.

how it should look

Global keyboard shortcuts

As it was rather inconvenient to select each time I wanted to launch a Debian application, I used the excellent Keyboard Maestro. Being an i3 user, I bound Mod4+d (that’s option+d for the mac users, and alt+d for the windows users) to launch xfce4-appfinder, and mod4+enter to xfce4-terminal. I suspect that most users will not find theses bindings very intuitive, and I would encourage you to select bindings you are more comfortable with.


Sharing folders

NOTE:You must have the VirtualBox guest additions installed on the VM to complete this step.

I found it useful to mount my Documents, Pictures, Music, etc. folders from OSX to the same folders in the VM. This can be accomplished via folder sharing. Open your VM settings again, then navigate to the Shared Folders tab. Create a new folder; set Folder Path to /Users/$username, folder name to $username, and tick the Auto-mount and Make Permanent boxes. Select OK when you are finished.

Shared folders
Folder settings

In you VM, run the command df -h, it should give you output like this:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       7.4G  3.1G  3.9G  45% /
udev             10M     0   10M   0% /dev
tmpfs           403M  6.0M  397M   2% /run
tmpfs          1006M   68K 1006M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs          1006M     0 1006M   0% /sys/fs/cgroup
none            465G   56G  410G  12% /media/sf_cdaniels
tmpfs           202M  4.0K  202M   1% /run/user/117
tmpfs           202M  8.0K  202M   1% /run/user/1000

Note the mount point of the share (in my case /media/sf_cdaniels).

Now we can use mount --bind to bind the folders from the share to the corresponding folders in our Debian home directory. Add the following lines to /etc/fstab of the guest with an editor of your choice (make sure you are running your editor as root!).

/media/sf_$username/Documents   /home/$username/Documents     none  bind
/media/sf_$username/Pictures    /home/$username/Pictures        none    bind
/media/sf_$username/Music         /home/$username/Music         none    bind
/media/sf_$username/Downloads   /home/$username/Downloads     none  bind
/media/sf_$username/Movies      /home/$username/Videos      none    bind

Replace $username with your username. You can mount the folders immediately with sudo mount -a. Now, when you access these folders from a Linux application, the changes will propagate instantly to the same folders in OSX.

NOTE: When I say changes will propagate instantly, I mean it. This effectively hardlinks the folders together, meaning the VM has direct access to the live copy of each folder, so be careful! running rm -rf ~/ on Linux will also wipe out your files in OSX.

NOTE: If you have permissions issues with the share, verify your user is in the group vboxsf with the command groups. If not, add your user to this group with sudo usermod -aG vboxsf $username.

Start on login

Next we should configure the VM to launch automatically on login, so you don’t have to manually open VirtualBox and run the VM each time you reboot your computer. This can be accomplished via a launchd plist. You should create a plist file, for example DebianVirtualbox.plist, which you should save to ~/Library/LaunchAgents/DebianVirtualbox.plist. It should look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

You should replace $username with your username, and Debian with the name of your VM, if you named it something different.

I suggest using the application lunchy (not to be confused with launchy). You can install it manually, or via homebrew. If you have installed lunchy, you should now be able to verify your plist has been detected with lunchy list, and check it’s status with lunchy status $plistname, where $plistname is the name of your plist file. Your virtual machine should now launch each time you boot your computer. If you followed the instructions under Mac OSX Integration/Running a proper xfce session within, your xfce session should also launch two minutes after you log in (the delay is needed to give the VM time to boot).

Closing notes

This instructions should work on other operating systems, and with other VM software, with slight modification. For example, you could do something similar on Windows using cygwin to provide ssh and Xorg. You could even use a similar process with a Linux host (for example, using a virtualized older distro to run software the needs specific kernel versions, you could even disable access to the Internet, so only the host can connect to the VM). It should also be possible to do something similar for a remote host, given a strong network connection; this was actually common back in “the day” when applications were run on powerful mainframes, and x11 was provided by what amounted to thin clients.

Some may also be interested in using the virtual machine to provide OSX access to Linux partitions, or to use filesystems not available on OSX. In fact, the creator of the post which inspired me to do this used a feature of vmware to pass a raw partition through to the VM, which was formatted as zfs. This partition was then served to OSX over nfs on the host-guest network.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Download this post in markdown and pdf format (zip – 13MB)