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.

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

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Depends on settings and the amount of availlable RAM. Install fedora KDE spin on three systems, one with 4GB, one with 8 and one with say 16GBs of RAM. You should see, that the vanilla install of KDE uses different amounts of RAM on each system. KDE uses caching of all kinds of stuff to make the overall experience smoother. The amount and aggressivenes of the caching depends on distribution defaults. And KDE using, say, 8GB of RAM when idling isn’t bad. RAM is only useful, when it is used. When memory pressure increases (applications are actively using lots of RAM), KDE will automatically reduce cache sizes to free the RAM up again.

The entire notion of the system using as little RAM as possible is really weird and usually (imho) shows that people who say that don’t understand how the RAM is used. I want my system to make good use of my RAM, and as much of that as is reasonable.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Oh man, I am too tired. I read that as “Some comrades can’t be executed by keyboard shortcuts …” and was like, wtf! Then I read it again.

Rant about Nvidia related updates on Linux (kbin.social)

There are many reasons to dislike Nvidia on Linux. Here is a little thing that bugs me all the time, the updates. Normally the system updates would be quick and fast, but with the proprietary drivers of Nvidia involved, it gets quiet slow process. And I am not even talking about any other problem I encounter, just about the...

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

pkgsrc and *BSD entered the chat.

Don’t bother arguing with him. AUR is special because it is arch and arch is special and because he is using it and it has to be special!

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

it will help developers

Until they break it.

ship extensions faster

Which they need to adress the regular breakages.

and with fewer bugs by using standard JavaScript modules and IDE support

If I wanted to suffer web technologies, I’d develop content targeting web browsers, not a DE. JavaScript does a lot of things, being conducive to bug free code is not one of them.

I really admire the pain tolerance and endurance of devs developing and maintaining extensions for gnome. At what point does it become acceptable for them to drop that garbage DE? Rhetoric question: always has been.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

You know that that is only an option and not a forced replacement for the “proper” API, right? Nobody is stopping you/me from writing plasmoid logic in C++.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I remember this working really well on google. Recently (several months?) it didn’t as I would expect. Fictional example: when searching for “asdf123” google would show results just containing ‘asdf’. One particular thing I noticed was that google seems to omit underscores from verbatim strings. So for example when searching for “asdf_qwertz” it would show results that contained asdf and qwertz without the underscore.

Linux 6.6 To Better Protect Against The Illicit Behavior Of NVIDIA's Proprietary Driver (www.phoronix.com)

Luis Chamberlain sent out the modules changes today for the Linux 6.6 merge window. Most notable with the modules update is a change that better builds up the defenses against NVIDIA’s proprietary kernel driver from using GPL-only symbols. Or in other words, bits that only true open-source drivers should be utilizing and not...

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I have not had a look at it myself, but my understanding is, that that was/is only glue code to the closed source blob.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

And you can simply get it from rpm fusion on fedora, and I’d guess something similar on manjaro. It’s just gone from the official fedora repositories for liability reasons. rpm fusion as a defacto standard for desktops/laptops was enabled there before that for what, like 99% of the installs?

Single quotation marks suddenly appear around file and directory names

I installed some software and I think afterwards I was navigating through CLI and noticed that some directories or some files in some directories had single quotation marks around the names. They don’t appear in the GUI. How do I get rid of them? Do I have to use a recursive command to delete the quotation marks for the entire...

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I’d wager a guess, that all file/folder paths that are surrounded by quotes contain at least one space!? And you’re talking about the output of ls? It’s rather unlikely, that installing any software has changed that behavior. It’s just a display feature, to denote that “two” parts separated by a space are actually one.

_cnt0 , (edited )
@_cnt0@lemmy.villa-straylight.social avatar

The backslash escapes the space because it would otherwise denote a seperator to the next argument of the command. ls a b c means invoke ls with the three arguments a,b, and c. ls ‘a b c’ or ls a b c means invoke ls with one argument “a b c”. That behavior is universal for pretty much all unix/linux shells (ie bash).

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Add-on: you really don’t need to get rid of the quotes. It’s a very reasonable behavior. You just need to learn/understand what they mean.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

It’s really neither a bug nor a problem. It is very reasonable default behavior to enable piping to or parsing by other commands because space is the default separator for arguments.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Feel free to travel back in time and have a discussion with Ken Thompson in ~1970, whether spaces in file/folder names should be allowed in the first place. I for one use an underscore instead, whenever I have control.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

It’s certainly no bad habit to handle spaces in scripts preemptively, and obviously they do occur in the wild. Quotes from ls output do not get piped to other commands. I had to look that up myself right now, because it has been quite a while since it mattered to me.


<span style="color:#323232;">$ touch 'file with spaces in name'
</span><span style="color:#323232;">$ ls
</span><span style="color:#323232;">'file with spaces in name'
</span><span style="color:#323232;">$ ls | cat
</span><span style="color:#323232;">file with spaces in name
</span><span style="color:#323232;">$ 
</span>

Looking through some scripts I wrote back in the day, I seem to like to use ls -1 in scripts. I guess that reduces ambiguity on what the separator is.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Heed the warning ;-)

Jk. It’s not black magic. Just do as AlpacaChariot said. You might want to read up on it a bit www.shell-tips.com/bash/environment-variables/

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I just did the questionnaire for shits and giggles, not expecting much. The top two suggestions were fedora and debian. I’m actually running fedora and debian on different machines. I wonder how much of a fluke that is, or if it really is that good. Anybody else, who’s already happy with their distribution(s), tried it?

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I like to cook a spice tea with cinnamon, star anise, cloves, and black pepper (cook it all for 10 minutes), and then add some fresh orange juice and honey. Goes well with deliriously binge-watching a series from my “to do” list.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

If you want to add tea (sometimes I add black tea), just let it steep for the normal duration after cooking the rest and before adding the orange juice and honey. For the best result/taste you should grind the spices right before cooking. (Pre-)ground spices work to; you might use a little bit more of them. A word of warning on the pepper: use very little at first. Cooked it the water it is a lot hotter/more stinging than you might expect.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

My mother always made chicken soup when I was sick with a cold/flu. I always felt worse afterwards and she would be upset when I told her because “that’s so unkind to say”, like it was a criticism of her cooking. It took me so many years to figure out that I am slightly allergic to celery which I was only fed when I was already sick …

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

As someone who has used linux for >25 years and has experienced the madness of SysV init scripts for decades (well, only two, but the plural is still technically correct; the best kind of correct), I have a very hard time to take people who make posts like these serious.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Repeating false statements doesn’t make them true. fyi: that’s a criticism of your comments ;-)

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I had forgotten about that.

And it was good that way.

If I don’t have that song out of my head by tomorrow, I’ll stalk your account, find out your irl id, and send you muffins with raisins.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

What’s wrong with Tessier-Ashpool?

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I had hoped, that you would notice my user name kind of resembles Count Zero, my avatar is taken straight from a Count Zero book cover, and my home instance is lemmy.villa-straylight.social

Well, you know what they say about explaing jokes and what that does to their funnyness. I guess it was not obvious enough.

_cnt0 , (edited )
@_cnt0@lemmy.villa-straylight.social avatar

What are things like at Starylight.social?

Small and chill. Like it was an abandoned orbital revolving around the fediverse ;-)

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

When I was studying CS I had a few courses on UX/UI design and the most interesting fact I learned there when looking for papers is: ~half the high profile researchers in the UX/UI field are on Microsoft payroll, and everything Microsoft does is highly inconsistent to contrary to all the insights of their own researchers. I think they buy as many of those people off the market as they can, just so they don’t work for somebody else, while shitting on their work, so their UX/UI just doesn’t look as bad in comparison to others.

Still trying to figure out this Lemmy ordeal. lots of overlapping and not enough specific groups, so I feel this should belong here (lemmy.world)

So I’m struggling to understand all the different types of usb standards like 2.0, 3.1, 3.2, 4.0, etc. I am interested in only USB c to USB c. I’ve read about higher data transfer speeds? I’m confused by what that actually means. Is that like transferring files from your laptop to an external drive? Basically sending files...

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Type A to C (almost) only describe the physical dimensions of the sockets/connectors. There is a (non-standard) color coding for A sockets that let’s you see at one glance which USB version is supported (look for “Usual USB color-coding” here: en.wikipedia.org/wiki/USB_hardware). Color coding is rare on laptops, though. The best kind of cable is one that can be plugged in without force on both ends (/s). If you want to use a docking station, more important is, what protocols are supported on which port of your laptop. What you want/need is DisplayPort over USB-C (DP Alt Mode) or Thunderbolt. There is no easy command to check if you have it, and the most common advice to look for certain emblems next to the socket isn’t really reliable. A quick google search suggests, that your machine can speak DisplayPort 2.0 and Thunderbolt 4. You should look into the technical specifications of your machine to be sure.

