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 *
    • apache2 apache2-doc binutils-doc default-jdk default-jre
    • fancontrol flashplugin-installer i2c-tools
    • kubuntu-restricted-extras
    • g++ gcc gcc-doc glibc-doc grpn
    • libapache2-mod-php libdvdread4 kpat libjna-java-doc
    • lm-sensors mysql-client mysql-common mysql-server
    • net-tools ntp ntp-doc pokerth pulseaudio
    • php php-cli php-common php-cgi php-mysql
    • r-base r-doc-info r-doc-pdf r-mathlib ssh
  • verify ntp
    • pgrep ntpd (return process number)
    • ntpq -p (list ntp servers accessed)
  • /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/apache2/mods-enabled
    • sudo ln -s ../mods-available/speling.load
  • /etc/apache2/
    • sudo mkdir 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, mieko )
    • /etc/apache2/passwd/groups *
      • Address: jim tom john ryan mieko
      • Portfolio: jim sam john ryan mieko
  • /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/php/7.2/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/php/7.2/apache2/conf.d
    • sudo ln -s ../../mods-available/lynch.ini
  • /etc/php/7.2/cgi/conf.d
    • sudo ln -s ../../mods-available/lynch.ini
  • /etc/php/7.5/cli/conf.d
    • sudo ln -s ../../mods-available/lynch.ini
  • export stock quotes from my.yahoo.com
  • ~/Common/Data/quotesCurrent
  • ~/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 'mieko'@'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 address.* to 'mieko'@'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 household.* to 'mieko'@'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 stocks.* to 'mieko'@'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 lottery.* to 'mieko'@'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;
  • setup sensors and dvd players
    • sudo sensors-detect
    • sudo /usr/share/doc/libdvdread4/install-css.sh
      • This is now libdvdcss but you have to download it from somewhere else and install it yourself.
  • IF the nVidia gtx 660 graphics card is in this computer see setup instructions i7-3770 eCenter.
  • crontab -e
    • I no longer use crontab but if ever it is needed again ...
    • # 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 screescaevola avery n 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:
    • With 18.04.4 everything is included in the operating system. Just run "Printer Setup" in "system-settings". If older OS
      • Each user must use the appropriate hplip file. They are on the computer at "~/Common/Downloads/Hplip" but they can be downloaded 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:
    • epson doesn't support anything linux past kubunt/ubuntu 14.04.
    • If your operating system is that old or older there are files at
      ~/Common/Downloads/EpsonV37/iscan-perfection-v370-bundle-1.0.0.x64.deb/install.sh
  • Instaling another hard drive / ssd
    • http://www.skullbox.net/newsda.php
    • sudo fdisk /dev/sdb
      • Command (m for help):
        • m
          • table of command actions
      • Command (m for help):
        • p
          • disk info
      • Command (m for help):
        • n
        • e=extended p=primary (1-4)
          • p
        • Partition number:
          • 1
        • First cylinder:
          • default
        • Last cylinder:
          • default
      • Command (m for help):
        • p
          • verify it took
      • Command (m for help):
        • w
          • save and exit
    • sudo mkfs -t ext4 /dev/sdb1
      • formats partion
    • sudo blkid -o list /dev/sdb1
      • 6734cd8b-78fc-40f1-8832-a82ef4bf7e57
    • sudo kate /etc/fstab
      • add line
        • UUID=32f5cbb1-c695-401e-9e18-80253cfd1ccf    /home/jim/Movies1     ext4     defaults     1     2
      • for the 4TB hd
        • UUID=83df67d1-3898-41bb-b1e5-291651ecea85    /home/jim/Movies2     ext4     defaults     1     2
    • sudo mount /dev/sdb1
    • sudo mount /dev/sdd1
    • mount
      • verify
    • reboot
    • sudo chown jim /home/jim/Movies1
    • sudo chown jim /home/jim/Movies2
  • 2020-03-19 01:51:30 PM left off here (finished)

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