modified on 12 February 2018 at 08:47 ••• 51,273 views

Files

From Maties Ubuntu

Jump to: navigation, search
Back to Desktop
University Storage
  1. Click on: https://storage.sun.ac.za
  2. Enter your campus username and password.
  3. You should now see the contents of your H:\ drive.
Introduction
Finding Files
Local Portable Drive
Cloud Synchronization
Dropbox Internet Drive

Click here to install Dropbox for Ubuntu.

See links below for help.

MegaSync Internet Drive
Seafile Internet Drive
Google Internet Drive

You can also use Google Drive to store data in the cloud. See help and instructions below.

Before starting a synchronisation operation, check your Google Drive upload settings. Google will convert all documentation to google formats by default. Check your Google Drive upload settings to prevent this.

Below are links to setup your desktop for use with Google Drive.

Microsoft One Internet Drive
OwnCloud Internet Cloud Drive

Another option is to create your own cloud storage with OwnCloud. See links below for help.

Other services
Windows Network (SAMBA)
Sharing files and folders between Ubuntu and Windows 7
Script to automatically "mount" the campus H drive folder

Click here to install the pre-requisites.

You can also mount your H:\ drive via SAMBA. The following script is provided to automate the process:

Copy and paste the following and save to your home folder as mount-h-drive.sh. Then give the script execute permisions as follows: chmod 0755 mount-h-drive.sh

#!/bin/bash

while getopts ":u:m:h?" opt; do
	case "$opt" in
		u)
			USER=$OPTARG
			;;
		m)
			MOUNT=$OPTARG
			;;
		h|\?)
			echo "`basename `: mount home directory on NetApp"
			echo " Options:"
			echo "   -h         this help message"
			echo "   -u <USER>  username to use, defaults to $USER"
			echo "   -m <MOUNT> directory where to mount, defaults to $HOME/mnt/$USER"
			echo
			echo " Requires sudo access to use mount command"
			echo
			exit 0
	esac
done

MOUNT=${MOUNT:-$HOME/mnt/$USER}

if [ "/" != "${MOUNT::1}" ]; then
	MOUNT="`pwd`/$MOUNT"
fi

LDAP=`which ldapsearch`
CIFS=`which mount.cifs`

if [ -z "$LDAP" ]; then
	echo "ldapsearch not found, please install with one of the following commands"
	echo "Ubuntu (or Debian/Mint): aptitude install ldap-utils"
	echo "RedHat (or Fedora/Scientific): yum install openldap-clients"
	exit 1
fi

if [ -z "$CIFS" ]; then
	echo "mount.cifs not found, please install with one of the following commands"
	echo "Ubuntu (or Debian/Mint): aptitude install cifs-utils"
	echo "RedHat (or Fedora/Scientific): yum install cifs-utils"
	exit 1
fi

if [ ! -d $MOUNT ]; then
	mkdir -p $MOUNT
	if [ $? -eq 1 ]; then
		echo "error creating mountpoint $MOUNT"
		exit 1
	fi
elif [ -n "`mount | grep $MOUNT`" ]; then
	echo "already mounted"
	exit 1
fi

read -s -p "[LDAP] password for $USER: " PASS
echo

OPTS="-x -H ldaps://stbad01.stb.sun.ac.za -b dc=stb,dc=sun,dc=ac,dc=za -D $USER@stb.sun.ac.za -w $PASS (sAMAccountName=$USER) homeDirectory"

OUTPUT=`LDAPTLS_REQCERT=allow $LDAP $OPTS`

if [ $? -eq 0 ]; then
	HOME=`echo "$OUTPUT" | grep ^homeDirectory | awk '{print $2}' | tr '\' '/' 2>/dev/null`

	if [ -z "$HOME" ]; then
		echo "unable to find home directory"
		exit 1
	fi

	echo "mounting $HOME on $MOUNT"

	OPTS="-t cifs -o sec=ntlm,username=$USER,password=$PASS,uid=$UID,vers=1.0"
	sudo mount $OPTS $HOME $MOUNT
else
	echo "incorrect password, unable to authenticate"
	exit 1
fi

You will need sudo access to be able to use the mount command. By default it will mount as a subdirectory of your Linux home directory. If your Linux username is not the same as your campus username, override the default with the -u <username> option. When prompted for a sudo password, use your Linux password. When prompted for a LDAP password, use your campus password.

Ubuntu One

The Ubuntu One cloud storage service has been terminated.

See: http://www.omgubuntu.co.uk/2014/04/three-alternatives-ubuntu-one

References