Publishers: Enable LivePC Local Documents and My Shared LivePC Documents in your Linux LivePC
If you're the publisher of a Linux LivePC, then you can make files
available outside the LivePC through the LivePC Local Documents and My
Shared LivePC Documents. This is implemented by using the smbfs
kernel file system to mount an SMB file share from the host.
The first step is to tell the LivePC Engine that this LivePC supports
this feature. Go to the Configure screen for the LivePC (note: LivePC must
not be running or suspended). Check off "Enable network mounted user
files". Press Apply to apply the changes.
The next step is to ensure that your Linux LivePC has the appropriate
software. The Linux LivePC needs a kernel with the smbfs file system;
most distributions have this by default. In addition, the LivePC needs
the smbmount program to be installed. In RedHat and SuSE, this program
is in the samba-client package. In Ubuntu, it's in the smbfs package.
In Gentoo, it's in the samba package.
You'll also need to install the vmcmd utility. It is used for reading the
parameters needed to mount the SMB shares. You can find a copy of this
utility at http://downloads.moka5.com/guest/vmcmd. You should place it
in /usr/bin or /bin.
The next step is to decide where to mount the "Local LivePC Documents"
and "My Shared LivePC Documents". If the default account is called me
and the account's home directory is /home/me, then it may
make sense to put the files into directories /home/me/livepc-local-documents
and /home/me/shared-livepc-documents.
Finally, you will need to insert script code into the boot process
that actually mounts the files. Where to do this depends on your
distribution. It is best to do this before the user is automatically
logged in. In Gentoo, we placed it in /etc/conf.d/local.start.
DEFAULT_ACCOUNT="me" LOCAL_MNT="/home/me/livepc-local-documents" SHARED_MNT="/home/me/shared-livepc-documents" SHARE=`vmcmd 'info-get guestinfo.userprofile.sharename' | tr '\\' /` if [ -n "$SHARE" ]; then mkdir -p "$LOCAL_MNT" USER=`vmcmd 'info-get guestinfo.userprofile.username'` PASSWD=`vmcmd 'info-get guestinfo.userprofile.password'` export PASSWD smbmount "$SHARE" "$LOCAL_MNT" -o \ "rw,uid=$DEFAULT_ACCOUNT,username=$USER,port=445" else rmdir "$LOCAL_MNT" fi SHARE=`vmcmd 'info-get guestinfo.shareddata.sharename' | tr '\\' /` if [ -n "$SHARE" ]; then mkdir -p "$SHARED_MNT" USER=`vmcmd 'info-get guestinfo.shareddata.username'` PASSWD=`vmcmd 'info-get guestinfo.shareddata.password'` export PASSWD smbmount "$SHARE" "$SHARED_MNT" -o \ "rw,uid=$DEFAULT_ACCOUNT,username=$USER,port=445" else rmdir "$SHARED_MNT" fi
Restart your LivePC and make sure everything works.