Rust has kind of a steep learning curve but fortunately the Rust community has created some amazing resources for it. The approach I have taken is an iterative one using the following five resorces.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Install Znuny 7.0.16 on Ubuntu 22.04 | |
| ## https://doc.znuny.org/znuny_lts/releases/installupdate/install.html | |
| ## https://itgovernanceportal.com/otrs/otrs-znuny-ubuntu-nginx/?cn-reloaded=1 | |
| ## https://download.znuny.org/releases/znuny-7.0.16.tar.gz | |
| ## Run as root (sudo su) | |
| cd /opt | |
| wget https://download.znuny.org/releases/znuny-7.0.16.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Mohammad Hafiz bin Ismail <[email protected]> | |
| # blog.mypapit.net | |
| # this is for Ubuntu/Debian Apache server config | |
| #/etc/apache2/sites-available/your-ojs.conf | |
| <VirtualHost *:9080> | |
| ServerAdmin [email protected] | |
| ServerName ojs-site.example.com |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init-- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath>-- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example,vagrant init ubuntu/trusty64.
vagrant up-- starts vagrant environment (also provisions only on the FIRST vagrant up)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #script directory label | |
| DIR=`pwd`"/"$1 | |
| if [ -d $DIR ] | |
| then | |
| PT=$DIR | |
| else | |
| echo "Directory not exist" | |
| exit 0 |