The officially official Devuan Forum!

You are not logged in.

#51 Re: News & Announcements » It'll be when It's ready, I know, but an approximation? » 2020-01-04 19:07:10

I just recently tested a Beowulf LAMP server by a) installing from Ascii 2.1, just installing enough to get a running server, b) changing the sources.list to beowulf, c) doing an apt update and apt dist-upgrade, and d) installing everything I needed after that.

I have to say it worked flawlessly. I've done pretty extensive testing with the application this is intended for and it's pretty awesome. Looking forward for the stable version for sure.

Tom

#52 Re: Installation » MariaDB server debian.cnf file with Beowulf » 2020-01-03 20:19:31

Wow. It seems like Debian has made this whole handling of root in mariadb 10.3 astonishingly cryptic. I was just reading this, which mentions the program mysql_secure_installation, which I knew nothing about:

https://www.digitalocean.com/community/ … -debian-10

Several things concern/confuse me about this:

They seem to push you towards having the root account use the unix_socket plugin authentication with no password. My initital installation ended up with the root user set for mysql_native_password and no password.

They also aren't clear at all as to what to do in cases where you actually want a password on the root account as apposed to relying on the unix_socket login. What I did...adding the root password to debian.cnf...is the only way I could find. While the debian.cnf file says "# Automatically generated for Debian scripts. DO NOT TOUCH!", I'm actually not sure that really applies with mariadb 10.3 since they've abandoned the use of the debian-sys-maint user and all that.

They also seem to imply that the changes I made to either the root user or the debian.cnf (adding the root password) file might get lost in a future update(?).

I'm not sure it could get more confusing.

EDIT: As a test I tried a fresh install of mariadb server, and then used that mysql_secure_installation to set the root password. That however set the root user's plugin to unix_socket and still allowed it to login without a password locally. It also left that debian.cnf as-is with the root user and no password. So for cases where you actually want the root user to require a password, the only option is to change (or set to '') that plugin for the root user, and that requires putting the root password in debian.cnf or the service cannot stop or start.

Tom

#53 Re: Installation » MariaDB server debian.cnf file with Beowulf » 2020-01-02 15:35:38

Ahhh! Got it...well sort of. This is apparently different with MariaDB. I just found this in the file /usr/share/doc/mariadb-server-10.3/README.Debian.gz:

* ROOT USER AUTHENTICATION VIA UNIX SOCKET
==========================================
On new installs no root password is set and no debian-sys-maint user is
created anymore. Instead the MariaDB root account is set to be authenticated
using the unix socket, e.g. any mysqld invocation by root or via sudo will
let the user see the mysqld prompt.

You may never ever delete the mysql user "root". Although it has no password
is set, the unix_auth plugin ensure that it can only be run locally as the root
user.

The credentials in /etc/mysql/debian.cnf specify the user which is used by the
init scripts to stop the server and perform logrotation. This used to be the
debian-sys-maint user which is no longer used as root can run directly.

If you have start/stop problems make sure that the /etc/mysql/debian.cnf file
specifies the root user and no password.

In our case however we actually need to have a password on the root user. Given that, I think what I have is correct...though that's a little confusing.

Tom

#54 Re: Installation » MariaDB server debian.cnf file with Beowulf » 2020-01-02 15:27:12

I installed default-mysql-server which installed these:

default-mysql-server galera-3 gawk libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mysql-perl
libdbi-perl libfcgi-perl libhtml-template-perl libmpfr6 libsigsegv2 libsnappy1v5 libterm-readkey-perl
mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server-10.3 mariadb-server-core-10.3 socat

When you refer to installing "db-servers" are you referring to, in this case for example, mariadb-server-10.3? I definitely didn't get any prompts or errors of any kind.

When you get the root password prompt, did you end up with a debian-sys-maint user and password in /etc/mysql/debian.cnf? Mine ended up like this:

cat /etc/mysql/debian.cnf 
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host     = localhost
user     = root
password = 
socket   = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host     = localhost
user     = root
password = 
socket   = /var/run/mysqld/mysqld.sock
basedir  = /usr

Adding the root password there gets everything working, though I'm unclear as to what was supposed to have happened. I'm also unclear as to whether that's any less secure than the setup with the debian-sys-maint user. As far as a purge and a re-install, there's certainly no reason to think it's going to behave any differently then it did yesterday.

Tom

#55 Installation » MariaDB server debian.cnf file with Beowulf » 2020-01-02 00:33:46

tlathm
Replies: 4

