Nextcloud running on Debian Stretch

How to Install Nextcloud on Debian 9 Stretch Linux

Introduction

The Cloud can be a great thing. It can also be a terrifying Orwellian nightmare where some faceless corporate entity has every picture you’ve ever taken of your family. To prevent the latter, there’s Nextcloud.

You many have heard of Owncloud. It was the primary solution for open source self hosted cloud storage for quite some time. Unfortunately, due to internal struggles, Owncloud split. Owncloud still remains, but it is currently owned by the people that caused the split. Nextcloud, on the other hand, is run by the original founder and the people who wanted to continue to work with the open source community.

Before you start the Nextcloud install process, you should follow our other guide on setting up a LAMP server on Debian Stretch. Nextcloud is a PHP application that utilizes a database and works best when paired with Apache. Having a LAMP server set up will be the best starting point.

Read more

Create disk image with dd

Howto CREATE BUNDLE UPLOAD and ACCESS custom Debian AMI using ubuntu

Introduction

This guide will provide all necessary steps on how to create, bundle, upload, run and connect Debian ETCH AMI on Amazon Elastic Compute Cloud (Amazon EC2). For this guide we have used a Ubuntu 9.04. However, any other Linux distribution can also be used as long as it contains java and ruby packages. For more information about Amazon EC2 read  here.

This page is not in any way an affiliate to Amazon Web Services. !

Prerequisites

  • Internet connection
  • registered user account for S3 and EC2 services with Amazon Web Services (AWS) 
  • Amazaon Access Key ID
  • Amazon Secret Access Key
  • Amazon Account Number
  • Amazon X.509 Certificate
  • at least 1GB free hard drive space
  • following packages need to be installed:
apt-get install ssh debootstrap ruby 
sun-java6-bin libopenssl-ruby curl

Before we start

 As you will see in the next sections of this guide many different files are required to successfully use Amazon’s EC2 Web Services. For the sake of simplicity, we will create a directory “aws” in ~/ and store all necessary files there for a quick access. There will be three exceptions:

Read more

Gorilla Password installation on CentOS/Redhat 7 Linux

Gorilla Password safe application is not part of CentOS/Redhat 7 package repository and thus it needs to be installed manually on your Linux system. First, let’s take care of the prerequisites. Here we assume that you have already enabled EPEL repository:

# yum install tcllib tk itcl git

In the next step we are going to clone a current Gorilla Password repository using git command:

$ cd /tmp/
$ git clone https://github.com/zdia/gorilla.git

Once we get Gorilla Password sources cloned locally we can copy them into a designated directory/opt:

# cp -r gorilla/sources/ /opt/gorilla

Read more

Configure local network Redhat package repository over HTTP with Apache

Objective

The objective is to configure network Redhat package repository accessible via HTTP protocol. This guide uses Apache webserver as a means to provide HTTP access to the local package repository.

Operating System and Software Versions

  • Operating System: – Red Hat Enterprise Linux Server 7.3 (Maipo)
  • Software: – Apache/2.4.6 (Red Hat Enterprise Linux)

Requirements

Privileged access to your RHEL server system will be required.

Difficulty

EASY

Conventions

Read more

Test And Recover Your Passwords By Cracking Them With Hashcat

Introduction

Hashcat is a robust password cracking tool that can help you recover lost passwords, audit password security, benchmark, or just figure out what data is stored in a hash.

There are a number of great password cracking utilities out there, but Hashcat is known for being efficient, powerful, and full featured. Hashcat makes use of GPUs to accelerate hash cracking. GPUs are much better and handling cryptographic work than CPUs are, and they can be utilized in much greater numbers than CPUs. Hashcat also supports a very wide range of popular hashes, to ensure that it can handle deciphering nearly any password.

Please note that misuse of this program can be illegal. Only test on systems that you own or have written permission to test on. Don’t share or post hashes or results publicly. Hashcat should be used for password recovery and professional security audits.

Read more

Record and Replay Terminal Session with Asciinema on Linux

Introduction

