lazylion_ca

joined 2 years ago
[–] lazylion_ca@lemmy.ca 1 points 6 months ago (1 children)

Also has (or had) a cli interface.

[–] lazylion_ca@lemmy.ca 8 points 7 months ago (9 children)

I create /data and mount my 2nd drive there using fstab.

I then mount /data/downloads under my user downloads folder so everything goes to my 2nd drive. That way I dont have to redownload anything if I redo my main drive.

[–] lazylion_ca@lemmy.ca 9 points 8 months ago (2 children)

Why would anyone opt in to this? What is the point of it?

[–] lazylion_ca@lemmy.ca 1 points 8 months ago* (last edited 8 months ago) (1 children)

Skip the ssl error message. I log into IP addresses all day and that flag is sanity saving.

[–] lazylion_ca@lemmy.ca 4 points 8 months ago (1 children)

This is what I did when I had to refurb a laptop. Swap the drives, reinstall the OS, snd hand it all to the user. All your files are on this usb drive.

Thats when you find out who understands folder structure and who doesn't.

[–] lazylion_ca@lemmy.ca 1 points 9 months ago

Mobaxterm is your friend.

[–] lazylion_ca@lemmy.ca 3 points 10 months ago

Reinvent Winamp for Android and iPhones.

[–] lazylion_ca@lemmy.ca 1 points 11 months ago

Bring a collapsible cup and fill it ay the water fountain or any sink.

[–] lazylion_ca@lemmy.ca 7 points 11 months ago (1 children)

She could probably karate-kid kick him in the chin.

For comparison, look at Jeanie vs Rooney in Ferris Beuller's Day Off.

[–] lazylion_ca@lemmy.ca 1 points 11 months ago

Nope. Just get the best bang for the buck. If you really want two ethernet ports you can get a usb adapter. Or put in the time to learn vlans.

[–] lazylion_ca@lemmy.ca 3 points 1 year ago (3 children)

Find an old Thinkcenter on ebay.

[–] lazylion_ca@lemmy.ca 2 points 1 year ago

They are a way to get to know each other.

 

Hi all

I have an Alpine container on Proxmox that we use as a Zabbix Proxy. On it there is a PHP script (no web server). When I ssh in with my normal user account and run the PHP from cli, it works great. When I su to user root (for testing) it works fine. But when I su to user zabbix, I get:
Class "PhpOffice\PhpSpreadsheet\Spreadsheet" not found

This a problem because it will be Zabbix that triggers the script once a day. I get the same error whether zabbix triggers the script, or I trigger it from cli.

I have other ash, php, and python scripts on the proxy that run just fine when Zabbix triggers them.

The require statements at the top of the script don't throw an error:
require $folder . "/phpSpreadsheet/vendor/autoload.php"; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

The error happens farther down when it creates a new spreadsheet in memory: $spreadsheet = new Spreadsheet();

I had to use Composer to install the phpSpreadsheet library. I was getting a bunch of file & folder permissions errors but I'm certain I've covered that as this is not a file permissions error. I even reran composer as the zabbix user to check for permissions.

From googling I've found that the zabbix user is a "service account" as opposed to a user account. I used "su zabbix -s /bin/ash" get a cli going so I could test running the script directly. Running env shows that the Zabbix user's HOME directory is "/dev/null" Beyond that I'm not sure what differences there are between the accounts, or what would prevent a php class from loading.

Any help is welcome. Thanks.

view more: next ›