Posts

Showing posts with the label Ubuntu

[How To] Install SEAL Python on a Raspberry Pi

Image
Follow this tutorial to install Microsoft SEAL 4.X for Python on a Raspberry Pi 3 device. You can follow the same commands to install it on any other Linux machine. I have copied the output for each command for your reference. $ uname -a Linux raspberrypi 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l GNU/Linux $ sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. $ sudo apt-get install git build-essential cmake python3 python3-dev python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.9). git is already the newest version (1:2.30.2-1). python3 is already the newest version (3.9.2-3). python3-dev is already the newest version (3.9.2-3). python3-dev set to manually installed. cmake is alre...

Binary file (standard input) matches

Image
Error code: $ sudo cat /var/log/syslog | grep "tree" Binary file (standard input) matches Solution: $ sudo cat /var/log/syslog | grep "tree" --text Jul 14 17:43:00 osboxes kernel: [    3.042582] vboxguest: loading out-of-tree module taints kernel. Jul 15 13:24:47 osboxes kernel: [    3.420002] vboxguest: loading out-of-tree module taints kernel. Jul 15 13:54:22 osboxes kernel: [    3.027623] vboxguest: loading out-of-tree module taints kernel. Sep 28 12:59:21 osboxes kernel: [    3.165531] vboxguest: loading out-of-tree module taints kernel. Sep 28 13:46:04 osboxes kernel: [    2.755048] vboxguest: loading out-of-tree module taints kernel. Sep 28 13:51:08 osboxes kernel: [    3.508174] vboxguest: loading out-of-tree module taints kernel. Oct 19 21:04:41 osboxes kernel: [    2.762903] vboxguest: loading out-of-tree module taints kernel. Oct 19 21:11:51 osboxes kernel: [    2.566860] vboxguest: loading out-of-...

[How To] Install Free SSL Certificate for WordPress

Image
In this tutorial, I have installed a free SSL certificate from Let's Encrypt using the Certbot tool on Google Cloud Platform VM running Debian OS that hosts a WordPress site using Apache server. You can follow similar steps for other Cloud providers / OS distributions / CMS vendors / Web servers . Part-1: Configure Virtual Host for your domain on Apache cd /var/www/html wp option update home 'https://example.com' wp option update siteurl 'https://example.com' sudo nano /etc/apache2/sites-available/example.com.conf sudo apache2ctl configtest sudo a2ensite example.com sudo systemctl reload apache2

Install ns-3.32 on Ubuntu 20.04

Image
  $ sudo apt-get update $ sudo apt-get upgrade $ sudo add-apt-repository ppa:rock-core/qt4 $ sudo apt update $ sudo apt upgrade $ sudo apt-get install gcc g++ python python-dev libgtk-3-dev wireshark gnuplot $ sudo apt install qt4-dev-tools libqt4-dev $ sudo apt install libqtcore4 libqtgui4 $ sudo apt install doxygen valgrind sqlite3 $ sudo apt-get install libgsl-dev $ sudo apt-get install pkg-config $ sudo apt-get install graphviz $ sudo apt-get install libgcrypt20-dev $ sudo apt-get install lldpd snmp $ sudo apt-get install dpdk-dev libdpdk-dev dpdk $ sudo apt-get install castxml $ sudo apt-get install mpi $ pip3 install pygccxml $ pip3 install graphviz $ pip3 install kiwi download https://www.nsnam.org/releases/ns-3-32/ $ tar xjf ns-allinone-3.32.tar.bz2 $ cd ns-allinone-3.32 $ cd ns-3.32 $ export CPPFLAGS="-Wno-error" $ ./waf configure --enable-examples --enable-tests $ ./waf build This is a step by step recipe for installing ns-3.32, the network simulator, on Ubuntu 20...

Host shiny server in Ubuntu 14.04 LTS

Image
I have installed shiny server on Ubuntu 14.04 LTS running under a VM. This post is a collection of commands that I had used for setup. Note that if you want to use shiny server on LAN then use Bridged Network Adapter. On VM you can access the shiny server via localhost:3838 and on remote machines, you can use IP-address:3838 to open it. You can host your shiny app in the /srv/shiny-server/ directory. You can go to /etc/shiny-server/shiny-server.conf to change default configurations like you can change port with listen <port number>; in server {} module. $ sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list' $ sudo gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9 $ sudo gpg -a --export E084DAB9 | sudo apt-key add - $ sudo apt-get update $ sudo apt-get -y install r-base $ sudo su - -c "R -e \"install.packages(c('shiny','shinyjs','shinydashboard','...