Copy all files from subdirectories into a target dir
Nice little Shell line to copy all files from a type recursive from subdirectories in one other Directory
$ find DiretoryWithTargetDirs/ -iname ‘*.jpg’ -exec cp ‘{}’ /my/target/directory/ ‘;’
Howto simple Share iPhoto Libary via Symbolic Link to one or more User(s) on Mac OSX
There are some Tutorials out there, howto share the iPhoto Libary to different Users over the Share Folder, i not really like them. This Tutorial should explain you how you do this on a UNIX way without moving your Pictures etc just over a simple Symbolic Link.
First open a Terminal on your System and set your root Password (Your User should have admin rights) if you havent done that yet (ps. with this User you can anything on your System its like a God Mode) Italic shows the Commands you should execute with a Enter :
$ sudo passwd root
Password:
Changing password for root.
New password:
Retype new password:
Now Change your Current Terminal User to Root:
$ su
Password:
Watch for the Right Users that you want to use :
$ ls -la /Users/
drwxr-xr-x 6 root admin 204 31 Mai 2008 .
drwxrwxr-t 39 root admin 1394 14 Jan 21:53 ..
-rw-r–r– 1 root wheel 0 25 Nov 2007 .localized
drwxrwxrwt 6 root wheel 204 11 Nov 22:16 Shared
drwxr-xr-x+ 37 User1 staff 1258 6 Mär 10:58 User1
drwxr-xr-x+ 15 User2 staff 510 17 Aug 2008 User2
Comment out your Old iPhoto Libary from User 2 that should use the Share (Symbolic Link) of the User 1 Folder (Tipp: Use the TAB Button on the Shell to AutoComplete Paths if they are clearly ):
$ mv /Users/User2/Pictures/iPhoto\ Library/ /Users/User2/Pictures/_iPhoto\ Library/
Make a Symbolic Link with ln (type man ln if you want to findout more) from User 1 to User 2:
$ ln -s /Users/User1/Pictures/iPhoto\ Library/ /Users/User2/Pictures/iPhoto\ Library
Set the right permission that User 2 can Read the Folder of User 1
$ chmod 770 /Users/User1/Pictures/
$ chmod -R 775 /Users/User1/Pictures/iPhoto\ Library/
And change Owner that User 2 can use the Symbolic Link that you made with the root User :
$ chown -h User2:staff /Users/User2/Pictures/iPhoto\ Library
Your Finished !
Thats it so check out the iPhoto of User 2 id should look like the iPhoto of User 1.
If you want to check out how a Symbolic Link looks like on a Shell :
$ ls -la /Users/User2/Pictures/
lrwxr-xr-x 1 User2 staff 35 7 Mär 16:52 iPhoto Library -> /Users/User1/Pictures/iPhoto Library/
Ps. Symbolic Links are one of the coolest Features on a UNIX System ! Defently ! You can even Use them over a Network drive or IP-Tunnel with SSH ;-)
Howto use free internet on a Kiosk App like they use in Mc Donalds
Type in the IE Browser Adressbar :
about:<a href=”http://www.google.ch/”>test></a>
Then click on the link in the IE Browser Titlebar and now Surf for Free !!! ;-)
Renew Qmail SSL Server Cert for Mail-Toaster on FreeBSD
1once per year you should renew your SSL Certificate. I have each year the same problem that i forgot how i did it last year, so i made now a short tutorial and hope i dont forgot it again :-).
For my Mail System, i use http://www.mail-toaster.org/ its for my probosal the best system and has a nice install guide, secure ( http://www.tnpi.net/wiki/MT_Installation ) and has nice ways to throw spam away.
Here is the short process howto renew the SSL Cert :
$ cd /var/qmail/control/
$ mv servercert.pem servercert_old.pem
$ cd /usr/local/src/mail/qmail-1.03
$ make cert
always that easy that i LOL each time i did it ;-)
Howto easy Download & Install Google Chrome Browser App & Source Code for OSX
Download OSX App here : http://www.codeweavers.com/services/ports/chromium/
Howto Install Source Code :
Open a Shell / Terminal on OSX and Execute the following lines (may you wish todo this as SuperUser – $ su )
$ svn co http://src.chromium.org/svn/trunk/depot_tools/mac depot_tools
$ export PATH=`pwd`/depot_tools:$PATH
$ mkdir -p ~/src/trunk
$ cd ~/src/trunk
$ gclient config http://src.chromium.org/svn/trunk/src
$ chmod +x ~/src/chromium/src/third_party/WebKit/JavaScriptCore/kjs/create_hash_table
Tnx very much for that fast Port Coders @ chromium.org ( Doku & Source ) & codeweavers.com they ported the Windows Version in 1 Week !
Secure Backup Directory with 1 Command line under UNIX
Made a RSync Backup over SSH tunnel :
$ /usr/local/bin/rsync -azv –delete –rsh=”/usr/bin/ssh -l backup” –rsync-path=”sudo /usr/local/bin/rsync” /home/SourceDestination YourHostOrIP:/home/backupDestination
Requirements : SSH, RSync, Sudo
Test it on your Command Line or Shell Script
If you want to automate it, use the crontab and exchange the ssh keys to overrule the ssh-password.
Some Cool Particle System, 3D and Math Stuff.
http://www.lostinactionscript.com/
http://archive.sansumbrella.com/
http://www.rockabit.com/ (very very cool idea !!!)
Live Video ! .. mit einem Jailbroken Iphone jederzeit und von Irgendwo auf Qik.com
Ein wirklich geiles Iphone Community Projekt, wir werden ab jetzt alles unzensiert und live sehen können wie zb. Morde, Diebstähle, Liebe, Panties aufm Wc .. http://www.qik.com/
Wer eine Version 2 besitzt dem wird sogar die GPS Position der Aufnahme angezeigt.
Hier mein LiveFeed & Archiv (ziemlich Doof und nur zu Testzwecken aber versuche mal noch n paar jesse im verlaufe der Zeit aufzunehmen):
Murphys Law / Murphys Gesetz
Viel zitierter Spruch, doch keiner weiss woher ….
['mə:fis-]
ein in allen Lebensbereichen zitierter Ausspruch von Edward A. Murphy jr.: „If anything can go wrong – it will“ (deutsch „Wenn etwas schief gehen kann, dann wird es schief gehen“). Murphy testete 1949 bei der U. S. Air Force das Verhalten von Piloten bei hoher Beschleunigung; dafür waren 16 Sensoren am Körper des Piloten angebracht. Für die Verbindung der Stecker mit den Elektroden am Körper gab es je zwei Möglichkeiten. Die Wahrscheinlichkeit, alle Verbindungsstecker falsch anzubringen, betrug 1 : 65535. Als ein Testpilot dennoch alle Stecker falsch verband, formulierte Murphy seinen Lehrsatz.
Search
Categories
Recent Posts
- Copy all files from subdirectories into a target dir
- Howto simple Share iPhoto Libary via Symbolic Link to one or more User(s) on Mac OSX
- Howto use free internet on a Kiosk App like they use in Mc Donalds
- Renew Qmail SSL Server Cert for Mail-Toaster on FreeBSD
- Howto easy Download & Install Google Chrome Browser App & Source Code for OSX
Recent Comments
- Brown on Howto simple Share iPhoto Libary via Symbolic Link to one or more User(s) on Mac OSX
- Lisabetta on Howto easy Download & Install Google Chrome Browser App & Source Code for OSX
- admin on Some Cool Particle System, 3D and Math Stuff.
- admin on Some Cool Particle System, 3D and Math Stuff.
- dini muetter on Some Cool Particle System, 3D and Math Stuff.
