Additional Linux Notes

Publish Date: May 10, 2014    Last Update: Nov 10, 2015

Bios Update

  1. Download the iso file from Lenovo’s website
  2. Use the genisoimage package and convert the iso to bootable file
  3. Use dd to write the file into the usb
geteltorito xxx.iso > bios.img
sudo dd bs=4M if=/path/to/bios.img of=/dev/sdX && sync

Stability Improvement

Using Linux system should be intrinsically stable, as long as you know what you are doing. More practically, suggestions below should provide a good guide to main a stable system.


Use linux-lts to have a more stable system.

Back Up

I use four tools to back up my system:

  1. Google Drive: back up all my working directories
  2. Git: back up all my codes and documents
  3. NAS: back up data and large personal files
  4. tar: back up full system, please refer to [my blog article][2] for more detailed guide

Daily Maintenance

Based on my past experience, it is IMPORTANT to keep a large pacman library, as the upgrade is usually accompanied with bugs, and it is very useful to downgrade. Also upgrade the system at a higher frequency.

Manual Wireless Configuration

Wireless configuration has been notoriously painful. To manually connect to a wireless spot is thus very important. Note most configurations below require root permission.

## Step 1: Make sure the device is loaded
ip link 
ip link set <wlxxx> up   # proceed if no error is reported

## Step 2: Connect to no-passwd ssid
iw dev wlxx link        # check status
iw dev wlxx scan | less # scan available network
iw wlxx connect SSID    # connect to SSID
dhcpcd wlxx             # to get dynamic IP address

## Step 3: Connect to Secure ssid
## WEP
iw dev wlxx connect SSID key 0:KEY
wpa_supplicant -i interface -c <(wpa_passphrase SSID KEY)

Alternatively, I use netctl to manage the connections. I find this way works better with Arch Linux.