Archive

Posts Tagged ‘Mac’

Dropbox and Mac OS X: Access your files from everywhere

Written on July 14th 2009, 19:07 by sYnie

Today, Neakro showed me a tool called “Dropbox”. It’s like a virtual hard drive, you can use to store files on a server, online. Some folders are private, some folders are public. So you can access your data from everywhere. This idea isn’t new, is it? But Dropbox has some very nice features.

menuThe basic account – which is completely free – provides 2 GB storage, which is, in my mind, a lot of space to share and store files at. There’s an OS X client, which will be integrated into the functions of Finder. The Linux client needs Nautilus, which will surely piss off some KDE users ;-) .

After installing the OS X client, you’ll have a new menu icon on the top right of your screen. You can access all the basic functions and preferences there, as well as opening the web frontend in your browser. But the real magic happens in Finder itself.

There will be a new folder within your home directory called “Dropbox” (you can rename this one). It’s an ordinary folder, except, that it’ll be mirrored on the servers of Dropbox. So if you install Dropbox on other machines, you’ll always have the same files. It’s also possible to share specific folders in order to work with other people collaboratively.

You can easily work with the Dropbox folder, as with any other folder:
place_files

And a pretty nice feature is, to generate URL’s to the files you want to share. In the picture above, I have placed a file called “test.rtf” in my public folder. Rightclicking this file will give me the following option:
publish_files

I can easily generate an URL and publish the link to friends, co-workers etc in order to download this file. In my case it is: http://files.getdropbox.com/u/1537208/test.rtf. I’ll try to keep this file online.

Another very nice feature is the web frontend. You can access all your files from any computer, where Dropbox isn’t installed. You can create new public folders, share folders, download everything, browse through fotos and so on. IMHO the best feature is the history option. You can see everything that happened (creating folders, deleting files, editing files, etc), compare the differences and even undo changes or restore deleted files and folders:
webinterface

When I heard about Dropbox my first thought was like “Why not using SMB / NFS with Apache, etc”. But after testing it, I saw some really unique and perfectly integrated features. It’s not only for sharing some files on multiple computers. It has its own TimeMachine, it’s perfect for collaborative work, I can generate URLs to local files with one click and so on. Besides all that, it doesn’t just upload your local files. It uploads only changes, which saves a lot of traffic, when you edit large files.

I’ll keep using it the next few weeks and hope, I won’t find some disadvantages.
Neakro said, he’s going to try to simulate a similar service using rsync, apache and git. I’m really curious about whether he’ll be successful.

Everyone who’s interested in this service – you can give it a try at:
http://www.getdropbox.com
If you want to do me a favour, use this URL to register. It’ll give me and you some extra MB space ;-)
https://www.getdropbox.com/referrals/NTE1MzcyMDg5

EeePC & OS X: W-Lan (Hackintosh)

Written on April 27th 2009, 09:04 by sYnie

I installed OS X on my little EeePC 900a. After using some different Images and also trying to Install my original copy of Leopard, I ended up with iATKOS 5i. Most of the Hardware worked out of the box. Even hotplug, what didn’t work before.
There are some things that didn’t work:

  • Display resolution
  • Ethernet
  • WiFi
  • Sound

I got it managed to make them work, by now. Well, almost ;-)
As soon as I’m finished with this OS X on EeePC, I’ll post all the things I had to do to get them running. But before this, I want to share my experience with the built in Atheros WiFi card.
Vendor ID: [168c:001c]
Subsystem: [1a3b:1026]

Different OS’ display this device with different names. But as far as I know, it’s an AR5007EG. There are various tutorials out there to get this card working. Well, at least in some way.
Have a look at this discussion:
http://www.insanelymac.com/forum/index.php?showtopic=138351
18 Pages – all about this card and different types of it. There are some ways, that really work. But you’ll need Kismac to make this device see wireless networks after every reboot. It works like this:

  • Before you shutdown your EeePC, you must turn the Airport off.
  • After booting, turn it on.
  • Run Kismac and scan for wirelless networks with Airport Extreme Passive Drivers.
  • Now your Airport will notice all the new networks.

And if you get Kernel Panics:

  • Remove Extensions.mkext* before every shutdown.

