Agus Priyadi and Mafia.Or.ID

blog all about (brains colocations)

Archive for November, 2007

GMA900 with qe/ci

Posted by mafiaid on 25 November 2007

I have got my gma900 working with qe/ci support. I followed this guide http://forum.applesana.com/52/6831/gma900-…tz-extreme.html, but if you dont speak spanish i will lay it out here.

1) Get the AppleIntel915.kext from a previous 10.4.x install DVD

2) Edit the Info.plist in that kext so that any instance of a 915 bundle or plugin reads GMA900 where 915 is

3) Replace the AppleIntelGMA950.kext with your now modded AppleIntel915.kext

4) Repair permissions on the /Extensions/ folder

5) Type sudo defaults write /Library/Preferences/com.apple.windowserver QuartzGLEnabled -boolean YES in terminal

6) Type sudo defaults write /Library/Preferences/com.apple.windowserver Compositor -dict deferredUpdates 0 in terminal

7) Reboot

After doing these steps, your system profiler should read that core image is hardware accelerated, quartz extreme is supported, and quartzGL is supported.

Congrats you now have qe/ci, but if you notice many aspects of qe/ci arent there ( such as transparent menubar, coverflow in itunes, spaces lags, timemachine lags, and everything is still choppy.

This is where my problem lies, how do we fix the fact that it is all supported but we still dont have all the features?

Please leave any feedback you have, no matter how off the wall it is, it may be the thing that works.

rofl

sumber : http://forum.insanelymac.com/index.php?showtopic=72349

Posted in MacOS, oprekan | Tagged: , | Leave a Comment »

WordPress Speed Test Plugin

Posted by mafiaid on 22 November 2007

Thank to auditmypc.com for make great tools website.

Follow this links for the instruktions.

Posted in oprekan, web php | Tagged: | Leave a Comment »

Cacti MySQL

Posted by mafiaid on 22 November 2007

1. Create the MySQL database:
# mysqladmin –user=root create cacti
2. Create a mysql user/password for cacti:
(change user and/or password if requered)
# echo “GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’; FLUSH PRIVILEGES;” | mysql
3. Import the default cacti database:
# mysql cacti < /usr/local/share/cacti/cacti.sql
4. Edit /usr/local/share/cacti/include/db-settings.php.
5. Add a line to your /etc/crontab file similar to:
*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
6. Add alias in apache config for the cacti dir:
Alias /cacti “/usr/local/share/cacti/”
7. Be sure apache gives an access to the directory (‘Allow from’ keywords).
8. Open a cacti login page in your web browser and login with admin/admin.

Just need MySQL Command for my documentations :D

mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

Posted in mysql, oprekan | Tagged: , | Leave a Comment »

10.4.10 to 10.4.11 Tiger OSX

Posted by mafiaid on 18 November 2007

This will tell you how to upgrade from a working 10.4.10 install to 10.4.11.

Requirements:

1) ATA installation. SATA does not work yet. So I am running off an external hard disk.
2) Core 2 Duo or the hacked kernel

Steps:

1) Install EFI Bootloader. This is well documented in other threads.
2) Backup AppleACPIPlatform.kext and AppleSMBIOS.kext to a convenient location.
3) Install 10.4.11 update. You can use Software update if you want. Do not reboot.
4) Unless you have a fully compatible MB, copy 10.4.10 AppleACPIPlatform.kext back to /System/Library/Extensions/
5) Unless you have Core 2 Duo, replace mach_kernel with hacked version.
6) Repair permissions.
7) Reboot

Problems:

1) AppleSMBIOS.kext (neither stock nor the one from EFI bootloader) does not load. The old one from 10.4.10 will load if you copy it across, but then system profiler is broken.
2) AppleHDAPatcher.kext does not work, and my previously patched AppleHDA.kext does not work.
3) No SATA or ICH8R support. I tried the old IOATAFamily.kext as well as the sata-pata and ich8r patches from macdotnub’s disk without success.

Of note tulip.kext still works and so does Safari. This is posted from 10.4.11 with stock kernel.

source : http://forum.insanelymac.com/index.php?showtopic=71641

Posted in MacOS, oprekan | Tagged: , | Leave a Comment »

Howto Upgrade Tiger OSX

Posted by mafiaid on 18 November 2007

1) Open up the terminal and type “sudo -s” then “your password” then the following (line by line):

Code:

cp /mach_kernel /old
cp -R /system/library/coreservices/loginwindow.app /
cp -R /system/library/extensions/AppleSMBIOS.kext /
cp -R /system/library/extensions/AppleACPIplatform.kext /
cp -R /system/library/extensions/AppleAPIC.kext /
cp -R /system/library/extensions/IOATAFamily.kext /
cp -R /system/library/extensions/system.kext /

