There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

bizdelnick

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

bizdelnick ,

What is the problem? I used rhythmbox for that ~15 years ago and it worked.

bizdelnick ,

What distro you use?

bizdelnick ,

There can be a package with corresponding selinux policy in the repo. It is highly likely as Fedora use selinux by default and your case seems typical.

Broke a partition. Is there any way of saving it?

While I was switching distros, I accidentally broke a partition. I’m almost certain that all the data is there, but it doesn’t have a filesystem (I used ext4). Is there anything I can do to fix it, similar to changing the file extension without changing the contents. PS: It’s a data partition. I was trying to resize it,...

bizdelnick ,

Try testdisk. It can find a filesystem, copy files from it or restore the partition that contained it.

bizdelnick ,

In general, no. Better way is to download packages with that tools from your distro repository, transfer them via flash key and install. You also have to download dependencies, but CLI tools usually have few of them and there are good chances they are already installed.

how can I change Ubuntu to have default settings (everything, apps, icon size, color, etc) without losing any other software or files??

I recently became interested in using operating systems or software in the most vanilla way possible!! Without changing anything, just getting new files and other stuff. I’ve changed a lot of things from Ubuntu (for example uninstalling Rhythmbox and getting VLC) and I honestly want all the Ubuntu GNOME vanilla software back,...

bizdelnick ,

mv ~/.config{,.bk}

Better do this from console, when graphical session is not started. But this will only drop your user settings, not system-wide.

bizdelnick ,

wget https://repository.mullvad.net/rpm/stable/mullvad.repo | sudo tee /etc/yum.repos.d/mullvad.repo

This command won’t work.

bizdelnick ,

Why do you ask? Install it as a second DE and give it a try. You can alvays switch back if you don’t like it.

Non-root user that (suddenly) has elevated privileges in a specific command (only). [Have I been hacked?]