And believe me – it’s not nice to do this every boot/shutdown. I wrote scripts, that do exactly this. I still need Kismac for making the Airport notice the networks, but I’m on it. Kismac replaces the Airport drivers during scan to use it in monitor mode. I’m still finding out how everything works, and so on. But have a look into the Resources directory within Kismac. It provides all the kext files. Also there is a driver called “viha” which uses the WLanDriver.kext. Viha is an Airport driver and W-Lan utility, which also provides a shell based network stumbler. I think this is the way to go … But I’m still experimenting.

If you’re annoyed by turning on/off the Airport, removing the Extensions.kext and firing up Kismac, then use these scripts. They work for me:

1. Preparing
Open System Preferences and go to Network. Write down your Location at the top. Mine is called AON, but usually yours is named “Automatic”. Create a new one and call it “AOFF”. Within “AOFF” you’ll have to remove Airport from the list on the right side. Add another (unused) service, if you can’t remove Airport. Switch back to “Automatic”, apply and close it.
AOFF will be used to switch off the Airport. You can’t do this via shell, but you can switch those network profiles via shell. If you switch to a profile, that has no Airport service, it’ll be turned off. You can try this by switching between these networks, applying them, and looking for what happens with your Airport symbol on the top of your screen.

2. Login-/LogoutHooks:
Create two files, somewhere (Mine are located in /Library) which will be used for Airport and Extensions. I’ve called them wlankickstart and wlankickstop ;-)

wlankickstart looks like this:

#!/bin/bash
scselect Automatic

Replace “Automatic” with your default network Location, or leave it, if you’re not sure.

wlankickstop looks like this:

#!/bin/bash
scselect AOFF
rm /System/Library/Extensions.mkext*

If you don’t have random kernel panics during boot time, then remove the last line, because it causes an annoying system message during shutdown.

Make those files executable (chmod a+x filename) and store them somewhere.
Now we’re gonna make them executed while login/logout:
sudo defaults write com.apple.loginwindow LoginHook “/path/to/wlankickstart”
sudo defaults write com.apple.loginwindow LogoutHook “/path/to/wlankickstop”

Now Extensions.mkext will be beleted and Airport will be turned on/off during boot/shutdown.

3. Kismac
If you don’t have it, download and install it. Open Script Editor from /Applications/AppleScript and write a new script:

tell application “KisMAC”
activate
startScan
delay 5
stopScan
quit
end tell

Try it. It’ll run Kismac, scan for 5 secs and turn it off. Make sure, Kismac uses the Airport Extreme Passive Driver. Compile this script and save it as an Applications (without “Startup Screen”). Now Open up System Preferences, go to Accounts, select your user, go to Login Items and add the previous compiled application.

You’re done. Reboot and enjoy. Now you’ll only have to select your W-Lan Network after a reboot instead of doing this process by your own.
It works? Give me a comment ;-)

Mr Burns

Written on July 11th 2007, 03:07 by sYnie

I was searching for a tool to burn CDs and DVDs on Mac OS X without any GUI or interface. I’m used to the shell, as I’m a Linux user. The only option was to use hdiutil, whose commands I found too hard to remember. So I coded a small program, which makes use of hdiutil in order to easily burn DVDs and CDs using the terminal. The name of it is “Mr Burns” ;-)

Download:

After copying the applications to a path within your $PATH variable, it can be used like this:

  • `mrburns` for copying disc2disc (with the first 2 drives found)
  • `mrburns -o devicenumber` defines the drive you want to burn with
  • `mrburns -i file|folder|image|devicenumber` defines the file or image or device you want to burn.
  • `mrburns -l` lists all the devicenumbers (for usage with -o or -i)
  • `mrburns –help` to read what i just wrote

Examples:

  • `mrburns -i 2` uses device number two to read from
  • `mrburns -i /Users/synie/a_folder -o 1` burns the content of this folder to the disc in device 1
  • `mrburns -i ~/foo.iso` burns this iso to the default burning device

A lot of mac users aren’t used to the shell in a way, that they would even use it to burn discs. But maybe this app is helpful for some Linux guys who sometimes work with macs ;-)