I’d been asked to find out how we could automate deleting user folders from classroom macs.
Students save their work to the local disks and each academic year the home directories are deleted. Some home directory have to be preserved.
I posted to the Kent Linux user group mailing list and soon had a solution.
Create a file call dir_list containing all the home directorys we want to delete, one per-line :
Then create a file called remove.sh containing:
if [ -d $dir ]
rm -R $dir
echo “Directory $dir found and deleted.”
echo “Directory $dir not found.”
done < dir_list
Run the script with ./remove.sh
mysql> CREATE DATABASE foo;
mysql> GRANT ALL ON foo.* TO user;
When installing NoMachine (NX) on Open SUSE 11.2 you may get an error about missing library libaudiofile.so.0 install audiofile-32bit and audiofile-devel in YAST to resolve.