Asciinema is a lightweight and very efficient alternative to a Script terminal session recorder. It allows you to record, replay and share your JSON formatted terminal session recordings.
The main advantage in comparison to desktop recorders such as Recordmydesktop, Simplescreenrecorder, Vokoscreen or Kazam is that Asciinema records all standard terminal input, output and error as a
plain ASCII text with ANSI escape code .

As a result, JSON format file is minuscule in size even for a longer terminal session. Furthermore, JSON format gives the user the ability to share the Asciinema JSON output file via simple file
transfer, on the public website as part of embedded HTML code or share it on Asciinema.org using asciinema account. Lastly, in case that you have made some mistake during your terminal session, your
recorded terminal session can be retrospectively edited using any text editor, that is if you know your way around ANSI escape code syntax.

Difficulty

EASY

Conventions

Read more

tweet from linux command line

Tweet From the Linux Command Line With Rainbow Stream

tweet from linux command line

Introduction

Rainbow Stream allows you to manage just about every aspect of your Twitter account from the command line. Yes, you did read that right. It’s a full featured command line Twitter client written in Python. Chances are, you’re falling into one of two camps right about now. If you’re in the slightly insane one that thinks this is a good idea, stay tuned. Rainbow Stream actually does provide an simple and intuitive Twitter experience from the Linux command line.

Prerequisite Packages

You probably have everything that you need to get Rainbow Stream working on your system right now, but just to be sure, there are a few packages that you should install if you haven’t already.

Debian Distros

# apt-get install python-dev libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev virtualenv

Redhat Distros

# dnf/yum install python libjpeg freetype freetype1 zlib python-virtualenv

Read more

Ruby on Rails running on Ubuntu 16.04

Ruby on Rails Development On Ubuntu 16.04 Linux

Ruby on Rails is one of the most popular web development platforms today, with some of the hottest start-ups and tech giants employing it in their software stacks. One of the biggest selling points of Ruby on Rails is the ease of development. It is just as easy to get set up and start developing, especially on Linux.

Ruby on Rails running on Ubuntu 16.04

Installing the Packages

There are a couple of packages needed before Ruby can be installed in set up, and no, Ruby isn’t one of them. Since this tutorial is going to be using the Ruby Version Manager, or RVM, to manage Ruby, there’s no need to install the package through Ubuntu. There are a couple of packages that RVM needs in order to work and one that never seems to get pulled in by gem installs(nodejs).

# sudo apt-get install build-essential curl nodejs

Read more

WordPress blogging content management system Docker image deployment and usage

About

The automated build docker WordPress blogging tool and a content management system (CMS) image “linuxconfig/wordpress” can be used to instantly deploy wordpress CMS on your docker hosts.

Configuration

The wordpress CMS application runs on Debian GNU/Linux system featuring Apache web server, MariaDB ( MySQL ), database and PHP5. A new docker container based on “linuxconfig/wordpress” will expose port 80 which can be linked to the docker host port for an immediate WordPress web site access.

Configured MySQL users:passwords:

  • root:”empty password”
  • admin:”pass”

Configured MySQL databases:

  • wordpress

Exposed ports:

  • 80

Deployment

Below command will download and create a new docker container called wordpress and link local host system port 80 with container’s exposed port 80.

# docker run -d --name=wordpress -p 80:80 linuxconfig/wordpress

Read more

Drupal content management framework Docker image deployment and usage

About

The automated build docker Drupal content management framework image “linuxconfig/drupal” can be used to instantly deploy Drupal on your docker hosts.

Configuration

The Drupal application runs on Debian GNU/Linux system featuring Apache web server, MariaDB ( MySQL ), database and PHP5. A new docker container based on “linuxconfig/drupal” will expose port 80 which can be linked to the docker host port for an immediate Drupal blog access.

Configured MySQL users:passwords:

  • root:”empty password”
  • admin:”pass”

Configured MySQL databases:

  • drupal

Exposed ports:

  • 80

Deployment

The below command will download and create a new docker container called drupal and link local host system port 80 with container’s exposed port 80.

# docker run -d --name=drupal -p 80:80 linuxconfig/drupal

Read more