View previous topic :: View next topic |
Do you have public code repos? |
Yes |
|
72% |
[ 16 ] |
No |
|
27% |
[ 6 ] |
|
Total Votes : 22 |
|
Author |
Message |
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Sat Aug 26, 2023 11:07 pm Post subject: |
|
|
Seems like codeberg might be the way to go to be free both as in freedom and as in beer.
Quote: | $ eselect news read 25
2023-8-23-migrating-to-codeberg
Title Codeberg Migration
Author James McClain <james@thegreatmcpain.xyz>
Posted 2023-08-23
Revision 1
As of now Librewolf has moved from Gitlab to Codeberg.
More information can be found here:
https://gitlab.com/librewolf-community/settings/-/issues/265
Those who started using Librewolf's Gentoo overlay before the migration will
need to re-add the repository to recieve new updates.
For '/etc/portage/repos.conf'
=============================
Simply change the 'sync-uri' field to the url below.
https://codeberg.org/librewolf/gentoo.git
You may need to manually delete the repository and re-sync.
For 'eselect repository'
========================
1. Remove the overlay via
> eselect repository remove -f librewolf
2. then re-add the overlay via
> eselect repository add librewolf git https://codeberg.org/librewolf/gentoo.git
For those still using layman
============================
1. Remove the overlay
> layman -d librewolf
2. Re-add the overlay
> layman -o https://codeberg.org/librewolf/gentoo/raw/branch/master/repository.xml -f -a librewolf |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Mon Aug 28, 2023 10:22 pm Post subject: |
|
|
I have thought about this, and a good idea might be a ftp server.
Any recommendations?
I have tried uftpd, but it doesn't seem to support ipv6. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3350
|
Posted: Mon Aug 28, 2023 11:01 pm Post subject: |
|
|
Why ftp?
Git can be set in cgi mode behind any www server, even without any dedicated interface application, and it can run as a standalone daemon as well, and gentoo's version even comes with init scripts ready. I'm pretty sure you could use git daemon to allow unauthenticated cloning and git over ssh with public key for pushing changes to the public repo.
What do you want to gain by using ftp? |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 874
|
Posted: Tue Aug 29, 2023 5:19 pm Post subject: |
|
|
I would also not recomment ftp. It's old, i can even remember some browsers dropping support for it, so it's better to leave it in /dev/null .
If you still want to use ftp i can recommend vsftpd which i've used for years and is still available in portage. When i used it (many years ago ...) it could run IPv4 or IPv6, but i simply started it twice to provide the same files over IPv4 and IPv6. _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 29, 2023 9:08 pm Post subject: |
|
|
szatox wrote: | Why ftp?
Git can be set in cgi mode behind any www server, even without any dedicated interface application, and it can run as a standalone daemon as well, and gentoo's version even comes with init scripts ready. I'm pretty sure you could use git daemon to allow unauthenticated cloning and git over ssh with public key for pushing changes to the public repo.
What do you want to gain by using ftp? |
The simplest solution is usually the best one.
I don't need fancy guis and such, just a way for people to access my code.
@pa4wdh
Tried vsftpd. It works fine with ipv4. Doesn't seem to work with ipv6.
Code: | ftp: connect: Connection refused |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20421
|
Posted: Tue Aug 29, 2023 9:26 pm Post subject: |
|
|
stefan11111 wrote: | I don't need fancy guis and such, just a way for people to access my code. | Depending on which people, Chrome dropped ftp support (or announced they will, but I thought it happened recently). _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3350
|
Posted: Tue Aug 29, 2023 10:24 pm Post subject: |
|
|
I see. Well, if that's the case, I suppose you can't get any simpler than just enabling git-daemon |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Aug 29, 2023 11:49 pm Post subject: |
|
|
szatox wrote: | I see. Well, if that's the case, I suppose you can't get any simpler than just enabling git-daemon |
Got that to work with ipv4.
I can connect locally by going to 0.0.0.0:1234, or otherwise.
But how do I connect via ipv6? _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3350
|
Posted: Wed Aug 30, 2023 12:24 am Post subject: |
|
|
Dunno, never used it before, doing either private or company stuff I always had ssh transport.
This looks promissing though:
Code: | # netstat -nlpt | grep git
tcp 0 0 0.0.0.0:9418 0.0.0.0:* LISTEN 25257/git-daemon
tcp6 0 0 :::9418 :::* LISTEN 25257/git-daemon |
It took whole mkdidr /var/git and rc-service git-daemon start
I see that you can override the directory via /etc/conf.d/git-daemon if you'd rather have it in a different location.
Apparently it does not require specifying any listening address and just binds to everything by default. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Wed Aug 30, 2023 8:45 am Post subject: |
|
|
Code: | # netstat -nlpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1234 0.0.0.0:* LISTEN 7471/lighttpd
tcp 0 0 127.0.0.1:14430 0.0.0.0:* LISTEN 1371/qbittorrent-no
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 1232/utelnetd
tcp 0 0 10.0.15.250:14430 0.0.0.0:* LISTEN 1371/qbittorrent-no
tcp6 0 0 ::1:14430 :::* LISTEN 1371/qbittorrent-no
tcp6 0 0 2a02:2f0d:b206:af:14430 :::* LISTEN 1371/qbittorrent-no
tcp6 0 0 fe80::493:6545:ff:14430 :::* LISTEN 1371/qbittorrent-no
tcp6 0 0 :::8080 :::* LISTEN 1371/qbittorrent-no |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Wed Aug 30, 2023 9:29 am Post subject: |
|
|
pjp wrote: | The Google Origin Trials evokes... some thoughts.
Although I can't make sense of what that actually means... forcing "features"?
I have no idea what Gentoo may or may not implement. Given that upgrading phpbb has been delayed for a long time (decades?), it seems unlikely to happen anytime soon.
My memory of Plaemoon was that they were "unfriendly" to Gentoo users because of compiling, so there's that. If they support something like uMatrix, I'd have to reconsider (I actually primarily use uMatrix because I don't understand uBlock. The latter provides updated lists I guess). |
Is this what upgraded phpbb looks like?
In that case, I see no reason to hasten the upgrade. IMO, the gentoo forums look better and are not broken without remote fonts.
1984 wrote: | This message has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your post has been approved. |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 874
|
Posted: Wed Aug 30, 2023 12:10 pm Post subject: |
|
|
[quote="stefan11111"] szatox wrote: | Why ftp?
@pa4wdh
Tried vsftpd. It works fine with ipv4. Doesn't seem to work with ipv6.
Code: | ftp: connect: Connection refused |
|
One vsftpd can only handle IPv4 or IPv6, so yours is now probably running for IPv4 only. You can start a second instance with IPv6 enabled (which will not be able to handle IPv4 traffic), together they will handle IPv4 and IPv6. Back in the days when i used it i created vsftpd.ipv4 and vsftpd.ipv6 as symlinks in /etc/init.d and made sure they use different configuration files. After adding them to the same runlevel they will both be started and you have dual stack ftp. _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20421
|
Posted: Wed Aug 30, 2023 11:37 pm Post subject: |
|
|
They don't display version, so I'd have to see what phpbb has for version 3. Styles can be customized, but I have no idea how readily they transfer, so the current look may or may not convert (easily).
stefan11111 wrote: | 1984 wrote: | This message has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your post has been approved. |
| I've seen forums that do that, comments on blogs, and mailing lists. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2690 Location: Here and Away Again
|
Posted: Thu Aug 31, 2023 5:30 pm Post subject: |
|
|
pjp wrote: | They don't display version, so I'd have to see what phpbb has for version 3. Styles can be customized, but I have no idea how readily they transfer, so the current look may or may not convert (easily). |
John R. Graham, me, and fedeliallalinea put quite a bit of time into re-creating the current look (and perhaps created some other things as well), so that part should be done a number of years ago.
Some kind of a teaser(?):
https://i.imgur.com/tqBP0wY.png _________________ Kindest of regardses. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20421
|
Posted: Thu Aug 31, 2023 9:17 pm Post subject: |
|
|
I'll never understand why non-mobile versions need obnoxiously empty margins. Yes, I'd like it more inconvenient to view stuff please! _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2690 Location: Here and Away Again
|
Posted: Thu Aug 31, 2023 9:48 pm Post subject: |
|
|
pjp wrote: | I'll never understand why non-mobile versions need obnoxiously empty margins. Yes, I'd like it more inconvenient to view stuff please! |
Ne meither.
Not to worry though, we can and do make it take up all the width available! _________________ Kindest of regardses. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3350
|
Posted: Thu Aug 31, 2023 11:13 pm Post subject: |
|
|
Well, with modern displays it might be high time to completely redesign pretty much all UIs. Starting with moving all menu bars from the top and bottom of the screen to the right side (because right is never wrong ). I mean, stuff built for 15" 800x600, starts becoming awkward to use on 17" 16:9 display, and unusable with >30-40" 4k ultra-wide monsters.
Anyway, stefan11111, did you manage to get your git running? |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Thu Aug 31, 2023 11:29 pm Post subject: |
|
|
szatox wrote: |
Anyway, stefan11111, did you manage to get your git running? |
Nope. Only ipv4.
But is seems that I cannot just pass an ipv6 address and a port into my browser like I can with ipv6. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3350
|
Posted: Thu Aug 31, 2023 11:49 pm Post subject: |
|
|
So, which tools do you currently use and what did you do to make it not work?
> But is seems that I cannot just pass an ipv6 address and a port into my browser like I can with ipv6.
I don't understand this bit at all. What were you trying to do there?
Bear in mind that there were quite a lot of options mentioned in a rather chaotic manner, so we've got some catching up to do before talking 'bout solutions. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Fri Sep 01, 2023 5:09 am Post subject: |
|
|
Chiitoo wrote: | pjp wrote: | I'll never understand why non-mobile versions need obnoxiously empty margins. Yes, I'd like it more inconvenient to view stuff please! |
Ne meither.
Not to worry though, we can and do make it take up all the width available! |
I think it is because of the fact, where the site has a lot of text, that we are used to reading pages in portrait orientation. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Fri Sep 01, 2023 8:19 am Post subject: |
|
|
szatox wrote: | So, which tools do you currently use and what did you do to make it not work?
> But is seems that I cannot just pass an ipv6 address and a port into my browser like I can with ipv6.
I don't understand this bit at all. What were you trying to do there?
Bear in mind that there were quite a lot of options mentioned in a rather chaotic manner, so we've got some catching up to do before talking 'bout solutions. |
Last one I tried to make work is USE="cgi" git.
However, from the output of netstat, qbittorrent does listen on ipv6, but if I just copy the ipv6 address and port into my browser's address bar, it gets treated as a search query.
Code: | $ netstat -nplt
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1234 0.0.0.0:* LISTEN 7471/lighttpd
tcp 0 0 127.0.0.1:14430 0.0.0.0:* LISTEN 1371/qbittorrent-no
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN -
tcp 0 0 10.0.15.250:14430 0.0.0.0:* LISTEN 1371/qbittorrent-no
tcp6 0 0 ::1:14430 :::* LISTEN 1371/qbittorrent-no
tcp6 0 0 2a02:2f0d:b206:af:14430 :::* LISTEN 1371/qbittorrent-no
tcp6 0 0 fe80::493:6545:ff:14430 :::* LISTEN 1371/qbittorrent-no
tcp6 0 0 :::8080 :::* LISTEN 1371/qbittorrent-no |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3350
|
Posted: Fri Sep 01, 2023 11:08 am Post subject: |
|
|
Quote: | Last one I tried to make work is USE="cgi" git. | Never used it, but I'm pretty sure it still requires a http server to provide that cgi interface, and your lighttpd doesn't even listen on ipv6 either, so I guess you haven't bothered configuring it to forward requests to git.
I suppose the cgi part in case of git is intended to provide human-readable catalogue of repositories. Just a guess, but at this point it doesn't really matter.
Either way:
Quote: | but if I just copy the ipv6 address and port into my browser's address bar, it gets treated as a search query. | Yes, of course. You - the user - are not supposed to use ipv6 addresses directly, so browsers have no reason to recognize them. If you want to play with this, at least add yourself a new, ipv6-only alias to /etc/hosts.
What about just starting git-daemon service? It binds to both, ipv6 and ipv4 addresses. You just have to make sure the directory for repositories exists. And it turns out you have to add --export-all to the config (or otherwise enable sharing), since the default configuration provided for openrc does not actually give access to the repositories in the defined location. |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1655 Location: South America
|
Posted: Fri Sep 01, 2023 12:52 pm Post subject: |
|
|
stefan11111 wrote: | [...] but if I just copy the ipv6 address and port into my browser's address bar, it gets treated as a search query. |
Literal IPv6 addresses in URLs must be enclosed in square brackets. That's the standard syntax; I hope that browsers honor that. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Fri Sep 01, 2023 1:03 pm Post subject: |
|
|
szatox wrote: |
Quote: | but if I just copy the ipv6 address and port into my browser's address bar, it gets treated as a search query. | Yes, of course. You - the user - are not supposed to use ipv6 addresses directly, so browsers have no reason to recognize them. If you want to play with this, at least add yourself a new, ipv6-only alias to /etc/hosts.
|
And why is the user not supposed to access ipv6 addresses directly, but the user is supposed to access ipv4 addresses directly?
Anyway, I didn't get git-daemon to work, but I got vsftpd to work...
...with local users only.
I would like to get anonymous read to work.
Code: | $ cat /etc/vsftpd.conf
listen=NO
listen_ipv6=YES
local_enable=YES
anonymous_enable=YES
write_enable=NO
#chroot_local_user=YES
anon_root=/home/stefan/ftp
|
I would also like for anonymous users to only be able to access /home/stefan/ftp and not be able to look outside.
Also, the wiki seems wrong, as vsftpd seem to get the configuration from /etc/vsftpd.conf, not /etc/vsftpd/vsftpd.conf _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
|