Posts

Ubuntu flush DNS cache (22.04)

  sudo resolvectl flush-caches Then, resolvectl statistics should show cache size of 0 and then, nslookup <hostname> should reflect the new,correct IP Address ---------- DNS utils: sudo apt install dnsutils.  Installs nslookup and dig Can also do sudo apt install cifs-utils From:  https://linuxhint.com/flush-dns-cache-ubuntu-22-04/ and  https://linuxhint.com/flush_dns_cache_ubuntu/

Lookup IP address

 Lookup IP address given hostname host -t a hostname

Resume template

$\LaTeX$ resume template Use the following markup for using Sans Serif: \usepackage[scaled]{uarial} \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif \usepackage[T1]{fontenc}

Pandoc markdown to latex

pandoc --from=markdown --output=my.tex hello.md --to=latex --standalone

7z command line

 7z command line 7z x ./file.tar.gz # extract .tar.gz and preserve top level directory

Installing Ubuntu on VM

Setting up Ubuntu in VirtualBox 7+ Follow the steps  here  for unattended install. Setup proxy as shown  here : sudo touch /etc/apt/apt.conf.d/proxy.conf sudo vi /etc/apt/apt.conf.d/proxy.conf Acquire::http::Proxy "http://user:password@proxy.server:port/" ; Acquire::http::Proxy "http://user:password@proxy.server:port/" ; Acquire::https::Proxy "http://user:password@proxy.server:port/" ; Add user to sudoers file as shown  here # add user to sudo group # Run as root usermod -aG sudo <username> # To ensure user has sudo privileges, if command returns root, user has sudo privileges sudo whoami # Otherwise add user to sudoers file visudo # At the end of file add the following. Replace <username> with the actual username <username> ALL=(ALL) NOPASSWD:/bin/mkdir,/bin/rmdir Run the following: sudo apt update && sudo apt upgrade -y For  wget  setup: For all users of the system via the /etc/wgetrc or for the user...

Setting up Docker on Ubuntu

Update the apt cache and install curl   sudo apt-get update -y sudo apt install curl   Setup proxy servers in ~/.bashrc        export http_proxy=http://<proxy-server>:<port>      export https_proxy=http://<proxy-server>:<port>   Add GPG key   curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -   Install Docker   sudo apt install docker.io   Setup proxy (instructions from https://docs.docker.com/config/daemon/systemd/#httphttps-proxy )   Create a systemd drop-in directory for the  docker  service:     sudo mkdir -p /etc/systemd/system/docker.service.d   Create a file named /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:     [Service]   Environment="H...