User Tools

Site Tools


software_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software_setup [2023/05/02 13:28] – fixed typo in rsync paulsoftware_setup [2025/11/06 16:57] (current) reno
Line 32: Line 32:
  
   - Run an update and upgrade. <code bash Terminal>sudo apt-get update && sudo apt-get upgrade -y</code>   - Run an update and upgrade. <code bash Terminal>sudo apt-get update && sudo apt-get upgrade -y</code>
-  - Install required applications/services. <code  bash Terminal>sudo apt-get install x11vnc ssh libsdl1.2-dev automake autoconf python3-pip samba freeglut3 screen wine32-development wine-development ntpdate apache2 php libapache2-mod-php php-mysqli p7zip-full libssl-dev libncurses5-dev debhelper autossh git net-tools python3-tk -+  - Install required applications/services. <code  bash Terminal>sudo apt-get install x11vnc ssh libsdl1.2-dev automake autoconf python3-pip samba screen wine ntpdate apache2 php libapache2-mod-php php-mysqli p7zip-full libssl-dev libncurses5-dev debhelper autossh git net-tools python3-tk python3-numpy python3-pandas python3-matplotlib -y</code>
-sudo pip3 install numpy pandas matplotlib</code>+
   - Add the fingerprint for exp-studies by connecting to it via ssh. <code bash Terminal>ssh arqxozone@exp-studies.tor.ec.gc.ca</code> Exit the ssh connection. <code bash Terminal>exit</code>   - Add the fingerprint for exp-studies by connecting to it via ssh. <code bash Terminal>ssh arqxozone@exp-studies.tor.ec.gc.ca</code> Exit the ssh connection. <code bash Terminal>exit</code>
   - Restart the apache service. <code bash Terminal>sudo service apache2 restart</code>   - Restart the apache service. <code bash Terminal>sudo service apache2 restart</code>
