I’m looking for a laptop for side-projects, mostly server-side.
I’ve been using a Web-based editor at work, which makes my Macbook feel like a glorified netbook.
The 15” Macbook is great, but $2500 is steep for my needs. I think an actual netbook would be sufficient, but I have little experience w them.
I like Chromebook’s simplicity. The Pixelbook seems well-designed, but it’s pricey. Looking around, $500 seems like a reasonable experiment.
At this point I’m looking for a Chromebook with:
- High ratings in general (crowd wisdom)
- Close to Pixelbook specs
- Close to 15” screen
- Support for Android, so I can use 1Password
- USB ports (so I can charge my phone :)
The Acer Chromebook 14 is highly rated on Amazon, provides 4GB ram, 32GB storage, USB 3, Wi-FI AC, HD video, supports Android and costs ~$300, and I can pick it up immediately at a local BestBuy, which provides a surprisingly nice Instacart-like experience.
Acer is the genus of trees containing maples :) 🍁
The keyboard, esp the space bar, is flaky compared w a mac. (On the upside, it’s improving my touch-typing :)
After using the chromebook for a few months, 4GB is just enough. It’s great for having a few Chrome tabs open. But jumping between a dozen, esp email and slack, with a few different apps running, esp video conference, pushes the limits.
Android interop is great, but not all apps work well. For example, 1Password is fine, but Slack is crashy. Also, not all apps are compatible, ie just because I have an app on my phone doesn’t mean it can be installed on my chromebook. I’d guess the same would be true with a tablet.
Now that I have a screen, keyboard and internet connection, I need a machine to develop on. Cloud9, which layers a Web-based IDE on EC2, is good, but lately I’ve just been using an Ubuntu instance on Google Cloud.
This whole plan of using a chromebook + cloud really shines wrt dynamic resource changes, ie as compared w upgrading hardware. I’ve been playing around with large data sets recently using Anaconda, and ran out of storage with the default Cloud9 configuration (8GB). Upgrading the EBS “volume” to 16GB was fast and easy (once I found it):
- open the EC2 console
- stop the EC2 instance created by Cloud9
- in the left column, find Elastic Block Store > Volumes
- ctrl click on the volume and select modify
Google Cloud Shell (or Cloud9’s shell) makes it easy to create SSH keys I can use to access VMs via Secure Shell (with “open as window” enabled, so I can use ctrl-w and have more conventional alt-tab navigation).
Here’s what worked for me:
Use the shell to generate an SSH key pair:
ssh-keygen -t rsa -b 2048 -v -C "firstname.lastname@example.org" -f admin
Enable read permissions on the private key (so Secure Shell can read it):
chmod 400 admin
- Download both keys (copy/paste to local files)
- Create a new VM, copying the public key created above into the settings, and start the VM
- Grab the external IP from the VM console. (Note this changes every time the instance stops.)
- In Secure Shell, specifying the user (eg “ec2-user” on EC2) and IP copied above, and import both the public and private key. (The identity field should change from “default” to the key name, eg “admin”.)
It took me awhile to figure out how paste text into Secure Shell: two-finger tap.
EC2 distributes private keys (corresponding with public keys on VMs) via .pem files
Several people have documented the process of generating a public key from the private key.
Storage-backed VMs, like Google Cloud’s and EBS-backed EC2, maintain state, so public keys are durable for use w source control hosts like Github, BitBucket, etc.
Create a new SSH key pair with the default “id_rsa” name for each VM that needs to connect to a host, and add the public key to the SSH settings in the host.
I’d like to explore Android development using this set up.
The first step is setting up remote desktop, so I can run Android Studio and an emulator.
Install Chrome Remote Desktop (CRD)
The CRD docs are pretty good, but assume you already have a desktop with Chrome running. For a cloud VM, we need a way to bootstrap without a desktop. A couple (1, 2) Chrome support threads were helpful. Steps:
Install a window manager:
$ sudo apt-get install xfce4
Download the CRD installer and install:
$ wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb ... $ sudo dpkg -i chrome-remote-desktop_current_amd64.deb
exec /usr/sbin/lightdm-session "startxfce4"
Restart CRD to load the config:
$ sudo /etc/init.d/chrome-remote-desktop restart
Authenticate, register the host and set an access pin:
Note: this step directs you to a url, which redirects to another url. The auth token is a query param of the redirect url.
- Install the CRD extension on the chromebook and launch it. You should see your host listed in the “my computers” section.
- Click on your host and enter the access pin you defined
- Create a security group with a “Custom TCP Rule” exposing port 3000
- Add this security group to the VM
- Note instance’s external IP
- In browser, load IP with scheme http and port 3000