Posts From Category: linux

Install Docker CE on Ubuntu 20.04

Install Docker CE

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

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

  • echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -sc) stable" > /etc/apt/sources.list.d/docker-ce.list

  • apt update

  • apt install docker-ce

Enable Docker and Containerd to run on system boot

  • systemctl enable --now docker containerd

Running Docker as a non-root user

  • exit (Back to normal user)

  • sudo usermod -aG docker ${USER}

  • sudo chmod 666 /var/run/docker.sock

Done

Read More

Install GNS3 on Ubuntu 20.04

Install GNS3

  1. sudo add-apt-repository ppa:gns3/ppa

  2. sudo apt update

  3. sudo apt install gns3-server gns3-gui

Install IOU Support (Optional)

IOU (IOS over Unix) is an internal Cisco tool for simulating the ASICs in Cisco Switches. This enables you to play with Layer 2 switching in your LABS.

  1. sudo dpkg --add-architecture i386
  2. sudo apt update
  3. sudo apt install gns3-iou

Add your user to the following groups:

for i in ubridge libvirt kvm wireshark; do
  sudo usermod -aG $i $USER
done

Done.

Read More

Create a bootable USB on Linux

Unmount and format USB drive (FAT32)

# umount /dev/sd[X|Y]

Creating new partition table on /dev/sdX

*) legacy msdos mbr pc

# parted --script /dev/sdX mklabel msdos

*) gpt guid

# parted --script /dev/sdX mklabel gpt

Write into USB drive

  • # dd bs=4M if=ubuntu-20.04-desktop-amd64.iso of=/dev/sdX status=progress oflag=sync

Reboot

  • # shutdown -r 0

Read More