2) Keep terminal open.
3) Open disk utility and keep it open
4) Run Software Update or download the file and run it. But if you use the Software update :deselect everything but the 10.4.* intel update and install it (AND DO NOT RESTART—IGNORE THE INSTALLER WINDOW)

5) Open terminal and type the following:
CODE

Code:

cp /old /mach_kernel
cp -R /loginwindow.app /system/library/coreservices/
cp -R /AppleSMBIOS.kext /system/library/extensions/
cp -R /AppleACPIplatform.kext /system/library/extensions/
cp -R /AppleAPIC.kext /system/library/extensions/
cp -R /IOATAFamily.kext /system/library/extensions/
cp -R /system.kext /system/library/extensions/
rm -rf /system/library/extensions.*

6) Open disk utility and repair permissions for your OS X partition

7)Reboot

Posted in MacOS, oprekan | Tagged: , | Leave a Comment »

Slank ft. Nirina Zubir / Pandangan Pertama (OST Get Married)

Posted by mafiaid on 17 November 2007

Pandangan pertama awal aku berjumpa
Pandangan pertama awal aku berjumpa
seolah-olah hanya impian yang berlalu
sungguh tak kusangka dan rasa tak percaya

cowok setampan dia datang menghampiriku
hampir-hampir aku tak sadar dibuatnya
sungguh karena dia aku di depan anda
memberanikan diri bergaya dan bernyanyi

Pandangan pertama awal aku berjumpa
Pandangan pertama awal aku berjumpa
seolah-olah hanya impian yang berlalu
sungguh tak kusangka dan rasa tak percaya

cowok setampan dia datang menghampiriku
hampir-hampir aku tak sadar dibuatnya
memang kecantikannya dan kelembutan hatinya
membuat aku berani menghadapi dunia

Pandangan pertama awal aku berjumpa
Pandangan pertama awal aku berjumpa

Posted in lirik | Tagged: , , , , | Leave a Comment »

Clear DNS lookup

Posted by mafiaid on 12 November 2007

To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000, Win 98):-

    - Start -> Run -> type cmd
    - in command prompt, type ipconfig /flushdns
    - Done! You Window DNS cache has just been flush.

To flush the DNS cache in Linux, restart the nscd daemon:-

    - To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
    - Once you run the command your linux DNS cache will flush.

To flush the DNS cache in Mac OS X:-

    - type lookupd -flushcache in your terminal to flush the DNS resolver cache.
      ex: bash-2.05a$ lookupd -flushcache
    - Once you run the command your DNS cache (in Mac OS X) will flush.

Posted in Linux, MacOS, oprekan | Tagged: , , , , , | Leave a Comment »

TravelMate 4150 system profile OSX

Posted by mafiaid on 11 November 2007

Hardware Overview:

      Machine Name: Apple Development Platform
      Machine Model: ADP2,1
      Processor Speed: 1.73 GHz
      Number Of Processors: 0
      Total Number Of Cores: 1
      Memory: 1 GB
      Bus Speed: 533 MHz
      L2 Cache: 2 MB

Built-in Ethernet:

      Type: Ethernet
      Hardware: Ethernet
      BSD Device Name: en0
      Has IP Assigned: Yes

      Ethernet:
          MAC Address: 00:0f:b0:7b:a9:94
          Media Options: Full Duplex
          Media Subtype: 100baseTX

System Software Overview:

      System Version: Mac OS X 10.4.8 (8L2127)
      Kernel Version: Darwin 8.8.1
      Boot Volume: OSX
      Computer Name: Agus Priyadi’s Computer
      User Name: Agus Priyadi (aguspriyadi)

Graphics/Displays:

    Intel GMA 900:
      Chipset Model: GMA 900
      Type: Display
      Bus: Built-In
      VRAM (Total): 64 MB of shared system memory
      Vendor: Intel (0×8086)
      Device ID: 0×2592
      Revision ID: 0×0003
      Displays:
        Color LCD:
          Resolution: 1024 x 768
          Depth: 32-bit Color
          Built-In: Yes
          Core Image: Supported
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Quartz Extreme: Supported

Posted in MacOS, oprekan | Tagged: , , | 1 Comment »

How to Create a Bootable Backup of Mac OS X (Cloning Mac OS X disks)

Posted by mafiaid on 6 November 2007

Introduction

Note: These instructions provide the command-line instructions for manual backups or clones. Carbon Copy Cloner follows the rules laid out below — you do not need to follow any of these instructions if you use Carbon Copy Cloner.

There are a few basic rules that you need to follow when cloning a disk with Mac OS X System files in order to get a bootable clone:

1. File permissions must be preserved.

