SSD-oriented Xubuntu or Linux Mint Post-install Procedures

These are my personal post-install procedures. My user ID is “elkins” and I always mount my external hard drive at /mnt/elkdata. The system “asrock” is multi-purpose and it is the one which has the Samba share “elkdata” as a local drive directory-tree.


* Optimize /tmp and /run, append the following to /etc/fstab:
tmpfs                   /tmp                    tmpfs   noatime,size=256m       0 0
tmpfs                   /run                    tmpfs   noatime,size=100m       0 0

* Additional noatime edits in /etc/fstab:
Add noatime to rootfs partition (ext4).

* Insert into /etc/rc.local just before the exit 0 at the end of file:
# Setup WOL server capability
ethtool -s eth0 wol g
# Trim rootfs if drive is SSD (only)
fstrim -v /

* Append /etc/sysctl.conf:
# Decrease swap usage to a workable level
# Improve cache management

* Edit /etc/profile.  At the end, to add this line:
export PATH=.:$HOME/bin:$PATH:/usr/sbin:/sbin

* Set root password:
sudo passwd root

* ========================= REBOOT NOW ==============

* If using wifi, make connection now if not already made.

* Add to /etc/hosts:
# Router for LAN     router
# Samba server  asrock

* If manual network connection desired (fixed IP address), do it now

* Set repositories —> (Dallas TX company) and update

* Install some useful utilities:
sudo apt-get install psensor msttcorefonts  remmina remmina-plugin-rdp cifs-utils gdebi

* If a samba server (E.g. asrock), install samba support:
sudo apt-get install samba samba-common system-config-samba

* Link to the elkdata folder on the eSATA drive:
cd /mnt; sudo mkdir elkdata; sudo chown elkins:elkins elkdata

* Set up permissions for a plugged-in USB drive:
cd /media; sudo mkdir elkins; sudo chown elkins:elkins elkins

* If elkdata is mounted on a USB drive or an eSATA drive, then add the following to /etc/fstab:
/dev/sdb1 /mnt/elkdata vfat defaults,users,uid=elkins,gid=elkins,umask=022 0 0
# Check that sdb1 is the correct device name!

* If elkdata is mounted on a Samba drive, then

1. add the following to /etc/fstab:
//asrock/elkdata /mnt/elkdata cifs auto,owner,rw,credentials=/root/asrock.credentials,uid=elkins,gid=elkins 0 0

2. create /root/asrock.credentials with the following two text lines:

* Test Samba: sudo mount -a

* Get bin, www, and Wallpapers from elkdata/home-elkins, store under $HOME.

* Run $HOME/bin/ for the first time (massive number of updates!).

* setup printer connection (Epson XP-410)=======

* Settings Manager
Disable screensaver locking.
Enable power mgmt for screen only.

* Launch Thunderbird and enter gmail account info

=== Done ===