Links and instructions to do or fix specific problems!
- Platform-independent
- Windows 10 issues
- Linux
- Setup a guest smb/samba
- Error connecting to the ZeroTier service: Please check that the service is running and that TCP port 9993 can be contacted via 127.0.0.1
- Disable laptop screen on boot
- Disable sleep on laptop lid close
- vbetool -> mmap /dev/zero: Operation not permitted
- Cockpit in ubuntu apt-get outdated
- Caddy setup with DNS Challenge
- Update-grub on Fedora
Windows+R -> regedit.exe ->
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\
sudo adduser GUESTNAME
sudo smbpasswd -a GUESTNAME
sudo nano /etc/samba/smb.conf
And in the smb.conf, add the following to the end of the file:
[public]
Comment = Publicly accessible directory
Path = /path/to/directory
Public = Yes
Browseable = Yes
Writeable = Yes
Guest Ok = Yes
Guest Account = GUESTNAME
(Remember to put the correct chmod on the directory. I didn't want guests to be able to write to it, so I used 775. But that depends on your preferences!)
And then run sudo service smbd restart
Sources: this SO post and the smb.conf documentation
(In my experience, having the 'nomodeset' parameter set interfered with this solution) https://www.reddit.com/r/linuxquestions/comments/1l3eab/disabling_laptop_monitor_on_boot/cbvkzon
mmap /dev/zero: Operation not permitted Failed to initialise LRMI (Linux Real-Mode Interface).
mount -o remount,exec /dev
vbetool dpms force off
mount -o remount,noexec /dev
https://bugs.launchpad.net/ubuntu/+source/vbetool/+bug/1875240/comments/7
Add HandleLidSwitch=ignore
to /etc/systemd/logind.conf and reboot
https://askubuntu.com/a/372616
# sudo apt install cockpit/bionic-backports # For Ubuntu 18
# sudo apt-install cockpit/focal-backports # for Ubuntu 20
Setup Caddy with a DNS challenge for use on your VPN. Advantages are:
- Not requiring Caddy/your server to be accessible to the internet
- Allowing wildcard certificates
- Using a subdomain for your VPN stuff
First of all, make sure your DNS provider is supported by Caddy. Here's a list of official supported DNS providers. If it isn't, no need to worry, you don't need to switch your entire setup. Simply select any DNS provider from the list before (I've used DigitalOcean since it's free, note that I've had issues with Cloudflare but hey). Then in your main dns provider, simply add the necessary NS records your Caddy-supported provider (you can use vpn.yourdomain.com as a host for example), and done!
- Configure the installer with your Linux version & Caddy DNS Provider included: https://caddyserver.com/download?package=github.com
- Use this simple bash script I wrote or the official instructions (on which the bash script is based) to install caddy as a service (and give Caddy access to the lower ports if need be)
- Create A records in your Caddy DNS provider to point to the IP of your Caddy server. This can just be the private IP from your VPN for example
- Add your email and DNS provider API key to the service configuration (
nano /etc/systemd/system/caddy.service
) like so:(Note, email isn't always necessary, only when you have issues with your certificates, but I just added it to be safe)[Service] # ... # Other settings # ... Environment="[email protected]" Environment="caddy_api_key=yourapikey"
- Create a Caddyfile in /etc/caddy/, with a setup like seen here:
{ email {env.caddy_mail} acme_dns yourcaddydnsprovider {env.caddy_api_key} } vpn.example.com { respond "Hello!" } subdomain.vpn.example.com { reverse_proxy :9000 } anythingoeshere.vpn.example.com { reverse_proxy :8000 }
https://fedoraproject.org/wiki/GRUB_2#Updating_GRUB_2_configuration_on_BIOS_systems
https://stackoverflow.com/a/17848593/5522348
- Tutorial for creating SSH links https://www.freecodecamp.org/news/manage-multiple-github-accounts-the-ssh-way-2dadc30ccaca/ (other article for the same thing)
- Add github.com to trusted hosts ome/devspace#38 (comment)
- And for the eventual snafu: https://stackoverflow.com/a/41350134
- Install https://github.com/google/ios-webkit-debug-proxy
- Install https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter
- Depending on your OS, you might have to install iTunes and keep it open while debugging (Microsoft Store version works, for the record)
- Enable Web Inspector on your iOS device
- Connect your iOS device to your computer using USB, and trust the device (through iTunes as well if applicable).
- Run using
remotedebug_ios_webkit_adapter --port=9221
(the default port no longer works) - The device should appear now in chrome://inspect/#devices
- If it doesn't, make sure Discover USB devices is enabled. You may also need to press configure and add localhost:9221
Installing Flutter from git in Android Studio/Windows but you've put everything on a second drive because your main drive was running out of space and now the flutter installation doesn't work
- Install Android Studio
- Use the git clone command as described here
- From the bin folder, run flutter && flutter doctor to verify your installation.
- If your Android SDK installation is in a non-standard location, you have to use the following command.
flutter config --android-sdk "D:/Path/To/Android/"
(For me it only worked with the forwards slashes being used instead of the backward slashes, but your experience may vary) - Install the JDK and set the JAVA_HOME environment variable to its installation folder
- If
flutter doctor --android-licenses
gives anException in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema"
, you may need to install the Android SDK Command-Line Tools - Use
flutter config --android-studio-dir "D:/Path/To/Android Studio"
- Run
flutter doctor
to make sure everything is okay and configured