I wish to setup Ubuntu One on my 11.10 server but seems to be running into an error every time I attempt to run commands from http://manpages.ubuntu.com/manpages/lucid/man1/u1sdtool.1.html
For example when I try to run u1sdtool --start
I am met with the following error:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
I have just installed Ubuntu One and have made no changes to it thus far.
Ubuntu One requires X and a dbus session. You can make it work headless following these instructions: https://wiki.ubuntu.com/UbuntuOne/Headless
Running Ubuntu One in Headless Mode
Install ubuntuone-client package:
Setup the user directories:
If you did not have a ~/bin when you logged in, your path doesn't include it, to rectify run (or simply log out and in again and ubuntu will set it up for you):
Obtain OAuth key for your account:
Copy the line starting with oauth= to ~/.config/ubuntuone/syncdaemon.conf as oauth parameter under main section (this is ini-style file):
(you might just as well remove the first two fields in the oauth-string, ie oath=aaa:bbb:ccc:ddd => oath=ccc:ddd )
Download the u1sdtool wrapper which will start dbus when needed. By default Ubuntu adds ~/bin/ to your path, so when you run u1sdtool, you will be running the wrapper.
Start Ubuntu One, check Ubuntu One status and connect (starting from Oneiric Ubuntu One is connecting automatically when started):
If you are greeted with a with the display manager error, try prepending u1sdtool with ~/bin/ since the most probable cause are the aforementioned issue with your PATH.
Look at the string followed by "connection". If it says "Not User" your credentials haven't been processed, stop and start the syncdaemon:
and try again.
If it says "No network", it claims you're not connected to the internet, and I had to fix this by installing nmcli (sudo apt-get install network-manager --no-install-recommends) and fiddle with nmcli. You might need to install consolekit, too.
Start adding files to
~/Ubuntu One
directory and u1sdtool to add UDF, publish the files etc.I just had this issue.
Turns out it was because I was connecting with screen+ssh.
http://www.rootninja.com/dbus-session-bus-address-with-applications-using-ssh/
Running this solves the issue for me:
It appears that ubuntuone-syncdaemon will only work with managed interfaces, so you need to make sure that NetworkManager is running and at least one managed network is connected.
If your server, like mine, has a static IP address configured, you need to modify
/etc/NetworkManager/NetworkManager.conf
as described here: http://wiki.debian.org/NetworkManager#Enabling_Interface_Management