• 3 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle


  • what I was saying was that echo "text" | sudo tee newfile would hang and never return and needs to be interrupted. I just noticed this does not happen in bash but I was testing in zsh.

    Guessing that file doesn’t exist already is the problem, and you don’t even need to use tee in this example.

    you’ve missed the point here I’m afraid. But I’ll blame it on my for not explaining properly what I was intending to do.














  • I usually try to avoid bad habits like this but this time it was justified.

    The Ubuntu laptop had to connect to company vpn. It were using openconnect-network-manager-gnome thingy to do that. Recently the company upgraded their vpn software which is sorta incompatible with openconnect and requires a modified user agent string for it to prompt for 2FA keys. package in ubuntu 22.04 is too old to modify that in the gui. I tried in the terminal manually, editing the config manually with vim and even dumping the config from my personal Arch laptop. We also tried proprietary Cisco AnyConnect but there is probably a server misconfiguration which causes the connection to drop and reconnect once a minute. In Ubuntu 24.04 it works given the user agent modification, and even though it was released a couple of weeks ago, LTS users don’t get the update before mid August. So the easiest solution was to take the software compile it in the VM and use it there. It’s a temporary solution but we had to have something working by the next morning. With such setup it’s an annoyance to have password prompts show up. On top of that the keyboard is kinda fucked and some characters register multiple times making the situation with passwords even worse.

    If you have a good idea what I could have tried let me know, love to hear new ideas.