Installing Bitwarden Server for Ubuntu

First we install docker.

sudo apt-get update

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo docker run hello-world


sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

Next we install Bitwarden

curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh \
    && chmod +x bitwarden.sh
./bitwarden.sh install
./bitwarden.sh start

Adjust additional configuration settings in ./bwdata/env/global.override.env and restart.
./bitwarden.sh restart

Installation complete

If you need to make additional configuration changes, you can modify
the settings in `./bwdata/config.yml` and then run:
`./bitwarden.sh rebuild` or `./bitwarden.sh update`

Next steps, run:
`./bitwarden.sh start`

Ajenti Install v2


sudo systemctl enable ajenti

sudo apt -y install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm ajenti-v-mail ajenti-v-nodejs php5-mysql

sudo apt -y install ajenti
mysql -u root "password"
sudo apt-get install ajenti
sudo apt-get install nginx
sudo apt-get install php7.2-fpm
sudo apt autoremove
sudo apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm ajenti-v-mail ajenti-v-nodejs php5-mysql
sudo apt-get php5-fpm
sudo apt-get install php5-fpm
sudo apt-get -y install php7.0-fpm
sudo apt-get -y  install php7.2-fpm 

sudo apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm ajenti-v-mail ajenti-v-nodejs

Ajenti – Install

For some reason to install Ajenti on Ubuntu 18.04 is tricky. So I have the steps here which are needed to make this so. Most of the insturctions say to install python-imaging_4.1 but this no longer exists.

  1. Install the Ajenti 1.0 to AjentiV
================================== Install =====================================

sudo apt update
sudo apt -y upgrade
sudo reboot
## Make sure to use root
sudo su
sudo apt -y install wget

sudo apt -y install build-essential python-pip python-dev python-lxml libffi-dev libssl-dev libjpeg-dev libpng-dev uuid-dev python-dbus

apt --fix-broken install

wget http://mirror.nus.edu.sg/ubuntu/pool/universe/p/pillow/python-imaging_4.1.1-3build2_all.deb
sudo dpkg -i python-imaging_4.1.1-3build2_all.deb
wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add -

echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" | sudo tee /etc/apt/sources.list.d/ajenti.list

sudo apt update
sudo apt -y  install ajenti
sudo systemctl status ajenti
sudo systemctl enable ajenti
sudo apt -y install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm php7.2-mysql
sudo systemctl restart ajenti

Two Kings of the Earth

As Daniels prophecy there would be the two kings pushing each other. Looking forward to the future events.

Daniel 11:40

40  “In the time of the end the king of the south will engage with him in a pushing,* and against him the king of the north will storm with chariots and horsemen and many ships; and he will enter into the lands and sweep through like a flood. 

How to Migrate DHCP from Windows Server 2008 to 2012/2016

A few weeks ago at work, I was tasked with the project of decommissioning one of our older Windows Server 2008 machines and upgrading it to Windows 2012. I was initially a little worried, seeing as this server ran a lot of key roles, such as DHCP, DNS, was a Domain Controller, and also acted as a print server as well as a few other services. As I was migrating the DHCP role, I wondered if there was a simple way of exporting all of the settings, such as DHCP scope and reserved IP addresses. Turns out there was, and it went off without a hitch!

Here’s how I did it:

  • Log on to the old/existing DHCP server.
  • Open a command prompt as Administrator.
  • On the Action menu (from within the DHCP management console), click “Backup”.
  • Type netsh dhcp server export C:\Users\\Desktop\dhcp.txt all, and then press ENTER.
  • Install the DHCP role on the new (2012/2016) DHCP server using Server Manager.
  • Copy the exported DHCP text file to the desktop of the new DHCP server.
  • Verify that the DHCP service is installed and started on the new DHCP server.
  • Open a command prompt as Administrator (on the new server)
  • Type netsh dhcp server import C:\Users\\Desktop\dhcp.txt all, and then press ENTER
  • Open DHCP management console on the new server.
  • In the console tree, right-click DHCP.
  • Select “Authorize”.

If your old DHCP server is in the same network/subnet as the new DHCP server, you’ll notice that the old DHCP server has been de-authorized automatically. This is to prevent two DHCP servers from handing out conflicting addresses.

Check to make sure that your new DHCP has all of the same settings, options, scopes, and reservations set as the current one. If done correctly, everything should have been brought over. I was pretty impressed as to how well this worked and just how seamless it truly was.

MS SQL for Linux?

You can now install MS SQL on Ubuntu 16.04.

https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list

sudo apt-get update 
sudo apt-get install mssql-tools unixodbc-dev

echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile

echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc

sqlcmd -S localhost -U SA -P '<YourPassword>'


CREATE DATABASE TestDB

SELECT Name from sys.Databases
GO