salloid | the 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 |
---|---|---|
salloid | oops when i say system clock i mean hardware clock | 01:39 |
gnarface | salloid: dpkg-reconfigure tzdata | 01:40 |
salloid | gnarface: should i do that after changing the hardware clock? | 01:42 |
gnarface | no, do that then run "hwclock --systohc" | 01:43 |
salloid | ohh okay | 01:43 |
salloid | thanks so much | 01:43 |
gnarface | no problem | 01:44 |
gnarface | if you are dual booting with windows, it might screw up the time again | 01:44 |
salloid | i think that might be what happened, though not with windows | 01:44 |
salloid | i'll check some docs later and see | 01:45 |
salloid | so the output of hwclock should now be in utc after running "h2clock --systohc"? | 01:47 |
salloid | or do i need to reboot for this to all take effect | 01:47 |
gnarface | you should not need to reboot | 01:48 |
salloid | hmm | 01:48 |
gnarface | you should have been given the option to use utc or local time | 01:48 |
salloid | well at the moment hwclock is giving me the time an hour agead | 01:48 |
salloid | ahead* | 01:48 |
salloid | ahead of my local time that is | 01:48 |
gnarface | have you updated tzdata recently? | 01:48 |
salloid | i ran the dpkg-reconfigure like you said | 01:49 |
salloid | i've not | 01:49 |
gnarface | check for an update | 01:49 |
salloid | do you mean a package update or sommething else? | 01:50 |
gnarface | "apt-get update && apt-get install tzdata" | 01:50 |
gnarface | that will make sure you have the latest version available, assuming your sources.list is right | 01:50 |
salloid | aot show tzdata says its installed just doing a regular apt-get upgrade shows nothing needs to be updated | 01:52 |
salloid | apt show* | 01:52 |
gnarface | alright | 01:52 |
gnarface | seems weird | 01:52 |
gnarface | which release of devuan? | 01:54 |
salloid | 4 | 01:54 |
salloid | the latest | 01:54 |
gnarface | does the dpkg-reconfigure command work the same if you add the option -plow | 01:54 |
gnarface | ? | 01:55 |
salloid | yeah, it outputs that utc time is now 00:55 after the command (an hour behind) | 01:57 |
gnarface | running ntpd? | 01:58 |
salloid | i have no clue | 01:58 |
gnarface | ps aux |grep ntp | 01:58 |
salloid | looks like it | 01:58 |
gnarface | odd | 01:59 |
Guest7482 | My internet connection via ethernet is not working. | 13:58 |
Guest7482 | How to fix? | 13:58 |
Guest7482 | system devuan jessie | 13:58 |
xrogaan | Guest7482: what do you mean by "not working"? | 14:00 |
Guest7482 | Usually, when you download a distribution, the system itself connects to the Internet. | 14:02 |
Guest7482 | I also clicked on the widget, then the network connection program was launched. | 14:02 |
Guest7482 | There was an inscription "connect not found". | 14:02 |
xrogaan | Guest7482: could you pastebin /etc/network/interfaces (https://dpaste.com) | 14:03 |
xrogaan | yeah, I don't know about the GUI | 14:03 |
xrogaan | You should have a working dhcp client running though, and in most cases that all you need to have. | 14:04 |
Guest7482 | Now I will briefly leave the chat and return from another device with a link. | 14:04 |
Guest21 | Internet connection somehow worked | 14:14 |
xrogaan | check you /var/log/daemon.log | 14:14 |
Guest21 | the problem resolved itself | 14:14 |
xrogaan | might come back, the log could tell you why it didn't work. | 14:15 |
Guest21 | daemon.log it's empty there | 14:15 |
xrogaan | check either /var/log/daemon.log or /var/log/syslog | 14:15 |
xrogaan | might be daemon.log.1 if the log rotated. | 14:16 |
xrogaan | I checked my own personal configuration, and I can't understand how I made it so my local ip remains static. | 14:18 |
Guest21 | since the problem is solved, I'm leaving the chat | 14:20 |
GoatAvenger | fare well.. | 14:23 |
xrogaan | my /var/lib/dhcp/dhclient.eth0.leases contains the static ip, but it's not in my original config | 14:25 |
xrogaan | probably forgot about it since it just worked. | 14:25 |
xrogaan | if it ain't broke... | 14:27 |
_ds_ | … break it so that you can charge for fixing it? | 14:31 |
* _ds_ hides | 14:31 | |
HumanG33k | hi i currently try to setup a apache php-fpm per user config | 17:06 |
HumanG33k | there is some by default rights to setup on my users public_html (www) dir ? | 17:07 |
xrogaan | HumanG33k: I assume that it needs to be readable | 17:42 |
gnarface | there was something about this ringing a bell but i can't seem to bring it up | 17:45 |
gnarface | maybe 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 it | 17:45 |
xrogaan | the whole path, yes. | 18:23 |
fsmithred | cd /var/www/html | 18:25 |
fsmithred | ln -s /home/user/public public | 18:26 |
fsmithred | I just tried it. Didn't even have to restart apache for it to work. | 18:26 |
fsmithred | replace user with your user name | 18:26 |
gnarface | i 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 whatever | 18:29 |
gnarface | probably 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 |
gnarface | damn i was good at this once but it's been a while | 18:29 |
gnarface | i just remember that we stopped ever using it because it was considered a Bad Idea for some security reason | 18:30 |
fsmithred | yeah, in most linuxes you can look into other users' homes, but in debian you can | 18:35 |
fsmithred | sorry, 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 |
gnarface | yea that's better if you do it right, but that isn't relying on this fancy legacy apache feature | 18:42 |
gnarface | which is what i assumed the user was talking about | 18:42 |
gnarface | usually the first thing i do on my fresh installs is to remove global read access from the home directories | 18:43 |
gnarface | one of the first things anyway | 18:43 |
gnarface | the legacy apache feature i think uses some bundled url rewrite, so you don't have to set it up per-user | 18:44 |
used____ | Yes but iirc it translates ~user urls from requests | 18:44 |
gnarface | yea, you can do the same thing with an actual mod_rewrite rewrite rule but the public_html feature specifically avoids you having to learn how | 18:45 |
HumanG33k | both thx for your feedback | 19:00 |
HumanG33k | *all | 19:01 |
HumanG33k | i currently use mpm_itk | 19:01 |
HumanG33k | but it can t be use with http2 | 19:02 |
HumanG33k | so i try to setup php-fpm with per user setup | 19:04 |
HumanG33k | but apache need to access | 19:04 |
HumanG33k | so best option is probably to add users to www-data group | 19:05 |
gnarface | yea, 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 them | 19:07 |
gnarface | but i think that is ostensibly what the www-data group is for if you trust your users | 19:07 |
HumanG33k | gnarface: i m users but i never trust people especially me in a web context | 19: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 |
gnarface | not 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 of | 19:23 |
phogg | mod_php is not faster, fpm is probably what you want | 19:27 |
gnarface | i've definitely benchmarked it extensively | 19:42 |
gnarface | maybe not recently though | 19:42 |
used____ | Reading a bit shows certain versions refused to work with fpm_php | 19:43 |
gnarface | yea, 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) loads | 19:45 |
gnarface | i'd believe though that fcgi is faster if you have a single test loop in one otherwise empty php file though | 19:46 |
gnarface | the load issues might also have been database handle related but not sure about that | 19:47 |
Guest568 | My 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 |
gnarface | not sure what you're asking | 21:31 |
gnarface | why is grub starting in rescue mode? because of bios settings? | 21:31 |
Guest568 | i have installed devuan succesfully, | 21:41 |
Guest568 | 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. Later | 21:41 |
Guest568 | i see that in bios boot override i have these 3 OS. | 21:41 |
Guest550 | i 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. Later | 22:06 |
Guest550 | i see that in bios boot override i have these 3 OS. | 22:06 |
gnarface | you probably have to update or uninstall grub from multiple drives | 22:11 |
gnarface | next time only install grub on your boot drive if you only have one OS | 22:11 |
gnarface | try running update_grub or grub_install | 22:18 |
gnarface | er, it's update-grub | 22:18 |
Guest521 | how install only grub on boot drive? I have three OS now, but i want only one OS - devuan. | 22:20 |
gnarface | er, i'ts grub-install | 22:20 |
gnarface | i think grub-install can also uninstall | 22:20 |
fsmithred | if you have an installer CD or USB, you can boot the media into rescue mode and reinstall grub. | 22:34 |
fsmithred | if you have a live-cd, you could boot that and then chroot the system and reinstall grub. | 22:34 |
fsmithred | in chroot, you'd run grub-install and update-grub | 22:35 |
fsmithred | or boot live and run efibootmgr to get rid of the guix bootloader or maybe change the order | 22:39 |
gnarface | oh, is guix not also using grub? | 22:51 |
fsmithred | good question. I don't know. | 23:00 |
fsmithred | I was just thinking about how I handle bootloaders on my uefi machine. It gets used for testing, so they come and go. | 23:01 |
fsmithred | usually, 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 |
fsmithred | sorry, 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/!