osTicket Automated Install Script Rumi, December 13, 2021 osTicket is one of the leading open source ticketing systems. Here’s an easy way to spin up an instance on Ubuntu. Note: This script is purely intended for use in short-lived demo systems. The passwords are obvious (password !?) and there is no hardening applied to any of this system. DO NOT USE THIS SCRIPT IN PRODUCTION. Create Shell Script Spin up an Ubuntu instance then create a new shell script and give it executable permissions: touch osTicket.sh chmod +x osTicket.sh Script Content Paste this into the script: #!/usr/bin/env bash sudo apt update -y sudo apt install unzip apache2 php7.2 php7.2-mysql mysql-server -y sudo a2enmod rewrite sudo rm /var/www/html/index.html mkdir osticket && cd osticket wget https://github.com/osTicket/osTicket/releases/download/v1.14.1/osTicket-v1.14.1.zip unzip osTicket-v1.14.1.zip sudo mv upload/* /var/www/html sudo mv /var/www/html/include/ost-sampleconfig.php /var/www/html/include/ost-config.php sudo chmod 0666 /var/www/html/include/ost-config.php sudo mysql -u root -e "CREATE DATABASE osticket;" sudo mysql -u root -e "CREATE USER 'osticket'@'localhost' IDENTIFIED BY 'password';" sudo mysql -u root -e "GRANT ALL PRIVILEGES ON * . * TO 'osticket'@'localhost';" sudo chown ubuntu:ubuntu /etc/apache2/sites-available/000-default.conf cat <<EOF >> /etc/apache2/sites-available/000-default.conf <Directory /var/www/> AllowOverride All </Directory> EOF sudo service apache2 restart Install via UI Open a browser and navigate to http://IPADDRESS/setup and follow the wizard. The script has created a database already (I advise adjusting these details for security): Database Name: osticket Database User: osticket Database Password: password Note: You may get an HTTP 500 error during the install. That’s fine. Just refresh the page and it’ll work. Cleanup after Install After the installation, you’ll need to delete the setup directory and reset some file permissions. Just run this: sudo rm -rf /var/www/html/setup sudo chmod 0644 /var/www/html/include/ost-config.php Conclusion At this point, you should have a fully working osTicket installation. Enjoy! Src: https://agardner.net/osticket-automation/ Related Administrations Configurations (Linux) Scripts osTicketUbunt 18.04Ubuntu 18
perl(Net::SSLeay) is needed by webmin July 16, 2015 So the Webmin on Redhat/CentOS is now requiring this particular perl module to be pre-installed before the RPM installer begins. A very short cut to install this module by using yum- yum install -y perl-Net-SSLeay Voila! your done. Related Read More
LAMP on Ubuntu 16.04 using Tasksel May 12, 2018 Quick Install Using Tasksel Instead of installing Apache, MySQL, and PHP separately, tasksel offers a convenient way to get a LAMP stack running quickly. Install tasksel if not already installed by default. sudo apt install tasksel Use tasksel to install the LAMP stack. sudo tasksel install lamp-server Enter the prompt… Read More
Disable swap in Linux February 24, 2020 Identify configured swap devices and files with cat /proc/swaps. Turn off all swap devices and files with swapoff -a. Remove any matching reference found in /etc/fstab. Optional: Destroy any swap devices or files found in step 1 to prevent their reuse. Due to your concerns about leaking sensitive information, you… Read More