×

INDI Library v1.7.6 Released. (27 Feb 2019)

First release of 2019 comes with quite a few new drivers across the board along with significant performance improvements to INDI camera and live streaming performance. Many drivers received significant updates to improve performance & stability, while a few were re-written from scratch to be in line with INDI standards. Here are some of the highlights:

vappasswd

  • Posts: 68
  • Thank you received: 5

vappasswd was created by kamisan

I am trying to thwart my nosy neightbors from gaining access to my Astoberry and wreaking havoc.

I searched the forum for discussions related to changing the password of the VAP. Nothing tangible but I did find a section of the README file at Astroberry's Github repo that looked promising: vappasswd. Here is how I proceeded:

>sudo vappasswd
>Enter user password: astroberry
>Enter new VAP password: nonosyneighbors
>Confirm password: nonosyneighbors
>Password changed!
>You must reboot

After rebooting, when I go to connect to VAP it rejects 'nonosyneighbors' but still accepts 'astroberry'. It's as if my effort was wasted.

I am sure I am doing something stupid.

Thanks.
6 days 9 hours ago #37707

Please Log in or Create an account to join the conversation.

  • Posts: 1500
  • Karma: 5
  • Thank you received: 130

Replied by Gonzothegreat on topic vappasswd

I can't help you as to why it's not working, but having just looked at the code for vappasswd I must say that any modifications of a config files should have a proper change control.
This is to allow reverting back quickly to the last good known version.

so something like as an example:
if [ -f /etc/hostapd/hostapd.conf ]; then
    OLDPSK=$(grep wpa_passphrase /etc/hostapd/hostapd.conf|awk -F= '{print $2}')
    if [ -z "$OLDPSK" ]; then
       echo "Error changing Virtual Access Point password!"
       exit 1
    else
       cp  /etc/hostapd/hostapd.conf{,"_$(date +"%d-%m-%y_%H-%M-%S")"}
       sed -i -e "s/wpa_passphrase=$OLDPSK/wpa_passphrase=$NEWPSK/g" /etc/hostapd/hostapd.conf
       echo "Virtual Access Point password changed successfully. You need to reboot to activate changes."
       exit 0
    fi
Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
6 days 8 hours ago #37710

Please Log in or Create an account to join the conversation.

  • Posts: 68
  • Thank you received: 5

Replied by kamisan on topic vappasswd

That is the message I got:

echo "Virtual Access Point password changed successfully. You need to reboot to activate changes."

I will take a look to see what changes, if any, were made to:

/etc/hostapd/hostapd.conf

Thanks!
6 days 8 hours ago #37713

Please Log in or Create an account to join the conversation.

  • Posts: 1500
  • Karma: 5
  • Thank you received: 130

Replied by Gonzothegreat on topic vappasswd

you can run :
stat /etc/hostapd/hostapd.conf
it will show you if the file has been modified really.
Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
6 days 8 hours ago #37714

Please Log in or Create an account to join the conversation.

  • Posts: 1500
  • Karma: 5
  • Thank you received: 130

Replied by Gonzothegreat on topic vappasswd

Kstars Mac osx
Odroid C1 running indiserver (kept up-to-date with apt-get update/upgrade)
HEQ5 pro / QHY5 / Atik 314L+
6 days 8 hours ago #37716

Please Log in or Create an account to join the conversation.

Moderators: Kaczorek
Time to create page: 0.399 seconds