@wayneoutthere this would be great. Also, I might add OMEMO encryption would be cool too.
Posts
-
RE: Using XMPP clients for text messages and audio calls
-
RE: USB connection to my Pixel 3A not working.
I had this same problem and put my phone in Fastboot mode and my computer recognized my phone. I'm not sure what caused it, but I think it may had been something like the utadblocker app but I'm really not sure.
-
RE: Ubuntu Touch unable to install on some Pixel 3a phones?
@MrT10001 personally I was able to flash the correct rom without having to sign up for a Google account. I'm also using Linux which I've found to be easier when it comes to flashing custom roms so that may affect me not having to have a Google account.
-
RE: Ubuntu Touch unable to install on some Pixel 3a phones?
I would try putting the phone in fastboot mode then letting the UT Installer search for the phone
-
RE: Pixel 3a randomly restarts....
Happens to me sometimes when I'm opening Waydroid apps
-
RE: Ubuntu Touch unable to install on some Pixel 3a phones?
@ubuntumale I bought mine (unlocked) on ebay and they sent me a locked Verizon phone. I returned it, then they sent the correct unlocked phone.
-
Always-on-VPN Working
I was able to get an always-on-vpn using crontab. Warning I haven't tried to find a way yet to turn it off, so if you need to turn off your VPN from time to time, I don't have an answer yet.
*Make sure to make your terminal Read/Write during this whole process. It's Read-Only by default. I used the UT Tweak Tool to do this.
I used this script (https://www.gabsoftware.com/tips/automatically-reconnect-to-your-vpn-on-linux/) as a template to automatically reconnect to my VPN when it turned off.
I used this terminal command with my VPN turned on, nmcli c show --active | grep vpn, to find out my personal MyVPNConnectionName and my UUID number. I also replaced sleep 30 with sleep 5, but that's just a personal preference.
After replacing MyVPNConnectionName and the UUID number in the script with your personal VPNName and UUID number, I recommend copy/paste the script into the terminal and let it run, toggle off your VPN and see if it toggles back on automatically. If it does not toggle back, then you'll have to go back and correct the script, whatever that correction may be. Personally, it didn't work for me the first time, because I had deleted the "" around "MyVPNConnectionName" and had to go back and re-add them.
I then used this website (https://linuxhandbook.com/run-shell-script/) to save the script. This website says to make a scripts directory (mkdir scripts) which I did not do. Making a scripts directory probably won't have any affect on this, but I can't say for sure, because I didn't do it. If you do make a scripts directory, cd into scripts or whatever you named your scripts directory. For this example I'll refer to the directory as scripts.
When you type cat > vpn.sh (I'm using vpn.sh, you can name it anything you want as long as it ends in .sh) into the terminal, the terminal will look like it's "thinking" but this is where you copy/paste your working script into the terminal. After I hit Ctrl+D to save it, my terminal closed, but it did save. When you reopen the terminal, make sure it's Read-Write if you didn't use the UT Tweak Tool.
Then make the script executable in the terminal by typing in chmod u+x vpn.sh (make sure you cd into the scripts directory if you made one)
I then typed chmod 755 vpn.sh (I don't know if this did anything at all, but I did it, this may not be necessary)
Test the script (if you made a scripts directory cd into scripts) type bash vpn.sh into the terminal to activate the script and toggle off the VPN to see if it turns back on automatically. Hit Ctrl+C to clear the script.
To make this script turn on automatically all the time, type crontab -e into the terminal. Pick 1 nano <---- easiest and hit enter. If you've never used nano don't use your fingers to scroll down. Long-press the hamburger menu at the top left side of the keyboard and pick Scr. Swipe left on the top of the keyboard next to hamburger menu till you get to the scroll buttons and use those to scroll down to the bottom of the crontab directly below the last #.
There type in @reboot /home/phablet/./vpn.sh
if you made a scripts directory, type in @reoot /home/phablet/scripts/./vpn.shLong-press the hamburger menu again and choose Nano. Then find Ctrl+X and press it. Then hit y then enter. Then hit enter again, and it should take you back to the normal terminal.
Reboot your phone
After reboot, before I unlock my phone, I get a VPN error notification. After I unlock my phone with the passcode this notification goes and my VPN turns on automatically. Even when I relock my phone, the automatic VPN continues to work just fine.
Remember, as of right now, I cannot turn off my VPN, I haven't tried to find a way either.
-
RE: How do I make a VPN connect automatically after I log in?
I was able to get an always-on-vpn using crontab. Warning I haven't tried to find a way yet to turn it off, so if you need to turn off your VPN from time to time, I don't have an answer yet.
*Make sure to make your terminal Read/Write during this whole process. It's Read-Only by default. I used the UT Tweak Tool to do this.
I used this script (https://www.gabsoftware.com/tips/automatically-reconnect-to-your-vpn-on-linux/) as a template to automatically reconnect to my VPN when it turned off.
I used this terminal command with my VPN turned on, nmcli c show --active | grep vpn, to find out my personal MyVPNConnectionName and my UUID number. I also replaced sleep 30 with sleep 5, but that's just a personal preference.
After replacing MyVPNConnectionName and the UUID number in the script with your personal VPNName and UUID number, I recommend copy/paste the script into the terminal and let it run, toggle off your VPN and see if it toggles back on automatically. If it does not toggle back, then you'll have to go back and correct the script, whatever that correction may be. Personally, it didn't work for me the first time, because I had deleted the "" around "MyVPNConnectionName" and had to go back and re-add them.
I then used this website (https://linuxhandbook.com/run-shell-script/) to save the script. This website says to make a scripts directory (mkdir scripts) which I did not do. Making a scripts directory probably won't have any affect on this, but I can't say for sure, because I didn't do it. If you do make a scripts directory, cd into scripts or whatever you named your scripts directory. For this example I'll refer to the directory as scripts.
When you type cat > vpn.sh (I'm using vpn.sh, you can name it anything you want as long as it ends in .sh) into the terminal, the terminal will look like it's "thinking" but this is where you copy/paste your working script into the terminal. After I hit Ctrl+D to save it, my terminal closed, but it did save. When you reopen the terminal, make sure it's Read-Write if you didn't use the UT Tweak Tool.
Then make the script executable in the terminal by typing in chmod u+x vpn.sh (make sure you cd into the scripts directory if you made one)
I then typed chmod 755 vpn.sh (I don't know if this did anything at all, but I did it, this may not be necessary)
Test the script (if you made a scripts directory cd into scripts) type bash vpn.sh into the terminal to activate the script and toggle off the VPN to see if it turns back on automatically. Hit Ctrl+C to clear the script.
To make this script turn on automatically all the time, type crontab -e into the terminal. Pick 1 nano <---- easiest and hit enter. If you've never used nano don't use your fingers to scroll down. Long-press the hamburger menu at the top left side of the keyboard and pick Scr. Swipe left on the top of the keyboard next to hamburger menu till you get to the scroll buttons and use those to scroll down to the bottom of the crontab directly below the last #.
There type in @reboot /home/phablet/./vpn.sh
if you made a scripts directory, type in @reoot /home/phablet/scripts/./vpn.shLong-press the hamburger menu again and choose Nano. Then find Ctrl+X and press it. Then hit y then enter. Then hit enter again, and it should take you back to the normal terminal.
Reboot your phone
After reboot, before I unlock my phone, I get a VPN error notification. After I unlock my phone with the passcode this notification goes and my VPN turns on automatically. Even when I relock my phone, the automatic VPN continues to work just fine.
Remember, as of right now, I cannot turn off my VPN, I haven't tried to find a way either.
-
RE: VPN Failed No Valid Secrets. ProtonVPN 2023
@Chan1234 I had this issue and had to reset my openvpn/ike2 username credentials from the protonvpn website and enter new credentials into the user/password in the vpn setup on Ubuntu Touch. Then it worked.
-
RE: VPN kill switch
@luksus @ubportsuser I'm a big fan of the UT Tweaks Tool, it's very handy. I've just been trying to find a way to execute scripts and keep them running without having to keep the terminal open.
-
RE: VPN kill switch
@ubportsuser how do you keep the script running after you close the terminal?
-
RE: Auto Execute Startup Scripts
The script is:
#!/bin/bash while [ "true" ] do VPNCON=$(nmcli con status) if [[ $VPNCON != *MyVPNConnectionName* ]]; then echo "Disconnected, trying to reconnect..." (sleep 1s && nmcli con up uuid d******c-d***-4***-b***-3**********4) else echo "Already connected !" fi sleep 30 done
The UUID of your personal VPN can be found with: nmcli con
If I run this script in the terminal with bash script.sh or just copy/paste, it works great. My VPN toggles 'on' automatically, and if I turn off my VPN it toggles itself back 'on' so long as I keep my terminal open. However, if I run the script as any kind of startup script, after I reboot, the VPN will toggle 'on' then 'off' and I get a VPN Failed message. And this will keep happening at whatever duration you have set in the script. This generic script is 30secs, I set my personal one to 5secs and it toggles 'on' fails then toggles 'off' every 5secs.
-
Auto Execute Startup Scripts
Is there any commands or something that have to be run in the terminal for a script to start at boot? Scripts run fine using $ bash script.sh but when run through crontab, /etc/init.d/script, and the like to start at boot, the scripts don't function properly.
-
RE: [HowTo] Alternate way of saving battery when using 4G/LTE
@c4pp4 I understand that, I only tried to manually start it after reboot because it didn't seem to be working, that's when it said it was already running. And if I copy/paste the script into the terminal it goes to 2g when locked and L when unlocked, no problem. It's just when I try to run it as a startup script, then it's running just not executing, and that's any script, not just this one, and I can't figure out why.
-
RE: [HowTo] Alternate way of saving battery when using 4G/LTE
@c4pp4 I mean to have the script run at startup through either nano or chrontab @reboot. When I try "start batterysaver" after reboot, it says it's already running. I think the issue is on my end, because I've also tried running a vpn-autoconnect with the same results. It works fine when I copy/paste into the terminal, but when I nano or chrontab @reboot, the vpn switch automatically moves to "on" every 5 secs as scheduled but immediately fails and turns off. So I'm pretty sure the battery saver script is doing the same thing, trying to work but can't quite execute. Hope this was helpful.
-
RE: [HowTo] Alternate way of saving battery when using 4G/LTE
@c4pp4 I'm using OS Ubuntu 16.04 (2021-09-02/2) on a Pixel 3a
-
RE: [HowTo] Alternate way of saving battery when using 4G/LTE
Script works good running in the terminal but doesn't seem to work when put in upstart