I have a cheap brother USB printer, the HL-L2300D. I got it for $80 refurbished. I get wifi printing with my phone through cups on my attached computer. You do need to install the ppd files from brother for optimal performance iirc.
- 0 Posts
- 42 Comments
Then it is working. That is what that code was checking for.
Specifically, -n checks if the variable exists and also does not have a null value.
If you want to reverse it, ie, check that those conditions are not true, put an exclamation mark in front of the whole thing.
You need to reference the value of the variable, ie:
if [[ -n "$VARIABLE1" && -n "$VARIABLE2" ]]; then echo "OK" fi
kittenroar@beehaw.orgto Linux@lemmy.ml•Ubuntu mod team takes anti-queer "Don't say gay" stance.English3·1 month agoAt least they are admitting it was wrong instead of doubling down
kittenroar@beehaw.orgto Linux@lemmy.ml•Ubuntu mod team takes anti-queer "Don't say gay" stance.English2·1 month agoUpstart was the one that made me ditch it back in the day. I came back when they embraced the more sensible systemd
kittenroar@beehaw.orgto Linux@lemmy.ml•Homeserver randomly crashing during the nightEnglish3·1 month agoCheck more logs - your webserver logs, auth logs, dmesg, journalctl entries, etc.
Kubuntu is a pretty solid choice. It has an up-to-date KDE, and it’s surprisingly snappy and resource efficient.
kittenroar@beehaw.orgto Linux@lemmy.ml•Bazzite has gained nearly 10k users in 3 months while other Fedora Atomic distros remain fairly stagnantEnglish2·2 months agoBingo. This is the explanation.
Driver support will always potentially be an issue unless you buy laptops that are built for Linux, or are well vetted. This is because Microsoft has near total market control and Linux support is usually reverse engineered later if the drivers source is never shared.
Same thing for gaming – gaming support on Linux is mostly a bunch of ad hock hacks, because those games were never made to run on Linux in the first place.
So, if you want to commit to Linux, make it an informed choice. You will need to make some sacrifices. Or you could always just dip your toes and only use Linux for running a server or hosting a website.
kittenroar@beehaw.orgto Linux@lemmy.ml•Is there any animal you wish Ubuntu used for its naming convention?English3·2 months agoDomestic cat
kittenroar@beehaw.orgto Linux@lemmy.ml•What do you prefer: icon view or detailed list view?English10·3 months agoDetailed list view for everything except videos and images, and sometimes even for those
Ubuntu because they provide kernel live patching and they fix issues quickly and my system doesn’t go down if I procrastinate in doing system updates
kittenroar@beehaw.orgto Linux@lemmy.ml•According to Pornhub data (yes seriously!) Linux market share in 2024 increased more than 40% relative to 5.1% of all users.English1·4 months agodeleted by creator
I tried it for a bit – it is similar to freebsd in terms of the package install process.
Completely different – nixos is about repeatability, while Gentoo is about build optimization, customization, and performance.
here we go:
dedup:
#!/usr/bin/awk -f !x[$0]++
this removes duplicate lines, preserving line order
iter:
#!/usr/bin/bash if [[ "${@}" =~ /$ ]]; then xargs -rd '\n' -I {} "${@}"{} else xargs -rd '\n' -I {} "${@}" {} fi
This executes a command for each line. It can also be used to compare two directories, ie:
du -sh * > sizes; ls | iter du -sh ../kittens/ > sizes2
fadeout:
#!/bin/bash # I use this to fade out layered brown noise that I play at a volume of 130% # This takes about 2 minutes to run, and the volume is at zero several seconds before it's done. # ################ # DBUS_SESSION_BUS_ADDRESS is needed so that playerctl can find the dbus to use MPRIS so it can control mpv export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" # ################ for i in {130..0} do volume=$(echo "scale=3;$i/100" | bc) sleep 2.3 playerctl --player=mpv volume $volume done
lbn:
#!/bin/bash #lbn_pid=$(cat ~/.local/state/lbn.pid) if pgrep -fl layered_brown then pkill -f layered_brown else export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" mpv -ao pulse ~/layered_brown_noise.mp3 >>lbn.log 2>&1 & sleep 3 playerctl -p mpv volume 1.3 >>lbn.log 2>&1 & fi
This plays “layered brown noise” by crysknife. It’s a great sleep aid.
here are some aliases:
alias m='mpc random off; mpc clear' alias mpcc='ncmpcpp' alias thesaurus='dict -d moby-thesaurus' alias wtf='dict -d vera' alias tvplayer='mpv -fs --geometry=768x1366+1366+0'
Yeah; it’s pretty great. It lacks the excel functions, but if you know some python that is a total non-issue.
Practically speaking all open source software is communist, insofar as the capital, which in the case of software would be the source code and the means to build and deploy it, is available to anyone with the wherewithal to use it.