Linux Questions

bionade24, in how can i script kde settings?

e.g. is it safe to just edit config files with sed etc or do they get overwritten?)

You shouldn't use shell + sed but a template engine for such a task, e.g. Ansible + jinja2. Then you can always redeploy the config you stored instead of relying that your sed commands still change the lines in the update config correctly.

Or you can use a dotfiles manager like https://chezmoi.io

So confused why kwriteconfig5 is mentioned everywhere if I can just edit configs

KDE settings can change heavily in structure when they replace the startmenu or smth similar.

Ignacio, in [Solved] I am unable to install flatpaks as user.
Ignacio avatar

Well, after some very obscure search over internet, I found something that solves my issue (maybe yours too in case you want to install packages as user).

If you use Lubuntu (I don't know whether it works on other distributions), you have to go to the folder /home/[youruser]/.local/share/flatpak/repo/. There is a file there called config. Open it, and write something like this:

`[core]
repo_version=1
mode=bare-user-only
min-free-space-size=500MB

[remote "flathub"]
gpg-verify=true
gpg-verify-summary=true
url=https://dl.flathub.org/repo/
xa.title=Flathub
`

(By the way where it says true, I set it as false, thinking that was my issue).

Now, when I install OBS Studio as user, it lets me.

PS: if GPG verification is set as true, make sure you downloaded the flathub.gpg file from the repo and copied it to your local folder as flathub.trustedkeys.gpg and flathub-beta.trustedkeys.gpg

bionade24, in Is there anyway to create a sandboxed SFTP server to interact with an outdated document scanner?

You could run a 2nd sshd service with systemd where you use namespacing, chroot & drop most capabilities. (Basically a container) You can also change the default logindir of sftp. Look at https://www.redhat.com/sysadmin/mastering-systemd and man sftp-server.

bionade24, in Ffmpeg makes choppy videos when recording with audio

I'd definately would encode to x264 and use ffmpeg's Intel QuickSync support to save power. Encoding vp9 must be a hard workload for your small machine. Probably the video only doesn't stutter due to interlacing. If you'd want to go hardcore, you could try to profile your task with minimal overhead by using perf record.

simplycorbett, in Ffmpeg causes choppy video when recording with audio
@simplycorbett@vidbin.social avatar

@Ignacio Here are the commands I use when recording libvpx-vp9. YMMV.

https://pastebin.com/raw/vcGXWRu1

dhtseany, in Ffmpeg makes choppy videos when recording with audio

Your hardware is not powerful enough for the task you’re attempting to ask of it, especially due to the weaker CPU and lack of RAM and no GPU. If you’re having problems capturing the stream with OBS you won’t solve them by shifting to using the terminal instead with ffmpeg as the task is still essentially the same. At a minimum you need 8GB of RAM and a dedicated GPU that can actually encode (Intel graphics are generally not dedicated) otherwise this is a lost-cause goal.

At best you can lower your captured resolution to 720 but I doubt it’ll help much without adding a graphics card.

Ignacio,
Ignacio avatar

Then how is it possible that, recording with no sound, my videos run smoothly, with no choppiness or other caveats?

ShaunaTheDead, in [Question] How to find which libraries an application uses?
ShaunaTheDead avatar

It's not exactly bulletproof but running any program from the command line will throw an error if there's a missing dependency. Then it should be as simple as installing the dependencies through your package manager.

Hexagon, in Issues with rEFInd, Casting, and SecureBoot

For problem 2, it may be caused by the firewall zone in network-manager. Try setting it to a more permissive zone, such as “home” or even “trusted”

Gordon_Freeman, in [Solved] How can I make app launch on system start up?
Gordon_Freeman avatar

Solved, I created shortcuts on /.config/autostart

CookieJarObserver, in [Solved] How can I make app launch on system start up?

Shit starting on boot is bad.

daredevil, in How do I shut off bluetooth completely in Linux Mint 21.2?
daredevil avatar

maybe bluetoothctl power off might help?

TimeMuncher2,

It's the same as turning it off from the task bar. Bluetooth icon says its disabled and powertop shows it's using 2.5W power.

problembasedperson, in How do I shut off bluetooth completely in Linux Mint 21.2?

Laptops usually have a WiFi network adapter that also supplies Bluetooth capabilities. Check your laptop specs to see if that’s the case, because if it is, turning off the adapter would mean you would lose WiFi connectivity too.

TimeMuncher2,

Now that you mention it,i think i saw in bios advanced settingss, the settings were more about wifi than bluetooth. So you're right about both wifi and bt being on same adaptor. Guess there's no real use of disabling bt in the os if it is always on. Thanks for the reply.

bayaz, (edited ) in [Question] How to find which libraries an application uses?

Would ldd do what you want?

EDIT: Had more time to look, and found out this would not work, at least for my distro. Using ldd may not work depending on how Firefox was compiled -- it works only if the library you are interested in is dynamically linked.

For me, if I run command -v firefox, I get /usr/bin/firefox. Running ldd /usr/bin/firefox results in an error: not a dynamic executable. It turns out that, for me, /usr/bin/firefox is just a small script that calls /usr/lib/firefox/firefox. Running ldd on that file produces the following:

linux-vdso.so.1 (0x00007ffe4e2e7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f75eb400000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f75eb318000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f75eb6ae000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f75eb131000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f75eb7ba000)

None of these look like a library of interest to you, so the library you want must have been statically linked.

(As a side note, don't use ldd on an untrusted executable b/c it may run the executable to get the information.)

In that case, if you really want to dig, you can try something like readelf to dump info about the executable. If you know what you're looking for (such as GTK), you might be able to grep for it. However, my version of Firefox has the symbol table stripped, so I don't think there's much else I can do.

And of course, if you have open-source software, you can always just go check the source code :)

pvq,
pvq avatar

Thanks a lot for your reply, learned a lot of things!

In Fedora /usr/bin/firefox also is a bash script so I ran into the same not a dynamic executable issue as well. readelf looks interesting, I'll have to play around with it.

Ashiette, in Cannot create Debian bootable USB from a Mac

Maybe a stupid question but did you flag the usb as bootable ?

If yes, is your old iMac EFI compatible ? If no, you should get a look at woeUSB-ng. It supports legacy booting.

gauffke,

No stupid question at all!

To make the USB bootable, is it about choosing « GUID Partition Map » as the Scheme? Or something else?

On the Mac side, I have no other USB to test it out, but I will look into this woeUSB-ng, never heard of it!

Thanks

Ashiette,

To make it bootable there's a flag to adfter you format the drive. I'm not sure how to do it on mac.

iirc, if you don't do it, your USB won't be recognised as a bootable but as a 'normal' USB.

Atemu, in how can i script kde settings?
@Atemu@lemmy.ml avatar

Not the answer to your question but perhaps a solution to your problem and/or some inspiration: https://github.com/pjones/plasma-manager

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxquestions
  • DreamBathrooms
  • Durango
  • mdbf
  • magazineikmin
  • InstantRegret
  • rosin
  • modclub
  • Youngstown
  • slotface
  • thenastyranch
  • cubers
  • kavyap
  • everett
  • khanakhh
  • megavids
  • GTA5RPClips
  • osvaldo12
  • ngwrru68w68
  • normalnudes
  • cisconetworking
  • Leos
  • ethstaker
  • tester
  • tacticalgear
  • provamag3
  • anitta
  • JUstTest
  • lostlight
  • All magazines