Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Tuesday, October 26, 2010

Resetting Password on MacOS

One of my friend called me and asked how could he reset the password on his macbook. quick browsing on google, found these interestings:

  • http://support.apple.com/kb/ht1274
  • http://sg.answers.yahoo.com/question/index?qid=20071012020748AAvXTi9

Not testing yet, but should be working since one of it is directly from Apple.

Thursday, February 14, 2008

setting JAVA_HOME in MacOS X for running geronimo

when trying geronimo, I had problem with the JAVA_HOME variable. The solution is to execute this command before running the geronimo:

// go to the bin directory of geronimo, depends on your own location
daniel-adinugrohos-macbook-pro:~ adinugro$ cd Desktop/geronimo/geronimo-tomcat6-jee5-2.0.2/bin

// set JAVA_HOME varible
daniel-adinugrohos-macbook-pro:bin adinugro$ export JAVA_HOME=/Library/Java/Homedaniel-adinugrohos-macbook-pro:bin

// execute the geronimo
adinugro$ ./startup.sh

that's all. check whether your geronimo running from your fav browser and go to http://localhost:8080

Tuesday, August 21, 2007

sshfs on mac

being maintaning student databases on several servers, I need a simple way to connect to the servers rather than typing ssh command all the time. Actually, I heard the term sshfs several months ago but never tried it. As now I am using a mac, I wanna try sshfs on mac, Uncle google give me this link to download http://mac.pqrs.org/~tekezo/macosx/sshfs/ and http://mac.pqrs.org/~tekezo/macosx/sshfs/document.html to get the step by step guide.

It's a little bit easier now, but I need to learn the sshkeychain to automate the process.

Sunday, August 5, 2007

mac fonts to ttf

I was very interesting in the font used in Eclipse IDE under MacOS, so I was thinking how could I used that font in my web.

After googling, I found out this utility called fondu, http://fondu.sourceforge.net. I downloaded it the macos version then installed it as usual pkg installation. Little bit confusion after installation. Where was the fondu? Looking around in Application found nothing. But, when typing in terminal it did exist there!

The font used by Eclipse IDE called Monaco.dfont. to transfer to ttf, just type:
% cd /System/Library/Fonts
% sudo fondu -show Monaco.dfont

-show is to see what fonts are created using fondu.
sudo needs as you try to create a new file in the System directory where your user does not allow to do so.

should you want to create .afm, just add -afm flag,
% sudo fondu -show -afm Monaco.dfont

Now, I could embed it to the html/css....[next]

Sunday, July 29, 2007

installing vmware tools in vmware fusion

my virtual machine (guest OS) is feisty-i386-server. the host is mac0s using vmware fusion. in order to activate the shared folder, we need to install vmware tools, by:

1. Select Virtual Machine -> Install VMware Tools
2. Go to the vm and mount the cd using
% sudo mount /dev/cdrom /media/cdrom0

3. copy the VMwareTools-e.x.p-48339.tar.gz to the home directory,
% cp /media/cdrom0/VMwareTools-e.x.p-48339.tar.gz $HOME

4. extract the file
% tar xvfz VMwareTools-e.x.p-48339.tar.gz

5. go to the vmware-tools-distrib and install:
% cd vmware-tools-distrib
% sudo ./vmware-install.pl

6. just accept the all the default values.

7. don't forget to reboot the system!
% sudo reboot


Monday, July 23, 2007

create cd image in mac

last post is about manipulating cd image in linux, now, how about mac? Disk Utility is a powerful tools that can burn a cd/dvd image. In addition, you do not need cd daemon tools to mount a cd image as you can just double click the iso file and it will be mounted automatically.

One thing that is not yet available in an easy way is how to create an image of a cd. Being BSD based, mac inherited some BSD/Linux commands. one of them is dd. But, just now I found out one freeware application to make a cd image easily, its name is ISOlator. You can download the application in http://www.macupdate.com/info.php/id/18634.

Installing this application is easy, just double click the zip file, then follows the instruction to drag the ISOlator to the Application's folder.

Launch the application, there will be a small window appear on the screen, drag your cd's icon to this window, then you will be asked to give a name and location for the new iamge file.

Wait few minutes and the iso file will be ready. That's it all you need to do.

Saturday, July 14, 2007

ssh on macos

I have just experience a funny thing when using ssh on my mac. Usually, I access my file server through wifi, but the access rate was not quite acceptable for iso transfer. Hence, I tried using wired network. What a surprise, I could not access the server using ssh although I could ping the server.

It was not
- MacOS problem as I could access the file server using wifi.
- Firewall problem as I could access the file server using my windows and ubuntu machine with the same IP address.

I have tried to delete .ssh/known_host without any luck!

What a problem.....

Wednesday, July 11, 2007

python for mac: installation

People can say that apple is not opensource, but I am still love it. Actually, vista has better gui than macos, but again people say wait for macos 10.5.

Anyway, I am still love my new MacBook Pro.

I'd like to learn python again to maintain my Online Enrolment System [KRS] for my faculty. I remembered when OSDC Meeting in Melbourne, December 2005, Jeff Waugh said that Ubuntu has better support off the shelf for python than any other distro. But, now, I need to install it on my mac. Mac comes with python version 2.3.5 while the newest is version 2.5.1.

Browsing on the python website, I found out that there is macos version for python [download from here: http://www.python.org/ftp/python/2.5.1/python-2.5.1-macosx.dmg]. The file is almost 18 MB. Download it, double click on it, open the installer.

> double click on MacPython.mpkg
> Click on "Continue" button on Introduction, Read Me and Licence pages, then click "Agree" to acknowledge the Licence Agreement.
> Pick the daetination then click on "Continue" button.
> Choose "Install" then enter the password for the admin user.
> Then close it after installation is finished.

To try it:
type python on terminal, you will get directly the new version:
daniel-adinugrohos-computer:~ adinugro$ python
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
[use Ctrl-D to exit from python interpreter]

This is what I love with mac, instalation is very simple and has the pattern and interface. Although, Linux is catching up with klik, synaptic and many more.