-  - Move the required files onto the linux computer from: <code bash Terminal>rsync brewer@142.97.231.40:"/home/brewer/brews/QMS/Software Management/Software -Network Support/Brewer_linux" . -rtvh+  - Move the required files onto the linux computer from: <code bash Terminal>rsync cbsnet@cbsn.hiitravel.ca:"/home/cbsnet/brews/QMS/Software_Management/Software_Network_Support/Brewer_linux" . -rtvh
 cd "Brewer_linux"</code> cd "Brewer_linux"</code>
   - Move the files to the appropriate location. <code bash Terminal>sudo cp dosbox /bin/dosbox   - Move the files to the appropriate location. <code bash Terminal>sudo cp dosbox /bin/dosbox
 +sudo mv icfb /bin/
 +sudo mv getbrew /bin/
 +sudo mv tailb /bin/
 sudo chmod 777 /bin/dosbox sudo chmod 777 /bin/dosbox
 +sudo chmod 777 /bin/icfb
 +sudo chmod 777 /bin/getbrew
 +sudo chmod 777 /bin/tailb
 cp -r schedule_task ~/ cp -r schedule_task ~/
 +rsync -rthv --delete -e "ssh -i "schedule_task/id_depot"" remsens_ext@depot.cmc.ec.gc.ca:/incoming/brewer_programs/schedule_task/ /home/brewer/schedule_task/
 cp Desktop/* ~/Desktop/ -r cp Desktop/* ~/Desktop/ -r
 mkdir ~/brews mkdir ~/brews
 chmod 777 ~/brews</code> chmod 777 ~/brews</code>
   - Setup the log form<code bash Terminal>sudo /etc/init.d/apache2 reload   - Setup the log form<code bash Terminal>sudo /etc/init.d/apache2 reload
-cd brewer_log/linux +cd brewer_log 
-sudo sh brewer_log_form_install_1.sh ; sh brewer_log_form_install_2.sh +sudo sh brewer-logform-mitgrate.sh
-sudo chmod -R 775 /var/www/html/Brewer +
-chmod 600 "/var/cache/BrewerLogForms/ftp/authentication/brewer_pk_priv.pem" +
-chmod 777 /var/cache/BrewerLogForms -R+
 </code> </code>
   - Setup Samba user/password <code bash Terminal>sudo smbpasswd -a brewer</code>   - Setup Samba user/password <code bash Terminal>sudo smbpasswd -a brewer</code>
   - Add the user %%brewer%% to the dialout group<code bash Terminal>sudo usermod -a -G dialout $USER</code>   - Add the user %%brewer%% to the dialout group<code bash Terminal>sudo usermod -a -G dialout $USER</code>
-  - Download year mover and creator script from the github (Request access from Reno.Sit@canada.ca if you do not have access.)<code bash Terminal>git clone https://<User>:<Token>@github.com/<User>/Brewer_setup.git 
-mv Brewer_setup/creator.py ~/schedule_task/creator.py 
-mv Brewer_setup/year_mover.py ~/schedule_task/year_mover.py 
-mv Brewer_setup/program_exclude.txt ~/schedule_task/ 
-mv Brewer_setup/brewer_restart.py ~/schedule_task/ 
-mv Brewer_setup/brewer_restart.sh ~/schedule_task/ 
-mv Brewer_setup/timelogger.py ~/schedule_task/ 
-chmod +x ~/schedule_task/*.sh 
-chmod +x ~/schedule_task/*.py 
-sudo rm Brewer_setup/ -r</code> 
   - Setup the crontab. <code bash Terminal>crontab -e</code>Add the following to the end of the crontab. <code | crontab>0 16 * * * /usr/bin/python3 /home/brewer/schedule_task/year_mover.py   - Setup the crontab. <code bash Terminal>crontab -e</code>Add the following to the end of the crontab. <code | crontab>0 16 * * * /usr/bin/python3 /home/brewer/schedule_task/year_mover.py
-25,55 0-3,5-22 * * * /home/brewer/schedule_task/rsync.sh +#25,55 * * * /home/brewer/schedule_task/rsync.sh  
-15 4 * * * /home/brewer/schedule_task/rsync-all.sh +#15 4 * * * /home/brewer/schedule_task/rsync-program.sh   
-0                     /var/cache/BrewerLogForms/ftp/scripts/brewer_log_forms_ftp.sh -b +#31 06,18 * * * /usr/bin/python3 /home/brewer/schedule_task/timelogger.py  
-0                     /var/cache/BrewerLogForms/updates/update_log_form.sh +#45 * * * python3 /home/brewer/schedule_task/brewer_restart.py  
-  0          1          cd /var/www/html/Brewer/Forms/DB_Backup/; ./GenerateLocalCache.bat; +#10,20,30,40,50,0 * * * * /home/brewer/schedule_task/bfileold.py  
-31 06,18 * * * /usr/bin/python3 /home/brewer/schedule_task/timelogger.py +32 * * * * rsync -vhrult -e "ssh -i "/home/brewer/schedule_task/id_depot"" /home/brewer/dosbox_pidstat/ remsens_ext@depot.cmc.ec.gc.ca:/incoming/brewer/pidstat/ 
-45 * * * * python3 /home/brewer/schedule_task/brewer_restart.py+4 20 * * * rsync -rthv --delete -e "ssh -i "/home/brewer/schedule_task/id_depot"" --exclude-from /home/brewer/schedule_task/schedule_task_exclude.txt remsens_ext@depot.cmc.ec.gc.ca:/incoming/brewer_programs/schedule_task/ /home/brewer/schedule_task/ 
 +0,30 * * * * /var/www/html/Brewer/Forms/scripts/client/pull-cache.sh 
 +0 0 * * * rsync -rthv --delete -e "ssh -i "/home/brewer/schedule_task/id_depot"" remsens_ext@depot.cmc.ec.gc.ca:/incoming/brewer_programs/Brewer_log/ /var/www/html/Brewer/Forms/ 
 +* * * * /var/www/html/Brewer/Forms/scripts/client/push-logs.sh
  
 </code> Setup the root's crontab <code bash Terminal>sudo crontab -e</code> Add the following code into the crontab <code bash crontab>0 20 * * * systemctl restart systemd-timesyncd.service</code> </code> Setup the root's crontab <code bash Terminal>sudo crontab -e</code> Add the following code into the crontab <code bash crontab>0 20 * * * systemctl restart systemd-timesyncd.service</code>
-  - Setup the VNC, and the clock to auto start. Run the [[creator.py|creator script]]<code bash Terminal> python3 ~/schedule_task/creator.py</code>+  - Setup the VNC, and the clock to auto start. Run the [[creator.py|creator script]]<code bash Terminal> python3 ~/schedule_task/BrewerConfig.py</code>
     - Select 'Auto start script' button, then 'Add a new auto start script' then select 'vnc'     - Select 'Auto start script' button, then 'Add a new auto start script' then select 'vnc'
     - Select 'Auto start script' button, then 'Add a new auto start script' then select 'clock'     - Select 'Auto start script' button, then 'Add a new auto start script' then select 'clock'
-  - Setup samba via the [[creator.py|creator.py]] (You must run this with sudo)+  - Setup samba via the [[creator.py|creator.py]] (relaunch BrewerConfig.py with sudo) 
 +    - Follow the prompts till the end. 
 +  - Disable wayland <code |sudoedit /etc/gdm3/custom.conf>WaylandEnable=false</code> <code>sudo systemctl restart gdm3</code> 
 +  - Set http://localhost/Brewer/Forms/BrewerLogForm.php as the default home page for firefox. 
 +  - Set the computer sleep turn off display to Never
  
-===== Setting up the brewer software ===== 
-  - Move the brewer folder (I.E. Br#026) into <code bash Terminal>/home/brews/</code> 
-  - Run the [[creator.py|creator script]]<code bash Terminal> python3 ~/schedule_task/creator.py</code> 
-    - Pick option 1 and follow the instruction on the screen 
-    - Pick option 2 to create the data transfer scripts 
-    - Pick option 4 to config the dosbox config and follow the instruction on the screen 
-    - Pick option 5 to setup the auto start script. Type as the script name//br###//(where ### is the brewer serial number) to run the brewer script. 
-    - Pick option 7 to setup the shortcuts creator 
  
 ===== TO BE ADDED ===== ===== TO BE ADDED =====
Line 91: Line 83:
 sudo vi /etc/apache2/envvars\\ sudo vi /etc/apache2/envvars\\
 change the User and Group to brewer change the User and Group to brewer
- 
-run chmod 600 /var/cache/BrewerLogForms/ftp/authentication/brewer_pk_priv.pem 
  
 Disable Wayland Disable Wayland
 <webcode name="Default" frameborder=0 width=100% scrolling=yes externalResources="," renderingMode=story > <webcode name="Default" frameborder=0 width=100% scrolling=yes externalResources="," renderingMode=story >
-<code |sudoedit /etc/gdm3/custom.conf>+<code | /etc/gdm3/custom.conf>
 WaylandEnable=false</code> WaylandEnable=false</code>
-<code>sudo systemctl restart gdm3</code>+<code | Terminal>sudo systemctl restart gdm3</code>
software_setup.1683034124.txt.gz · Last modified: 2023/05/02 13:28 by paul