linuxmemes

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

key, in Just a PSA
@key@lemmy.keychat.org avatar

Ctrl-z

ps

kill -9 pid

fg

WaterWaiver, (edited )

Alternative:


<span style="color:#323232;">Ctrl-z  
</span><span style="color:#323232;">kill -9 %1   # Shell keeps track of job pids for you, job 1 is %1, job 2 is %2, etc
</span><span style="color:#323232;">fg  # Not technically necessary, but it's fun to see the corpse
</span>
possiblylinux127,

<span style="color:#323232;">killall vim
</span>
SpaceCadet, (edited )
@SpaceCadet@feddit.nl avatar

Reminds me of the time I brought down a whole AIX server with the killall command back in the 1990s.

On AIX killall really means kill every single process.

bulwark, in Alpine Linux is just Busybox in a Linux Distro trenchcoat

Where’s that package manager tho?

corsicanguppy,

It’s no RPM but apk is okay.

CeeBee, in Accurate?

No, not accurate. NixOS isn’t anywhere in there

molochthagod,

This is a very old meme. NixOS wasn’t popular then (or didn’t exist, I dunno).

dai,

Nix is like 20 years old, wasn’t popular and still isn’t 😅

molochthagod,

Okay, but until like this last year I’d barely see mentions of it, but now it’s kinda everywhere.

dai,

Yeah I use nix 😅

I think the idea of a (relatively) simple or as complex “roll your own flavour” OS makes lots of sense to someone like me. For most people the effort might not be worth the payout.

molochthagod,

i get that, it’s a preference thing

Discover5164, in Every god damn time!

you can create them afterwards and move the stuff into the subvol. do it from a live usb and don’t forget to update fstab. be sure to use rsync with the flag to keep permissions etc

0x4E4F,

Yeah, that should work, thanks 👍.

cashews_best_nut,

You’re welcome

AffineConnection, (edited )

That’s simple, but it’s a completely unnecessary waste of I/O. You could create a writable snapshot of the btrfs root as a subvolume, edit the fstab and any other relevant files within that new subvolume, reconfigure the bootloader to specify that subvolume as the root filesystem (as a Linux kernel command line argument) instead of the btrfs root, and then reboot. After rebooting, the original btrfs root can be mounted, and everything unwanted from the original root (other than the new subvolume and its ancestor directories, obviously) can be deleted. Do not delete anything that you didn’t want to lose the changes to on the original root subvolume that you did after creating the snapshot, as the snapshot only remembers what you did before, as well as the changes made specific only to it (like the fstab).

If one wanted to create multiple subvolumes for different purposes, the above procedure can be modified. For instance, if one wanted a separate subvolume mounted at / vs /home, then one can create two writable snapshots, empty out the contents of home in new subvolume 1 (but not the /home directory itself because you want the directory to exist for something to mount onto it), empty out everything outside of home within new subvolume 2, move the contents of home therein up one directory and remove the /home directory itself. Now, one can edit the fstab in new subvolume 1 as appropriate (not forgetting to have new subvolume 2 mount at /home), edit any other relevant files, reconfigure the bootloader to tell the Linux to use new subvolume 1 as the root subvolume, then reboot. Finally, one can remove the unnecessary files from the original root.


Edit:

It is arguably better to manually specify the new root when booting in the Linux kernel command line, and not reconfigure the bootloader until you successfully boot. After success, (if the following is relevant to your system) use update-grub, and it should look at fstab to automatically reconfigure the bootloader accordingly to use the appropriate new subvolume as specified at fstab.

This is what I did years ago to one of my own systems, although I don’t know anything about Timeshift and how it requires things to be set up (I have my own backup scripts that are run by cron). I could have just snapshotted the btrfs root directly for snapshots, but I wanted the snapshots to be cleanly separated from the subvolume used as the Linux VFS root (except when I explicitly mount them).

Discover5164,

you’re right, this is a solution efficiently using the btrfs features. thank you

vsis, in Just a PSA
@vsis@feddit.cl avatar

wrong: you press esc multiple times to make sure you are in normal mode.

treadful,
@treadful@lemmy.zip avatar

At least 3 times. 5 to make sure.

