Standard Linux Setup

  • * pre-printed file in "~/Common/NewComputerSetUp"
  • create a bootable usb from command line wi
    • from command prompt: usb-creator-gtk
    • Start -- System -- Start Up Creator
  • sudo adduser ******** (b4 u lock yourself out)
  • sudo apt-get update
  • system settings -- add remove software -- updates
  • Start -- Applications -- Internet -- Install Firefox
  • rsync -av --delete jim@192.168.0.101:Common .
  • if you can't ssh or rsync to anyone.
    • from the command line "ssh localhost".
  • sudo apt-get install *
    • openssh-client openssh-server openssh-blacklist openssh-blacklist-extra
    • openjdk-7* default-jre icedtea-7-plugin libswing-layout-java-doc libjna-java-doc
    • visualvm flashplugin-installer
    • mysql-client mysql-common mysql-server
    • php5 php5-cli php5-common php5-cgi php5-mysql
    • apache2 apache2-utils apache2-doc libapache2-mod-php5
    • ntp ntp-doc g++ gcc gcc-doc glibc-doc binutils-doc
    • r-base r-doc-info r-doc-pdf r-mathlib
    • lm-sensors fancontrol sensord read-edid i2c-tools
    • libdvdread4 kubuntu-restricted-extras
    • libxine1-all-plugins pulseaudio pavucontrol mp3gain easymp3gain-gtk
    • kpat pokerth cheese sysinfo grpn plasma-widget-quickaccess deluge cuneiform
  • verify ntp
    • pgrep ntpd (return process number)
    • ntpq -p (list ntp servers accessed)
  • /etc/apache2/passwd
    • htpasswd -c /etc/apache2/passwd/passwords jim
      • New password: *****
        Re-type new password: *****
        adding password for user jim
    • htpasswd /etc/apache2/passwd/passwords tom [-c created new file]
      • New password: *****
        Re-type new password: *****
        adding password for user tom
    • htpasswd /etc/apache2/passwd/passwords (sam, john, ryan)
    • /etc/apache2/passwd/groups *
      • Address: jim tom john ryan
      • Portfolio: jim sam john ryan
  • /etc/apache2/ports.conf *
    • sudo cp ports.conf ports.bck
    • New ports.conf adds port 1977 for John.
  • /etc/apache2/sites-available.000-default.conf *
    • sudo cp 000-default.conf 000-default.bck
    • default: changed root from /var/www/ to /home/jim/Common/www/ and /home/john/www/
      • john'a web pages must also be set in the router.
  • /etc/apache2/mods-enabled
    • sudo ln -s ../mods-available/speling.load
  • /etc/apache2/conf-available
    • hostnameLookup *
      • HostnameLookups On
    • secure-php *
      • <Directory /home/jim/Common/www/PhpScripts/Addr>
        • AuthType Basic
          AuthName "Scripts"
          AuthUserFile /etc/apache2/passwd/passwords
          AuthGroupFile /etc/apache2/passwd/groups
          Require group Address
        </Directory>
      • <Directory /home/jim/Common/www/PhpScripts/Prtf>
        • AuthType Basic
          AuthName "Scripts"
          AuthUserFile /etc/apache2/passwd/passwords
          AuthGroupFile /etc/apache2/passwd/groups
          Require group Portfolio
        </Directory>
  • /etc/apache2/conf-enabled
    • sudo ln -s ../conf-available/hostnameLookup
    • sudo ln -s ../conf-available/secure-php
  • /etc/php5/mods-available/lynch.ini *
    • doc_root = /home/jim/Common/www/PhpScripts
      allow_call_time_pass_reference = Off
      error_reporting = E_ALL & ~E_NOTICE | E_STRICT
      magic_quotes_gpc = Off
      memory_limit = 128M
      output_buffering = 4096
      precision = 14
      session.hash_bits_per_character = 5
      short_open_tag = Off
      display_errors = On
      display_startup_errors = On
  • /etc/php5/apache2/conf.d
    • sudo ln -s ../../mods-available/lynch.ini
  • /etc/php5/cgi/conf.d
    • sudo ln -s ../../mods-available/lynch.ini
  • /etc/php5/cli/conf.d
    • sudo ln -s ../../mods-available/lynch.ini
  • ~/Common/Data/mysqlSetup.sql as root *
    • set global storage_engine=MyISAM;
      set storage_engine=MyISAM;
      create user 'jim'@'localhost' identified by '*****';
      create user 'john'@'localhost' identified by '*****';
      create user 'ryan'@'localhost' identified by '*****';
      create user 'www-data'@'localhost';
      create user 'amarokuser'@'localhost';
      create database address;
      create database household;
      create database stocks;
      create database lottery;
      create database amarokdb;
      grant all privileges on address.* to 'jim'@'localhost';
      grant all privileges on address.* to 'john'@'localhost';
      grant all privileges on address.* to 'ryan'@'localhost';
      grant all privileges on household.* to 'jim'@'localhost';
      grant all privileges on household.* to 'john'@'localhost';
      grant all privileges on household.* to 'ryan'@'localhost';
      grant all privileges on stocks.* to 'jim'@'localhost';
      grant all privileges on stocks.* to 'john'@'localhost';
      grant all privileges on stocks.* to 'ryan'@'localhost';
      grant all privileges on lottery.* to 'jim'@'localhost';
      grant all privileges on lottery.* to 'john'@'localhost';
      grant all privileges on lottery.* to 'ryan'@'localhost';
      grant all privileges on amarokdb.* to 'amarokuser'@'localhost';
      grant select on address.* to 'www-data'@'localhost';
      grant select, insert, update, delete, create, drop, index, alter, create temporary tables on stocks.* to 'www-data'@'localhost';
      source StockSupport/currentOrg.sql;
      source stocks.sql;
      source address.sql;
      source Household/expense.sql;
      source Household/truck.sql;
      source 401k.sql;
      source Cefs/cefs.sql;
  • ~/Common/Data/quotes01, quotesCurrent
  • setup sensors and dvd players
    • sudo sensors-detect
    • sudo /usr/share/doc/libdvdread4/install-css.sh
      • The last time I got an error message, but the video worked. I don't understand but there is nothing to fix.
  • IF nVidia Driver ELSE do nothing.
  • Printer drivers and info on printer.html
    • 12.04 had a driver and it setup quick. 10.04 took along time. But, 12.04 has issues.
    • http://hplipopensource.com/hplip-web/index.html
    • You can't run it inside frames. Open a new web page, cut and paste.
    • Download hplip-3.14.1.run.
    • It is now in ~/Downloads.
    • Move it and give it it's own directory. It's zipped and it's going to grow.
    • sh hplip-3.14.1.run
  • Setup pulseaudio
  • crontab -e
    • # m h  dom mon dow     command
    • 30 13  *  *  1-5 ~/Common/Data/quotes01
    • 31 13  *  *  1-5 ~/Common/Data/quotesCurrent
    • 00 14  *  *  1-5 ~/Common/Data/quotes01
    • 01 14  *  *  1-5 ~/Common/Data/quotesCurrent
  • Firefox -- Tools -- Add-ons
    • Adblock Plus
    • Adblock Plus Pop-up Addon
    • Torrent Finder Toolbar
  • System Settings -- Advanced Tab -- Power Management
    • General Settings -- Let PowerDevil manage screen powersaving
    • Edit Profiles -- Performance
      • NOT -- Dim display when idle for more than
      • When the system is idle for more than -- Do Nothing
  • KOrganizer
    • File -- Import -- Import Calendar
      • Common/jim.ics
  • The "Logitech HD Pro Webcam C920" is USB 2.0 (3.0 ready).
  • Turn down the notifications volume.
    • Start -- System Settings -- Notifications -- Player Settings -- Volume
  • Printer setup:
    • Each user must use the appropriate hplip file from
    • Run the file with sh.
    • After it's done put the hplip file in ~/Common/Downloads/Hplip/.
    • It will leave a large directory where you ran it from. Delete it.
    • It will also leave a .hplip file in the respective HOME directory. Leave it.
  • Scanner setup:
    • ~/Common/Downloads/EpsonV37/iscan-perfection-v370-bundle-1.0.0.x64.deb/install.sh

Valid HTML 4.01 Strict lynchjim.com/Documentation/Admin/setup.html