[-] Fruitball 19 points 1 year ago

Once saw something saying that all of the Christian "it's fine if you want to choose to be gay, just don't do it in my face" rhetoric is code for:

"you should be ashamed of being gay, because bring gay is a sin. You should commit sin hidden behind closed doors just like we do, when our priests grope children and husbands cheat on their wives."

5
submitted 1 year ago by Fruitball to c/linux4noobs@programming.dev

I'm currently trying to set up a self-hosted SearX search engine on Ubuntu 22.04. In order for the search engine to work, I have to manually run the following commands on startup:

#! /usr/bin/bash

sudo -H -u searx -i

cd /usr/local/searx/searx-src

export SEARX_SETTINGS_PATH="/etc/searx/settings.yml"

python searx/webapp.py

This is kind of annoying to have to do, so I put the script into /etc/rc.local and went through all the steps to enable all that. Now my rc.local file looks like:

#!/bin/sh -e

#! /usr/bin/bash

sudo -H -u searx -i

cd /usr/local/searx/searx-src

export SEARX_SETTINGS_PATH="/etc/searx/settings.yml"

python searx/webapp.py

exit 0

However, the code fails, and upon checking "sudo systemctl status rc-local.service" I get the following (abbreviated) error message:

 Loaded: loaded (/etc/systemd/system/rc-local.service; enabled; vendor preset: enabled)
Drop-In: /usr/lib/systemd/system/rc-local.service.d
         └─debian.conf
 Active: failed (Result: exit-code) since Thu 2023-10-05; 55s ago
Process: 8468 ExecStart=/etc/rc.local start (code=exited, status=127)
    CPU: 12ms

systemd[1]: Starting /etc/rc.local Compatibility... sudo[8469]: root : PWD=/usr/local/searx ; USER=searx ; COMMAND=/bin/bash sudo[8469]: pam_unix(sudo-i:session): session opened for user searx(uid=999) by (uid=0) sudo[8469]: pam_unix(sudo-i:session): session closed for user searx rc.local[8468]: /etc/rc.local: 6: python: not found systemd[1]: rc-local.service: Control process exited, code=exited, status=127/n/a systemd[1]: rc-local.service: Failed with result 'exit-code'. systemd[1]: Failed to start /etc/rc.local Compatibility.

I understand that an Exit Code 127 means that the code is failing because it can't access the following directory:

cd /usr/local/searx/searx-src

But I honestly have no idea how to fix my code to make this possible. Please lmk if you have any suggestions

[-] Fruitball 5 points 1 year ago

https://en.wikipedia.org/wiki/Markus_Persson#Controversy

TL;DR: Racism, sexism, homophobia, and transphobia over Twitter

[-] Fruitball 8 points 1 year ago

Not to gripe at a funni meemee or anything but it's interesting how 2 out of 3 the "good" options revolve around straight up consumerism.

"Think about how organized you would be if you had a special box to store your sliced bread!?! (Nevermind the fact that this totally unnecessary as the bread already comes in packaging that is both more airtight and likely more sterile)"

The environment weeps.

[-] Fruitball 35 points 1 year ago

That's all true, but just to be a bit nitpicky I'd argue some human work has indeed been eliminated by self checkout.

Cashiers main job is to scan your stuff, but in order to do that they also have to stand around waiting for you and other customers for hours on end, and when you arrive they have to do emotional labor of acting cheerful and upbeat

Still I wish we didn't live in a society where increased efficiency leads to people being homeless with no jobs.

10
submitted 1 year ago by Fruitball to c/linux4noobs@programming.dev

I use a laptop, and have only just been able to finally connect an ethernet cable to it. However, ethernet doesn't work on Linux, returning this "Cable Unplugged" message, whereas it does work on dual-booted Windows.

I tried running "lspci -v" to get a list of where my drivers were located, but I could not find any entry for "Ethernet controller," or something of the like. That being said, I'm assuming I just don't have an Ethernet driver?? and I was wondering how I get one :)

Fruitball

joined 1 year ago