Skip to content

www.rolfje.com

Category: Apple

Connecting with different users to 1 server (2)

Posted on 2006-04-28 By rolfje No Comments on Connecting with different users to 1 server (2)

This is a simple followup after my last post. Pim did also look into this, and made a script which doesn’t pop up finders by simply calling “mount”. There is only one minor glitch: the script pops up an error when the mount already exists. With my brilliant programming expertise, I quickly solved that:

try
	mount volume "cifs://KAGE/iTunes" as user name "iTunes" 
                                          with password "yourpasswordhere"
	mount volume "cifs://KAGE/incomming" as user name "Guest"
	mount volume "cifs://KAGE/foto" as user name "Guest"
on error errText number errNum
	(* Not the nice way, simply ignore errors. If the mount did
	   not work, the user needs to see what is going on. How?
	   Use Finder to mount, and it will give you the error *)
end try

This script will try to mount the drives, ignoring errors. Replace the servernames, usernames and passwords with your own. What you can do is run the script at logon, or every minute in a cron job. I checked /var/log/system.log, but the script does not generate errors there.

At the rate we’re going, maybe we’ll even solve the “re-mount drives on return from sleep” problem. Let’s see if we can find a wakeup event on which we can run the script.

Apple, Software

Connecting with different users to 1 server

Posted on 2006-04-27 By rolfje No Comments on Connecting with different users to 1 server

With my Mac mini in a Windows LAN, I have the following problem:

  1. I can add my (cifs windows) network shares to my login script (Preferences -> Accounts -> Login), but when the mac wakes up from sleep, they are gone.
  2. When I want to connect to 2 shares on the same server, but one with a different account than the other, it doesn’t work. On login, the system chooses one of the accounts and uses it to connect to both network shares.

I think both problems are terrible, and particularly the way you connect to a network share in Finder using a password is confusing to say the least. Searching the web reveals hundreds of posts of people having the same problems. One wonders why apple didn’t solve this already.

I made a simple workaround for this problem by copy/pasting some script from several websites into the script editor (sorry guys, I’m lazy). I then saved it both as application and as source. I use the script to mount the drives at logon, and re-mount them when the Mac wakes from sleep mode. Until I come up with a better idea, or somebody can point to a nicer “Apple way” solution, or Apple fixes this dreadful problem in OS X, here is my script:

tell application "Finder"
	open location "cifs://WORKGROUP;iTunes@KAGE/iTunes"
	open location "cifs://WORKGROUP;Guest@KAGE/incomming"
end tell

When running a script like this for the first time, the system asks you the passwords. Type them in and save them in your keyring. The next time they won’t be asked, and you have no readable passwords in your script. Nice. The downside of this script is that it opens a ton of finder windows. I have nosed around in Automator but can not find a way to close them automatically. I also tried to record a script, but that gave me an even more “unusable” script.

I hope this helps you too. If you think this can be done in a nicer way (without too much scripting) please let me know.

Update: Seems I was to quick about the keyring app. I did need to add passwords to the script (add “:password” after the userid without the quotes). Stupid machine does not understand what I want.

Apple, Software

Flip4Mac 2.0.2 does not install on Intel Macs

Posted on 2006-04-24 By rolfje No Comments on Flip4Mac 2.0.2 does not install on Intel Macs

Bummer, I was hoping to be able to open those wmv files I get mailed in the Quicktime window. Although OS X claims to be supporting Flip4Mac since 10.4.5 (I have 10.4.6), the Flip4Mac installer exits with a message about not being able to install on Intel based hardware.I guess I’ll have to live with -gasp- Windows Media Player 9 for OS X for now. I tried to install it, but it requires mee to enable the Microsoft Office testdrive kit, which I am definetely NOT planning on doing, wmv files are not worth those troubles. I am hoping on a universal binary Flip4Mac soon…

Funny thing is, that the Windows Media player for OS X is actually only 7 MB in size. I seem to recall that Media Player 10 for Windows XP took quote some time downloading, and ate nearly all of the free space on my harddisk, which I was really pissed about. But then again, since they require me to enable the Microsoft Office testdrive, they have probably allready sneaked part of the player into the OS X distribution, the bastards.

Comment from Antonio on how to solve this: You can get Flip4Mac to work through Rosetta, but Telestream is a couple weeks away from releasing a public Universal beta version. Check this blog for some details and other info bits: http://flip4mac.blogspot.com/

My response: Great, just used the tip on blogspot, and it worked! I can now view wmv files nicely. Thanks for the tip!

Apple, Software

Getting iChat to work with Googletalk

Posted on 2006-04-23 By rolfje No Comments on Getting iChat to work with Googletalk

This is probably the 1001st post about this subject, but I can’t help thinking that some people actually give up on this. It is a simple protocol, simple program and should be simple to get working. I spent a few hours (!) before I finaly found the solution. I searched the internet but this answer never seems to be given on forums. I’ll try to be complete, so here it goes:

Configure iChat as described by Google. If you still can not connect, there is a good chance you have started the firewall on your mac, and it is blocking iChat. Open the system preferences, and in the “Internet and network” section select “Share”. You will notice a firewall tab in the middle. Select it, and make sure there is a thickmark next to “iChat Bonjour”, like in this screenshot:

iChatĀ settings

(Sorry for the Dutch layout, I’m sure you’ll find it with this pointer.)
This action solved my iChat connection problem. I also installed Adium, which also had connection problems. The firewall setting solved the Adium problems aswell.

I’m not sure which chat client to choose. iChat is more integrated into OSX, and imported my google contacts without a problem. Adium did not import any contacts. I’m sticking to iChat for now, hoping that the integration with the rest of the system will give me some pleasant surprises.

Oh and yes, you’ve noticed correctly, I’ve bought a Mac. The desktop PC at home crashed one time too many.

Apple

Want those CD boxes back?

Posted on 2006-04-23 By rolfje No Comments on Want those CD boxes back?

When I used iTunes on XP, I was jealous of the terrific plugins for iTunes running on OS X. Now that I have a Mac Mini, I was looking for a plugin to update the album art automatically. Pim showed me an even better alternative: Clutter! Not only can it search and update album art automatically for you, it also gives you the option to put your albums on your desktop. This is the best virtual alternative to having CD’s lying on your desk. A must have for iTunes users I think. Very nice.

Sidebar: My file server still runs Windows, and it has been working flawlessly for the past 5 years, being constantly “on” and storing family pictures and music. My laptop is an XP machine and works quite nicely too. So maybe it’s because I don’t need to, but for now I don’t want to install XP on my Mac. It feels like a step back, it adds a sour taste to your strawberry icecream :-). XP is nice, but not as a desktop. Too much bloatware.

Apple

Posts navigation

Previous 1 … 10 11
           

Recent Comments

  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?
  • Hans j on 1N4148 diode as RF switch
  • Roaming Rhonda on DLNA on OSX, done right
  • Frans on How to fix a Krups XN2001 Nespresso machine

Tags

Anonimatron Apple backup design DIY DRM eclipse environment Fun gmail google hacking hamradio Hardware helicopter iphone ipod iTunes Java Keynote maven modelling motorcycle music news opinion oracle osx photo photography programming repair review security Software Steve Jobs T-Mobile technology Time Machine Ubuntu usability Utilities vacation windows Workshop

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (14)
  • Software (134)
  • Uncategorized (65)
  • Workshop (20)

Archives

Copyright © 2025 www.rolfje.com.

Powered by PressBook WordPress theme