Links and useful info on the net
| St. Paul RecCenter | 612 62 5 8283 |
| Minnapolis RecCenter | 612 62 5 0852 |
- Useful University stuff
Most Mac OS X & *nix tips commandsMantained with txt2tag Last modified: Mon Dec 15 11:10:43 2008
- 01 - Record a .iso file
Given an ISO file (image.iso, for example) in the current working directory, use the following command to burn it to a disc that you've inserted into a recordable drive:
$ hdiutil burn image.iso$ cdrecord dev=/dev/cdrom driveropts=burnfree -v -data cd_image.iso - 02 - Install SSHFS. How to use it. Have the mount_sshfs on your PATH
% mount_sshfs username@server:/home/folder/ /local_home/mountthatfolderhereHow to unmount it:% umount /local_home/mountthatfolderhere - 03 - List folders by size, k for kilobyte
$ du -k /home | sort -n - 04 - Help! I'm trapped in this Mac!
% say -f somefile.txt -o spokenfile.aiff - 05 - encrypt (from lh_link)
For those of you comfortable on the command line, there's an alternative way to password a file using the free utility
OpenSSL. Say you want to password protect a tar archive of documents called unencrypted-data.tar.
From the command line, type:
$ openssl des3 -salt -in unencrypted-data.tar -out encrypted-data.tar.des3This command will encrypt the unencrypted-data.tar file with the password you choose and output the result to encrypted-data.tar.des3. To unlock the encrypted file, use the following command (you can put any name for the out file): `` $ openssl des3 -d -salt -in encrypted-data.tar.des3 -out unencrypted-data.tar``
- 06 - wget from wikipedia ``# Collect only the specific links listed line by line in # the local file "my_movies.txt" # Use a random wait of 0 to 33 seconds between files. # When there is a failure, retry for up to 22 times with 48 seconds # between each retry. Send no user-agent at all. Ignore robot exclusions. # Place all the captured files in the "/movies" directory # and collect the access results to the local file "my_movies.log" # Good for just downloading specific known images or other files. wget -t 22 --waitretry=48 --wait=33 --random-wait --user-agent="" -e robots=off -o ./my_movies.log -P/movies -i ./my_movies.txt ``
- 07 - sudo rsync -xrlptgoEv --progress --delete / /Volumes/Backup
- bash links bash1 bash2 bash3
- 08 - Run matlab using SSH from home (from server cartman dot socsci dot umn dot edu)
from MAC OS X command line*:
ssh -Y username@serverfrom linux replace -Y to -X from Windows, get PUTTY and mark X11 forwarding before connecting to server AND run something linke eXceed Now once inside the server run:nice matlab &
* I am not sure but I guess you need X11 installed (comes in MacOSX dvd)
- 09 MOUNT samba share to folder source-of-info ``mount -t smbfs -o username=Administrator //recurring/c$ /mnt/recurring``
