You are not logged in.
But this will probably change in the future as there are plans to create a new installer for Devuan.
A new installer for Devuan would be nice as i've always found Debian's installer quite hard to modify. Actually i have been playing around with this a bit. What i have right now is an ISO that boots a tiny busybox based system (boots fine down to 64MB RAM) with a statically linked dialog binary (and a handful of tools for stuff that busybox is lacking like formating filesystems). My plan is to do the whole setup in as little as possible shell script so it's easily modifiable. Main install consisting of extracting and adjusting a debbootstrapped minbase tarball. Everything further being just a question of chrooting to the target or copying files. Building a usable partition setup from nothing but dialog is proving to be a bit time consuming though so not sure if i will find the patience to finish it.
The reviews here are much more thoughtful:
https://distrowatch.com/dwres.php?resou … tro=devuan
Yeah, i prefer those too.
While i agree with pretty much all the flaws posted here the most horrible thing imo are the comments below the review... One completely ignorant tool after the other (with exceptions obviously but still...).
There are probably many holes in my understanding, but isn't it so, that the server-vpn program already interacts on eth0 for handling its clients; so it's response packets are already outbound on eth0 without any routing?
Well, not saying i am total expert here either. I've done a bit of weird stuff like per user routing and so on but it's not like i deal with this on a regular basis. Still to my best knowledge the kernel doesn't care where a packet was received when sending a reply. It just goes by what the routing table says. The reply packets disappearing from eth0 as soon as the tunY default route is up imo underlines this. Also when you look into reverse path filtering you'll see that it deals with exactly such cases (seems it's not used by default in Devuan - Ubuntu for example does use it by default i think - otherwise OP would have to disable it to not have the kernel outright drop the incoming packets).
Have to agree. I also think a lot of the criticism comes down to their choice of using the live installer instead of the conventional one. Besides even if i have no experience with the live installer the complaints seem a bit blown up. Especially the locales thing. Those "cryptic" names have been the default representation in Debian's installer for years and haven't heard any complaints yet.
mmm ... all 192.168.x.0/24 (ethX) traffic should go out without ado due to the network route.
Sure but if his internal VPN server gets a connection from the internet that won't be from 192.168.x.0/24 or any kind of local address but a random WAN IP (which OP doesn't know beforehand so no chance to set a conventional route for it) and when the server attempts to answer the only route matching the destination IP will be the default route pointing at tunY.
It's a bit of a weird setup to actually have a need for routing based on source port (well, at least that's how i'd single out traffic originating from his internal VPN server) rather than destination IP but in this case i don't see how it could work otherwise. Well, i guess he might get away with source based routing also but in that case all traffic originating at eth0 (or rather it's IP) would get routed through eth0 (his normal internet connection). That might spare him the tagging of individual packets but it's not exactly (as i understand it) what he is asking for and imo it wouldn't be all that much simpler.
That's a good set of rules for doing no filtering at all, yes
If you don't mind, rather dump the output if iptables-save, just to confirm all the tables. Basically, you shouldn't need any iptables rules, except the masquerading of the outbound traffic on tunY. That one is necessary to allow packets with original source from IP 10.8.x.0/24 (i.e., your server-vpn clients) or 192.168.y.0/24 (your wlanX neighbors), as well as allowing packets from 192.168.x.0/24 (your ethX neighbors) to be forwarded and masqueraded through tunY.
Agreed. He'll likely need a couple of additional rules to route selected internet traffic (communication with his internal VPN server) over eth0 though. At least that's the best idea i have to actually have replies (those packet's will have a non local destination) to packet's that reach his VPN server ever eth0 exit there again while having a default route that points towards tunY
On the other hand, with route-nopull disabled, I saw the packets trying to reach ethX, but as you said, no replies. And I've gotta be totally honest with you, but I have no idea what that means.
Well, it's not 100% sure but it pretty much implies that the routing "works". Sadly not "works" as in does what you but rather does what it says though. I am quite certain the missing replies aren't really missing but just exit on the wrong interface as the default route that's in place when you remove route-nopull tells them. I guess you could see them when point tcpdump to tunY rather than eth0. That's basically what i was aiming at with the custom routing table but it seems that didn't work for some reason. I am quite sure that would be the way to go though.
could you post outputs of the following commands
ip route show table isp
ip rule show
iptables -vnL
iptables -t mangle -vnL
before and after running
iptables -A PREROUTING -i eth0 -t mangle -p udp --sport [YOUR-INTERNAL-VPN-SERVER-PORT] -j MARK --set-mark 1
ip rule add fwmark 1 table isp
ip route add default via 192.168.x.1 dev eth0 table isp
I know this is going to be a lot of output but i am trying to wrap my head around where it could go wrong and it's nothing i can easily test locally. Also your internal OpenVPN server uses UDP and when looking at tcpdump it's reply packets used [YOUR-INTERNAL-VPN-SERVER-PORT] as source port, right? Otherwise the iptables rule that should mark the packets would be wrong.
Purging the packages will require downloading them again?
Usually not as they will be stored in /var/cache/apt/archives but of course if there is an update available apt will want to download that. There might be some other cases where removed packages need to be redownloaded to but generally it should just get previously installed packages from the disk cache.
If so, will the wireless network be up when I log into rescue mode?
I don't really know since i seldom use rescue mode. In any case you should be able to bring up the interface using "ifconfig wlan0 up" and if that isn't enough to get a connection either manually configure it or run "dhclient wlan0" to acquire an IP using DHCP if your network uses that.
Could this be done with a live Jesse or Ascii CD?
I guess you could do that. You'd have to mount your disk and chroot (after mount binding /dev /proc /sys /tmp) to it to be able to use apt-get though.
Kinda funny how such a mostly cosmetic change draws so much attention
Very interesting post. I thought spacefm depended on dbus. If that isn't the case i am down to replacing audacious. Pretty neat.
golinux wrote:<Irrwahn> He could probably do that himself. ISTR that basically any customer can deposit any ISO (that meets some criteria) at their store.
Well, to be honest i don't know. I've never needed this (as i can install pretty much whatever i want using just rescue mode) but i am quite sure i can't simply upload something and have it automatically be add to the list on their website.
I've looked into this and found absolutely nothing. Even the KVM related wiki pages only talk about being able to mount a remote ISOs using CIFS and cloud documentation just seems to go on about selecting an ISO from the list. No mention of any upload option. I guess this doesn't exist after all but it it does some kind of pointer would be neat.
Edit: Thinking about this i'll just ask Hetzner if they can add Ascii. I need to get off the PC and make some jelly before my cherries go bad. No point in wasting time with all this grumpyness
Some feedback from irc.
<Irrwahn> golinux: That's just install via some ISO image. That's not the same as an officially supported install image, but more like "bring your own OS". And it will only work for VMs, not dedicated machines, unless you rent a KVM + virtual drive console.
<Irrwahn> By this metric virtually any old hosting company in existence can be said to have an "Install Devuan" option.
That's partly true. Of course it won't work for dedicated machines as those don't have virtual CD-ROM drives. As for needing a KVM and anything virtual to install ISOs on the dedicated servers... Well, no. All my dedicated boxes at Hetzner are installed from ISOs and i haven't used any of this. I also tend to somewhat disagree about the any hoster offers this statement. I've seen enough companies that will not let you mount custom ISOs at all let alone have Devuan included in the list of available ISOs.
<Irrwahn> He could probably do that himself. ISTR that basically any customer can deposit any ISO (that meets some criteria) at their store.
Well, to be honest i don't know. I've never needed this (as i can install pretty much whatever i want using just rescue mode) but i am quite sure i can't simply upload something and have it automatically be add to the list on their website.
<Irrwahn> Overall, the important takeaway is: When you run Devuan on a Hetzner machine, you do so at your own devise and own risk, no support.
<Irrwahn> And that's different from their "official" OS choices.
No offense to the guy but that made me chuckle a bit. It's not like Hetzner offers any software support at all. Even if you have some kind of network problem they'll have you boot into rescue mode and if it isn't reproduceable there it's up to you to fix it no matter what you are running.
Edit: I'll have to agree that Hetzners images are more fail safe. I had a bad MTU on one of my installs which caused me quite bit of hairloss and i guess that wouldn't have happend with their images (even if the bad MTU was just a result of me not paying enough attention). It's not like they are going to help you if you managed to break it on a supported OS though. In fact the support didn't even ask what i was running.
@devuser . . . That's fantastic news! The process is a bit daunting though - not for the faint-hearted. I should probably add Hetzner to the list and include a link to your post above. Could you possibly contact them requesting either an update to or addition of the ASCII iso?
Well, tbh i have a bit of an aversion to making support requests for stuff i don't actively use but i figure i'll probably want to move my legacy VPS to their cloud at some point so i guess that justifies it. I'll write them later. It's probably not going to get answered during the weekend anyways.
While i agree this might be a bit of an overreaction i can see very well where he is coming from. Modern communication is horribly broken. I am on the edge of the age group that grew up with social media and i am seeing the effects quite often. People sitting on the same table not talking to each other but nervously checking their phones in fear they might miss something. Outside who even notices their surroundings anymore? Most of everyone is staring at some little screen and this is just one aspect of it. Not even getting into the whole made up persona thing which is playing a huge part in the success of social media. You are ugly? No problem, just shoot at a different angle. People think you are boring? No problem, just copy some witty picture. Something bothers you? Just block it. Zero effort needed and very very fake. If this trend continues we are looking at a very bleak and cold future.
OK, so after working my way through the setup here is a couple of screenshots (sorry about those being in german - i don't know how to switch the panel to english but there is an international version i am sure) and some notes:
After creating the VM which allows just a handful of operating systems (i choose Debian 9 but i don't think it matters) you have something like this:
If you click the servername there you'll get an overview like this:
From there you select 'Power':
and shut the VM down (it's labeled 'Herunterfahren' here) but i guess since we don't care about a clean shutdown 'Power Off' would equally work. Now you can select ISO-Images and mount ('Einbinden') Devuan Jessie netinst (it's even on the first page, nice!):
Now turn the VM on again (using 'Power') and and go to the server menu to launch the web console (labeled 'Konsole' here):
You should be greeted by the Devuan installer asking to select graphical or text install. I choose text which likely doesn't matter again but as the installation has some quirks it might be the better option. Speaking of quirks, this is what i encountered during the actual installation:
After detecting the network the installer complains about not being able to detect the default gateway. This can be easily fixed by following the instructions in Hetzners wiki at https://wiki.hetzner.de/index.php/Cloud … Gateway/en. Basically you hit ALT + cursor right to get to a shell then enter the following commands:
ip r ad 172.31.1.1 dev eth0
ip r ad default via 172.31.1.1
To switch back use ALT + cursor left. Choose to continue without the gateway (not really true since we have just configured it). The setup then asks for a nameserver which can be found at https://wiki.hetzner.de/index.php/Hetzn … _Server/en. I've just used the first one.
When it came to selecting a HTTP mirror there was something i am not entirely sure about: When i tried to select a mirror from the list neither the localized URL nor auto.mirror.devuan.org seemed to work so i choose manual selection and entered deb.devuan.org for the address and /merged/ for the directory which worked fine.
One final problem that had me stuck for a bit was then when trying to install software the installer would fail with a huge message on a red screen. Trying around a bit it came down to the installer having problems with authenticating packages (outdated ISO?) and it's possible to fix this by again switching to a terminal (ALT + cursor right) and running the following commands:
chroot /target apt-get -y --force-yes devuan-keyring
chroot /target apt-get update
After that you can just hit OK on the error message and retry the software installation step.
When the installer is finsihed you have to unmount the ISO:
The huge orange box at the top basically says "You have an ISO mounted" and the link at the end allows you to unmount it. I am quite sure you could archive the same using the ISO-Images menu entry also though.
At this point your Devuan VM is ready to go. I found IPv6 wasn't configured but i guess it's easy to fix that by following the post installation instrcutions at https://wiki.hetzner.de/index.php/Cloud … Gateway/en.
That's it. I hope it's somewhat useful. Wonder when Hetzner will add an Ascii ISO though. I am not using any cloud instances otherwise i'd pester the support about it. Guess they'll sooner or later add it anyways given they allready have Jessie.
How can I access the server I rebuilt? ... a new root-password for server1 will be generated and mailed to you. It will be set on first boot using the cloud-init mechanism.
If custom ISOs are supported i wouldn't think this to be relevant in this case but i'll have a try later. Let's see how it goes.
Edit: Hetzners cloud indeed offers a direct option to select a Devuan (Jessie, netinstall) ISO for setup. Will post some pictures once i have a working VM.
ks wrote:But perhaps it's not so bad an idea if you build a list of hosters where devuan is either a clickable option or can be migrated to, even if it's only maintained until people get tired of poettering about and demand systemd-free hosting.
devuser wrote:. . . I haven't seen a single hoster that actually offers Devuan templates yet. I've tried a bit of lobbying here or there but so far no luck.
Two options were included in the ASCII stable announcement. That info is posted in two places on the devuan.org website.
https://devuan.org/os/debian-fork/ascii … nce-060818
https://devuan.org/os/install
Ouch. Should have remembered that.
As to Hetzner . . . according to one of our devs:
<DocScrutinizer05> >>Hetzner which are offering Devuan<< hmm? I just checked, seems they can't find "devuan" even in their support pages
<DocScrutinizer05> of course you can install your own OS with Hetzner
<DocScrutinizer05> if Hetzner actually has any support for devuan beyond that generic "BYOOS", it's prolly quite worth elaborting about it in devuan's publications, since on Hetzner it's unknown
<DocScrutinizer05> https://github.com/hetzneronline/installimage
<Irrwahn> DocScrutinizer05: You are correct, Hetzner does not provide a Devuan install image. For our Finnish Maid we had to go the Debian -> Devuan route just recently.
Yeah, Hetzner has no official support. At least not on the normal VPS/dedis and is imo unlikely to add it (my servers all run voodoo'd Devuan installs) but their cloud VPS seem to be able to install from a user supplied ISO. At least i had a friend tell me he had installed Devuan on it and he is not the guy to go through the voodoo steps. I was like: "Nice. How did you do it?" and he replied "I selected custom ISO".
Edit: Hmm now i am getting curious. Might check this out tommorow. Maybe there actually is something that lets you directly select Devuan? I'd be seriously surprised but who knows? That'd be massive. Hetzner is damn huge.
Anglese only , si vous plait...))
Ja, wir sollten alle englisch schreiben!
The only abuse potential i could come up from the top of my head is registering lots of sock puppets and having each mark user X as a troll thereby making X look like, well, a troll.
Anyways, are there even trolls here yet? No, don't look at me... I am just confused sometimes
Yes of course I'm looking for a different hoster for other projects. What I liked about the current hoster is their unlimited data transfer, and the project I installed there last week (or was it the week before) currently using centos does need a big pipe.
Well, unmetered (unlimited - sorry to be a smartass - doesn't exist as noone has unlimited resources) is often quite hit and miss. You have to keep in mind that (at least in europe) a dedicated gbit is at least about $150/m - if you buy bulk (10gbit upwards) and this being absolute bargain pricing the connectivity will not be anything to write home about. Compare this to whatever you are paying and do the maths by what factor the provider needs to oversell the bandwidth to make any kind of profit if everybody tried maxing their port. Not saying this is anything outrageous (it's quite normal business practice and it can work out if you have enough people not trying to use 100%) but often you get more of what you actually pay for by going with a metered deal instead of competing for an overbooked port with x other people.
This afternoon I found someone using OpenVZ and just tried one of their VPS - worked as you yourself said. And if I find the time next week I'm going to try a VPS hosted at fasthosts.
Yeah, OpenVZ seems to not cause any problems. I've canceled my last OpenVZ VM before Ascii became RC but i guess it won't behave much different than Jessie. Word of caution though: OpenVZ is not full virtualization like VMWare or KVM (that's the reason btw i tend to use VNC for virtual consoles - KVM is confusing as it's also the name of a virtualization technology) and it's quite old (there is a new version but most providers haven't migrated yet - even if the commonly used version is about to EOL). You will be stuck with a (heavily patched) 2.6 kernel which you can't upgrade (whatever kernel your OS installs will be ignored) and you can't load kernel modules. Tun/tap is usually available but even fuse is already pretty rare. Imo you'd be better of to go for KVM virtualization. It's almost equally cheap these days.
But perhaps it's not so bad an idea if you build a list of hosters where devuan is either a clickable option or can be migrated to, even if it's only maintained until people get tired of poettering about and demand systemd-free hosting.
I know this is not directed at me but i'll answer anyways. I haven't seen a single hoster that actually offers Devuan templates yet. I've tried a bit of lobbying here or there but so far no luck. The easiest more widespread approach would be hosters that allow custom ISOs. VMHaus (no personal experience but they are generally well liked) comes to mind and i've heard reports of Hetzners cloud offering also having a custom ISO option (could verify this if there is interest - i just have a couple normal VPS and dedis with them but as their cloud is billed hourly it would costs cents to try).
Have you asked for a refund?
Yeah though about this too but then it seems he has already used the service with other OSs and i have a feeling the host will argue they don't support anything not listed in their panel. Still a full virtualization environment that relies on code running on the guest is a pretty sad thing and i'd let the host know quite well what i think of it. These days it's not even all that uncommon to be able to just use a custom ISO for installing. In any case i agree this is really borderline to being a broken product in my opinion.
Well, that didn't go as planned. The hoster I'm using for this project uses cloud-it http://cloudinit.readthedocs.io/en/latest/ to setup and manage VPS instances. Cloud-it occupies many config files, scripts and four inits and, when running debian, depends on systemd (which is gone after the migration).
To be brutally honest i'd look for another hoster. That seems absolutely awful. The virtualization environment needing access to the running system let alone having to run custom services on it is not something one can reasonably expect and a setup like this would have me cancel the second i found out about it.
Not sure how to get VPS hosters to add devuan to their list of OSs provided. Maybe the only solution is to use dedicated servers that have un-poettering'ed OS support and run, if needed, multiple web sites on such a server although I prefer to separate things if they're not totally under my control. Ah, well...
Well, it's going to need some lobby work. On the other hand i've used successfully pretty much all of the described approaches on lots of different providers for either dedis or VPS. As weird as most of them seem they are actually pretty commonly used in the wild to install unsupported OSes. A setup like you described above that depends on stuff running on the virtualized system is really really uncommon.
acpid will not do much on it's own. You need to configure it. You can run acpi_listen as root to see if your keys trigger any event. I figure you want to bind brightness control to your brightness keys? As long as your keys trigger events binding 2 tiny scripts that change brightness by adjusting /sys/class/backlight/*/brightness using acpid (see http://www.thinkwiki.org/wiki/How_to_configure_acpid for how to bind them) should work.
On my thinkpad brightness keys work out of the box though so there might be an easier way for your laptop (not necessarily a thinkpad) too. Sadly i am not entirely sure what makes the keys work for me. Might be the thinkpad modules i've installed or it might be the bios. If it's the bios and that doesn't work in your case acpid might indeed be the best approach.
ffmpeg and libav-tools (avconv) seem to be available on ascii? https://trac.ffmpeg.org/wiki/Capture/Webcam has a guide on how to record from v4l2 or did you already try that and there is some problem? Sorry, can't try it as i don't have any video device available.
Well, as long as you have to default route on tunY VPN config should be fine. What i'd do at this point is fire up tcpdump to debug:
tcpdump -ni eth0
Do you see the packets from your client connecting to your internal VPN server? If yes do also see the replies going from the server to the client? If you see the packets from the client but don't see any replies can you see replies when running
tcpdump -ni tunY
Edit: You can add
port [YOUR-INTERNAL-VPN-SERVER-PORT]
to the tcpdump commandline to filter traffic. Might be a bit hard to spot anything otherwise.
Edit2: It not working with nopull (as that should have eliminated the default route toward tunY) seems a bit fishy to me. If it worked and the default route points towards eth0 i don't see how it could stop you from connecting from outside. Are you sure the packets aren't getting blocked by iptables?