Skip to content

meese-enterprises/karameese.com

Repository files navigation

karameese.com

DeepSource

Information

KaraOS is a highly modified fork of the awesome work of AaronOS by Aaron Adams. This project does not make any claims of ownership over the base aOS code, only the modifications which have since been made. You may see the AaronOS EULA here.

Setup

PHP Setup

  • sudo chmod -R 777 /var/lib/jenkins/workspace/karameese.com to grant access to PHP and Node

localhost server setup

  1. Symlink /var/www to the directory of the repository.
  • sudo ln -s ~/Documents/karameese.com /var/www/karameese.com
  1. Allow access to the site root.
  • sudo chmod -R 777 /var/www/karameese.com
  1. Configure Apache2 to serve karameese.com
  • sudo cp ./apache.conf /etc/apache2/sites-available/karameese.com.conf
  • sudo cp ./alias.conf /etc/apache2/mods-available/alias.conf
    • Removes the alias of our icons folder to a different, undesired location.
  • sudo a2dissite 000-default.conf
  • sudo a2ensite karameese.com.conf
  • sudo a2enmod rewrite
  • sudo service apache2 restart
  • Confirm it worked with a2query -s
  1. Visit the site by opening http://localhost

Email Setup

Add contactform@karameese.com to your email contacts, so the messages won't be filtered out as spam.

Jenkins Setup

  1. Install Jenkins
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \
  /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
  https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
  1. Enable Jenkins to run on startup with sudo systemctl enable jenkins
  2. Allow Jenkins through your firewall with sudo ufw allow 8083 or whatever port you're using
  3. Refresh the firewall with sudo ufw reload
  4. Change /etc/sudoers to include jenkins ALL=(ALL) NOPASSWD: ALL beneath "User privilege specification".
  5. Copy config.xml to /var/lib/jenkins/jobs/karameese.com to automatically configure Jenkins.

Run Jenkins on a Custom Port

  1. sudo nano /etc/default/jenkins
  2. Scroll down until you find the following line:
HTTP_PORT=8080
  1. Change the variable value to your port of choice
  2. Restart Jenkins with sudo systemctl restart jenkins