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
- kubuntu-restricted-extras
- g++ gcc gcc-doc glibc-doc grpn
- libapache2-mod-php kpat
- mysql-client mysql-common mysql-server
- net-tools ntp ntp-doc pokerth
- 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)
- **********************************
- restart apache2
- sudo systemctl start/stop/restart/reload apache2
- sudo apachectl configtest
- /etc/apache2/apache2.conf
- #<Directory /var/www/>
- <Directory /home/jim/Common/www/>
- /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/lynchjim.com/
- change permissions
- Check /var/log/apache2/error.log.
- access to / denied (filesystem path '/home/jim/Common')
because search permissions are missing on a component of
the path
- Starting from the root directory, ls -l home. If home
isn't 755, make it.
Do not -R recursive, just that
directory.
- Do the same for jim directory, Common and www.
- **********************************
- /etc/apache2/conf-available
- 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/secure-php.conf
- /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/php/7.2/mods-available/lynch.ini *
- doc_root = /home/jim/Common/www/PhpScripts
display_errors = On
display_startup_errors = On
- /etc/php/8.3/apache2/conf.d
- sudo ln -s /etc/php/8.3/mods-available/lynch.ini
- /etc/php/8.3/cgi/conf.d
- sudo ln -s ../../mods-available/lynch.ini
- /etc/php/8.3/cli/conf.d
- sudo ln -s ../../mods-available/lynch.ini
- ~/Common/Data/mysqlSetup.sql as root *
- enter as sudo
- 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;
- 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 screen powersaving
- Edit Profiles -- Performance
- NOT -- Dim display when idle for more than
- When the system is idle for more than -- Do Nothing
- ***************I don't understand this***************
- export stock quotes from my.yahoo.com
- ~/Common/Data/quotesCurrent
- **********************************
- The "Logitech HD Pro Webcam C920" is USB 2.0 (3.0 ready).
- I'm not using the webcam so I skipped this.'
- Turn down the notifications
volume.
- Start -- System Settings -- Notifications --
Player Settings -- Volume
- Can't find Volume, skipped.
- Printer setup:
- I didn't do anything. It just works.
- 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:
- New scanner, Brother ADS-1350W
- Instaling another hard drive / ssd
- http://www.skullbox.net/newsda.php
- sudo fdisk /dev/sdb
- Command (m for help):
- Command (m for help):
- Command (m for help):
- n
- e=extended p=primary (1-4)
- Partition number:
- First cylinder:
- Last cylinder:
- Command (m for help):
- Command (m for help):
- sudo mkfs -t ext4 /dev/sdb1
- 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
- reboot
- sudo chown jim /home/jim/Movies1
- sudo chown jim /home/jim/Movies2
- 2025-09-15 01:56:00 PM left off here
(finished)
|
|
|