I've been installing LAMP stuff on a beowulf server (upgraded from ascii) and just ran into something that took me forever to untangle that didn't seem right:

I installed default-mysql-server which installed the mariadb client and server 10.3. After getting it installed I set the root@localhost password. After doing that it refused to stop or start correctly. What I finally discovered was that I needed to expressly add the root password to the password entries in /etc/mysql/debian.cnf. I just checked, and under Devuan jessie with mysql installed instead of mariadb, the /etc/mysql/debian.cnf file ended up automatically configured with a user named debian-sys-maint and a generated password...which was why it worked fine in that case.

Does anyone have any idea how that's supposed to work? That certainly didn't seem right. Thanks in advance!

EDIT: Related question: The root@localhost user was originally created with a "plugin" entry of "mysql_native_password". Based on severl things I read I had ended up changing that to an empty string, though the above stuff was the issue and it had nothing to do with that. The user appears to work either way. Does anyone know how that should actually be set?

Tom

#56 Re: Installation » Beowulf and MySQL » 2020-01-01 19:18:22

A few things (somewhat OT) that I meant to ask: As mentioned above I did an install of ascii 2.1 and then changed my sources to beowulf and updated. That by the way went flawlessly. Great work on everyone's part there!

Am I correct in assuming that once beowulf goes stable and I update after that, what I'll end up with should be basically identical as if I had installed using the actual beowulf ISO that will then be available? That is, that there's no compelling reason to reinstall etc?

The other thing I was curious about is the fact that I currently see this:

cat /etc/devuan_version
beowulf/ceres

Am I correct in assuming that after an update to a stable beowulf, that will show just "beowulf" as apposed to "beowulf/ceres"?

Thanks in advance, and thanks again for all your hard work fighting the good fight!

Tom

#57 Re: Installation » Beowulf and MySQL » 2019-12-31 17:29:12

golinux wrote:

It might be available in the beowulf backports which aren't available yet but will be soon.

Awesome. I'll check back on that. Thanks!

Tom

#58 Re: Installation » Beowulf and MySQL » 2019-12-31 15:50:51

Thanks! Yea, I just tried adding the unstable branch to my sources.list and I can see that. It's a bit scary though and wants 13 upgrades and 25 new installs all from unstable, including some pretty significant stuff.

Does anyone know whether mysql will eventually be available in Beowulf?

Thanks again.
Tom

#59 Re: Installation » Beowulf and PHP install » 2019-12-31 15:13:20

I actually did understand what meta packages are, for example I use the linux-image-amd64 to install my kernel. I think what had me a bit confused was around the versions reported for them in this case, but I understand that now. That is, that the specific version of php that actually gets installed will be based on the version of php7.3 pulled in by the php meta package. Sorry for the confusion.

I'll look into installing aptitude, thought I'm not sure I'll need it. It appear I can get the information I need about packages with commands like "apt-cache show" etc.

Thanks!
Tom

#60 Re: Installation » Beowulf and MySQL » 2019-12-31 01:55:37

Dutch_Master wrote:

Mariadb = MySQL, but with less baggage strapped to it. Oracle didn't play nice, so MySQL was forked and became Mariadb.

I understand exactly what Mariadb is, but my company already has installs in the field using MySQL and, for a list of reasons, we want to stick with that. We're using MySQL with Devuan Jessie servers for example.

Again as I pointed out, MySQL is in fact an option in Jessie and Ascii, but it doesn't appear to be an option in Beowulf, at least as it stands now. I was hoping to find out if that's the case, or if I'm missing something. I do have the non-free option enabled for my sources, so it's apparently not related to that.

Tom

#61 Re: Installation » Beowulf and PHP install » 2019-12-31 01:51:18

Dutch_Master wrote:

Investigate the concept of meta-packages.

PS: in aptitude you can get a description of the selected/highlighted package by pressing Enter.

HTH!

As far as what you describe in aptitude, this is a headless install with no GUI at all. I'm assuming that you're saying that, for example, "php" is a meta package that will pull in php7.3, and again, I'm assuming I probably want to install the php meta package. Having said that, I'm not sure I understand how that would differ from installing php7.3 directly.

Tom

#62 Installation » Beowulf and MySQL » 2019-12-31 00:32:39

tlathm
Replies: 7

As mentioned in a previous thread, I'm installing LAMP stuff on a new headless server (a VM) that was installed as ascii 2.1 and upgraded to beowulf.

