home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.cyberpunk.tech      Cyberpunks LOVE making shit complicated      1,115 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 522 of 1,115   
   auanon to All   
   Re: Post-Tropes: Cyberpunk NOW?   
   19 Oct 25 10:15:20   
   
   From: auanon@airmail.cc   
      
   >you too will have to share your learnings   
   >I will also be looking at getting an openBSD installation up   
   Well, here's one of the more useful things I did - at least if you're on   
   a laptop. I wanted to have an easy way to switch wifi   
   networks. Nowadays, this can be done with a "joinlist", eg:   
   ```   
   join "Net1" wpakey "Pass1"   
   join "Net2" wpakey "Pass2"   
   '''   
   Which would automatically switch between the networks depending on what   
   was avalibable. Unfortunately for me though, the settings (eg, IP   
   address) have to be the same across all the networks. Additionally, the   
   networking in OpenBSD is controlled by a single config file, which gets   
   (re)loaded with [doas sh /etc/]netstart. Thus, I was able to write a   
   script (https://ghostbin.lain.la/paste/dqrj6) that would copy a new   
   config file in, and then reload the networking. This let me swap between   
   DHCP and static IPs to my hearts content.   
      
   The most confusing part was DNS. DHCP DNS is controlled by its own   
   daemon (dhcpleased), so even when I was using a static IP, it would   
   overwrite OpenNIC with whatever the DHCP given DNS settings were.   
   Thankfully, the network config file allows you to run arbitrary   
   commands, so I was able to do this:   
   !rcctl stop dhcpleased   
   !rm -f /etc/resolv.conf   
   !printf "nameserver 103.1.206.179\\nnameserver 168.138.12.137\\nsearch \   
   localdomain home.arpa\\n" | tee /etc/resolv.conf > /dev/null   
      
   I'm sure there's a cleaner solution, but this works for me, and   
   hopefully it'll work for somebody else :)   
   --   
   PGP ID: 0xCBA5A1DB4336CE5EB5FDF1DF18B65A09AE9011BA   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca