IN WORK... 

ideas:  setup as a list... use READ... organize by system.

basic key user - pwd/shadow/sudoers/group/.ssh/.viminfo/.bashrc/.History/no colors
basic system - network/ssh/apache/rpm/apt-get/proxy/lpadmin
apps - OpenOffice/darktable/virtualbox/ffmpeg/mencoder/thunderbird/firefox/chrome/inxi(?-MUD)

setup ssh between systems... heredoc for the systems if naming isn't available


#!/bin/bash
#   build-lnx.sh.txt
#############################################################
# SYSTEM:  hostname, IP, netmask, gateway, network, name servers, proxy, printer
# USERS:   ssh config, profile/sudo/shadow/bashrc, vim, printer
# 
# /etc/proxy
# /etc/sysconfig/network/ifcfg-eth0
# /etc/sysconfig/network/dhcp
# /etc/hosts
# /etc/passwd - grep users
# /etc/shadow - grep users
# /etc/resolv.conf
# ~/.bashrc
# ~/.ssh/id_rsa...
# ~/.vimrc
# ~/.exrc
# ~/.viminfo (touch)
# 
# tuning:  CPU, Memory and SWAP, DISKS, Network, APPS
#   enable logging, identify location of the logs in var, or run
#############################################################
#  BUILD ENVIRONMENT FOR LINUX SYSTEM
#     check distro, config system proxy, network, printer, config user
#############################################################
#  NOTE:  $(whoami) should provide the user name
#############################################################
echo " # .bashrc for SuSE Linux " >> /home/luser/.bashrc "
echo " # SuSE GmbH Nuernberg " >> /home/luser/.bashrc "
echo " export PS1=" " >> /home/luser/.bashrc "
echo " ------------------------------------------------ " >> /home/luser/.bashrc "
echo " $(whoami)@`hostname` [\$PWD] " >> /home/luser/.bashrc "
echo " ------------------------------------------------ " >> /home/luser/.bashrc "
echo " --> " " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
echo " HISTFILE="/home/$(whoami)/.History/`/bin/date '+%d%b%y_%H%M'.hist.txt`" ; export HISTFILE " >> /home/luser/.bashrc "
echo " # HISTFILE="/home/luser/.History/`/usr/bin/date '+%d%b%y_%H%M'.history`" ; export HISTFILE " >> /home/luser/.bashrc "
echo " # HISTFILE="/home/luser/.History/`/usr/bin/date '+%Y_%b_%d_%H%M'.history`" ; export HISTFILE " >> /home/luser/.bashrc "
echo " HISTSIZE=2048; export HISTSIZE " >> /home/luser/.bashrc "
echo " umask 022 " >> /home/luser/.bashrc "
echo " ############################################################################################################  " >> /home/luser/.bashrc "
echo " #note mkdir .History before using this. If .bashrc fails to source, make .profile with:  . ./.bashrc " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
echo " EDITOR=/usr/bin/vi; export EDITOR ; VISUAL=/usr/bin/vi; export VISUAL       " >> /home/luser/.bashrc "
echo " set -o vi #  allows the use of the vi editor on the command line " >> /home/luser/.bashrc "
echo " shopt -s histverify " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
echo " # PATH="$PATH:/home/$(whoami)/bin:/usr/sbin:/sbin" " >> /home/luser/.bashrc "
echo " export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:~:/home/$(whoami)/bin:. " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
echo " alias l="/usr/bin/ls -Al" " >> /home/luser/.bashrc "
echo " alias ll="/usr/bin/ls -l" " >> /home/luser/.bashrc "
echo " alias lm="/usr/bin/ls -l | more" " >> /home/luser/.bashrc "
echo " alias mv="/usr/bin/mv -i"     # recommended as a safety net, there are no undo's in Linux " >> /home/luser/.bashrc "
echo " alias md="/usr/bin/mkdir -p" " >> /home/luser/.bashrc "
echo " alias cp="/usr/bin/cp -i"     # recommended as a safety net, there are no undo's in Linux " >> /home/luser/.bashrc "
echo " alias rm="/usr/bin/rm -i"     # recommended as a safety net, there are no undo's in Linux " >> /home/luser/.bashrc "
echo " alias mroe=more               # just in case you type too fast... add others like this " >> /home/luser/.bashrc "
echo " alias lp="lp -d lab-printer" " >> /home/luser/.bashrc "
echo " #  alias more="/usr/bin/less" " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
echo " export http_proxy="http://our-prox.company.net:12345" " >> /home/luser/.bashrc "
echo " export http_proxy="http://our-prox.company.net:12345" " >> /etc/sysconfig/network/proxy
echo " export HTTPS_PROXY="http://our-prox.company.net:12345" " >> /home/luser/.bashrc "
echo " export HTTP_PROXY="http://our-prox.company.net:12345" " >> /home/luser/.bashrc "
echo " export FTP_PROXY="http://our-prox.company.net:12345" " >> /home/luser/.bashrc "
echo " export ftp_proxy="http://our-prox.company.net:12345" " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
echo " #  john - 23 sep 2015  http://johnmeister.com/linux/Notes/bashrc-simple.html " >> /home/luser/.bashrc "
echo " #  updated 13 July 2016 " >> /home/luser/.bashrc "
echo " ############################################################################################################ " >> /home/luser/.bashrc "
chmod 700 /home/luser/.bashrc
#############################################################
# cat ".... "  >> /etc/default-somm....
# cp /etc/default-somm.... /etc/de.bak-date
# perl -pi -e 's$.*$# &$g' /etc/default.
# cat " export http_proxy="http://our-prox.company.net:12345" " >> /etc/defaul
#############################################################
# $ /usr/sbin/lpadmin -p LaserJet -E -v socket://10.1.1.1 -m laserjet.ppd
# $ /usr/sbin/lpadmin -p lab-printer -E -v socket://a654321.ddns.printer.company.net -m xrx7835.ppd
# lpadmin -d lab-printer
#############################################################
# sudo cp /home/luser/xrx7835.ppd /etc/cups/ppd/lab-printer.ppd
# sudo  /usr/sbin/lpadmin -p lab-printer -E -v socket://a654321.ddns.printer.company.net 
# sudo lpadmin -d lab-printer
# sudo lpstat -v
#############################################################

set your price...

...even free...
Video Series: Linux Sys Admin Course - O'Reilly
http://shop.oreilly.com/product/0636920050209.do
Study Guide for LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech-
Bible overview


Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview

Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA


SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)