Many files belong to the root user, so you cannot simply copy these files from the Finder. There are other issues with permissions, such as the setuid bit (in English, that is a feature of a file that, when executed, gives the file or application
the same privileges as the owner of the file; if the owner of the file is root, then root privileges are granted during the execution of this file). Copying via the Finder sets the owner of the new files to the user that copied them and assigns a default set of permissions. Many applications and system files will not work properly with the default Finder settings.
2. The invisible Unix system files must be copied.

Mac OS X is driven by a Unix flavored operating system called Darwin. Darwin system files reside at the root level of the derive in four folders: /private, /bin, /usr, and /sbin. These directories hold all the critical files that allow the computer to boot up and have basic functionality.
3. Unix-style links must be preserved.

Symbolic links and hard links are different from the Mac aliases we are familiar with. Likewise, the way we deal with them will not be the same. Because there are some critical symbolic links on a Mac OS X disk, the integrity of these files must be preserved by the utility you use to clone/backup the disk. Some people are very familiar with the error upon booting that states “/etc/master.passwd: Not a directory”. This is because the /etc symbolic link to /private/etc was broken.
4. Some directories are populated by the System after booting, and are thus unnecessary to preserve, however, although empty, they may still have to be present.

Some directories are populated by the System. For example, the Volumes directory is populated with directories corresponding to the names of Volumes you have on your system. If you insert a Zip disk, a new directory in /Volumes is created with the name of the Zip disk. These directories are called “mountpoints”, and are created “on-the-fly” by Apple’s autodiskmount utility. Because these directories do not contain data on your boot volume, they do not need to be copied during a clone operation. The Volumes directory is just a placeholder (and the OS will recreate the Volumes directory on bootup, so it is unnecessary to recreate). The /dev directory is also a placeholder for system devices, such as disk drives, output devices, and communications devices. The list of devices in this directory is created each time the computer is booted up and when new hardware is added, so it is unnecessary (and a little difficult) to copy the items in this directory. Because this is a Unix system directory, however, you will not have a bootable volume unless this directory is recreated on the cloned disk. Creating an empty directory is sufficient. Likewise, it is important to backup mach_kernel (the most important file in the system), but “mach” and “mach.sym” are destroyed and recreated each boot by the /etc/rc boot script. Finally, the Network folder at the root level does not need to be backed up because it is populated by the System on startup.
5. Resource forks must be preserved

While Apple is trying to move away from Resource Forks, there are still many applications and documents that use them. Because of this, any backup or cloning utility must preserve the resource forks. If you try to clone a Mac OS X disk without preserving resource forks, many of your personal documents will be damaged.

* Pre-flight checklist

1. Make sure the “Ignore privileges on this volume” setting is not checked for your source or target volume (Note: this setting is called “Ignore ownership on this volume” in Jaguar). To check this setting, click on the target volume, choose “Show Info” or “Get Info” from the File menu in the Finder and select the Privileges menu (Jaguar: click the disclosure triangle next to ownership and permissions). Make sure the box at the bottom is NOT checked, otherwise permissions and ownership settings will not be preserved, no matter what tool you use to copy files.

2. Run Disk Utility on the target and source volumes before cloning. This is not required, but is a good idea to avoid disk or directory-related problems during cloning. If you are cloning an operating system with ditto or asr, I recommend that you erase the drive with Disk Utility prior to cloning.

* Cloning a disk or backing up your drive with ditto, rsync, hdiutil and asr:

Ditto is a command-line utility that ships with Mac OS X. Ditto preserves permissions when run as root and preserves resource forks by default. Ditto can be used to clone your system with the following step:

sudo ditto -X / /Volumes/Backup

rsync can be used to make a bootable clone as well. In addition to basic file copying, rsync also offers the ability to synchronize the source and target volumes — it can copy only the items that have changed, thus subsequent clones, or backups, are much faster. The syntax is pretty easy:

sudo rsync -xrlptgoEv –progress –delete / /Volumes/Backup

That will backup your entire drive, deleting anything from the target that is not on the source drive (synchronizing, that is). Rsync also preserves resource forks (that’s what the “E” argument is for) and will give you a bootable backup just as well as ditto. Learn more about using rsync to regularly backup your drive to a remote machine.

While it doesn’t give you a bootable clone, backing up to a disk image does offer flexibility in the location of your backup as well as backup portability — your entire volume is located in a single file. Restoring from disk images is pretty easy as well, just mount the disk image and treat it like any other volume. Backing up a volume to a disk image (UDZO means a compressed disk image in this case) is simply done with this one command:

sudo hdiutil create /Volumes/Backup/mikes_laptop.dmg -format UDZO -nocrossdev -srcdir /

Finally, the ideal tool to use for creating bootable clones of your volumes is Apple Software Restore. Apple Software Restore, or asr, is also a command-line tool built-in to Mac OS X. While asr essentially functions like ditto in its file-copy mode, it also has the ability to clone a volume at the block level, preserving every last bit of data on the volume.

