Documentation

Nanotube System Commands

  • cfgsync
    Saves the current configuration to the CFG partition.
    Optional arguments
    -b (prompts for backup image file name) Used to backup the system config.
    -r (prompts for restore image file name) Used to restore the system config.
  • activate_standby_partition
    Sets the standby partition as default and reboots the system into the standby partition
  • update_standby_partition
    Updates the standby partition, takes a partition image file as an argument (nanotube.partition.img)
  • By default the the only user is root without a password

Building a New Image with the nanotube.sh tool

By running nanotube.sh with no arguments, it will build an image(nanotube.full.img) with the default settings. It will check if an image file exists and, if not, create/partition/format one.  Then it will start to build and configure the nanotube environment, duplicate the build to the standby partition, and extract an upgrade image(nanotube.partition.img).  Last, it will install the boot loader, and the image process is complete.  All logs and image files are located in the NANOTUBE_WORK directory(default is /opt/nanotube/work).

  • nanotube.sh –d                       removes/cleans the nanotube work directory
  • nanotube.sh –c configfile        specify a config file with custom settings

Example Config File Options:

ADDITIONAL_PACKAGES_TO_INSTALL=”httpd mtr”
GROUPS_TO_INSTALL=”Base”
ADDITIONAL_WEB_PACKAGES_TO_INSTALL=”http://pkgs.repoforge.org/htop/htop-0.9-1.el6.rf.x86_64.rpm http://mirror.centos.org/centos/6/cr/x86_64/RPMS/btrfs-progs-0.19-12.el6.x86_64.rpm”

Any additional packages to be installed can be placed into the “rpms” folder where nanotube.sh is located.

Here is a list of Tunable Settings:

NANOTUBE_WORK=/opt/nanotube/work
NANOTUBE_BUILD=/opt/nanotube/build
NANOTUBE_IMGNAME=nanotube.full.img
NANOTUBE_PARTNAME=nanotube.partition.img
IMG_MEDIASIZE=3913728     #(2G Image)
IMG_PARTSIZE=955     #(955M Partition)
IMG_CFGSIZE=64      #(64M Partition)

CREATE_DISK_IMAGE_FLAG=false
PARTITION_NANOTUBE_FLAG=false
FORMAT_NANOTUBE_FLAG=false
BUILD_NANOTUBE_FLAG=true
UPDATE_NANOTUBE_FLAG=false
DUPLICATE_NANOTUBE_FLAG=true
CREATE_PARTITION_EXTRACT_FLAG=false
USE_PARTITION_EXTRACT_FLAG=false

PACKAGES_TO_INSTALL=”kernel acpid ntp passwd grub dhclient sysstat crontabs openssh-server openssh-clients vim-minimal btrfs-progs e2fsprogs lvm2 parted kpartx eject diffutils patch wget screen zip unzip net-snmp yum”
ADDITIONAL_PACKAGES_TO_INSTALL=”"
GROUPS_TO_INSTALL=”"
WEB_PACKAGES_TO_INSTALL=”http://pkgs.repoforge.org/pv/pv-1.1.4-1.el6.rf.x86_64.rpm http://pkgs.repoforge.org/rsync/rsync-3.0.9-1.el6.rfx.x86_64.rpm”
ADDITIONAL_WEB_PACKAGES_TO_INSTALL=”"

NANOTUBE_OSTYPE=”centos”
NANOTUBE_OSRELEASE_VER=”6″
NANOTUBE_KERNEL_VERSION=”2.6.32″
NANOTUBE_KERNEL_RELEASE=”71.29.1.el6″