Linux Commands

Linux Commands

  • Linux Commands

    GITHUB

    1) Install GitLab On Ubuntu 16.04 / 17.10 / 18.04 LTS GitLab (Git-repository manager), an open source version control platform similar to Gitbub, is robuts, scalable and a great alternative to Github. GitLab has rich features like issues and time tracking, repository branching, file locking and tagging, merging and many others features that you will find in a typical source control platform.. GitLab streamlines your collaborative workflows. Visualize, prioritize, coordinate, and track your progress your way with GitLab’s flexible project management tools. This brief tutorial is going to show students and new users how to easily install GitLab on Ubuntu 16.04 / 17.10 and 18.04… To install GitLab on Ubuntu,…

  • Linux Commands

    METABASE

    1) Installing metabase as service on ubuntu 16.04 1. Download the metabase metabase.jar file from the link https://www.metabase.com/start/other.html 2. The most basic way of running Metabase is to open up a terminal and use Java to launch the application. This is the only command you’ll need: java -jar metabase.jar This will launch a Metabase server on port 3000 by default.   2) Metabase as Service: 1. Go to the path /etc/systemd/system 2. Create a file with the name metabase.service 3. Inside the file write below code: [Unit] Description=Metabase service [Service] User=root # The configuration file application.properties should be here: #change this to your workspace WorkingDirectory=/var/www/html/chart #path to executable: executable is a…

  • Linux Commands

    How To Set Relay Postfix on Server

    I recently had to re-provision a VM which I use to run a bunch of cron jobs and email me reports. I use Ubuntu as my OS, Postfix as my mail server, and Gmail for my email account.. The details to make this happen can be found in quite a few places online, but the information was a bit scattered and didn’t match my situation exactly. Steps to Success 1. Edit /etc/postfix/main.cf # sets gmail as relay relayhost = [smtp.gmail.com]:587 # use tls smtp_use_tls=yes # use sasl when authenticating to foreign SMTP servers smtp_sasl_auth_enable = yes # path to password map file smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd # list of CAs to trust…

  • Linux Commands

    Configure Apache With Self-Signed TLS/SSL Certificate on Ubuntu 16.04

    Step 1: Generating the certificate To create a private key, run the commands below cd /etc/ssl/private openssl genrsa -aes128 -out server.key 2048When creating a private key, you will be prompted to create and confirm and password or passphrase. However, it’s best to create a key without a passphrase. To remove the passphrase from the key you just created, run the commands below. openssl rsa -in server.key -out server.key Step 2: Create A Certificate Signing Request After creating the private key, run the commands below to create a certificate signing request using the server private key. Certificate signing request or CSR is used to provide some details of the entity and…

  • Email,  Linux Commands

    Command to check postfix configuration

    root@ubuntu:/var/log# postconf -nalias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliasesappend_dot_mydomain = nobiff = noinet_interfaces = allinet_protocols = allmailbox_size_limit = 0mydestination = $myhostname, ubuntu, localhost.localdomain, , localhostmyhostname = ubuntumynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128readme_directory = norecipient_delimiter = +relayhost =smtp_tls_session_cache_database = btree:${data_directory}/smtp_scachesmtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinationsmtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pemsmtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.keysmtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scachesmtpd_use_tls = yes