, ,

Author: Gugu Ncube

  • Unix – Set Multi-Line Text To A String Variable Or Text File in Bash

    There are many ways to save a multi line string in bash. This is post just shows how to output a multiline string. The Basics – Quoting Variables From the bash(1) man page: If any characters in word are quoted, the delimiter is the result of quote removal on word, and the lines in the…

  • cassui – Apache Cassandra GUI – Installation

    cassui is a web based interface over Cassandra which runs on any java servlet container like Apache Tomcat or Jetty. In this example, I’ll be using Jetty. Step 1 – Install Jetty Jetty Installation Istructions Step 2 – Install cassui # create download directory mkdir -p ~/build/cassui cd ~/build/cassui # download war wget http://cassui.googlecode.com/files/cassui-0.3-cassandra1.0.war #…

  • DBeaver – Apache Cassandra GUI – Universal Database Manager Installation in Ubuntu

    DBeaver – Universal Database Manager – Installation # download and dbeaver mkdir -p ~/build/dbeaver cd ~/build/dbeaver # download wget http://dbeaver.jkiss.org/files/dbeaver_2.1.1_amd64.deb sudo dpkg -i dbeaver_2.1.1_amd64.deb # link beaver executable sudo ln -s /usr/share/dbeaver/dbeaver /usr/local/bin/dbeaver # download jdbc drivers – which also include support Cassandra # also wget http://dbeaver.jkiss.org/files/driver-pack-2.1.1.zip unzip driver-pack-2.1.1.zip -d driver-pack sudo cp -r driver-pack/*…

  • Jetty – Installation on Linux

    # create download directories mkdir -p ~/build/jetty cd ~/build/jetty # download version=”9.0.0.v20130308″ wget -O jetty-distribution-$version.tar.gz “http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-$version.tar.gz&r=1” # extract the archive – creates directory jetty-distribution-…. tar -xvf jetty-distribution-$version.tar.gz # rename jetty directory sudo mv jetty-distribution-$version /usr/local # create jetty user sudo useradd -U -s /bin/false jetty # Copy Jetty script to run as service sudo chown…

  • Cassandra GUI – The Apache Cassandra GUI Project – Installation

    Installation The Cassandra GUI Project is Java Swing based GUI for viewing data in an Apache Cassandra database. Unfortunately the software is no longer in active development. I still find it great because of its simplicity and that it just works. # create download directories mkdir -p ~/build/cassandra-gui cd ~/build/cassandra-gui # download GUI wget http://cassandra-gui.apache-extras.org.codespot.com/files/cassandra-gui-0.8.0-beta1.zip…

  • wso2carbon – Apache Cassandra GUI – Installation on Linux

    Installation # create build directory mkdir -p ~/build/wso2carbon cd ~/build/wso2carbon # download last wso2 library wget https://dl.dropbox.com/s/ji3srheacuvgl6t/wso2carbon-4.0.0-SNAPSHOT.zip # unzip unzip wso2carbon-4.0.0-SNAPSHOT.zip # set execute rights – they are already set correctly 🙂 #chmod +x wso2carbon-4.0.0-SNAPSHOT/bin/wso2server.sh # create directories to copy the runtime data sudo mkdir -p /var/lib/wso2carbon sudo mv wso2carbon-4.0.0-SNAPSHOT /var/lib/wso2carbon sudo ln -s /var/lib/wso2carbon/wso2carbon-4.0.0-SNAPSHOT/bin/wso2server.sh…

  • Unix – Find Files By Age And Timestamp

    Find files by date and regex find the files modified more than 3 days ago … good candidates for a clean up sudo find . -iregex “.*\(bootcd\|src\).*.zip” -type f -mtime +30 -exec ls -l “{}” \; Finding the newest files # find text files changed today containing the text “gugu” find . -mtime 0 -type…

  • G-WAN Web Server – Installation and Test with Apache Bench

    Global WAN(G-WAN) is a web server developed by Pierre Gauthier. It is written in C and is one of the fastest static web server I’ve ever tested with Apache Bench. # create the download and build directory mkdir -p ~/build/gwan cd ~/build/gwan sudo apt-get install -y sqlite3 libtokyocabinet-dbg libtokyocabinet-dev tokyocabinet-bin gobjc++ # install Go language…

  • Unix – zip – Compress a directory including all its files and sudirectories

    Compress files and directories using ZIP zip -r mydir.zip mydir zip -r mydir.zip /home/myuser/mydir the “-r” option means recursive and adds all files in the named directory Zip only certain files, recursively zip -R AllMyDocs.zip “*.doc” The command above saved all .doc files in the current directory as well as the subdirectories into AllMyDocs.zip. The…

  • ABYSS – Tiny HTTP/1.1 Web Server For Serving Static Files

    ABYSS Web Server ABYSS is a micro HTTP/1.1 compliant web server written by Moez Mahfoudh. It was designed in to be fast, portable and consume very low resources. # create build directory mkdir -p ~/build/abyss cd ~/build/abyss # download and build abyss wget http://abyss.sourceforge.net/abyss-0.3.tar.gz tar -xvf abyss-0.3.tar.gz cd abyss/src make cd .. # Config File:…