azvasKvklenko, in It's OK if you cry

Extremely outdated, but would still work with fingerprint sensors or NFC readers

PeWu,

I had a case where fingerprint sensor was working out of the box fortunately. Although I had a problem where cryptfs would stop authenticating successfully with fingerprint sensor after distro update

AVincentInSpace,

What display manager do you use? I have not been able to get Howdy to work without also typing my password with SDDM

Aganim,

Absolutely not outdated. I had a horrible time getting my hands on a working driver for the WiFi card in my brand new laptop last year. Horrible enough to resort to Ubuntu and even that gave me the finger. When I finally had it working I had to manually rebuild the damned thing each kernel update because I couldn’t convince DKMS to do it automatically. Had to wait two or three kernel releases for the card to be supported ‘out of the box’.

So no, fuck WiFI drivers in Linux. If it is not in the kernel and the manufacturer doesn’t provide one, don’t expect fun times.

woelkchen, (edited )
@woelkchen@lemmy.world avatar

Outdated for Linux Intel, still valid for Broadcom, probably not so bad for somewhat recent Realtek and AMD/Mediatek (last I’ve read is that Mediatek WiFi hardware sucks in general and disconnects happen on Windows, so the same happening on Linux would be the fault of the Linux driver).

EDIT: Accidentally wrote Linux instead of Intel.

Prismey,

I installed linux on a new pc 2 days ago, had no problem with the wifi drivers. I don’t know if it’s the fact that the wifi is integrated on the motherboard, but it was up and running without any tweeking from me (unlike windows)

Aganim,

In my cause it was actually a newer type of Realtek chip. 😞

woelkchen,
@woelkchen@lemmy.world avatar

But was the cause the Linux driver or the hardware? If the fault is the hardware and the experience on Linux is the same as on Windows, it’s feature parity.

If in doubt, get an Intel WiFi card. Even in otherwise not upgradeable notebooks those are usually not soldered on. Also whatever is in a Steam Deck OLED looks like a good pick.

SimplyTadpole,
@SimplyTadpole@lemmy.dbzer0.com avatar

Does Intel sell wifi cards that use USB rather than PCI slots? My motherboard doesn’t have the slot for a wifi PCIe card, and I’ve only seen Intel sell those :/

woelkchen,
@woelkchen@lemmy.world avatar

Does Intel sell wifi cards that use USB rather than PCI slots?

AFAIK the problem is that the chip itself was only developed with the PCI protocol in mind.

SimplyTadpole,
@SimplyTadpole@lemmy.dbzer0.com avatar

I see, that is a shame…

Aganim,

It was the driver, now that support is provided by the kernel it is rock-solid.

woelkchen,
@woelkchen@lemmy.world avatar

Realtek upstreamed their drivers in 2020 or 2021. I got rid of my last notebook with Realtek hardware for unrelated reasons.

SimplyTadpole, (edited )
@SimplyTadpole@lemmy.dbzer0.com avatar

I can absolutely confirm it’s still valid for Realtek. I had one using the RTL8812AU chipset that basically no kernel version nor distro provided out of the box, so I constantly had to download a third-party driver from Github and manually patch it via dkms, or use a third-party repository containing the driver package… and then the driver broke so badly that it wouldn’t let me update at all unless I uninstalled it, which left me without the internet I needed to actually update, effectively leaving me unable to update until I could buy another one from Mediatek that’s compatible.

And said Mediatek wifi is really slow, so I just went from the frying pan into the fire…

woelkchen, (edited )
@woelkchen@lemmy.world avatar

I can absolutely confirm it’s still valid for Realtek. I had one using the RTL8812AU chipset

Yeah, and I was explicitly writing about recent chips. RTL8812AU isn’t recent. The very latest Windows driver is from 2018, so the chip itself was released a good while before that.

I know exactly what you had to go through because I had to do the same with mine a couple of years ago but since then for newer chips Realtek started contributing to Linux itself:

which left me without the internet I need

USB tethering your WiFi-connected phone would have worked as stop gap just as well. I had to do that a lot.

SimplyTadpole,
@SimplyTadpole@lemmy.dbzer0.com avatar

