Difference between revisions of "Desktop:X1 Nano"

From RadonWiki
Jump to: navigation, search
Line 6: Line 6:
 
  Eset NOD32 Antivirus 15.0.21.0
 
  Eset NOD32 Antivirus 15.0.21.0
 
  MS Office Professional Plys 2013 - Excel Only (Intend to replace with Office 365)
 
  MS Office Professional Plys 2013 - Excel Only (Intend to replace with Office 365)
PuTTY - 64 Bit version 0.76
 
 
  Greenshot (Greenshot-RELEASE-1.2.10.6)
 
  Greenshot (Greenshot-RELEASE-1.2.10.6)
 +
Notepad++ 64-bit 8.2
 +
PuTTY - 64 Bit version 0.76
 
  GIT - 2.34.1 (Accepted all defaults)
 
  GIT - 2.34.1 (Accepted all defaults)
 +
Wampserver32 3.5.3 (Use tool https://wampserver.aviatechno.net/files/tools/check_vcredist.exe to check pre-requisites)
 +
MySQL Workbench 8.0.27 (Installed Client Tools Only, as WAMP Server installs MariaDB Server)
  
 
Restore Files
 
Restore Files
Line 44: Line 47:
  
  
== Install WAMP DEV Environment ==
+
== Configure DEV Environment (GIT/WAMP/MariaDB/NetBeans) ==
  SSH Public/Private Key added to GIT Server
+
  Configure GIT
 +
  SSH Public/Private Key added to GIT Server
 
   ssh-keygen –t rsa –C "matt.carter@radon.nz"
 
   ssh-keygen –t rsa –C "matt.carter@radon.nz"
 
   Accept default name, and enter your own pass phrase
 
   Accept default name, and enter your own pass phrase
Line 52: Line 56:
 
     id_rsa.pub (public key)
 
     id_rsa.pub (public key)
 
   id_rsa.pub copied to the gitolite-admin respository on the server as keydir/<username>.pub
 
   id_rsa.pub copied to the gitolite-admin respository on the server as keydir/<username>.pub
   But copied files (id_rsa and id_rsa.pub) from old computer
+
   But copied files (id_rsa and id_rsa.pub) from old computer (to retain existing credentials)
  
Configure GIT
 
 
   Create file ~/.ssh/config with the following
 
   Create file ~/.ssh/config with the following
<source lang='sh'>
+
    Host git.radon.nz
Host git.radon.nz
+
    Hostname git.radon.nz
Hostname git.radon.nz
+
    Port 22
Port 22
+
    User gitolite3
User gitolite3
+
    UserKnownHostsFile ~/.ssh/known_hosts
UserKnownHostsFile ~/.ssh/known_hosts
+
</source>
+
  
Clone Repositories
+
  Clone Ticktock Repository
<source lang='sh'>
+
    mkdir /c/GIT
mkdir /c/GIT
+
    cd /c/GIT
cd /c/GIT
+
    git clone git.radon.nz:ticktock
git clone git
+
</source>
+
 
+
WAMP - wampserver3.1.3_x86 (have to install all the prerequisite VC distributables both 32 and 64 bit)
+
MySQL Workbench 6.3.10 https://dev.mysql.com/downloads/file/?id=474210
+
NetBeans 8.2 64 Bit with PHP http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-php-windows-x64.exe
+
Clone GIT Respository
+
[[File:Netbeans_GIT.png]]
+
  
Configure Web Server
+
  Configure WAMP
 
   Edit '''hosts''' file (C:\Windows\System32\drivers\etc\hosts) and add line "127.0.0.1 ticktock"
 
   Edit '''hosts''' file (C:\Windows\System32\drivers\etc\hosts) and add line "127.0.0.1 ticktock"
 +
  Run WAMP and change PHP to version 5.6
 
   Edit '''httpd-vhosts.conf''' file (within wampserver) and add the following Virtual Hosts
 
   Edit '''httpd-vhosts.conf''' file (within wampserver) and add the following Virtual Hosts
 
<source lang='apacheconf'>
 
<source lang='apacheconf'>
<VirtualHost *:80>
 
  ServerName localhost
 
  ServerAlias localhost
 
  DocumentRoot "C:/GIT/XeroApi/xero-php-oauth2-app"
 
  <Directory "C:/GIT/XeroApi/xero-php-oauth2-app">
 
    Options +Indexes +Includes +FollowSymLinks +MultiViews
 
    AllowOverride All
 
    Require local
 
  </Directory>
 
</VirtualHost>
 
 
<VirtualHost ticktock:80>
 
<VirtualHost ticktock:80>
 
   ServerName ticktock
 
   ServerName ticktock
Line 103: Line 87:
 
</source>
 
</source>
  
Configure MySQL
+
Configure MariaDB
   Add MySQL Bin path to PATH environmental (i.e. C:\WAMP\bin\mysql\mysql5.7.21\bin\)
+
   Add MariaDB Bin path to PATH environmental (i.e. C:\wamp\bin\mariadb\mariadb10.4.13\bin\)
 
   Create database users for ticktock
 
   Create database users for ticktock
 
<source lang='mysql'>
 
<source lang='mysql'>
 +
mysql -uroot
 
create user 'ticktock'@'localhost' identified by 'ticktock';
 
create user 'ticktock'@'localhost' identified by 'ticktock';
 
create user 'ticktock_dev'@'localhost' identified by 'ticktock_dev';
 
create user 'ticktock_dev'@'localhost' identified by 'ticktock_dev';
Line 116: Line 101:
 
grant select on ticktock.* to 'ticktock_demo'@'localhost';
 
grant select on ticktock.* to 'ticktock_demo'@'localhost';
 
</source>
 
</source>
 +
 +
Configure Ticktock and test
 +
  Edit '''hosts''' file (C:\Windows\System32\drivers\etc\hosts) and add line "127.0.0.1 ticktock"
 +
  Create/Edit and run '''~\_db\replication\replicate.bat''' (note need to run bin\plink.exe manually once to accept new remote host)
 +
  Create/Edit '''~\app\Config\database.php''' (Note: WAMP MariaDB rund on port 3307)
 +
  Test http://ticktock/ and ensure working
 +
 
 +
 +
NetBeans 8.2 64 Bit with PHP http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-php-windows-x64.exe
 +
Clone GIT Respository
 +
[[File:Netbeans_GIT.png]]
  
 
[[Category:Desktop]]
 
[[Category:Desktop]]

Revision as of 17:29, 9 January 2022

Windows 11 New Computer Setup December 2021/January 2022

Fresh Installs

Chrome - Version 96.0.4664.110 (Official Build) (64-bit)
KeePass 2.49 
Eset NOD32 Antivirus 15.0.21.0
MS Office Professional Plys 2013 - Excel Only (Intend to replace with Office 365)
Greenshot (Greenshot-RELEASE-1.2.10.6)
Notepad++ 64-bit 8.2
PuTTY - 64 Bit version 0.76
GIT - 2.34.1 (Accepted all defaults)
Wampserver32 3.5.3 (Use tool https://wampserver.aviatechno.net/files/tools/check_vcredist.exe to check pre-requisites)
MySQL Workbench 8.0.27 (Installed Client Tools Only, as WAMP Server installs MariaDB Server)

Restore Files

Map Network Drives to NAS (M:=\\radonnas\Multimedia, H:=\\radonnas\homes\Matt) - User:Admin
KeePass Database and Key (MCARTER.bkdx MCARTER.key)

Restore MYOB EXO Employee Services

Copy to directory C:\CLIENTS\_COMACC 
Run File network
Setup - Special Options - Import - File Location C:\CLIENTS\_COMACC\
Setup - Backup Path - C:\CLIENTS\_BACKUP\MYOB_PAYROLL\

Install Quickbooks 2008/09 SP3

Apply Registry Fix - regfix_QB_Win10.reg
Restart Computer
Mount Image QB0809_SP3.iso
Run autorun.exe
...License Key: 85301-26735-37644-220162
...Install Quickbooks with the Company File Server
...Installs .NET 1.1
Run QuickBooks
...Select General Business
...Open an Existing Company File
...Activate Customer ID: 1247912
Can no longer activate license (as this version has been retired), but created script QB_Hack.ps1 to reset access
#Changes qbmode to the value as per installation, so can access QB 6 more times before activation
$file = Get-Content C:\Users\Public\Documents\Intuit\qbw.ini
($file).Replace($file.Get(1),'Qbmode=000063c07b28') | Out-File C:\Users\Public\Documents\Intuit\qbw.ini


Configure DEV Environment (GIT/WAMP/MariaDB/NetBeans)

Configure GIT
  SSH Public/Private Key added to GIT Server
  ssh-keygen –t rsa –C "matt.carter@radon.nz"
  Accept default name, and enter your own pass phrase
  This creates two files in folder ~/.ssh/
    id_rsa (private Key) 
    id_rsa.pub (public key)
  id_rsa.pub copied to the gitolite-admin respository on the server as keydir/<username>.pub
  But copied files (id_rsa and id_rsa.pub) from old computer (to retain existing credentials)
  Create file ~/.ssh/config with the following
    Host git.radon.nz
    Hostname git.radon.nz
    Port 22
    User gitolite3
    UserKnownHostsFile ~/.ssh/known_hosts
  Clone Ticktock Repository
    mkdir /c/GIT
    cd /c/GIT
    git clone git.radon.nz:ticktock
 Configure WAMP
  Edit hosts file (C:\Windows\System32\drivers\etc\hosts) and add line "127.0.0.1 ticktock"
  Run WAMP and change PHP to version 5.6
  Edit httpd-vhosts.conf file (within wampserver) and add the following Virtual Hosts
<VirtualHost ticktock:80>
  ServerName ticktock
  ServerAlias ticktock
  DocumentRoot "C:/GIT/ticktock/app/webroot"
  <Directory "C:/GIT/ticktock/app/webroot">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

Configure MariaDB

 Add MariaDB Bin path to PATH environmental (i.e. C:\wamp\bin\mariadb\mariadb10.4.13\bin\)
 Create database users for ticktock
mysql -uroot
create user 'ticktock'@'localhost' identified by 'ticktock';
create user 'ticktock_dev'@'localhost' identified by 'ticktock_dev';
create user 'ticktock_demo'@'localhost' identified by 'ticktock_demo';
grant all privileges on ticktock.* to 'ticktock'@'localhost';
grant all privileges on ticktock_dev.* to 'ticktock_dev'@'localhost';
grant all privileges on ticktock_demo.* to 'ticktock_demo'@'localhost';
grant select on ticktock.* to 'ticktock_dev'@'localhost';
grant select on ticktock.* to 'ticktock_demo'@'localhost';

Configure Ticktock and test

 Edit hosts file (C:\Windows\System32\drivers\etc\hosts) and add line "127.0.0.1 ticktock"
 Create/Edit and run ~\_db\replication\replicate.bat (note need to run bin\plink.exe manually once to accept new remote host)
 Create/Edit ~\app\Config\database.php (Note: WAMP MariaDB rund on port 3307)
 Test http://ticktock/ and ensure working
 
NetBeans 8.2 64 Bit with PHP http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-php-windows-x64.exe
Clone GIT Respository
Netbeans GIT.png