-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ArchLinux support. #2
Conversation
# Else, the distro is ArchLinux | ||
echo "" | ||
echo "" | ||
echo "As you're using ArchLinux, I need to update the packages on your system to install whose I need." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With APT, when a package requires dependencies, and those dependencies are installed and have updates availble, they're updated when the package is installed. In the same way, when an update for the installed package example
is available, doing apt install example
will just update the package.
I assume it works the same way for pacman ? Correct me if I'm wrong.
Thus, I don't think that adding -u
to the pacman command is needed. Not that this is not a good idea, but I don't want the script to be too intrusive for the user. The -y
is a good idea, though.
OS=arch | ||
RCLOCAL='/etc/rc.local' | ||
# Needed for rc.local support on ArchLinux | ||
echo "[Unit] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You confirm that lines 51 to 62 this add a functionnal rc.local, and therefore resolving #1 ?
When just using -S, pacman will only install specified packages, and won't update dependencies, unless a more recent version is needed by one of the specified packages. The problem is, we can't just do -S because if another version is out, the old one won't be available in the repositories and the install will fail.
Yes this is the solution to this problem, but it is highly discouraged to do -Sy, as of what I just explained. Archlinux is meant to kept up to date, packages have to be updated all the same time. Things may break even if the dependencies are still fulfilled.
So, even if I agree with you, it's a little bit intrusive, but Arch is meant that way.
Absolutely. |
You're right : https://wiki.archlinux.org/index.php/Pacman#Installing_packages
I can't argue with the Arch Documentation 🙄 |
So as for me, the installation works fine, and I can ping 10.8.0.2. However, it seems to be an issue with the firewall, the server does not forward the traffic, so I can't access anyting outside the server. |
It worked fine for me. Can you check the actual iptables rules ? Openvpn log may be interesting too. |
There is no iptables rules, that's the problem. The OpenVPN logs don't say anything about this as it's not related to OpenVPN |
Oh, I see. I suppose iptables was installed by the script, and as it does not start nor enable it, it's not working. I'm writing a fix now. |
iptables is already present on my installation, but it is indeed not started. I'm not sure it's the problem though, because I just reinstalled the server and the installer shows me this at the end :
However OpenVPN is sucsessfully installed |
Okay so
is on me, I had to reinstall Linux from the Arch repo, which was not the case (thanks Online...) |
So this is working now? However the fix I just done was necessary as if iptables was not started, the changes done would have had no effect |
It works, but the traffic is not forwarded after a reboot. The iptables rule is not set |
Can you show the contents of the file |
|
New fix, working on my server even after a reboot now. |
Does not work for me, but to be sure I'm gonna reinstall the server from scratch. I checked the use of sysctl for Arch and it seems that the file is not located in the right folder : https://wiki.archlinux.org/index.php/Sysctl (does not affect the current issue tough) Also, I think the script should add the rc.local file after it ask them if they want to continue. If the user cancel the installation, the script should not have touched anything on the system |
My bad, it was working on my server because of an old weird thing I've done to support this path.. Fixing this now, with the suggestion you have juste done. |
Still working for me, starting from scratch, with these new changes. |
Ok I'll test asap |
Same problem after a reboot.
|
rc-local is not working :
|
What's inside rc.local file and systemd unit file? |
|
This is an old version of the script, not fixed. Either remove it and start from scratch the install, or just replace |
It's the actual version : https://github.com/Angristan/OpenVPN-install/pull/2/files#diff-cda9722285f1718b319bb88e134e9efeR302 |
Fixed... Avoid starting from stratch by executing |
Works too thanks. I'll make some more tests, and then I'll fix the conflicts for the merge |
Thanks 🤗 |
Remove old fix about buffers
No description provided.