Sunday, July 1, 2018

New Linux Mint + Xfce install

I got a new laptop. A 12 inch Lenovo Thinkpad x240. Specs? i7, 256 ssd, 8gb ram.  It was used off eBay but it is pretty spotless. I love these machines, the build quality is so nice. I recently even discovered that all X and T series are mil-spec. Perfect size and durability for my upcoming travels. All this was $180+$20 shipping. I don't think there is really anything that is comparable (12 inch ultrabook) at a similar price point in the market today. You can't compare those cheap plastic Acers to this. The major downside is the screen as it is 768p. However, I've already ordered a new FHD screen replacement for $84.

I just did a complete OS install and I kept track of most of what I did.

Install OS

Linux Mint 18.3 "Sarah" + Xfce. Downloaded from main page, used USB Image Writer from another Linux install to create a bootable USB drive.

disable Touchpoint - I don't use it at all.
Touchpad disable when typing.

ZSH

install zsh:  sudo apt-get install zsh
install oh my zsh: run curl command in https://github.com/robbyrussell/oh-my-zsh

create new .zshrc
---
export JAVA_HOME=/usr/local/android-studio/jre/
export PATH="$JAVA_HOME/bin/:$PATH"
export VISUAL=vim.tiny
export EDITOR="$VISUAL"
---


Setup the hosts file:
-------
# alias my git server
192.168.0.111 raspberrypi

#   block some sites that I waste time on such as
0.0.0.0 espn.com www.espn.com

# Take the hosts file from this url and append it to the bottom. This blocks a lot of mal/tracking sites
#http://winhelp2002.mvps.org/hosts.htm
-------

install chrome and login. Install various chrome plugins like LastPass.

install git
create sandbox directory,
   clone what you need...
   git clone git@raspberrypi:/home/git/custom-morning-journal.git

Configure git:
git config --global user.email
git config --global user.name
git config --global push.default simple

sudo chown username:username -R /usr/local

install sublime text 3
http://docs.sublimetext.info/en/latest/getting_started/install.html#ubuntu
(follow the commands there but sometimes the version isn't the latest so go to the main page and use the latest version)

install PackageControl
install Material Theme (and add recommended settings)

{
"always_show_minimap_viewport": true,
"auto_complete_selector": "source, text",
"auto_match_enabled": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_face": "Fira Code",
"font_options":
[
"gray_antialias",
"subpixel_antialias"
],
"font_size": 9,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_padding_bottom": 3,
"line_padding_top": 3,
"margin": 0,
"overlay_scroll_bars": "enabled",
"tab_size": 2,
"theme": "Material-Theme-Darker.sublime-theme",
"translate_tabs_to_spaces": true,
"update_check": false
}

Other SublimeText packages to install

Package Control
GitGutter
HTML-CSS-JS Prettify
SidebarEnhancements
SublimeCodeIntel
SublimeLinter

requires node js: https://nodejs.org/en/download/package-manager/

SublimeLinter-jshint

// SublimeLinter Settings - User
{
   "paths": {
        "linux": [ "/usr/local/node_modules/jshint/bin/"],
        "osx": [],
        "windows": []
    },
}

Install Android Studio. Don't forget to bump up the xmx

Install java jdk 8

SSD compatibility. Run through steps in:
   https://sites.google.com/site/easylinuxtipsproject/ssd

Xfce Theme


https://github.com/horst3180/arc-theme
Manually build.
Once built go to these menus to set to the correct theme
Appearance
Window manager
Lightdm greeter settings

Xfce config:
install docky for xfce
Set to autohide, use glass appearance
Add Chrome, Sublime, Thunar to dock.

install sensors plugin: xfce4-sensors-plugin
install network monitor plugin: xfce-netload-plugin

Dropbox

Install dropbox, fix icon:
https://www.dropboxforum.com/t5/Installation-and-desktop-app/in-linux-mint-xfce-dropbox-doesn-t-show-system-tray/td-p/155775
go to sesson and startup through menu and delete existing dropbox startup option.
Create a new startup option with command:

dbus-launch dropbox start

Google Pinyin

fcitx
fcitx-config-gtk
fcitx-frontend-gtk2
fcitx-frontend-gtk3
fcitx-googlepinyin
fcitx-ui-classic

From Input Method menu install Traditional Chinese
Then add Google Pinyin in Fctix Configuration menu.

Its a lot of work to get everything installed but a lot of fun. And as I use it for my main laptop I'm sure I'll find so many apps and settings that I'm forgetting.

Here's the result so far: