Ubuntu

Debian based Linux distribution

Add port redirection with iptables

Redirect from listening tcp port 4455 to 45.

   1 iptables -t nat -I PREROUTING --src 0/0 -p tcp --dport 4455 -j REDIRECT --to-ports 45
   2 iptables -t nat -L -n -v

Vagrant box with JDK8 MongoDB and RabbitMQ

   1 vagrant box list 
   2 vagrant box add precise32 precise32.box
   3 mkdir precise32Jdk8RabbitMongo
   4 cd precise32Jdk8RabbitMongo
   5 vagrant init precise32
   6 vagrant up
   7 sshvagrant@localhost -P 2222  #password vagrant 
   8 # in vagrant VM
   9 apt-get update 
  10 apt-get install -y traceroute openssh-server software-properties-common  python-software-properties unzip 
  11 add-apt-repository ppa:openjdk-r/ppa -y 
  12 apt-get update 
  13 apt-get install -y openjdk-8-jdk mongodb rabbitmq-server  
  14 java -version
  15 mongo
  16 rabbitmqctl list_exchanges
  17 # in host
  18 cd /boxes
  19 vagrant package --base precise32Jdk8RabbitMongo_default_1472724602370_91839
  20 mv package.box precise32Jdk8RabbitMongo.box
  21 vagrant box add precise32Jdk8RabbitMongo precise32Jdk8RabbitMongo.box

Lubuntu

Update packages

   1 sudo bash
   2 apt update
   3 apt upgrade

Virtualbox + Ubuntu server 20.04.1 LTS

Ubuntu (last edited 2023-05-23 18:34:02 by localhost)