Title. Long,short story: creating or editing files with nano as my non-root user gives (the file) elevated privileges, like I have ran it w/ sudo or as root. And the (only) “security hole” that I can think of is a nextdns docker container running as root. That aside, its very “overkill” security-wise (cap_drop=ALL,...

bizdelnick ,

Show the full output of ls -ld directory (replace “directory” with real directory path).

bizdelnick , (edited )

You cannot say if user able do delete the file or not. It depends on the directory permissions (deleting a file is modifying a directory).

bizdelnick ,

Reinstall? Why?

Create a separate partition for /home and don’t format it when reinstalling, so you will keep all your stuff.

bizdelnick ,

It is the POP3 workflow, not IMAP. Maybe setup your client to use POP3 and remove mails from server after receiving? However I don’t recommend Thunderbird, its POP3 support was very buggy when I used it (many years ago). Try Sylpheed or Claws Mail, for example.

bizdelnick ,

It is not the question of funding. Thunderbird has always had a number of long standing bugs. Speaking about such rare use cases, I don’t think someone care about them. Anyway, I recommend using software that I know it worked correctly, not that worked incorrectly and could be fixed but requires further testing.

bizdelnick ,

You are wrong, there are no widely used forks of Thunderbird AFAIK. Thunderbird is based on Mozilla and has a huge codebase that is very hard to maintain. All other popular email clients have totally different code and based on other libraries. They can be similar in how they appear, but not in what bugs they have.

bizdelnick ,

In most cases extended POSIX regexes are enough and looks the same as perl regexes.

I also used perl until I needed to write highly portable scripts that can be run on systems without perl interpreter (e.g. some minimal linux containers). Simple things are also simple to do with grep/sed/awk, more complex things can be done with awk but require a longer code in comparison with perl.

bizdelnick ,

My 5 cents:

  1. When piping output of find to xargs, always use -print0 option of find and -0 option of xargs. This allows processing files with any allowed characters in names (spaces, new lines etc.). (However I prefer -exec.)
  2. There’s an i command to insert a line in sed, it is better to use it instead of s/^/…n/. It makes code more readable (if we can talk about readability of sed code, huh).
  3. If you want to split a delimiter separated line and print some field, you need cut. Keep awk for more complicated tasks.
bizdelnick ,

sed is not for daily use, it is for reusable scripts. For other purposes interactive editors are more convinient.

bizdelnick , (edited )

Systems with bash but without standard POSIX utils? I know some without bash (freebsd by default, busybox based distros etc.) and with grep, sed and awk, but not vice versa.

bizdelnick ,

Run sudo apt update before trying to install anything.

bizdelnick , (edited )

First of all, check that hardware virtualization is enabled in your UEFI setup.

You need to have packages virtualbox-dkms and linux-headers installed (together with all their dependencies, but you don’t have to check them manually). linux-headers must be of the same version as linux-image. That’s all that you need to get driver properly built. Don’t listen those users who recommend you to remove and reinstall these packages or install additional packages manually, this kind of magic doesn’t work.

Also note that you cannot use kvm and virtualbox simultaneously. If you are using some kvm-based virtualization system, it causes a conflict.

bizdelnick ,

man ssh_config

bizdelnick ,

Well, importing settings from one manager to another is also a problem. It can be solved with a smple script, but you need to learn structure of both configs to write it. Or try to search on github, maybe someone has already solved this.

A tabbed list can be replaced with shell autocompletion. If you name servers in config like _group_subgroup_server, you only need to type few characters and hit Tab to find a server you need.

bizdelnick ,

A fresh install is always preferred over a system upgrade. Always, always, always.

I also thought so until I installed Debian.

bizdelnick ,

fpm is not a complete solution. It just creates a package from your files, however you need to build them in the environment of the distribution where it is supposed to work, with the same versions of dependencies. OBS is the best solution I know, but with it you need to write packaging scripts compatible with each distro you are targeting. It is quite time consuming and requires a good knowledge of native packaging tools.

You can also use any CI system that is able to execute builds in containers with your target distros. This requires a bit more scripting (just a bit), but modern CIs are easier to setup than OBS in case you need your own instance. This also allows you to use your favorite VCS and workflow you are comfortable with.

bizdelnick ,

Both are useless toys for newbie sysadmins who think their job is sitting and looking at list of processes.

bizdelnick ,

Why not top? pkill? killall? These tools are usually installed by default.

bizdelnick ,

Aren’t top or pgrep enough for that?

bizdelnick ,

You have a pre-installed tool and a tool that looks better but which you need to install. When you need it for a rare task, and you administer many machines, it is easier to use what you already have on each of them.

bizdelnick ,

Sorry, I don’t understand what you are talking about. Yes, you can run them in SSH session. No, you still need to have them installed on the remote machine to do this. And installing diagnostic tools is not only time consuming, sometimes it can be even impossible if you already get in troubles (and if you did not, why would you need them?).

Thanks to dust I deleted a 70 gig file on my drive

Dust is a rewrite of du (in rust obviously) that visualizes your directory tree and what percentage each file takes up. But it only prints as many files fit in your terminal height, so you see only the largest files. It’s been a better experience that du, which isn’t always easy to navigate to find big files (or atleast...

bizdelnick ,

I usually use something like du -sh * | sort -hr | less, so you don’t need to install anything on your machine.

bizdelnick ,

27G is OK. But LVM gives you ability to resize the volume at any time if you need. So don’t worry about this. Check df -h, if you have less than 10G used and you are not going to install a lot of very heavy packages (e. g. games with large resources; I mean only deb-packaged ones, not Steam etc. that go into /home), it is highly likely that you will never get in trouble because of / size.

loads of uninstallable dependencies on debian

I installed Debain 12 about a month ago, and kept having difficulties with the package manager. It seems to lack any sort of sources in its default configuration, so that I had to manually add some which I saw online to the sources file. By default, the sources file only refered to some cd-rom thing, even though I installed the...

bizdelnick ,

It’s hard to guess what is wrong with your configuration. Show your sources.list.

To disable translation for commands you run in terminal, do export LANG=C.

bizdelnick , (edited )

You have entries for different debian releases but no entry for the one you actually installed (bookworm). Change this to


<span style="color:#323232;">deb https://deb.debian.org/debian/ bookworm main contrib non-free-firmware non-free
</span><span style="color:#323232;">deb https://deb.debian.org/debian/ bookworm-updates main contrib non-free-firmware non-free
</span><span style="color:#323232;">deb https://security.debian.org/debian-security bookworm-security main contrib non-free-firmware non-free
</span>

Then run apt update and apt dist-upgrade to update all packages that you installed from older repos. Then apt autoremove to remove packages that are not longer needed.

After that you may still have to downgrade packages installed from trixie repos or remove them if they are not in bookworm. To do this, edit your /etc/apt/preferences file (create it if it does not exist) and add


<span style="color:#323232;">Package: *
</span><span style="color:#323232;">Pin: release n=bookworm
</span><span style="color:#323232;">Pin-Priority: 1001
</span><span style="color:#323232;">
</span><span style="color:#323232;">Package: *
</span><span style="color:#323232;">Pin: origin ""
</span><span style="color:#323232;">Pin-Priority: -10
</span>

Then run apt dist-upgrade and apt autoremove again. When all packages are downgraded, remove these lines from /etc/apt/preferences.

For more details, refer to the documentation:

bizdelnick ,

In some cases it can be easier to simply reinstall the OS avoiding mistakes that you did.

bizdelnick ,

I used mc many yeas ago until I learned CLI utils well enough to use them efficiently. I think, it is the main point: you get a tool that does not require a lot of time to start using it. But in most usage scenarios TUI FMs are less effective than CLI.

bizdelnick ,

But you don’t need to cd before running ls. And in most cases you don’t even need ls, autocompletion is enough.

bizdelnick ,

apt remove --auto-remove xfce4

bizdelnick ,

–purge does not do anything with dependencies. You will need to explicitly remove all packages that are marked as installed manually, i. e. all packages that you pointed a package manager to install. If a DE was installed automatically by Debian installer, or if you installed it with apt install xfce4, the only manually installed component it the xfce4 metapackage, and using the –auto-remove flag will remove all its dependencies. But if you additionally installed any components or packages that depend on that components, you will also need to clean them up manually.

Why is Linux so frustrating for some people?

Don’t get me wrong. I love Linux and FOSS. I have been using and installing distros on my own since I was 12. Now that I’m working in tech-related positions, after the Reddit migration happened, etc. I recovered my interest in all the Linux environment. I use Ubuntu as my main operating system in my Desktop, but I always end...

bizdelnick ,

You are doing something wrong. I stopped distrohopping ~13 years ago and never had to reinstall OS after that. If I get error messages, they are helpful enough to figure out the root of the problem (unlike that in Windows, where everything under the hood is hidden from user). For me Windows and macOS are frustrating, not Linux.

Maybe Linux is not good enough for you, maybe you are not good enough for Linux. Anyway, don’t constrain yourself, use software that you are comfortable with.

Was Fedora always so unstable?

I was on Ubuntu for a year. No major issues, although I used the interim releases, which are supposed to be less solid than LTS. Then, a couple of months ago, I decided to switch to Fedora, just out of curiosity. Many people stated how Fedora is rock solid, Fedora is the new Ubuntu, etc. First some rpmfussion updates broke mesa,...

bizdelnick ,

Yes.

Fedora is the new Ubuntu

Fedora is older than Ubuntu.

bizdelnick ,

Any chances you will use them?

bizdelnick ,

Just because almost nobody need to have an iso library.

bizdelnick ,

The non-root user probably doesn’t have permission to run the sudo command as www-data user, but root does.

You are wrong. E. g. in Debian (and Ubuntu) the default sudoers file contains

<pre style="background-color:#ffffff;">
<span style="color:#323232;">%sudo   ALL=(ALL:ALL) ALL
</span>

that means that any user in the sudo group is permitted to execute any command as any other user. The same for redhat/fedora, but the group name is wheel there.

bizdelnick ,

Bad practice is not using sudo (I do use it), but assuming that everyone has sudo installed and configured the same way as you have.

Additionally, which distro doesn’t have sudo? I’m sure there are some but by far the majority of distos have and use sudo.

Almost all distros have sudo. But many of them don’t install it by default. Most popular distros except Ubuntu (I mean Debian, Fedora and RHEL clones) provide a choice to user at install time: set the root password or install sudo and enable it for the admin user. In OpenSUSE sudo is installed by default, however it is configured in slightly different way than usually. Etc., etc.

bizdelnick ,

“Using regular expressions” is misleading. A beginner could think that by default grep is looking for a literal string, but it does not.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines