Install packages during uck Ubuntu customization - ubuntu-16.04

I am following the steps from this website to customize my Ubuntu image. After unpacking the clean .iso I add some files to the "remaster" and also I would like to install some apps (wireshark for example), so when the systems boots with the custom image, there is no need to install anything. I run the following script:
sudo uck-remaster-clean
sudo uck-remaster-unpack-iso my.iso
sudo uck-remaster-unpack-rootfs
// .. add desired files to the remaster
sudo apt-get install wireshark
sudo uck-remaster-pack-rootfs -c
sudo uck-remaster-pack-iso -g myNew.iso
However, wireshark is installed on the machine on which I am running the script, not in the remaster-root system. What do I need to modify to have the apps installed on the unpacked ISO? Is it even possible?

You skipped a step, you need to sudo uck-remaster-chroot-rootfs before.
Now you can install packages with apt-get and perform all kinds of customizations.

Related

DDEV (Linux/WSL2) I upgraded but I still see the old version

My current DDEV installation on WSL2 Ubuntu 20.04 LTS is v1.16.7. Since I plan to start using Drupal 10, I need to upgrade -- for example, to 1.21.4. So I issued the commands to upgrade as indicated in the documentation and I get "ddev is already the newest version (1.21.4)", and nothing new is installed, and I still end up having v1.16.7. I tried the full "curl" command and all the normal update commands, but every time it tells me all is well, ddev is already the newest version ... and then I still have the same version as before. I'd like to avoid uninstalling everything, which seems like a drastic solution. Any ideas about what's going on?
You have more than one version of DDEV installed, and you'll have to sort it out. On Linux (WSL2) your $PATH determines where it looks for executable binaries. You can echo $PATH to see what the order is, and you can which ddev to find out which one it's using. (You don't have to do or understand the below once you understand that, but you can continue for more detail.)
On WSL2 you're likely to have
/home/linuxbrew/.linuxbrew/bin/ddev (If you installed with homebrew). That may or may not be in your $PATH; sometimes people don't get it into their $PATH properly.
/usr/local/bin/ddev (If you installed with install_ddev.sh). /usr/local/bin is almost always in the $PATH of a Linux system.
/usr/bin/ddev (If you installed with the newer apt install ddev technique, which is recommended).
All three of these work fine and are supported, but I recommend that you go with the newer apt install technique.
So you can do this:
brew uninstall ddev
sudo rm -f /home/linuxbrew/.linuxbrew/ddev /usr/local/bin/ddev
That will remove the other ones.
Then follow the Linux instructions in the docs and
curl -fsSL https://apt.fury.io/drud/gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/ddev.gpg > /dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/ddev.gpg] https://apt.fury.io/drud/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list
sudo apt update && sudo apt install -y ddev
That should get you the ddev in /usr/bin/ddev which will certainly be in your $PATH.
On WSL2 with DDEV v1.21.4, you'll want to install DDEV on the Windows side as well, just for the odd case where you use a non-*.ddev.site hostname, and DDEV needs to update the hosts file on the Windows side. So in admin PowerShell, choco install -y ddev.

Can't install powershell in Parallels Kali Linux Virtual Machine

I've been trying to install Powershell for a few hours now. I run this under root:
apt update && apt -y install powershell
This is what I end up getting after it runs through and seemingly downloads
Package powershell is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'powershell' has no installation candidate
When I try to run this same command outside of root using sudo, I get the following:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
I have updated everything and tried a few different ways. I even downloaded a completely new Virtual Machine in Parallels to see if restarting would help out. I still run into the same problems. This is a Kali Linux VM on Parallels MacOS M1. Not sure if that matters or not. I think Parallels itself may possibly be using an apt process in the background, but when I do:
sudo killall apt apt-get
I end up getting
apt: no process found
apt-get: no process found
I've been trying everything. I'm on a new Mac so I don't have too many VM options. If someone could figure this out in Parallels, it would be a great help.
I've tried a lot. In the description above.
To install PowerShell in Kali Linux open the terminal and type:
sudo apt update
sudo apt install -y snapd # install daemon and tooling that enable snap packages
sudo systemctl enable --now snapd apparmor
Log out and back in again, and run the following command to install the powershell snap package.
sudo snap install powershell --classic

uninstall github desktop from ubuntu

Uninstall GitHub Desktop from Ubuntu
How can I remove my github dektop app. It is not working perfectly, so I want to uninstall and re-install it.
Here is the command that produces an error:
sudo apt-get remove GitHub Desktop
sudo apt remove github-desktop
There are 2 ways or i should say 2 commands :
sudo apt remove github-desktop
will remove the binaries, but not the configuration or data files of the package
sudo apt remove --purge github-desktop
will remove about everything regarding the package packagename, [...]
Particularly useful when you want to 'start all over' with an application because you messed up the configuration.

I lost my GUI after uninstalling Raspberry Pwn

I wants to make my Pi a network security tool, so I downloaded the source code from Raspberry Pwn's github source [https://github.com/pwnieexpress/Raspberry-Pwn].
I found my network rather slow when installing, so I interrupted the progress. I used its uninstall script to make sure that all changes would be recovered.
The uninstall successfully ended, but since then I cannot proceed on to the GUI after I typed startx. Are there any way for me to proceed a clean install of all GUI components?
Thanks
You could try the following:
sudo apt-get remove --purge xserver-xorg
sudo apt-get install xserver-xorg
sudo dpkg-reconfigure xserver-xorg

Uninstall memcached and/or (force) install with Homebrew - Mac OS X

I need a memcached on my Mac (os X 10.8), and I began by installing memcached and libevent 'manually' (1).
Well, maybe I did this a bit too quickly, and now I'm figuring out that it would be better to install it 'cleanly' with Homebrew.
I think I should first uninstall 'cleanly' libevent and memcached. Should I ?
Or should I simply run brew install memcached , and use the function to delete the files Homebrew thinks are to be deleted ? (I mean brew link -f memcached after brew install memcached ; I'm wondering how 'clean' it will be , and if I won't encounter problems hard to solve later on ...)
Thanks for your help !
(1) how I installed libevent:
cd /tmp
wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar zxvf libevent-1.4.13-stable.tar.gz
./configure
make
sudo make install
and memcached :
wget http://memcached.googlecode.com/files/memcached-1.4.1.tar.gz
tar xzvf memcached-1.4.1.tar.gz
cd memcached-1.4.1
./configure
make
make test
sudo make install
memcached -d -P pidfile -l 127.0.0.1
Both Memcached & libevent ship with a Makefile uninstall target-command. Assuming you still have your previously configured source files; else, you need to run ./configure before running any make commands.
cd memcached-1.4.1
sudo make uninstall
cd ../libevent-1.4.1-stable
sudo make uninstall
Afterward, you should be able to install everything cleanly with Homebrew.