Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Condor323326yFor seeing where the heck the SSH server is, I've made some alias.. helps a lot on the VPN connection where I still haven't figured out how to change assigned IP addresses in ipp.txt.. so when abroad I just scan the whole network to see which IP's happen to serve SSH 😅 but it could be useful to find your Pi as well I guess.
alias wms='for ((i=1;i<=254;i++)); do nc -vzw1 10.8.0.$i 22 2>&1 | grep Connected; done' -
@Condor well I tried nmap with /16 but that takes too much time, tried masscan but that wouldnt return anything even with 100% coverage, so I just use the avahi-daemon to resolve "raspberrypi.local" from now on :)
-
Condor323326y@JoshBent good point, even this nc would at worst take several minutes. Avahi resolution seems like a better idea yeah. Long-term (after deployment completion) I'd like to suggest static IP and internal DNS resolution with BIND though. Arch's installation process for that is pretty straightforward, and perfect for DNS at home 🙂
-
Wack61916yMaybe a stupid question, but what exactly are you planing to use it for? As a local dev server to serv php/mysql?
-
@Wack not a stupid question, but yeah I'll use it for local laravel (PHP,MySQL,..) on the go development, so I don't trash my laptop and also don't have random servers running in public wifi. Will try first laradock and see how that goes, since I always wanted to try it, but in the "worst" case I'll just set it up myself and use PHP artisan serve :)
-
Wack61916yWhy not run docker on your machine? You can allways just remove the images/containers to free space, and don't allow access to ports from the network, while on a raspi (unless you run it through usb/lan) you'll have to open ports (just to access it or "upload" data...
-
@Wack I can sftp directly onto the pi, though right now fighting another problem, turns out the internet sharing doesn't work as I thought, might after all just setup laradock on my laptop if I give up, though I still want the raspi thing to work, because that would also free up ram, cpu load and more, might even just one time setup the pi connected to the internet and then keep it offline or chroot into it and install it all.
-
Wack61916yDoes a pi really have that many ressources available, that you'll feel an impact by freeing them up on your machine? Don't get me wrong, it's a cool project! But I don't really see the point in it.
If you're looking into docker, take a look at docker compose, which will simplify a lot of things. Also what I'd recommend is to have your custom setup not just a stock laradock (actually I've never worked with laradock so it might be awesome and I'm just prejustice ;)). If you want to build your own env, take a look at laradocks docker file and also take a look at the one generated by https://phpdocker.io/ (there are some things I don't like about it, but all in all it's a solid starting point!) -
@Wack thanks for the recommendations! but all the times I tried to fuck around with docker configs it made me lose interest in setting it up, so I hope laradock can just take the pain away for me, if it doesn't I could look into your recommendations, but I think laradock should have me covered :)
Regarding the resources: my laptop has 2GB RAM, having any piece more of it dedicated to vsCode and Chrome is better, so the 512MB "external" RAM from the PI would be quite useful indeed, also CPU wise it wouldn't have to share with mentioned Chrome and vsCode.
Very excited, got my raspberry pi zero working over usb finally, gotta admit it took me a while to figure it out that the ifconfig IP assigned to the interface established isn't actually the raspberry pi's (seriously you don't want to see how far the visited google links go for all variations of "how to setup the otg ssh connection"), that only came to me once I was able to find the mini-hdmi to hdmi cable, before that it was a pure shitfest:
First I just tried all sort of configs, but the raspberry pi kept denying the ssh connection, slammed the microsd into my bigger Pi, even multiple times ran raspi-config, forced ssh to start in all possible ways, nothing.
Then I tried to use the TV-output on it together with my old small portable tv to maybe see some error-logs or the ssh not starting on the zero for whatever reason, even flashed a 2016 image thinking it is stretchs fault for not working, but then my fucking soldering iron cable disappeared, tried to quickly create my own, but that failed cause the 3.5mm connector it uses is different from the ones I had available, so I macgyvered a sketchy ass lose connection with male headers sticking through from the bottom and being sticked against the board with a female end on top, but the TV output wouldn't work, even with proper config options, so I gave up.
Some days later I've found the cable, connected it and realized the fucking IP it gets assigned is totally different from the interface, well fuck my life.
Atleast now I can make a clean image of that microSD and setup the portable laravel development raspi as I wanted, can't wait to try it once I get more time to fully set it up - btw even the internet bridge worked right out of the box, so I can easily use my laptops internet connection on the zero.
random