For various reasons, I'd like to install mysql-server and the mysql client etc, as apposed to mariadb, but it doesn't appear to be available, unless I'm misunderstanding something. I see that there are meta package named default-mysql-server and default-mysql-server-core, but those appear to want to pull in mariadb. Maybe I'm missing something there.

I also notice that in the https://pkginfo.devuan.org search actually has mysql-server packages for Jessie and Ascii, but not for Beowulf.

Thanks in advance!
Tom

#63 Installation » Beowulf and PHP install » 2019-12-31 00:02:58

tlathm
Replies: 4

I'm testing a new install of beowulf of a headless server for LAMP stuff. One of the many reasons I want to use beowulf is because it has PHP 7.3 which is what I want.

As per instructions I've found here, I initially installed the current ascii 2.1, changed my sources to beowulf, and upgraded everything. All that went pretty well. For my initial install I installed as little as possible.

I'm about to install PHP but I'm confused as to the fact that there are packages named as, for example, just "php" as well as others using a name with the 7.3 suffix such as "php7.3", and I'm unclear as to which I should be specifying there. It appears that installing the former (without the 7.3 suffix) does in fact pull in the appropriate package with the 7.3 suffix, but directly installing the package with the 7.3 suffix, does NOT install the one without it.

Any clarification would be appreciated. My inclination is to install the ones without the suffix and to let it pull in what it needs, but I'd like to understand what's actually going on there.

Thanks!
Tom

#64 Re: DIY » No dbus and compiling FF » 2019-11-28 11:21:41

tlathm wrote:

I was just looking and it doesn't appear I kept track, and can't recall. However seeing as version 28.7.2 is available I just kicked off an update (running with nice), and will post back. To clarify, this is an old Dell 8250 with a 2.53GHz P4...pretty ancient.

Compiling Palemoon 28.7.2 with gcc 8.3.0 (using nice) took me almost exactly 12 hours:

time nice emerge -auv palemoon
Calculating dependencies... done!
[ebuild     U ~] www-client/palemoon-28.7.2::palemoon [28.5.0::palemoon] USE="devtools gtk2 jemalloc official-branding optimize -dbus -debug -gnome (-gtk3) -necko-wifi -pulseaudio -threads -valgrind" CPU_FLAGS_X86="sse sse2" 0 KiB
....
real	722m4.230s
user	550m32.601s
sys	33m4.531s

Also note that I only have 2 GB of RAM which is a big factor as well. No possible way could I compile FF I'd imagine, even if it didn't require rust (the rust source alone is like 275 MB....ouch).

Tom

#65 Re: DIY » No dbus and compiling FF » 2019-11-27 18:29:14

HevyDevy wrote:

Interesting, what was the compile time for palemoon on that old hardware? Im pretty sure my old hardware would probably break if using the cpu at 100 % for more than 30 minutes, but ive never tried it so cant comment.

I was just looking and it doesn't appear I kept track, and can't recall. However seeing as version 28.7.2 is available I just kicked off an update (running with nice), and will post back. To clarify, this is an old Dell 8250 with a 2.53GHz P4...pretty ancient.

I can tell you that it's nothing compared to Libreoffice, which I build from source via Gentoo (as rarely as I can get away with). That takes like a day and a half! big_smile

Tom

#66 Re: DIY » No dbus and compiling FF » 2019-11-24 16:19:51

HevyDevy wrote:

^ Looks like you would need to build firefox from source to be able to patch it, would that be right?

It certainly appears that way, and that's a really massive compile (requiring rust for some time now) if you've never attempted it.

My company uses Devuan for headless servers, and our needs are very lean so none of this applies. On my own machines I'm currently using Gentoo, and switched from FF to palemoon quite some time ago for more reasons than I can count, including the compile requirements. I can even compile palemoon on very old hardware where I literally wouldn't live long enough to compile FF. Also note that palemoon already has a configuration option to omit dbus.

Tom

#67 Re: Other Issues » openjdk-8 on Jessie » 2019-04-29 01:48:09

Thanks for the explanation! I didn't realize that's how it all worked...very cool.

Tom

#68 Re: Other Issues » openjdk-8 on Jessie » 2019-04-28 14:07:35

Thanks! In the case of the Debian link that works, and redirects to a mirror with everything beginning with that letter. The Devuan link just goes directly to that link as-is and for some reason only has directories for five packages. Not sure what's going there.

Another question: I'm assuming those would be for the current stable release(?)...for example ascii on the case of Devuan. What would the links be for other releases?

Thanks.
Tom

#69 Re: Other Issues » openjdk-8 on Jessie » 2019-04-27 16:26:38

Forgive my ignorance on this, but once I find a package using that Devuan package info search, how can I go about finding a download for the package? Thanks in advance.

EDIT: Yea, if anyone has an ideas on this, I'd like to download the ascii deb files for this. I've turned over every rock I can imagine and can't figure out any means of finding direct download links.

Tom

#70 Re: Other Issues » openjdk-8 on Jessie » 2019-04-27 15:18:02

Thanks for all the replies!

golinux wrote:

Looks like that package is in ascii:
https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any

Yea, that's the same package as is available for Debian Stretch. That can (sort of) be installed as long as you also manually install ca-certificates-java as well:

https://pkginfo.devuan.org/cgi-bin/d1pk … ease=ascii

Even then however it complains about breaking tzdata-java and will only install by adding --auto-deconfigure. Pretty ugly to say the least.

It appears to work, but I'm not sure as to what issues that ugliness with tzdata-java might cause.

Tom

#71 Other Issues » openjdk-8 on Jessie » 2019-04-26 17:12:32

tlathm
Replies: 8

On our current Devuan Jessie installs we have openjdk-7-jre-headless installed. Is there any source available for us to get the openjdk-8 version of that?

Thanks in advance
Tom

#72 Re: Other Issues » PHP 7.2 on Jessie » 2019-03-12 19:13:34

tlathm wrote:

Regarding that openssl, I believe you're correct about something requiring it, however if that's the case it must be something in php 7.3, because nothing in 7.2 needed to pull it in. However the regular update/upgrade process of course wants to pull it in as long as the repo is active.

This actually gave me an idea and I tried totally redoing the upgrade with the following steps:

1. Upgrade wth "apt update" and "apt dist-upgrade".

2. Added the new repo.

3. Removed all php5 packages.

4. Install required php7.2 pacakges: Note that this time this installed BOTH php7.2 and 7.3 which it did NOT do the last time with the exact same command. Odd one. Even stranger is that even this did NOT pull in that openssl1.1.

5. Chose php 7.2 using "update-alternatives --config php"

6. Comments out the new repo.

7. Ran "apt update"

After the above of course the regular updates won't install that new openssl. However I'm still confused as to why it's even there if it wasn't pulled in by any of this. While I haven't tried this yet...and someone can correct me if this is wrong...I believe I could update just php in the future by doing the following:

1. Uncomment the new repo.

2. apt update

3. apt-get install --only-upgrade "php7*"

4. Comment out the new repo.

3. apt update

I going to test that php install and see if I run into any issues as a result of not having that openssl1.1. Still don't get why that's there.

Tom

#73 Re: Other Issues » PHP 7.2 on Jessie » 2019-03-12 11:48:15

xinomilo wrote:

i'm talking about php5.6 in jessie, php7.0 in ascii/stretch (official distro php packages) : https://secure.php.net/eol.php
they do get security updates through distro repos still, but some web-apps are already complaining about old php versions.

Now I see where I was confused. I had it in my head that ascii came with 7.2, but I take that it's official distro packages are 7.0. Then I take it that the only way to get >= 7.2 from official repos would be to wait for Beowulf? We actually couldn't use 7.0 in any case. 7.1 wound be a minimum.

Regarding that openssl, I believe you're correct about something requiring it, however if that's the case it must be something in php 7.3, because nothing in 7.2 needed to pull it in. However the regular update/upgrade process of course wants to pull it in as long as the repo is active.

Thanks!
Tom

#74 Re: Other Issues » PHP 7.2 on Jessie » 2019-03-11 21:38:34

xinomilo wrote:

note: jessie/stretch/ascii php versions are already officially EOL, and will also be leaving sury repo soon...

I didn't see this until today. I'm totally confused as to what you're saying is EOL..."jessie/stretch/ascii php versions"? I must be missing something. Are you just referring to versions on sury? Surely ascii php 7.2 isn't EOL for example.

Also to be clear, in the cases where I might want to do this, upgrading to ascii or compiling from source won't be an option. This would be on virtual appliances in the field in production. Worst case we might port them to a new VM running ascii I suppose.

Thanks
Tom

#75 Re: Other Issues » PHP 7.2 on Jessie » 2019-03-01 16:31:56

Awesome! Thanks for the additional info. The php 7.2 is working perfectly from there by the way.

Thanks!
Tom

Board footer

Forum Software