updates to ubuntu 24.04

updates to ubuntu 24.04 When Ubuntu 24.04 comes out in about 2 days, there is probably going to be some important things that need fixing. Will the initial .iso file for the release be updated as needed to reflect such changes or, will it rely solely on "apt-get upgrade" for these initial corrections. Said another …

Total answers: 1

extract string before numbers and after underscore

extract string before numbers and after underscore The original string is like this: str-str001-002_01 str-str005-006_05 I would like to extract string before number, and after underscore, so it would be like this: str-str_01 str-str_05 I remember sed could separate pattern into groups like this: sed -n ‘s/(^.*)([0-9]-[0-9])(.*$)/13/p’ but it prints: str-str0002_01 Then I remember that …

Total answers: 2

apt-cache search not showing expected result

apt-cache search not showing expected result I tried to do apt-cache search skype But it shows me this as a result: libopuso – opus codec runtime library So what does that mean? Asked By: chukwuma ogbonna || Source The result tells me Skype for desktop is not a deb file. Per the Skype site, the …

Total answers: 2

Replacing variable correctly in alias function

Replacing variable correctly in alias function I’m trying to create an alias function to remove inputted line from file: function remove_line(){ line_to_remove="’s/^"$1"$//g’" sed -i $(line_to_remove) my_file } For example: remove_line domain.com should remove this domain from a given file. However it seems that the $ is not interpreted correctly. What am I doing wrong? Asked …

Total answers: 1

JQ returns json lines without commas

JQ returns json lines without commas To be clear – I want a pseudo-JSON output that will be written into another static JSON file here… so not wrapped in an array or anything, simply getting the missing commas after each entity in my output. Currently my query is: .[] | select(.auditId == "categories") | { …

Total answers: 2

Bottle's app how to access local file

Bottle's app how to access local file Using Linux Mint Mate 21.3 and Bottles version 51.11, I’ve successfully installed PDF-XChange. Now, I need to open a PDF located outside of Bottles directories. What’s the method to do so? Also, I’m wondering if there’s a way to create a desktop shortcut to quickly launch PDF-XChange. Asked …

Total answers: 1

Can I delete all these cache files under admin:///var/lib/snapd/cache?

Can I delete all these cache files under admin:///var/lib/snapd/cache? Also, when I double click on one of them it says this: What is "squashfs filesystem image" and what is it doing in the cache folder? Asked By: Galaxium || Source Generally from an operating system point of view, /var/lib/* are files belonging to installed software. …

Total answers: 1

vnstat: how do the –begin and –end options work?

vnstat: how do the –begin and –end options work? I have a metered internet connection that resets on the 17th of each month. I’m using vnstat to monitor my bandwith. I just installed it from the repo. I’d like it to show me how much I have used from the 17th on but I can’t …

Total answers: 1

Forbids something in Posix to have an empty string as a file name?

Forbids something in Posix to have an empty string as a file name? My experience is that trying to do anything with an empty string filename results file not found (ENOENT), including a ls -ld ”, touch ” or mkdir ”. But I could try only ext4. While it looks quite logical to me, does …

Total answers: 1

App wont uninstall/install after canceling the install

App wont uninstall/install after canceling the install I was installing Cura slicer and I got a software update notice and decided to update software too. the software updater said it was waiting for something to close, which was the snap store installing cura. so I canceled the cura install so I could install the software …

Total answers: 1

enter inside each subfolder in folder

enter inside each subfolder in folder Imagine I have two folders in my current working directory: back/ and front/. I am trying to enter inside each of them and do some stuff. From the simple script below: for dir in */ ; do echo "$(dir)" done I was expecting an output like: back front However, …

Total answers: 1

Can't connect a specific Bluetooth device to a specific Ubuntu machine

Can't connect a specific Bluetooth device to a specific Ubuntu machine I have a laptop running Ubuntu 22.04 LTS and a Bluetooth mouse (Logitech MX Vertical). I can pair/connect this mouse to other devices, including another one running Ubuntu 22.04 LTS. I can also pair/connect the problematic Ubuntu laptop to other Bluetooth devices. So I …

Total answers: 1

Check for non-interactive mode in Debian package maintainer scripts

Check for non-interactive mode in Debian package maintainer scripts If I’m writing a Debian package maintainer script (such as a pre-install script) for a package I create, how can I make the script determine if it is supposed to be running in non-interactive mode (e.g. if apt-get install was invoked with -y, and things like …

Total answers: 1

Increase Dash icon size

Increase Dash icon size I installed Ubuntu 23.10 on my Pi5 and am still setting it up. I wanted to use Mac like settings (with Close button on left) and installed Tweaks, which worked. Either this (or something else I did) resulted in my Dash having small icons. How can I change the Dash icon …

Total answers: 1

How do I pass hex characters to printf in a script command?

How do I pass hex characters to printf in a script command? How do I get printf to output hex characters when run from a script? Suppose I am at the prompt and type printf "x41x42" the output I get AB% However if I have a script containing that line i.e. cat test.sh produces printf …

Total answers: 1

How do I change the number of columns and rows in the terminal?

How do I change the number of columns and rows in the terminal? I have been developing a graphic library for generating 2d graphics on the terminal. I need to control the number of rows and columns to specify the resolution. Asked By: Francisco Zavala || Source To change the number of rows and columns …

Total answers: 1

syslinux creating unexpected partitions on disk image

syslinux creating unexpected partitions on disk image I’m encountering some odd behavior while trying to install a bootloader on a disk image. Here’s the process I followed: $ dd if=/dev/zero of=test.img status=progress bs=200M count=1 1+0 records in 1+0 records out 209715200 bytes (210 MB, 200 MiB) copied, 0.190117 s, 1.1 GB/s $ mkfs.ext2 test.img mke2fs …

Total answers: 1

Mounting a Disk Image

Mounting a Disk Image I’m trying to create a disk image and mount the partition for further work, but I’m encountering a frustrating error message: "wrong fs type, bad option, bad superblock." Here’s the steps I took and the output I received: $ dd if=/dev/zero of=test.img status=progress bs=200M count=1 1+0 records in 1+0 records out …

Total answers: 2