libera/#devuan/ Sunday, 2022-06-05

salloidthe time on my system is an hour ahead. i think my OS should expect the system clock to be UTC and adjust accordingly, when i first installed i think the system clock was correct but now it has changed back to local time, so my OS time is wrong. if i try changing the system clock back to utc, all my certificates break in devuan when doing anything on the internet. so how do i fix all this?01:38
salloidoops when i say system clock i mean hardware clock01:39
gnarfacesalloid: dpkg-reconfigure tzdata01:40
salloidgnarface: should i do that after changing the hardware clock?01:42
gnarfaceno, do that then run "hwclock --systohc"01:43
salloidohh okay01:43
salloidthanks so much01:43
gnarfaceno problem01:44
gnarfaceif you are dual booting with windows, it might screw up the time again01:44
salloidi think that might be what happened, though not with windows01:44
salloidi'll check some docs later and see01:45
salloidso the output of hwclock should now be in utc after running "h2clock --systohc"?01:47
salloidor do i need to reboot for this to all take effect01:47
gnarfaceyou should not need to reboot01:48
salloidhmm01:48
gnarfaceyou should have been given the option to use utc or local time01:48
salloidwell at the moment hwclock is giving me the time an hour agead01:48
salloidahead*01:48
salloidahead of my local time that is01:48
gnarfacehave you updated tzdata recently?01:48
salloidi ran the dpkg-reconfigure like you said01:49
salloidi've not01:49
gnarfacecheck for an update01:49
salloiddo you mean a package update or sommething else?01:50
gnarface"apt-get update && apt-get install tzdata"01:50
gnarfacethat will make sure you have the latest version available, assuming your sources.list is right01:50
salloidaot show tzdata says its installed just doing a regular apt-get upgrade shows nothing needs to be updated01:52
salloidapt show*01:52
gnarfacealright01:52
gnarfaceseems weird01:52
gnarfacewhich release of devuan?01:54
salloid401:54
salloidthe latest01:54
gnarfacedoes the dpkg-reconfigure command work the same if you add the option -plow01:54
gnarface?01:55
salloidyeah, it outputs that utc time is now 00:55 after the command (an hour behind)01:57
gnarfacerunning ntpd?01:58
salloidi have no clue01:58
gnarfaceps aux |grep ntp01:58
salloidlooks like it01:58
gnarfaceodd01:59
Guest7482My internet connection via ethernet is not working.13:58
Guest7482How to fix?13:58
Guest7482system devuan jessie13:58
xrogaanGuest7482: what do you mean by "not working"?14:00
Guest7482Usually, when you download a distribution, the system itself connects to the Internet.14:02
Guest7482I also clicked on the widget, then the network connection program was launched.14:02
Guest7482There was an inscription "connect not found".14:02
xrogaanGuest7482: could you pastebin /etc/network/interfaces (https://dpaste.com)14:03
xrogaanyeah, I don't know about the GUI14:03
xrogaanYou should have a working dhcp client running though, and in most cases that all you need to have.14:04
Guest7482Now I will briefly leave the chat and return from another device with a link.14:04
Guest21Internet connection somehow worked14:14
xrogaancheck you /var/log/daemon.log14:14
Guest21the problem resolved itself14:14
xrogaanmight come back, the log could tell you why it didn't work.14:15
Guest21daemon.log it's empty there14:15
xrogaancheck either /var/log/daemon.log or /var/log/syslog14:15
xrogaanmight be daemon.log.1 if the log rotated.14:16
xrogaanI checked my own personal configuration, and I can't understand how I made it so my local ip remains static.14:18
Guest21since the problem is solved, I'm leaving the chat14:20
GoatAvengerfare well..14:23
xrogaanmy /var/lib/dhcp/dhclient.eth0.leases contains the static ip, but it's not in my original config14:25
xrogaanprobably forgot about it since it just worked.14:25
xrogaanif it ain't broke...14:27
_ds_… break it so that you can charge for fixing it?14:31
* _ds_ hides14:31
HumanG33khi i currently try to setup a apache php-fpm per user config17:06
HumanG33kthere is some by default rights to setup on my users public_html (www) dir ?17:07
xrogaanHumanG33k: I assume that it needs to be readable17:42
gnarfacethere was something about this ringing a bell but i can't seem to bring it up17:45
gnarfacemaybe it's just that you can't forget the home directory itself needs to be readable too but i think there was something else to it17:45
xrogaanthe whole path, yes.18:23
fsmithredcd /var/www/html18:25
fsmithredln -s /home/user/public public18:26
fsmithredI just tried it. Didn't even have to restart apache for it to work.18:26
fsmithredreplace user with your user name18:26
gnarfacei think they're talking about a specific apache feature, the one about exporting the "public_html" directory (if present) from all home directories to the url as [host]/~[user] or whatever18:29
gnarfaceprobably requires that apache can read the full path, which iirc might not be required for symlinks if the "follow symlinks" option is on?18:29
gnarfacedamn i was good at this once but it's been a while18:29
gnarfacei just remember that we stopped ever using it because it was considered a Bad Idea for some security reason18:30
fsmithredyeah, in most linuxes you can look into other users' homes, but in debian you can18:35
fsmithredsorry, first 'can' should be 'can't'18:35
used____The other way is to create user owned public dirs in the www tree and point a symlink from user dirs there...18:42
used____The group needs to be www usually, then they can be reasonably private.18:42
gnarfaceyea that's better if you do it right, but that isn't relying on this fancy legacy apache feature18:42
gnarfacewhich is what i assumed the user was talking about18:42
gnarfaceusually the first thing i do on my fresh installs is to remove global read access from the home directories18:43
gnarfaceone of the first things anyway18:43
gnarfacethe legacy apache feature i think uses some bundled url rewrite, so you don't have to set it up per-user18:44
used____Yes but iirc it translates ~user urls from requests18:44
gnarfaceyea, you can do the same thing with an actual mod_rewrite rewrite rule but the public_html feature specifically avoids you having to learn how18:45
HumanG33kboth thx for your feedback19:00
HumanG33k*all19:01
HumanG33ki currently use mpm_itk19:01
HumanG33kbut it can t be use with http219:02
HumanG33kso i try to setup php-fpm with per user setup19:04
HumanG33kbut apache need to access19:04
HumanG33kso best option is probably to add users to www-data group19:05
gnarfaceyea, although depending on the situation that might give them too much access, in which case you'd want to make a new group just for them19:07
gnarfacebut i think that is ostensibly what the www-data group is for if you trust your users19:07
HumanG33kgnarface: i m users but i never trust people especially me in a web context19:17
HumanG33k:)19:17
used____Just work out the user/group ownership scheme and it will work. This is the way *nix permissions are meant to work.19:20
gnarfacenot related but in general i'd advise against using the fcgi setup anyway, dunno if using mod_php will get around any issues for you but fcgi with php was slower last i tested, slower by a lot, and there was some important stability gotcha to do with database handles i can't quite recall specifics of19:23
phoggmod_php is not faster, fpm is probably what you want19:27
gnarfacei've definitely benchmarked it extensively19:42
gnarfacemaybe not recently though19:42
used____Reading a bit shows certain versions refused to work with fpm_php19:43
gnarfaceyea, like i said it had other problems, fundamental to the way fcgi works... i get that it's popular on paper because that's how perl works and perl is known for being fast with it, but last i checked there was distinct improvements with mod_php in performance too under key (what we considered real-world) loads19:45
gnarfacei'd believe though that fcgi is faster if you have a single test loop in one otherwise empty php file though19:46
gnarfacethe load issues might also have been database handle related but not sure about that19:47
Guest568My bios uefi have a 3 OS in boot override. I can't load any OS because start grub rescue mode. Generally i wanted to have one OS.  What to do with it?21:29
gnarfacenot sure what you're asking21:31
gnarfacewhy is grub starting in rescue mode? because of bios settings?21:31
Guest568i have installed devuan succesfully,21:41
Guest568but later decided install guix and after that that ploblems out (cant boot in system, because start only grub in rescue mode). After that i installed debian from live usb, but it not help - grub in rescue mode yet. Later21:41
Guest568 i see that in bios boot override i have these 3 OS.21:41
Guest550i have installed devuan succesfully, but later decided install guix and after that that ploblems out (cant boot in system, because start only grub in rescue mode). After that i installed debian from live usb, but it not help - grub in rescue mode yet. Later22:06
Guest550 i see that in bios boot override i have these 3 OS.22:06
gnarfaceyou probably have to update or uninstall grub from multiple drives22:11
gnarfacenext time only install grub on your boot drive if you only have one OS22:11
gnarfacetry running update_grub or grub_install22:18
gnarfaceer, it's update-grub22:18
Guest521how install only grub on boot drive? I have three OS now, but i want only one OS - devuan.22:20
gnarfaceer, i'ts grub-install22:20
gnarfacei think grub-install can also uninstall22:20
fsmithredif you have an installer CD or USB, you can boot the media into rescue mode and reinstall grub.22:34
fsmithredif you have a live-cd, you could boot that and then chroot the system and reinstall grub.22:34
fsmithredin chroot, you'd run grub-install and update-grub22:35
fsmithredor boot live and run efibootmgr to get rid of the guix bootloader or maybe change the order22:39
gnarfaceoh, is guix not also using grub?22:51
fsmithredgood question. I don't know.23:00
fsmithredI was just thinking about how I handle bootloaders on my uefi machine. It gets used for testing, so they come and go.23:01
fsmithredusually, if an install takes over boot from another install (on a different partition) just getting rid of the new bootloader dir in EFI/ will revert it to the previous bootloader.23:02
fsmithredsorry, get rid of it with efibootmger. Just deleting it would not be good.23:03

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!