Maxwell Client
Install
# apt-get install hubzero-mw-client
Configure
Configure SSH to allow maxwell keyed clients to connect as root by copying the contents of /etc/mw/maxwell.key.pub into /root/.ssh/authorized_keys. This allows the maxwell client to run the maxwell service as root.
# mkdir -p /root/.ssh # cat /etc/mw/maxwell.key.pub >> /root/.ssh/authorized_keys
Copy the sample maxwell.conf file
# cp /usr/lib/mw/maxwell.conf-dist /etc/mw/maxwell.conf
Edit /etc/mw/maxwell.conf
mysql_host = "localhost" mysql_user="myhub" mysql_password="xyzzy#1" mysql_db="myhub" default_vnc_timeout=86400 session_suffix="L" filexfer_decoration="""filexfer_sitelogo { <h1><a href="http://myhub.org/" title="myHUB home page"><span>myhub.org: online simulations and more</span></a></h1> } filexfer_stylesheet http://myhub.org/templates/filexfer/upload.css" """ hub_name="myhub" hub_url="http://myhub.org/" hub_homedir="/home/myhub" hub_template="hubbasic"
Test
# su www-data
$ ssh -i /etc/mw/maxwell.key root@localhost ls
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is e5:3c:7d:41:71:0b:0f:2a:0c:0e:bb:15:4d:e7:2f:08.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
list of files
$ exit
#