Installing a linux package on Photon OS that has no package manager installed - esxi

I have a Photon based VM that apparently had the usual tdnf package manager deleted.
I'd like to reinstall tdnf or yum on this VM.
I have wget available on the Photon VM.
Is there a way to bootstrap my way back to having a package manager?

Related

How to setup ROS environment variable on Ubuntu 20.04?

I tried following this guide to install ROS, but even after adding ROS source.list and its key
sudo apt install ros-melodic-desktop-full
gave error.
E: Unable to locate package ros-melodic-desktop-full
Then I ran this command
sudo apt search ros
to see if any such package exists. I couldn't find ros-melodic-desktop-full but I found another similar package ros-desktop-full.
So I installed it instead. The installation went smooth without giving any errors.
Next step in the guide is to set-up ROS environment variable, but I have no such directory
/opt/ros
So how do I setup the environment variable?
P.S.
I also installed some tools and dependencies with this command
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
and initialized rosdep
sudo rosdep init
rosdep update
The ros-desktop-full package you installed is part of the official Ubuntu release.
ROS Melodic (and in the future, Noetic) is published by the OSRF in a separate repository (packages.ros.org). These packages install to /opt/ros/. However, some ROS packages have also been ported to Debian, which is how they found their way to Ubuntu (which derives from Debian).
The Debian packages are fully functional, but they do not install to /opt/ros. Instead, everything is integrated in the operating system itself. This means that you need to set up your personal workspace slightly differently.
Given that most tutorials assume that you use the OSRF packages, I suggest you either wait for the Noetic release (scheduled for the end of May 2020), then install ros-noetic-desktop-full, or downgrade to Ubuntu 18.04 LTS to use ROS Melodic.
From the documentation here, melodic is only supported on Ubuntu 18.04. The ROS version targeting Focal (20.04) is Noetic, but that one has not been released yet (see Distributions). I'm not sure what ROS version Ubuntu packages (the ros-desktop-full one you installed), but I was not successful in using it.
If you really do want to use Ubuntu 20.04, then I think your best option currently is to compile from source. Last time I checked the precompiled debs for Noetic are not yet available at http://packages.ros.org/ros/ubuntu (you can track release progress at github issue 21513). No idea if compiling Noetic from source is easy or hard, but I was able to compile ROS2 foxy from source without too much trouble though.

Is there a precompiled version of libimobiledevice that I can distribute with my application?

I'm making an application that uses libimobiledevice and is cross-platform(Mac, Windows, and Linux). I don't have access to all the platforms so I can't compile it myself, and it's a pain to do so.
Are there pre-compiled versions of libimobiledevice for each platform that I can distribute with my application so the user doesn't have to install it manually?
It's relatively easy to provide a binary distribution of libimobiledevice for Windows and macOS.
For Windows and macOS, you can download pre-compiled versions of libimobiledevice at https://github.com/libimobiledevice-win32/imobiledevice-net (see the releases page). Admittedly, the repository name is a bit off. It does provide Windows and macOS binaries for libimobiledevice, and you don't have to use .NET if you just want to use the binaries.
The binaries are published via the Azure Pipelines build system, so you would fetch them at https://dev.azure.com/libimobiledevice-win32/imobiledevice-net/_build, or newer builds as they become available.
On Linux, it's a different story, because the various Linux distributions come with different versions of some of the dependencies of libimobiledevice (such as OpenSSL). You'll need a different binary package for most distributions of Linux.
There's a PPA you can use, https://launchpad.net/~quamotion/+archive/ubuntu/ppa, which provides compiled versions of libimobiledevice for Ubuntu 14.04, 16.04 and 18.04.
Most Linux distributions also include a libimobiledevice package, but that may be outdated - be aware.

Ubuntu 14.04 + IOS 11.2.5 Unhandled Lockdown error (-3)

good morning,
i have an issue with my phone I want to plug in my phone so i can use it inside a virtualmachine (Mac os)but when I plug it while I'm still in my main system
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
I get this error
Unhandled Lockdown error (-3) I have tried to follow instructions mentioned in here and in every other tutorial that I could find on the internet but nothing works
if there is a solution to this probleme or an alternative way to use my phone inside my virtualbox I would be thankful
PS: I'm using Oracle VM VirtualBox 5.1.18-114002
and I already added the extension pack
The version of libimobiledevice that ships with Ubuntu 14.04 is outdated. The handshake protocol (the way the software running on your computer authenticates with the iPhone or iPad) has changed in the latest couple of version of libimobiledevice and you need a new version of libimobiledevice.
Your best bet is to compile and install the following software from source:
libplist
libusbmuxd
usbmuxd
libimobiledevice
For each of the repositories, you'll need to git clone the repository, run ./autogen.sh, make and then sudo make install
If you don't want to compile from source, and upgrading to Ubuntu 16.04 is an option, we maintain an Ubuntu PPA with up-to-date and precompiled versions of libimobiledevice at https://launchpad.net/~quamotion/+archive/ubuntu/ppa.

Homebrew only installs packages without gui?

I'm a newbie from windows entering the linux world.I just bought a mac. Homebrew seems the best package manager for os x, so I have it installed.
Is homebrew only for installation of packages without gui? why not make it capable of installing softwares with gui?
Homebrew proper does not generally install GUI apps. However, there are plugins like homebrew-cask that will do what you want. The reason why GUI apps are left up to plugins is to keep the tool focused on its original goal, which is to download and compile source code, rather than to just install binaries. Homebrew is powerful, but it takes a little getting used to. Good luck!

opkg in beaglebone white A6 not updating

I am using beaglebone A6. I have istalled TI sdk prebuilt binaries and using Ti Arago Project filesystem.
I want to install ntp and gpsd packages for my application.
I am using opkg install ntp but it is showing error:
unknown package ntp.
opkg install cmd: Cannot install package ntp.
I also tried opkg update, but there was not any update.
I have tried pinging Google IP address and it was showing the ping address is available.
Please suggest for opkg and ntp issue.
Make sure /etc/opkg/base-feeds.conf (or /etc/opkg/arago-armv7a-feed.conf) points at the correct server (Updating Existing Images). And also make sure ntp package exist on the server. For example, there is no ntp package for 2009.11 release.
If you have package (ntp.v123.ipk) downloaded at beaglebone, you can install it with command:
opkg install ntp.v123.ipk
BTW. It is not so hard to rebuild Arago image from scratch. In that case you can build what ever package you want (Setting Up Build Environment).

Resources