asr syntax for volume cloning is also pretty easy:

sudo asr -source / -target /Volumes/Backup -erase -noprompt

The “-erase” argument is optional, though recommended when cloning an operating system. Merged OSes are not usually very happy. To use asr in block-copy mode, you must be able to unmount both the source and target. That is, you can’t block-copy your boot volume. Learn more about this in the CCC documentation about asr.
* The Command-Line-Free version

I have developed a utility that encapsulates the power of asr and rsync and performs all the necessary steps to clone a drive. Download Carbon Copy Cloner here.
* Disclaimer

These instructions require the use of command line utilities. Using command line utilities without experience can have unpredictable consequences including loss of data. Please be mindful of this — the author makes no claims to the fitness of these instructions, and makes no warranties explicit or implied to their effectiveness or safety.

Created July 11, 2001
Updated for Mac OS 10.1 on November 4, 2001
Updated on December 18, 2001 with general info and principles behind successful Mac OS X backups.
Updated January 7, 2002: removed incorrect comment about ditto mishandling symbolic links
Updated January 18, 2002: added info about hfspax, minor modifications to ditto instructions, and comment about resource forks
Updated February 28, 2002: minor modifications, added info about blessing the target, added comments on unlocking files on source.

Updated March 17, 2002: corrected terminology about the setuid bit.

Updated October 9, 2002: Added disclaimer.

Updated January 25, 2007: Removed the overwhelming bulk of code, it’s so much easier than it used to be. Also added rsync and asr alternatives.

Posted in MacOS, oprekan | Tagged: , | 2 Comments »

Burning or Writing DVDs Under Debian system

Posted by mafiaid on 6 November 2007

Copy Paste : http://www.debianhelp.co.uk/burningdvd.htm

If you want to burn DVD’s in debian you need
to install the “dvd+rw-tools”
package.



dvd+rw-tools makes it possible to burn DVD images
created by dvdauthor or mkisofs to DVD+R, DVD+RW,
DVD-R, and DVD-RW disks, replacing cdrecord-proDVD
in many cases.

The package contains:


* growisofs to burn DVD images or create a data DVD on the fly  
* dvd+rw-format to format a DVD+RW  
* dvd+rw-mediainfo to give details about DVD disks


and some programs to control the write speed and
obtain information from DVD-RAM.

the maximum writing speed depends on the hardware
capabilities and then on the firmware. Using an
unsupported media will most likely not give you the
highest speed printed on the labels or that capable
by the writer. As an example: my writer says 16.1x
is supported on my Fujifilm 8x DVD+R (8x rated)
where as only 8.1x is supported on Fujifilm 8x DVD-R
(8x rated).

Install
dvd+rw-tools package in debian

#apt-get install dvd+rw-tools

Using
growisofs


Initialize new DVD+RW media

#dvd+rw-format /dev/scd1

Write
contents of a directory(or file) to a newly
initialized DVD+RW

#growisofs -Z /dev/scd1 -R -J
/the/file/or/directory/to/burn

Write
more stuff to an initialized DVD+RW

#growisofs -M /dev/scd1 -R -J
/the/new/file/or/directory/to/burn

Write an
arbitrary pre-mastered image to a DVD+RW

You can write any data to the
disk with this command. But likely you will want to
stick to the old familiar iso9660.

#growisofs -Z /dev/scd1=image.iso

If you want to know more
options about growisofs check the man page.If you
want to check this man page click

here

Using
dvdrecord

It is also quite easy to use dvdrecord to burn an
existing iso image.Dvdrecord is simply a fork of
cdrecord that is designed to work with DVD media.

Copy DVD (DVD-R & DVD-RW)

#readcd dev=0,1,0 f=somefile

#dvdrecord speed=2 dev=0,1,0
-v somefile


Create DVD from directory (DVD-R & DVD-RW)

#mkisofs -r -J -o iso_image
directory/to/burn

#dvdrecord -v speed=2
dev=0,1,0 -v iso_image

If you want to know more
options about mkisofs check the man page.If you want
to check this man page click

here

GUI
tools to burn CD/DVD’s


http://www.k3b.org/



http://www.xcdroast.org/


Reference links



DVD+RW/+R/-R[W] for Linux

Another command

$ growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hda -R -J -pad “/my/directory/datas”

$ growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hda -R -J
-pad -graft-points “/dir1=/my/directory/datas1″
“/otherdir=/my/directory2/content”

$ growisofs -dvd-compat -input-charset=ISO-8859-1 -M /dev/hda -R -J -pad -graft-points “/morecontent=/my/new/dir”

growisofs -dvd-compat -Z /dev/hda=/path/to/image.iso

Posted in Debian, Linux, oprekan | Leave a Comment »