This is an old revision of the document!


ThinkPad X250

Preparation

  1. Verify the downloaded image by using this command
    $ sha1sum -c SHA1SUMS
  2. Write the image to USB flashdrive
    # cp firmware-testing-amd64-netinst.iso /dev/sdX
    # sync

Installation

SSD and Filesystem

Filesystem ext4 and TRIM (discard option or use fstrim command). Put “noatime” or “relatime” in the option of the partitions in the fstab file. Do not create swap partition. Change I/O scheduler if needed.

tmpfs for /tmp:

tmpfs   /tmp   tmpfs   noatime,nosuid,nodev,noexec   0   0

Add periodic cron, for example weekly. Put 'fstrim -a' in /etc/cron.weekly/fstrim

fstrim -av

systcl.conf, add “vm.swappiness = 10” or “vm.swappiness = 1”

lsblk

/sys/block/sdX/queue/rotational

/sys/block/sda/queue/discard_granularity

smartctl -a /dev/sdX

# sfdisk -d /dev/sdX

If you use LUKS encrypted partition, don't forget to activate “discard” option in crypttab. The implication is the less secure storage since the firmware knows where the data stored in the encrypted partition. LVM has also “discard” option.

edisk UUID=XYZ none luks,discard

dmsetup table /dev/mapper/edisk --showkeys

Packages

From Repository

calibre dia git gimp cups eog evince ffmpeg file-roller freeplane frogr gdm gksu gnash
gnumeric gns3 libreoffice mc nixnote2 nmap plymouth plymouth-themes qemu rhythmbox
screen simple-scan synaptic tlp totem wine wireshark

Official

  1. Mozilla Firefox
  2. Mozilla Thunderbird
  3. Telegram

Configuration

Bashrc

Change HISTSIZE and HISTFILESIZE.

HISTSIZE=10000
HISTFILESIZE=10000

Change PS1 variable as needed.

Sudo

Put your username to “sudo” group in group file in /etc directory.

Bootsplash

  1. Edit modules file. In my case, this file is configured for Intel graphics card
    # nano /etc/initramfs-tools/modules
    intel_agp
    drm
    i915 modeset=1
  2. Edit grub file in directory /etc/default/
    GRUB_TIMEOUT=0
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_GFXMODE=1024x768
    # update-grub2
  3. Set Plymouth theme
    # plymouth-set-default-theme -l
    # plymouth-set-default-theme -R spinner

TLP

Backup

Creating Partitions

  • Check badblocks of the partition
     # badblocks -v -s -w -t random /dev/sdXY
  • Setup and initialize partition with LUKS
    # cryptsetup -v -y -s 256 luksFormat /dev/sdXY
  • Open the LUKS-formatted partition
    # cryptsetup luksOpen /dev/sdXY yes
  • Format the opened-partition with ext4 and label it with anything you want
    # mkfs.ext4 -L yourlabel /dev/mapper/yes
 
doc/x250.1503024167.txt.gz · Last modified: 2017/08/18 02:42 by stwn · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki