infosec.pub

shalva97, to linuxmemes in It's OK if you cry

Never had problems with WI-Fi, but Nvidia Optimus

Hadriscus,

Good lord Nvidia fucking optimus

ace, to linuxmemes in Cmake me!
@ace@lemmy.ananace.dev avatar

People love to complain about CMake, often with valid complaints as well. But it - to this day - remains the only build system where I’ll actually trust a project when they say they are cross-platform.

Being the Windows maintainer for OpenMW, it used to be absolute hell back a decade and half ago when an indirect dependency changed - and used something like SCons or Premake while claiming to be “cross-platform”, used to be that I had to write my own build solutions for Windows since it was all hardcoded against Linux paths and libraries.

CMake might not be the coolest, most hip, build system, but it delivers on actually letting you build your software regardless of platform. So it remains my go-to for whenever I need to actually build something that’s supposed to be used.
For personal things I still often hack together a couple of Makefiles though, it’s just a lot faster to do.

rostby,

Wasn’t WSL supposed to solve this problem

ace,
@ace@lemmy.ananace.dev avatar

Not really, WSL seems like it was mainly supposed to stop people leaping ship to be able to develop Node without the horribly painful Windows JS experience. And wouldn’t you know it, Microsoft has been making their own JavaScript language in Typescript.

uis,
@uis@lemmy.world avatar

CMake and meson aren’t build systems, they are generators. If you want to use Ninja, just add -G Ninja.

AMDIsOurLord,

Cross platform

(*As long as your platform isn’t shite)

westyvw, to linuxmemes in It's OK if you cry

Funny. I had a laptop that would do full speed and full security. But not in windows. They crippled the card with the driver, unless you paid more.

0x4E4F,

Capitalism at it’s best…

MigratingtoLemmy, to linuxmemes in It's OK if you cry

Try BSD

ikidd,
@ikidd@lemmy.world avatar

You win.

cashews_best_nut, to linuxmemes in Every god damn time!

I use btrfs. Is there a reason I’d want subvolumes? What are they for? Why not just use partitions?

0x4E4F,

Snapshot software works with subvolumes, not with partitions.

bjoern_tantau, to linuxmemes in Every god damn time!
@bjoern_tantau@swg-empire.de avatar

I thought the flexibility of BTRFS was that you could basically always add subvolumes. Shows what I know.

0x4E4F,

Yes, you can, but now I have to move the entire install to a subvolume, risking borking the install 😒.

zzzz,

Or, ya know, just reinstall right quick.

0x4E4F,

Yeah, I’m thinking between that and rsync-ing to a new subvolume… the install is just bare bones, almost nothing was set up.

Ooops,
@Ooops@kbin.social avatar

Yes, you can. But the usual setup is to have a file system root that is nothing but subvolumes, which you can then use and mount basically as if they were independent partitions. But when you don't create a root subvolume for your system root first, you install the system directly on the file system root alongside created subvolumes. This tends to get messy as strictly speaking the file system root is a subvolume, too. So now you have that with your system installed and all other subvolumes nested inside it.

Chewy7324,

Yes. Usually the OS installer takes care of creating a root and home subvolume. Except Arch and similar barebones installer have instructions in the wiki.

Johanno, to linuxmemes in Every god damn time!

Hold on a minute. I can do subvolumes without partitioning?

0x4E4F,

Yep, you just add/remove them with btrfs tools.

Chewy7324,

A single btrfs partition on a drive with multiple subvolumes is the way to go.

hperrin, to linuxmemes in Every god damn time!

Ok, I don’t get it. Can you explain it to me?

0x4E4F,

Timeshift works only with BTRFS subvolumes, thus, if you wanna have backups (snapshots), you have to have subvolumes and not install in the root of a BTRFS filesystem 😔.

rostby,

Immutable distros rejoice 😎

0x4E4F,

Take way too much space… I dual boot on the same drive 🤷.

Turun,

If you want to you can just create a new subvolume, mount it temporarily and move all your files from root to there. Then you need to figure out how to make the new subvolume your root directory upon boot and you are done.

0x4E4F, (edited )

I know how to do that, you set the subvolume as the default one, thus, when mounting, if no options are passed, it always mounts that subvolume as root.

But, you have to disable that. Sure, I set it during install, cuz installers are stupid (if you tell it to install in /@, it will most probably moan), but disable it after first run (set the real root as the default subvol, i.e. mount point) and just add subvol mount options in fstab.

It’s just extra steps I have to do now 😒, that’s why the rant.

PrecisePangolin,

Thank you for sharing your knowledge.

eager_eagle,
@eager_eagle@lemmy.world avatar

That’s only to backup/rollback the root though, right? If one’s looking to backup - say - their home dir, they can just recreate the home as a subvolume without reinstalling the system. Or am I mistaken?

AnonStoleMyPants,

You can definitely do this with a few commands.

raldone01, (edited )

github.com/…/btrfs_folder_to_subvol.fish

Because I often forget to do it I wrote a little helper script.

This file can be run or sourced and only depends on btrfs-progs and fish.

0x4E4F,

Awww man, thanks ☺️.

Good thing I love fiish, it’s my default shell 😉.

0x4E4F,

Yes, you can just set it to mount a, let’s say @home, subvolume to /home and that’s that, done.

reflex, (edited )
@reflex@kbin.social avatar

Timeshift

Oh okey so if I have Snapper already, nothing I need to worry about?

valveman,

Snapper also uses btrfs subvolumes to create snapshots, so if you did create them during your installation process, nothing to worry about.

I don’t remember if there is a way to create them after the installation, neither if it’s a tough process tho. I used to simply reinstall when I messed up with the subvolumes.

backhdlp,
@backhdlp@lemmy.blahaj.zone avatar

sudo btrfs subvolumes create /path/to/subvolume

If you don’t configure anything, root will already be a subvolume.

If you wanna make a used directory a subvolume, you have to move the contents first, and move them back after creation.

The only thing that takes time here is the move

0x4E4F, (edited )

Yeah, but Timeshift uses the Ubuntu style subvolume naming, @ for root, @home for /home, so you have to create them that way, otherwise, it won’t work. It can work if you tell it to ignore home, but checks for @ as root on start up.

domi, (edited )
@domi@lemmy.secnd.me avatar

Check out Btrfs Assistant. It does what Timeshift does with a similar UI but works with any subvolume layout.

0x4E4F,

Hm, will check it out, thanks for the suggestion 😉.

backhdlp,
@backhdlp@lemmy.blahaj.zone avatar

Wasn’t aware of that, using snapper for my snapshotting needs.

0x4E4F, (edited )

I haven’t tried it. Does it have like daily, weekly, monthly snapshots setup?

backhdlp,
@backhdlp@lemmy.blahaj.zone avatar

You can have hourly, daily, weekly, monthly and yearly. I also use snap-pac to make snapshots before and after pacman transactions.

Check out wiki.archlinux.org/title/Snapper

Karyoplasma, to linuxmemes in It's OK if you cry

This seems like a good thread to ask:

I have a Retropie and I use wpa_supplicant to manage my connection there. It looks like this: the router is downstairs and I use a repeater in the room next to the Retropie to have better wifi coverage upstairs. The router itself is reachable, but the signal strength is worse. So, as a fallback, I put both the router and the repeater connection in my wpa_supplicant config file with the router having a lower priority. Still, sometimes my retropie clings onto the worse connection for some reason and there is no way to change it but to do a complete reboot. If I just restart the wifi with ifdown and ifup, it will either not reconnect to any wifi at all or reconnect to the shittier connection again, it’s kinda a fifty-fifty. A reboot will always properly choose the best signal tho and I am very confused why this is happening. Any ideas?

0x4E4F, (edited )

Have you checked what bands (channels) the repeater and the router use?

Karyoplasma,

The repeater uses a fixed channel (I think I set it to 7 or 8) and the router is set to automatic channel selection. Do you think fixing the router’s channel would help?

0x4E4F,

See if they’re overlapping, do a survey with your phone and WiFiAnalyzer (or another app). If they’re close or overlapping, set the router to a fixed channel as well.

Karyoplasma,

Aight, I’ll try that, thanks!

thericcer,

Set your wpa_supplicant to use the BSSID of the repeater’s access point and don’t put the SSID in the conf file. Then it will connect to only the repeater.

If the repeater just re-transmits tho main AP’s BSSID and packets, you need a better setup. Cheap WiFi extenders do this and almost always cause collisions, making the overall speed slow at all points.

The best setup is to have multiple wired APs.

Zerush, (edited ) to linuxmemes in It's OK if you cry
@Zerush@lemmy.ml avatar

ReviOS for the Windows user. It’s not a OS, but a collection of scripts which convert Windows in what it should have been.

Blue_Morpho,

Works with 11 22H2. That’s a year out of date.

It’s the same problem that all the prepackaged modified Windows have when I go to try them out in a VM. They always seems to be way out of date and with all the security problems of Windows, I don’t want to run an old version just to save the time of cleaning out the telemetry and bloatware. Powershell scripts are more robust for me.

ILikeBoobies,

Just use NTLite yourself

xX_fnord_Xx, to linuxmemes in It's OK if you cry

This vibes with me, but fifteen years ago me.

Installed Ubuntu on my first netbook and had to sit in the stairs to the second floor jacked into the single Ethernet cable we had for a few hours to troubleshoot it.

I haven’t used every distro, but it seems like most of them are plug and play these days.

froop,

I just installed mint on a new laptop. The wifi surprisingly didn’t work on the liveusb, but switching to the Edge release with a newer kernel worked fine.

0x4E4F,

That’s why I keep a 20m ethernet cable handy at all times 😂.

Crashumbc,

I just keep Windows handy :p

(Yes, I’m trolling)

BlueDwaggin, to linuxmemes in It's OK if you cry

Strange. One of them main reasons I wiped my Dell XPS OEM Windows and installed Linux was for -better- WiFi behaviour.

0x4E4F,

That might be one of the very few cases.

BlueDwaggin,

Possibly. Some XPS models (~9310) cheaped out on the WiFi chipset, which was really bad at reconnecting after sleep/suspend on Win 10/11 right out off the box.

Tried a live Linux install and it worked perfectly, so made the switch as there was no Win-only software that I needed.

0x4E4F,

The first experience with anything can make a world of a difference ☺️. Good thing I’m stubborn 😂.

DerisionConsulting,

I have installed Ubuntu, Pop!, or Mint as a fix for wifi issues on laptops probably about a dozen times over the past 20ish years.

I have never had a wifi issue with linux. My husband has had issues with Linux and wifi in 2007. But that was 2007.

Metz, (edited ) to linuxmemes in It's OK if you cry

Printer are worse. try to get a decade old brother to print more than a half page without completely freezing and needing a hard restart. driver is unmaintained unfortunately.

on Windows the printer works perfect though. which makes me quite unhappy :|

wifi on the other hand is not a problem i can remember. even on a 15 year old laptop, the AUR has a driver that it extracts from a ancient .deb and then patches it to make it work with modern kernels. lovely.

camelbeard,

I specifically bought a Brother printer because they at least try to support Linux. My previous one Samsung was much worse, it had Google cloud print so I could still use it. But Google like always killed something people liked.

Franzia,

On windows the printer works perfectly

Well, now I’ve heard everything.

0x4E4F,

What about cups, they have no driver for that printer there?

I have a LaserJet 1000, 20+ years old, only works Linux and Windows x86 😂… so I just set up a peint server and shared it 🤷.

Metz,

The driver shows up as “cups + gutenprint” and as far i can tell there is no other. so i guess that is already the one and only available driver.

and i have to correct myself, it is a Canon, not a Brother. Canon MX300 from 2007.

I mean it is not that big of a deal anyway. there is a single Windows machine left in this household that i can use for print jobs. and yeah, maybe i could use it as print server, that is actually a interesting idea lol.

0x4E4F, (edited )

Try searching online for cups filters. Maybe someone made a custom filter file for that printer that works… worth a shot 🤷. I’ve had luck hunting down custom filters for some obscure printers in the past.

Setting up a shared printer in Windows is (could be) a PITA though… not being able to choose SMB versions can make your Linux setups with SMB a pain 😔. That’s why I prefer Linux with samba as the print server, you can fine tune almost everything to make it work with any Windows and Linux install.

Metz,

thanks for the tip, i will have a look!

and yeah, funny enough i had less problems getting SMB to work between linux and windows than windows and windows despite it being a Microsoft native.

0x4E4F, (edited )

Also, true story, LTSC 2019 can’t see shares from LTSC 2021, but the opposite works without a problem 🤣. It was a bug, they eventually fixed it, but took them like a year or so (they threw the ball at users, not setting up the shares correctly 😒), and I already reinstalled all rigs with LTSC 2019, so… too late MS 🤷… I haven’t used LTSC 2021 from that point on.

Longpork_afficianado,

It’s the newer Wi-Fi chips that have issues, those for which drivers aren’t yet released. There always seems to be a year-long delay between the next gen laptops being released and the wifi drivers for them.

bl_r, to linuxmemes in It's OK if you cry

I’ve only had problems with wifi drivers twice, immediately after clean-installing fedora 38 on two different devices. Plugging my device into ethernet and updating fixed it instantly.

MrShankles,

What do I do if my laptop doesn’t have an ethernet port?

Voyajer,
@Voyajer@lemmy.world avatar

Not sure about iPhones, but I’ve used an android phone a couple times to both USB tether with data and to act as a WiFi receiver to download drivers in a pinch.

Sowhatever,

Use a second computer or a friend’s one to download the updates, get a USB ethernet adapter (a 100mbps one is like $5), put the system drive in a computer with lan, tether with another device via USB (phone, pi zero, etc) or use a different version/distro. I’m sure there are a bunch of other solutions.

bl_r,

I guess an ethernet to USB adapter might be your next best bet.

Alternatively, you could USB tether your phone if you have a good data plan

If you are in the unlikely event that you don’t have ethernet port to plug your device into, and no cell service, such as I was, you can use a spare wireless AP to get wifi if you’ve got one

Synthead, to linuxmemes in It's OK if you cry

Every wireless adapter I’ve used in Linux for the last 10 years has worked flawlessly.

bjorney,

10 years ago was the turning point. I remember as late as 2010 -2012 having to use NDISwrapper to install the windows XP wifi drivers because there were no native drivers so you had to run the windows drivers through an emulation layer to get wifi to work. Even within the past 5 years I’ve had to compile my own fixes for realtek chips because the auto installed drivers were not working optimally

0x4E4F,

Yes, if it’s on 5 to 10 year old hardware.

Synthead,

I haven’t had any issues with new hardware, either.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20975616 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38