Why do people still recommend Thinkpads for Linux when there are Linux-oriented manufacturers now?

I’ve noticed in the Linux community whenever someone asks for a recommendation on a laptop that runs Linux the answer is always “Get a Thinkpad” yet Lenovo doesn’t seem to be a big Linux contributor or ally. There’s also at least six Linux/FOSS-oriented computer manufacturers now:...

_cnt0 , (edited )
@_cnt0@lemmy.villa-straylight.social avatar

I have a Slimbook PRO X AMD. Except for the rubber bands on the bottom coming loose after ~2 years, it just works. And I never had a laptop from any manufacturer where the rubber feet/bands did not start to peel of after a few years.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

one of those vendors

Which one?

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

now

They have had it for a while ;-)

ps: I hope I got the tense right. Not a native speaker and slightly drunk. They still have it.

Hey Linux devs - Build a GUI or gtfo

Not everything actually requires a GUI, obviously. But anything that requires configuration, especially for controlling a hardware device, should have a fully functional GUI. I know Linux is all about being in control, and users should not be afraid to use the command line, but if you have to learn another bespoke command syntax...

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

edit: mixed you up with OP, but, meh, unaltered reply:

Where the fuck is the actual executable and its configs?

which … with … being the name of the executable. Whyever it matters to you in which exact path an executale is …

God help you when you uninstall and clean things up if you use compiled packages instead of ones from your repository.

make uninstall or xargs rm &lt; install_manifest.txt will usually do the trick. If neither is an option, observe the output of make -n install and undo the installation manually.

Judging from your post and comments, you’d be much better off with a distro other than arch and using packages from a distros repository plus maybe flatpak or snap.

This has to be my number one gripe about Linux. How every package just spews binaries and libraries and config files all over the place.

99.9% of the times those places are pretty well defined and easy to look up. You seem to lack some basic knowledge about linux/unix conventions and make false assumptions about how things should be and then come to judgemental conclusions when they aren’t.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I actually have an older HP envy x360 (AMD chipset). Works like a charm with linux (everything out of the box). The touchscreen is fully functional, but I don’t really use it. I don’t dig that at all 😅

One thing that bothers me is that it is impissible to update the BIOS firmware without at least a Windows VM.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

For the kind of workload you’re describing, 16GB of RAM was on the low end like 5 years ago. Your number one priority should be getting more RAM. For what you’re doing vmware is at least better than HyperV, and depending on what people are doing with their machines there can be pros and cons favoring Windows, linux, OSX, … in your case Windows is factually the worst choice. When working as a developer with linux native technologies, use linux. If you insist on your kids playing with your work machine (interesting choice), and they “need” Windows, then dual boot. Other than that I’d second another users advice to go with fedora (easy to use, up to date, no bullshit). But do yourself a favor, go bare metal, and get more RAM.

Where is zsh supposed to be?

Hi all I have a quick question. Is it better for my zsh shell to be in /usr/bin/zsh or /bin/zsh. I remember reading that one of them would mess up the whole system since zsh is not posix compliant. I believe that szh shouldn’t be set as the root shell. I now have it in /usr/bin/zsh, is that good? So now when I drop into a root...

_cnt0 , (edited )
@_cnt0@lemmy.villa-straylight.social avatar

#!/usr/bin/env zsh is better for portability/compatibility. You can set the root shell as whatever you want (including zsh). Leaking the user context with sudo -s is generally a bad idea. Unless you actually share a system with multiple users, I’d advise to set a root password and use su - in favor of sudo -i or sudo -s. Two (proper) passwords are more secure than one.

edit: typo

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

It should be #!/usr/bin/env …

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

On your system. Check out the table halfway down where env is located on different systems: cyberciti.biz/…/finding-bash-perl-python-portably…

_cnt0 , (edited )
@_cnt0@lemmy.villa-straylight.social avatar

I understand the motivation of using the user environment in the root context. It’s still a bad idea. The assumption is, that it is easier to compromise a non-privileged desktop user than the root account. Imagine some exploit breaking out of a sandbox and doing some minor modifications to your $HOME: either aliasing ls to a script somewhere in your home by changing your profile or some shell rc file, or prepending your $PATH environment variable with a folder burried somewhere in your home directory where a script ls is placed:


