linux

STEAM is required to play the game

Any ideas on how to fix this ? OS: Pop!_OS 20.04 LTS x86_64 Host: Inspiron 3543 A10 Kernel: 5.11.0-7614-generic Uptime: 3 hours, 28 mins Packages: 2056 (dpkg) Shell: bash 5.0.17 Resolution: 1366×768 DE: GNOME WM: Mutter WM Theme: Pop Theme: Layan-dark …

Run script upon running script?

Im running discord via rofi, meaning that will run the discord.desktop file,which is this:

[Desktop Entry] Name=Discord StartupWMClass=discord Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. GenericName=Internet Messenger Exec=/usr/bin/discord Icon=discord Type=Application Categories=Network;InstantMessaging; Path=/usr/bin Path=/usr/bin 

And this runs the discord executable at /usr/bin/discord

Now i want to run another script after running /usr/bin/discord.

How’d I go about doing that?

I tried creating a new file at:/usr/bin/discord-rpc

#!/usr/bin/bash /usr/bin/discord & sleep 45 /opt/simple-discord-rpc/index.js & 

But this doesnt seem to start :/

Am I missing something?

submitted by /u/rbrtbrnschn
[link] [comments]

How do you guys manage your dotfiles across multiple platforms?

My main machines at the moment are running Ubuntu and OS X. They’ve each slowly grown their own dotfiles, with a lot of crossover.

It would be nice to be able to consolidate them as much as possible and actually start tracking them in git so I can have as consistent experience as possible on any machine.

Do you detect the OS within your dotfiles? Or just track dorfiles for different operating systems completely separately? Or find workarounds for compatibility?

Any advice would be appreciated.

submitted by /u/TinStingray
[link] [comments]

Cinnamon vs. KDE – Power Draw and Batterylife Comparison

I recently bought a ROG Strix SCAR 15 G533 with a 3060RTX and tested some distros.

I have a power meter attached to the laptop so I thought I make a small experiment to test the idle power draw and battery life and share the results, since there may be others who are interested in it and I could find few existing comparisons.

Systems Tested: Manjaro 21.0.4 KDE and Manjaro 21.0.4 Cinnamon

Testing Conditions

  • Display set to 60Hz, 50% Brightness
  • Clean install with updating: Kernel 5.12.1, Nvidia Driver 460.73.01
  • Idle with Firefox open on google and htop in Terminal

Results:

Manjaro KDE Manjaro Cinnamon
Power Draw 20-35W very flaky 13-15W
Battery after 1h Idle 70% 94%

I also have Linux Mint with Cinnamon installed, but with a different config, so I did not include it, but it consumes only 10W while in idle.

I’m not sure where the big differences come from, but I noticed considerable CPU usage from plasmashell and kwin_x11 (~4%) in idle on KDE. In cinnamon I didn’t observe such heavy CPU consumption (cinnamon –replace ~0,4%).

That alone does not explain the much higher power draw, so I suspect KDE does something to trigger activation of the external graphics card instead of the integrated one. I can observe higher power draw when forcing to use the nvidia graphics card instead of hybrid mode.

submitted by /u/Pascalius
[link] [comments]

Is there still a Linux that fits on a floppy disk?

I’m trying to find a Linux distro that fits on a floppy, preferably with room to spare. See I remember reading a lot of fiction back in the text mode internet days. To relive some of that I made a DOS boot disk with an HTML reader and a copy of my Sci-Fi novel. The DOS version is bootable on a 286+ with 640kb ram.

https://www.chromaspace.net/dos-ebook-free-preview

One of the main issues with the DOS version is that, even though you CAN write the floppy image to a USB drive with etcher or DD and boot a modern computer off of it, the mouse driver only supports serial mice and the sleep command runs WAYYY too fast, well at least on my 5800X.

I thought it might be fun to build a Linux boot floppy or minimal USB image that supports a text-mode browser like Lynx.

Most of the posts I find on google are VERY old and the links don’t work.

Any help would be great.

submitted by /u/chromaspace
[link] [comments]

NetworkManager autoconnect to wifi after boot/login, storing credentials encrypted on disk

Hi all, I am wondering if this would be possible, but I can barely find anything about it online. What I’m trying to do is to pre-manage a WPA2 enterprise wifi network, preferably using the credentials that a user fills in during login. The credentials should be stored by NetworkManager in encrypted form, because having them in plain text is just plain ugly. But the gnome-keyring interaction with networkmanager confuses me. When does it ask for the password and when?

I could only find this article that tries to do the same thing: https://bkhome.org/news/201909/encrypted-passwords-for-networkmanager.html

But it does not explain what to change exactly so it stores the password encrypted on disk and uses the user logon credentials, besides it seems for a custom Redhat-based OS and I’m using Ubuntu (20.04)

submitted by /u/Surowa94
[link] [comments]

A question for distro hoppers and tech hoarders.

When setting up a new install, do you have a script or personal package that helps you customize things the way you like? If so, what does it do for you?

I recently started making aliases for some of my favorite commands, and setting up vim a certain way. I happen to have a few machines and I thought, rather than copying the files manually, why not just put together a script that would do the customization? And then I could just keep that around for future installs etc. I’m sure plenty of you do that already, so I was hoping to get some ideas about how you do it and what you customize.

submitted by /u/CerberusTamen
[link] [comments]

Linux process hooks

hi, I want to create a Linux process and i want to know inside my program about when my process is running in the processor and when my process is kept in waiting. Also, I is it possible to tell the operating system not to take my program out of conte…

BTRFS – Use Cases

I’ve been checking into BTRFS as of late.

Found that Facebook is using BTRFS to get more efficient resource utilization.

And Trip Advisor uses it for Logging.

This is a large contrast in use cases. I’m finding that large companies with the most resources have begun to use BTRFS, and generally create their own in house tools from what little detail I’ve found.

Searching the web; I’ve found mixed results for end users.

Do you use BTRFS on Your home setup? If So; please share your experiences. I’m considering this over EXT4 with LVM.

submitted by /u/RandomXUsr
[link] [comments]

Converting Android to Linux

I’ve thinking about linux on ARM lately and, from the things I’ve read, it seems like the biggest issue that stands in our way is hardware support. Boot proccesses, device drivers and such differ quite a bit from one another, which would mean you would have to explicitly write support for every device out there, which isn’t feasable.

But someone has already done this work: the manufacturer. Given that Android runs the Linux kernel at it’s core, wouldn’t it be possible to wipe out everything above the HAL (or just the kernel, I’m not really sure) and just build ARM versions of the GNU suite on top of it?

After all, Android = GNU/Linux – GNU + proprietary software

AFAIK the main issue here would be screen and touch support, but I think it would still be easier than implementing it from the ground up. I also mentioned the HAL, which is not present in standard Linux distros, there might be some work needed to integrate it with the kernel even more…

This is such an obvious idea, so it’s likely I’m missing some enormous caveat, what is it?

submitted by /u/TizioCaio84
[link] [comments]