Ahh I see, thanks for clarifying. It seems that where I live mostly only has the older Realtek chips for sale, so I likely mostly had bad luck.

I tried USB tethering, but it wouldn’t work for some reason… I don’t remember exactly what happened, but I think either the phone or my computer couldn’t detect each other.

woelkchen,
@woelkchen@lemmy.world avatar

USB tethering should look on the PC just like plugging an Ethernet cable.

bertd2,

I do occasionally fall for just buying shtuff without a quick google search to see if my kernel would be cool with it, but I have an even greater number of stories about good experiences with Windows shtuff driving me bonkers.

For example, the Brother ADS-1200 under WIndows beats anything SANE supported scanners can do hands down. Scan to PDF with excellent compression and top of the line OCR. The spousal unit needed a scanner and I found a good deal on an ADS-2100. Under Linux, scan results are totally comparable to the ADS-1200, so the hardware is fine. But the Windows software for this scanner is crap. JPEG and TIFF are identical to the Linux scans, but OCR and PDF compression are atrocious. I’m 100% sure that if I were to edit a table in the ADS-1200 software, it would happily apply the same excellent results to the ADS-2100. But I’ve had it with hacking Windows goop, been there, done that, got the t-shirt, so onto Craig’s list the 2100 goes… Built in obsolescence, welcome to the Windows world.

With Linux, once the kernel accepts it, it’s smooth sailign without too many vendor introduced hickups.

And even on Windows, if you need to use third party scan software like VueScan because your scanner happens to be older than your Windows. it’ll work but it won’t outperform SANE supported scanners.

azvasKvklenko,

Situations like that aren’t very common these days. It usually happens when your hardware is very much new and drivers aren’t yet in the Linux kernel, or they are in the newest mainline, but your distro wont ship it for some more time. For that matter, it’s always bad when the kernel doesn’t have the drivers built in and it always requires dealing with DKMS or akmod whether it’s wifi, webcam, bluetooth or GPU (that’s why NVIDIA tends to be problematic on some systems).

That being said, the meme only works for anecdotal cases.

michaelmrose,

If it is not in the kernel and the manufacturer doesn’t provide one, don’t expect fun times.

This could be shorted to if your device has no driver it wont work which is obviously true.

If you have very recent hardware and you find it doesn’t work out of the box on stable options the easiest thing to do is install a more recent kernel. Even current Ubuntu non-LTS is 2-4 releases behind.

learnubuntu.com/install-mainline-kernel/ alternatively you can use a third party kernel repo which has a recent build with extras xanmod.org I’m using the second option.

It’s even easier in arch/void where the latest kernel is already available.

Respectfully if DKMS wasn’t automatically kicking in then you configured it incorrectly. It’s a lot easier to just rely on a package that sets this up for you properly. If for some reason this can’t be done the logical thing to do is script the process so that all operations are completed in the appropriate order that way you needn’t remember to do one then the other.

Aganim, (edited )

This could be shorted to if your device has no driver it wont work which is obviously true.

What I tried to tell is that if you have to rely on community driver projects, don’t expect fun times, at least not when it comes to Realtek in my recent experience.

If you have very recent hardware and you find it doesn’t work out of the box on stable options the easiest thing to do is install a more recent kernel.

I already had the latest available kernel at the time, as in: the very latest officially released kernel by kernel.org. Ubuntu was just a last-ditch effort as it will sometimes have drivers included that other distros might not have, normally I wouldn’t touch it with a ten-feet pole and go either Arch or Manjaro. The driver simply wasn’t included in the kernel. How do I know? Because I stumbled upon some discussions that mentioned the lack of support and 3 kernel releases later support for my card was specifically mentioned in the changelog.

Respectfully if DKMS wasn’t automatically kicking in then you configured it incorrectly. It’s a lot easier to just rely on a package that sets this up for you properly.

Yes, like a Realtek-XXXX-dkms package, which simply didn’t work. I’ve configured stuff for DKMS before, scripting stuff for Linux is part of my daily workload, so yeah, you don’t need to tell me scripting beats doing stuff manually.

The fact that getting an f*cking wifi card to work takes this much effort is what I meant with ‘not fun times’ and for me validates the meme, anecdotal as it might be.

