News for hackers. Stuff that matters.
Re:M1 dev setup with a virtual Linux box by mcny on Sunday April 11, 2021 @07:41AM (#26769591)
If you think that's bonkers, I'll give you an even worse idea: a dedicated desktop machine. I have a dell optiplex running Intel i3-2100 with 8GB RAM and 1TB Samsung 860 Evo SSD. No display. Fedora runs like a dream with dnf automatic. Use cockpit if you'd like.

You can use your windows or Mac laptop with visual studio code to do web development. ng serve works as if you ran it from your laptop.

The biggest drawback I can think of is if you ever needed to leave the house. Thankfully, I have no life so I don't have this problem.

Re:M1 dev setup with a virtual Linux box by Tsiklon on Sunday April 11, 2021 @08:03AM (#26769695)
Having both your laptop and desktop on a WireGuard vpn with the gateway on your choice of cloud host would solve that problem, also it would solve having to deal with wandering IP addresses as you may find with a home internet connection
Re:M1 dev setup with a virtual Linux box by cassianoleal on Sunday April 11, 2021 @08:01AM (#26769690)
> The biggest drawback I can think of is if you ever needed to leave the house.

Add ZeroTier to the equation and as long as you have Internet connection when you're outside the house you'll probably not even notice it.

Re:M1 dev setup with a virtual Linux box by rovr138 on Sunday April 11, 2021 @09:33AM (#26770242)
I see WireGuard and ZeroTier mentioned.

I just use ssh. SSH to a VPS and map 22 to a port on the VPS.

I have a really small VPS for this.

Re:M1 dev setup with a virtual Linux box by mcny on Sunday April 11, 2021 @09:46AM (#26770345)
I think the reason they mentioned more complicated setups is because I'm using an actual old machine at home and unless you know what you're doing you don't want to expose it to the world.

I think poking a hole on port 22 is mostly ok if you only allow key authentication and no password authentication but I don't know enough to give advice on security.

Re:M1 dev setup with a virtual Linux box by rovr138 on Sunday April 11, 2021 @02:43PM (#26772461)
Just posting alternatives.

I use a VPS with SSH. I have to ssh in, then I can ssh into the machine at home.

For safety, key authentication and fail2ban would cover a lot. I mainly have the 1 port.

If I need to expose another SSH port to the internet, I can do it, but yes, it would need extra protection since logs are coming from the machine ssh'ing in.

Re:M1 dev setup with a virtual Linux box by hiq on Sunday April 11, 2021 @04:34PM (#26773156)
> For safety, key authentication and fail2ban would cover a lot. I mainly have the 1 port.

Changing the port from the default 22 to something else is also recommended, if only because it makes fail2ban logs way less verbose.