Lenovo IdeaPad 330S

created Mon, Nov 25, 2019

Last Tuesday, I worked with longtime, local computer store Virtual PCs to order a low to mid-range Lenovo laptop, the IdeaPad 330S. They also installed Ubuntu for me.

https://vpc-toledo.com

On Saturday, Virtual PCs called and said that my laptop was ready. It cost me under $600. I'm was pleased with the service, and I was glad to support the local business.

Back around 1997, I bought desktop computer pieces from either Stone Computing and/or Virtual PCs, and I assembled my own computer that I used to host RedHat Linux.

Anyway, I finally had a chance to work with this laptop. The keyboard is funky because it's off-centered because of the existence of the numeric keypad to the right. The keyboard is fine for typing. The placement with key keys, such as backspace, enter, ctrl, and shift seem fine. I'm not fouling up my typing when I type fast.

But I have to move myself and/or the laptop to one direction because I want to be centered with how I hold my fingers on the keyboard, but this makes me off-centered with the screen. It will probably be no big deal after a while. It's an oddity to need to adjust to.

The screen size is 15.6 inches, which is large for me. I would have been fine with a 13-inch screen. Since the summer of 2016, I have mainly been using a Chromebook that has about a 10-inch screen. I wanted something larger, like 11 to 13 inches. After viewing many laptops at BestBuy, I decided that 13.3 inch screens seemed ideal for me.

But I rarely move around with my laptop, which means the larger 15-inch side should be okay. Again, I need to adjust.

I wish that the screen was more of the glassy type where regardless of the viewing angle, the entire screen always appeared the same. With this screen, areas seem darker and lighter, depending upon what parts of the screen that I'm viewing. I played around with the laptop's screen position, and I think that I have it set where the color fading or variegated coloring seems less. I assume that this style of screen was used to save money on production costs. I would have need to upgrade to maybe the ThinkPad series for a better screen.

It seems like a nice machine, although I'm only getting started with using it. It will be fine for me. I don't use much in the way of fancy hardware. It's mainly nice to have a Linux laptop. It would have been nice to play around in person with multiple types of Lenovo machines to determine which style I liked best.

Naturally, I need to install a lot of software to make the machine my programming system.

uname -a output:

Linux john-Lenovo-ideapad-330S-15IKB 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Software installs

First was Vim.
sudo apt install vim

Make
sudo apt install make

GCC
sudo apt install gcc

Curl
sudo apt install curl


Lua
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux test

lua.c:82:10: fatal error: readline/readline.h: No such file or directory
#include

https://www.lua.org/manual/5.3/readme.html

If you're running Linux and get compilation errors, make sure you have installed the readline development package (which is probably named libreadline-dev or readline-devel). If you get link errors after that, then try "make linux MYLIBS=-ltermcap".

sudo apt install libreadline-dev

redo this command:

make linux test

followed by:
make install

Lua installed.

Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio


LuaRocks:

sudo apt install build-essential libreadline-dev

wget https://luarocks.org/releases/luarocks-3.2.1.tar.gz

tar zxpf luarocks-3.2.1.tar.gz

cd luarocks-3.2.1

./configure

make build

sudo make install


More Lua-related tech that supports my existing apps, use this page for a guide:

http://sawv.org/lua-on-chromebook.html

I'm not installing all of that right now.

Here's another page of libs and modules that I might need.

http://sawv.org/toledowxlua-readme.html

Might not be anything here:

http://sawv.org/2018/05/31/nuthatch-web-publishing-app.html

Use the CommonMark Markdown library, instead of the Markdown version.

http://sora.soupmode.com/2019/07/09/test-commonmark-postjul-9-2019.html

Testing my luarocks install by doing:

sudo luarocks install lua-cjson

Seemed to install fine.


Install golang.

I downloaded this file from this location https://golang.org/dl/

Linux 2.6.23 or later, Intel 64-bit processor
go1.13.4.linux-amd64.tar.gz (114MB)

tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz

sudo vim /etc/profile
add the line: export PATH=$PATH:/usr/local/go/bin

In my computer's HOME directory, do:

mkdir go -- this will be my workspace

mkdir src

mkdir src/hello

cd src/hello

create hello.go file with this sample code:

package main

import "fmt"

func main() {
fmt.Printf("hello, world\n")
}

then within the hello directory, type:

go build

afterwards, a hello executable should have been created, and one was created.

and running the executable also worked.

If you see the "hello, world" message then your Go installation is working.

You can run go install to install the binary into your workspace's bin directory or go clean -i to remove it.

Before rushing off to write Go code please read the How to Write Go Code document, which describes some essential concepts about using the Go tools.

https://golang.org/doc/code.html


installing web browsers now.

Lynx:
sudo apt install lynx

lynx -version produces:
Lynx Version 2.8.9dev.16 (11 Jul 2017

elinks:
sudo apt install elinks

eventually, install links2 #todo
http://links.twibright.com/


installing the NetSurf web browser.

http://www.netsurf-browser.org/

http://source.netsurf-browser.org/netsurf.git/plain/docs/quick-start.md

I'm using NetSurf 3.10 Dev even though the website said the latest download was 3.9 from July 2019.

It took a little while to install. It was the longest and biggest install yet, even though NetSurf is a small web browser.

I see this error when I launch NetSurf from the command line.

$ ./nsgtk

Gtk-Message: 17:54:29.948: Failed to load module "canberra-gtk-module"

This is an old thread.

https://askubuntu.com/questions/342202/failed-to-load-module-canberra-gtk-module-but-already-installed


Within Firefox, I added the eff.org's Privacy Badger browser extension.

I also installed Markdown Viewer Webext.

I will add more later, such as uMatrix. #todo


As of now, Mon, Nov 25, 2019, I want to focus on learning more about Lua and Golang programming.

I will install my own Lua-based apps, such as ToledoWX-Lua, Sora, Finch, and Nuthatch. I will need to install Nginx to test these on the local machine. #todo

Eventually, I will install Love2D for Lua to create small video games. #todo
https://love2d.org

Later, I would like to explore OpenResty, which is the Nginx web server with Lua and a Lua-based web framework embedded into the server. Then I will create a version of Sora that works with OpenResty. #todo

https://openresty.org/en/

OpenResty is a full-fledged web platform that integrates our enhanced version of the Nginx core, our enhanced version of LuaJIT, many carefully written Lua libraries, lots of high quality 3rd-party Nginx modules, and most of their external dependencies. It is designed to help developers easily build scalable web applications, web services, and dynamic web gateways.

They maintain a commercial version of OpenResty


Another #todo (actually, many more exist) is to install mutt and connect it to my riseup.net account.