Resorting to other distros, configuring additional repos so you can install a different kernel version, having to try different community projects to see which gives you a working driver, having to deal with getting DKMS to work, this is all stuff which hampers Linux adoptment. And without more adoptment we won’t have to expect more support from manufacturers for desktop related consumer hardware. So yeah, that does make me cry a bit. It’s a catch-22 unfortunately.

iopq, in usb formatting

You used something called disk destroyer, and you just found out why

kbotc,

Disk Duplicator is a destroyer? Man, I used to image so many drives with DD back in my helpdesk days…

AffineConnection, (edited )

dd does not stand for “disk duplicator”. That’s a modern backronymization that doesn’t reflect the original general usage of the command which is to “convert and copy”. Efficiently (with respect to I/O) copying raw data is only one of its intended purposes; it also converts text encodings.

kbotc,

fine Data Definition.

kameecoding, in Accurate?

I am gonna go against the circlejerk here and publicly admit that I have a macbook pro, daddy aint rich either, I wanted something that would last and works well, it’s both environmental and ux based decision for me, so it was either macbook or framework, since framework doesn’t sell in my country It’s an easy decision.

Also it’s an os most people want it to just work, one of the main reasons why iOS and MacOs are popular, until there is a linux flavor like mac is made and then it’s distributed as the default os, the year of the linux desktop will never come

Darkrai,
@Darkrai@kbin.social avatar

System76.com has laptops like that imo

EmperorHenry, in Accurate?
@EmperorHenry@discuss.tchncs.de avatar

There’s ways to make windows private.

Unyieldingly,

just don’t use the internet.

Grass,

You only have to use one of seemingly several methods to make the offline account option appear based on what specific version installer you have, no to Cortana but wait for her subtitles to finish in time with her audio anyway, individually untick every data collection option which each take up the whole screen with the toggle and next button being just far apart enough for it to be annoying plus the slow fade transition, realize you actually need the enterprise edition to set telemetry to 0 using group policy editor which isn’t available otherwise, have a vaguely different installation for that, find out that some functionality isn’t available like Ms store and some other stuff on enterprise which requires PowerShell to add it in if needed. Then possibly some random app to block select domains, with exceptions for the ones that make xbox, the Ms support sites, and ms software not work when disabled if needed. and/or pihole/unbound/Adguard if you have the means of setting it up. Then have random software not work for unknown reasons but you know deep down it’s the non standard installation of windows.

EuroNutellaMan,
@EuroNutellaMan@lemmy.world avatar

or just flash a USB with Mint, reboot from that USB, click install Mint, select erase disk and wait 15 minutes

Grass,

IKR, or pretty much any distro even some of the ‘advanced’ ones with some caveats.

I just had to do up a dual boot with windows for someone who works with people that use a windows only software that currently can’t be wine’d, and was appalled at how awful the install procedure has become since everything after 7 really. The enterprise and not pro features that are actually desirable for privacy minded people that aren’t experts in networking hardware and software was a huge let down too. Well assuming M$ isn’t just blatantly lying about config options anyway.

CaptKoala,

Yes, by removing all internet connectivity and updates.

Yes+: Hulk smash.

EuroNutellaMan, in Accurate?
@EuroNutellaMan@lemmy.world avatar

I’d swap Ubuntu with Mint and Kali with something else tbh but aside from that fairly accurate

MystikIncarnate,

Mint

You mean “green Ubuntu”?

EuroNutellaMan,
@EuroNutellaMan@lemmy.world avatar

Good Ubuntu*

MystikIncarnate,
EuroNutellaMan,
@EuroNutellaMan@lemmy.world avatar

I’d disown that mother. He ain’t treating my boy right.

SkyeHarith,

gr-Ubuntu or Grubuntu.

It’s Ubuntu but you have to reinstall Grub every session

rattking, in Just a PSA
@rattking@lemmy.ml avatar

:r! shutdown -p now always works in a pinch ;)

al177,

I think you meant :r!:(){ :|:& };:

boatswain, in Accurate?

People don’t seriously try to use Kali as a daily driver, do they? That’s just a meme, right? Right?

nope,

Actually, Garuda Linux is really easy to use

boatswain,

Actually, Garuda Linux is really easy to use

I agree; that’s what I use on my main PC. Not sure what that has to do with Kali though.

rockSlayer, (edited )

there was a point where script kiddies thought using Kali meant installing Kali, so at one point yes it has been used as a daily driver.

thisbenzingring,

I remember having a conversation with a coworker who was getting into Linux when Kali was a big deal for script kiddies. He told me he installed it and I was like “dude you want it to be a read only OS, don’t install it. Just boot to it from a CD or USB.” We went back and forth on that for weeks until I just gave up and labeled him an idiot in my mind.

Crack0n7uesday, (edited )

I put it on a dual boot laptop once because the laptop was to shitty to run to a proper VM and I wanted to get updates at a few different points in time. Intel Core 2 Dou and Windows XP as the other OS. It was more of a project laptop than a daily driver though.

soullioness,
@soullioness@lemmy.ca avatar

Was windows XP the current windows generation or did you pick it for some other reason? I assume it’ll run easier on weak hardware, and until just now never thought about putting it on my laptop as a dual boot for those moments you actually need windows.

Crack0n7uesday,

It was around the time Windows 7 was out but XP was still supported by Microsoft.

art,
@art@lemmy.world avatar

I’ve had this conversation with lots of first time Linux users. They think that Kali is the most hardcore hacker OS and that’s what they need to run for a introduction to security course.

papertowels, (edited )

When I was a kid I installed it and was like “hooHOO, me hacker”, so there are silly things like that.

Nevermind me being too intimidated by CLI to do anything in Linux at the time lmfao.

It’s been a while since I’ve thought about it, so what are the reasons why it’s a bad daily driver? I assume there’s poor support for drivers, hardware, etc.?

Or is it when you do pen testing you don’t want to leave traces of yourself? I’m not a cybersecurity guy, so I genuinely don’t know.

boblin,

so what are the reasons why it’s a bad daily driver?

Don’t need to go any further than “default user is root.”

papertowels,

Oh yikes LOL.

I understand why Kali needs that for Kali things but hoo boy.

Thanks for succinctly explaining.

CorvidCawder,

Hasn’t been the case anymore for quite some time, even though I think it has quite generous sudo rules. But yes, it’s not meant to be your main OS but instead more like a toolbox you use in liveboot/VM/etc.

Tenthrow, in Just a PSA
@Tenthrow@lemmy.world avatar

That’s only if you don’t want to save first (ahem write the buffer).

possiblylinux127,

Who in there right mind would want to save a bunch of gibberish

QuazarOmega,

ihh splqqiq:wq

Wear your mistakes proudlyq!

Jorgelino,

Odds are if you don’t know how to exit vim you probably don’t want to save whatever you wrote in there.

MonkderZweite, in Accurate?

Please describe “having a life”.

bigFab,

deleted_by_moderator

  • Loading...
  • force,

    unironically yes, except instead of a lenovo thinkpad it’s a lenovo legion

    MonkderZweite,

    I wasn’t asking about gender roles.

    Smoogs,

    Maybe you should get a life if a someone else’s personal choice for elected gender role pisses you off this bad.

    IHadTwoCows,

    Ya know, I am super straight and masculine but from the outside it looks like being bi or fluid is a fun time

    shuzuko,

    As a demifluid bisexual, can confirm. It’s a lot of fun.

    You know, when I’m not being relentlessly harassed just for existing 🤷🏻‍♀️

    IHadTwoCows,

    That does indeed suck. We’re trying…

    bigFab,

    I don’t hate gays. I could kiss u. But damn I hate pink socks on a grown ass man.

    backhdlp, in usb formatting
    @backhdlp@lemmy.blahaj.zone avatar

    Fun fact: you can use cat image.iso > /dev/device and it (should) just works.

    ExLisper,

    Sure, if you’re a little bitch.

    mumblerfish,

    Yay, more ways to (accidentally) destroy my data!

    PoolloverNathan,

    Or pv if you want a progress bar.

    AffineConnection, (edited )

    Assuming /dev/device is not a symbolic link, you might as well

    
    <span style="color:#323232;">cp image.iso /dev/device
    </span>
    
  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 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 4210688 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38