Purged XDG from RPi 4 Raspbian Buster - installation

I accidentally purged XDG from my Raspbian Buster using this command: sudo apt purge -y xdg*
I've installed XDG and any other components back few minutes after the deed, and I thought I fixed it but I didn't. Plus I didn't realize the mess I'd done and closed out the terminal after that, so I wasn't able to take a screenshot of the apt log.
I'd like to request someone to send me a screenshot of doing sudo apt purge xdg* then at the prompt section take a screenshot, and send it to me here please, so that I may try to install the additional packages removed during the purge.
I've tried to install all the packages listed under Buster Full Packages here too: https://gist.github.com/jarvisms/6d3edba4fc27829d5dfe7a2bd8c7c5fb
But I still couldn't: 1) bring back how Raspbian Buster was; 2) get other system components running again. Been searching for any hint for days but I think this issue's pretty unique (uniquely dumb lol)
I honestly like this version of RPi now, it's more convenient to use (albeit sadly less efficient due to constant CPU maxing out for some reason) than how it was out of the box. But I can't program in C++ or Python properly, and figuring that out might take me more than attempting this since I'm not really a Linux connoisseur.
Thank you for reading.

Related

Packages apt-get vs brew?

Im trying to get something running in a lab, and I need to install a whole bunch of packages to compile the code:
sudo apt-get install build-essential libgtk2.0-dev libwxgtk3.0-dev libwx-perl libmodule-build-perl git cpanminus libextutils-cppguess-perl libboost-all-dev libxmu-dev liblocal-lib-perl wx-common libopengl-perl libwx-glcanvas-perl libtbb-dev libxmu-dev freeglut3-dev libwxgtk-media3.0-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev libcurl4-openssl-dev libextutils-makemaker-cpanfile-perl
The problem is, I'm working on a Mac; So I only have brew available - and the package names are not equivalent.
Am I trying to do something dumb and impossible, or is there a way to cross reference those apt-get packages to ones available in brew and install those so I can build the app?
For added context, its a modified "slicer" application for generating files that a 3d printer uses to make parts. I could fire up an ubuntu VM and use apt-get, but I'm on an M1 mac at the moment and recompiling experimental QEMU code just so I can fire up an ubuntu VM takes me way more out of my depth than I already am... I'm running brew on a duplicated, rosetta emulation forced terminal.
There is no straightforward way to automatically figure out whether a corresponding Homebrew package exists for each of these packages, no. But you can probably guess the majority, and manually figure out the rest. Each Debian package has a link to the upstream sources, and a home page if one exists, from which you can often find links to packages for other architectures, etc.
From the Debian package search page you can search e.g. for the libxmu-dev package, and discover the corresponding package page for Buster (the current stable Debian release), which in turn has links to the upstream repo, etc. But this is an X11 package, so it's not straightforwardly compatible with macOS, which uses an entirely different GUI architecture.

How to install libraries (mysql connector cpp) on Mac using terminal and make things simple as in the case of Ubuntu

I will share an example.
I had to install mysql connector c++ libraries for my project.
To install connector c++ on my Mac, i had to build it from the source code and it takes a lot of effort because you get errors sometimes and then it is troublesome, something which should have been done in a short time.
In case of Ubuntu, I just had to write one command in the terminal, and wow, everything just got done automatically.
apt-get install libmysqlcppconn7
Does anybody know any similar command in mac, using brew or macports?
I tried to find but I guess I didn't get any results to satisfaction.
And if there is not, can anyone guide me so that I can make it possible, like I think it's possible for mac, if it is possible in ubuntu.
Please guide me, an answer in a bit detail would be so much appreciated.
Probably the nearest thing to apt-get on a mac is brew
Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac

Installing TeamViewer 13 on Debian requires many dependencies

I'm trying to install TeamViewer by going to their website and downloading the latest version. However, when I open a terminal, navigate to the folder, and enter
sudo dpkg -i teamviewer_13.0.6634_amd64.deb
I get a message that certain dependencies are missing, including qtdeclarative5-qtquick2-plugin. I then installed that, re-ran the install, and there are many other missing dependencies, so I try to just run
sudo apt install qtdeclarative5-*
and this tells me that several dependencies from qml are needed, so I run
sudo apt install qml-module-*
and this again tells me I first need other missing dependencies, and at this point I feel like I am in an endless maze. Is there any efficient way of getting the dependencies that I need? Or am I supposed to be doing something completely different to install TeamViewer? I'm running Linux Mint 18.3 Cinnamon.
Why not use VNC?
This is a question more relevant for ServerFault, Stack Overflow's sister site for IT.

Raspberry Pi 2 - Stuck on apt-get (gnome-user-guide)

i recently got Raspberry Pi 2 and installed Raspbian Jessie. Everything was working fine but now i can't install almost anything. Everytime it wants to install gnome-user-guide with 0B
Need to get 0 B/(forgot) MB of archives.
and
Preparing to unpack .../gnome-user-guide_3.14.1-1_all.deb ...
Unpacking gnome-user-guide (3.14.1-1) over (3.14.1-1) ...
I tried almost everything like removing it (force remove) because normal remove wasn't working (saying that this package is wrong and should be reinstalled) and i am desperate.
Thanks.
EDIT:
Forgot to mention i have enough space.
Sorry, this maybe a little late
This error is probably caused because of a corrupted temp package which was interrupted (In dpkg).
I solved this issue by
sudo dpkg --remove --force-remove-reinstreq gnome-user-guide

Exclude installed packages from the package lists that are proposed for emerging in Gentoo Linux?

Taking a simple example:
run the following commands in a gentoo machine with htop installed:
emerge -av htop
The system will start compilling htop package regardless whether htop has been installed or not.
What I wish to achieve is to give a parameter to emerge so that if htop is installed with the same flag, it wouldn't reinstall it.
I am on the processe of installing a software package, which gives me a huge list of packages for emerging. however, some of them have already installed. I hope this method is able to neglect the packages installed in my pc.
Thanks.

Resources