• 6 Posts
  • 104 Comments
Joined 3 years ago
cake
Cake day: August 6th, 2023

help-circle



  • mat@linux.communitytoLinux@lemmy.mlOkay why is your distro the best?
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    1
    ·
    7 months ago

    I (maybe) ended distrohopping last year when I gave NixOS a shot. I can’t recommend it for beginners but once you understand generally how things work on Linux (and have an interest in programming) it’s a superpower to be able to define your entire setup as a single git repository. If something ever breaks, I can reboot into an older commit and keep using my computer, or branch off in a different direction… I’ve only scratched the surface of NixOS and yet I can already make a live USB containing my setup with a single command, or deploy it (“infect”) to another machine and manage e.g my work desktop and my personal laptop sharing most settings. Also it taught me about Nix (the package manager, which also runs on any distro and macOS independent of NixOS) which I now use to set up perfect development environments for each of my projects… if I set up dependencies once (as a flake.nix shell), it’ll work forever and anywhere.





  • I did a bachelor of videogame programming in Belgium 99% on Linux (minus exams), but it was definitely a huge struggle. All the courses and assignments were Windows-only, and 90%-ish required Visual Studio (non-Code) and Windows-only libraries like DirectX or Win32. I got by writing my own tooling to auto-convert these to CMake projects and convincing each teacher to allow me to hand in CMake projects. I wrote SDL backends for most of the win32 assignments, falling back on clang’s excellent cross-compiling for stuff that requires e.g Windows.h. I wrote a blog post about this: https://blog.allpurposem.at/adventures-cross-compiling-a-windows-game-engine And using e.g DirectX natively on Linux, easier than expected: https://blog.allpurposem.at/directx

    I also wrote a small wiki on my general experience + a summary of courses and main problems encountered… Windows was non-negotiable during exams: https://dae-linux.allpurposem.at/ I maintain tools, converted assignments, and information on this for future students who want to attempt something like me, but it’s hard to recommend the Linux challenge if you are totally new to programming!

    Hope some of this is helpful!







  • I’ve tried to match your setup, but to no avail.

    Interfaces:

    lan

    Static address (192.168.2.1) Firewall zone: lan

    wwan

    Static address (192.168.0.211) Device: phy0-sta0 (listed as the client in the dropdown) Gateway: 192.168.0.1 Use custom DNS servers: 1.1.1.1 (using root router’s IP causes DNS to stop working) Firewall zone: WLAN

    repeater_bridge

    Relay bridge Relay between: lan wwan Firewall zone: unspecified

    Firewall zones: lan ⇒ WLAN accept accept accept WLAN ⇒ lan accept accept accept

    With this, I am able to ping google.com from a openwrt ssh session, but not my laptop connected w/ ethernet (and a static ip). In the interfaces list, lan is green, repeater_bridge is grey, and wwan is red. I tried running /etc/init.d/firewall stop but still no luck.


  • When I follow this guide and get to the part where DNS server of wwan to the root router’s IP, I am not able to ping anything from a ssh session into the router (I get “bad address ‘google.com’”. So, I set the DNS address to 1.1.1.1 which restored ping’s functionality. However, with this configuration the network does not appear to be shared at all. My PC, connected to the LAN port, cannot access the internet (regardless of forcing a static IP for the pc)





  • Thank you! It definitely does, I will be using that Restic article for sure! I actually use NixOS on my main laptop, which I found via Vimjoyer’s videos. It’s great, though I wish documentation for more advanced usage was more readily available. I started making the server, currently my biggest roadblock is testing the infrastructure without going live (I made the flake generate a VM for now but it takes a long time to build it every edit and I can’t even get ssh working) and figuring out how I’ll eventually install it with minimal downtime.


  • I want to move my whole server to NixOS. It’s gotten to the point where I have no idea where all the Ubuntu config files went, and handling half of it via Docker vs baremetal. I hope this will allow me to set up proper backups as well, and maybe get better at Nix! I started a few days ago using the VM feature, but it’s tricky to work on for now, perhaps I haven’t found the right workflow.