How to install dlib on Ubuntu VPS on digital ocean - python-3.x

I have created a ubuntu vps which has below specs:
Linux ubuntu-sh5tb8912admin 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I have to run pthon flask web app on it and for it I need to install dlib. I have tried all the whl files mentioned in this link but all I am getting is
dlib-19.8.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
I simply download them using wget dlib-xxxx-xx.whl and then install using pip3 install dlib-xxxx-xx.whl but it gives me above error. I have a python 3.6.8 installed
Can anyone please help how can I install dlib.?

If the wheels have a win in their name I guess they are windows-releases not for GNU/Linux. Did you try downloading one of the tar.gz files those should be the ones for Linux.

git clone https://github.com/Universe-ML21/script_install_dlib.git
sudo chmod +x script_install_dlib/auto_dlib.sh
bash script_install_dlib/auto_dlib.sh

Related

error while loading shared libraries: libpulsecommon-11.1.so qemu-virgil on ubuntu 18.04

How to fix this ? (on ubuntu 18.04 for arm64 on jetson nano and I can't upgrade ubuntu from 18.04 to 20.04 because nvidia does not support 20.04 at the moment)
root#ziomario-desktop:# uname -a
Linux ziomario-desktop 4.9.140 #1 SMP PREEMPT Mon Feb 8 00:07:34 CET 2021 aarch64 aarch64 aarch64 GNU/Linux
root#ziomario-desktop:# sudo snap install qemu-virgil
error: snap "qemu-virgil" is not available on stable but is available to
install on the following channels:
edge snap install --edge qemu-virgil
Please be mindful pre-release channels may include features not
completely tested or implemented. Get more information with 'snap info
qemu-virgil'.
root#ziomario-desktop:# snap install --edge qemu-virgil
2021-02-14T13:09:37+01:00 INFO Waiting for automatic snapd restart...
qemu-virgil (edge) 4.2.0 from Oliver Grawert (ogra) installed
root#ziomario-desktop:# sudo snap connect qemu-virgil:kvm
root#ziomario-desktop:# qemu-virgil
/snap/qemu-virgil/62/usr/bin/qemu-system-x86_64: error while loading shared libraries: libpulsecommon-11.1.so: cannot open shared object file: No such file or directory.

Installing python3 python3-pip and awscli on elasticsearch_exporter container

I am trying to install following packages on elasticsearch_exporter container.
I tried yuminstall and apt-get and could not install using them.
Can someone tell how to install packages on this container?
Linux elasticsearch-exporter-6dbd9cf659-7km8x 5.2.9-1.el7.elrepo.x86_64 #1 SMP Fri Aug 16 08:17:55 EDT 2019 x86_64 GNU/Linux
Error:
apt-get install python3
sh: apt-get: not found
python3
python3-pip
awscli
If you are referring to justwatch/elasticsearch_exporter image, then it is based on busybox image (source). There is no package manager inside and adding one would be rather difficult.
An easy way to solve this is to just copy the exporter into regular Debian image, like this:
FROM justwatch/elasticsearch_exporter:1.1.0 as source
FROM debian:buster-slim
COPY --from=source /bin/elasticsearch_exporter /bin/elasticsearch_exporter
EXPOSE 9114
ENTRYPOINT [ "/bin/elasticsearch_exporter" ]
And here is your exporter with apt inside.

How to install node.js, nvm, npm on QNAP (NAS)

in QNAP APP center has node.js 4.x and 0.8.X version
However, these two versions are too old, I hope we can install a newer version.
I try to login linux system installed through the command
https://www.ostechnix.com/install-node-js-linux/
nas seems to have removed some of the command, I checked it is Ubuntu but no apt-get, I can not install node.js through these comman
cat /proc/version
Linux version 3.4.6 (root#BuildServer36) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Thu Oct 26 11:01:49 CST 2017
like this
sudo apt-get install nodejs npm
-sh: sudo: command not found
apt-get install nodejs npm
apt-get: command not found
I have not tried to install the mongodb should have a similar problem
My nas model is TS-439 Pro ii
Or just go to qnapclub.eu a repository of “unofficial apps” - download it and install through the GUI in app center...
You have to select accept third party apps and you should be good to go..
I was straggling with the same issue on mine QNAP.
I found this tutorial: https://techblog.dorogin.com/running-nodejs-app-on-qnap-nas-via-pm2-3bdb838524e4 written by Sergei Dorogin.
Highly recommend you to install pm2 which is production manager for node.js
https://github.com/Unitech/pm2
It took me around 3hours to set up everything, because I'm not good with Linux
I haven't played with this yet, but it seems like using Container Station to install an official Node.js Docker image is the way to go. This gives you a complete preconfigured Linux environment to run Node in.

Resin installation on ubuntu with sun java

I'm trying to install resin on ubuntu. I already have jdk1.6 installed. But when I do
sudo apt-get install resin
It shows 'open-jdk' will also be downloaded. Why does this happen? I don't want open jdk. Is there any other way to install resin without open jdk and pointing my resin to sun jdk home. I'm relatively new to ubuntu or say linux. Thanks

How do I know which Linux package to install for my Linux AMI

Ubuntu/Debian
Red Hat/Fedora/CentOS
Mac OS X
openSUSE
FreeBSD
OpenBSD
Gentoo
I have an application which has been natively packed on the above platforms, how do I know which one to install on my Linux AMI on EC2.
uname -a displays the following
Linux ip-10-315-48-29 3.7.31.31-83.9.amzn1.i686 #1 SMP Sat Feb 18 20:11:16
UTC 2011 i686 i686 i386 GNU/Linux
It's obviously some kind of Linux, so look for a file in /etc that ends in -release or _version:
ls /etc/*-release /etc/*_version
That should help you determine which Linux distribution you have. lsb-release is usually Ubuntu, while fedora-release, redhat-release indicate Fedora, RedHat, or CentOS. You can find a more complete listing here.
Alternatively, you can see if rpm or dpkg are installed by trying to run those commands:
rpm --version
dpkg --version
If dpkg is installed, it's probably Ubuntu/Debian based. If rpm is installed, it's probably RedHat/CentOS or openSUSE based.

Resources