<span style="color:#323232;">#!/usr/bin/env sh
</span><span style="color:#323232;">
</span><span style="color:#323232;">if (( $EUID == 0 )); then
</span><span style="color:#323232;">    # do something evil here
</span><span style="color:#323232;">fi
</span><span style="color:#323232;">
</span><span style="color:#323232;">ls "$@"
</span>

Now, as an attacker you just wait for some admin on a shared system to come along and use sudo -s.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

While this is true for most linux distributions, it’s not true for all and there are other POSIX compliant OSs which are not linux at all:


<span style="color:#323232;">/ # grep -i pretty /etc/*-release
</span><span style="color:#323232;">/etc/os-release:PRETTY_NAME="Alpine Linux v3.18"
</span><span style="color:#323232;">/ # ls -ld /bin
</span><span style="color:#323232;">drwxr-xr-x    2 root     root           862 Aug  7 13:09 /bin
</span><span style="color:#323232;">/ # 
</span>

As you can see, /bin is not a symlink there.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Up until now, I’ve only been commenting on other peoples comments to nitpick. I think it is time to give you a comprehensive answer on my own:

You didn’t mention, what distribution you are using. Either way, you should use your distributions package manager to install zsh. Wherever that places the zsh binary is fine; you should not change that! If you want to know where the zsh binary is located, you can issue the command which zsh. That zsh should somehow be dangerous as a root shell because it is not POSIX compliant is nonsense. You can use whatever you like as a shell for root. If you don’t want to change the login shell for root, you can just start every shell from any shell by executing it’s binary (i.e. in bash type zsh, or the other way around). If you want to know what shells on your system are considered viable login shells by your system, you can issue the command cat /etc/shells; in your case it should list /usr/bin/zsh. If you want to change the login shell for a user, as that user run chsh -s … where … is the fully qualified path of a valid login shell; to be sure to not make typos or use an alternate path, you can combine that with which, and for example to use zsh use the command chsh -s $(which zsh). If you are the sole user of your system, I’d strongly recommend using seperate configurations for zsh for your normal user and root.

So now when I drop into a root shell I don’t get […]

Issuing su - or sudo -i or logging in as root in a full screen TTY (ctrl+alt+F*) will spawn a new shell (the login shell configured for root). If you are unsure, what shell you’re currently in, you can find that out, by issuing the command readlink /proc/$$/exe. If readlink is not available on your system, you can use ps -fp $$; be aware though, that that will show you the command the shell was started with, not necessarily the path of the shell executable.

If you want to write scripts you should always specify the shell it should be executed by with a shebang. For maximum portability/compatibility (do you like to distro hop? want to share it with a friend/the internet?) you should use env in the shebang. For you, if you want to script with zsh, that simply means always having #!/usr/bin/env zsh as the first line of scripts.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Sure, things usually put env in /usr/bin, but there’s no guarantee for that.

There is even less guarantee for it to be anywhere else.

Hardcoding /usr/bin/env is probably your best bet

Because it is the convention.

That’s why #!env is probably your best bet

It definitely isn’t. That might work in your user space instance of bash in the desktop, but will likely fail in a script invoked during boot, and is guaranteed to fail on several non-gnu/non-linux systems.

#!/usr/bin/envis the agreed convention and there is no probably or but about that. If that does not work on a system it is a bug (looking at you BusyBox containers 🤨).

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Nothing beats Kile for LaTeX, imho.

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

Fuck docker! All my homies use podman!

_cnt0 ,
@_cnt0@lemmy.villa-straylight.social avatar

I’ll add my +1 for FreeCAD. It can export to stl (you mentioned that in another comment). Though, if it is a good fit for your father’s needs is highly dependent on the kind of designs he’s trying to achieve. FreeCAD is good for “geometric” designs, not so good for “organic” shapes. As any tool, it comes with a learning curve.

deleted_by_author

  • Loading...
  • _cnt0 ,
    @_cnt0@lemmy.villa-straylight.social avatar

    Until this comment I was giving you the benefit of the doubt. Now, I am convinced that you are trolling. Either that or you do not have the mental capabilities to have a reasonable conversation. Either way: bye.

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