Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When i start wuala on the linux commandline like this, it logs me in and the folder is mounted:

wualamcd login username password enableAutoLogin

I can shut it down from another console typing

wuala shutdown

But how do I actually use the auto login that I just set using the enableAutoLogin switch? What is the command to start it again, so it logs in but does not need the password? I tried

wualamcd login

and wuala starts but no one gets logged in.

Auto login in gui mode works fine. This is 32 bit linux with openjdk 6 JRE.

share|improve this question

2 Answers 2

up vote 3 down vote accepted
+50

It doesn't work the way you want it to according to the wuala forums.

The enableAutoLogin feature is a setting for the gui, not the CLI. The bigger issue is when you start the server that way, your login/pass is now visible via ps -ef and history.

An interesting solution would perhaps be a cron job coupled with the following bash script, taken from the wuala forum post here. This would give you some granularity on when it's on, and automatically restart it if it is shut down.

#!/bin/bash
NAME=   # The name of the process owner running Wuala
USER=    # The name of your Wuala User
PASS=    # your password
### Touch this and make +rw for $NAME
LOGFILE="/var/log/wuala.log"
WUALATEST=`ps -U $NAME -u $NAME u | grep -q [w]ualacmd ; echo $?`

function wualastart {
        wualacmd &>> $LOGFILE &
        sleep 10
        wualacmd login $USER $PASS &>> $LOGFILE
        if [ $? = 0 ]; then
        echo -e "\n Wuala Started Successfully \n"
        fi
}

function wualafinal {
  if [ $WUALATEST == 1 ]
    then
        wualastart
    else
        echo -e "\n Can't start Wuala, It's already running \n"
  fi
}

until wualafinal; do
  echo "Wuala is restarting -- Code: $?.
        Trying to Respawn... " >&2
  sleep 5
done
share|improve this answer

Try using

wualacmd login <myuser> <mypassword> enableAutoLogin

share|improve this answer
    
That's exactly what the question says, now he wants to automatically log in after shutting it down, without typing that all in again. –  Rob Nov 15 '11 at 19:21
    
oops, then its impossible. –  wizlog Nov 15 '11 at 21:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.