Tuesday, December 22, 2009

How to update Kext in Macs

Mac Kext are like drivers for the Windows platform. You need them to get your hardware device working.  In Mac the device drivers are mostly from Apple, therefore unless a third party is willing to give support, unsupport hardware is very difficult to co-exist with the mac os.  This is a way to update kext manually from the terminal. 




To update a kext:

cd /path/to/new/kext (put your downloaded kext path here)

cp -R KextName.kext /System/Library/Extensions

next you need to fix permissions so the kext can be executed by OS user (root/system)

cd /System/Library/Extensions

chmod -R 755 KextName.kext

chown -R 0:0 KextName.kext   (this will set the ownership on files to system user (root))

rm /System/Library/Extensions.mkext   (this will reset all kext caching done by OSX)


Another way with GUI is to use the Kext Utility, by downloading this and using it, it will fix kext automatically.  If you want to install kext, you can drag the kext onto the program directly, the program will install and update the Extensions.mkext file.

Enjoy

Monday, December 21, 2009

Asus w7j OSX86 settings

Asus w7j OSX86 settings 10.5.7

These are the settings used to install IPC distro on my Asus w7J.

Video: NvDarwin 256MB (QE/CI enabled), dual monitor doesn't work out of the box, but I know some change will make it work, but in that instance QE/CI doesn't work.

Chipset: ICHX
Audio: ALC861
Ethernet:Realtek R1000
Fix: PS2/keyboard
PowerMgmt: all
Video Card:Nvidia Geforce Go 7400
Wifi (3945): works with new driver for Snowleopard only.


These few links might be useful read for further study (will update)
Basics of Kext and installation of it (drivers for Mac)
Dual boot




Snow leopard 10.6.2
For the Asus W7J, the SnowOSX Universal v.3.6 works out of the box, the Wifi doesn't work because it is one of the Intel Chipset.  Sound needs a little support, just draw the Voodoo from the ATools folder to the Kext Utility Icon.  Graphics is still a problem.  I found the following solutions, but I have yet to try them out.


Seems like in 10.6.2 there is a problem with the VoodooHDA.kext and NVInject.kext

Wednesday, December 16, 2009

Chromium OS install and boot from USB from Windows or Mac

Google had recently released the source code for their much hyped Chromium Operating System. Google had positioned itself to be the king of cloud computing, everything from email, spreadsheet, writing documents and doing everything you need on the web. This particular OS can be installed to old and new computers alike, and it is basically a stripped down version of the Linux OS. There is currently a Vmware version which you can install and run using Vmware or VirtualBox. However, most review shows that it is really slow and it is no fun in running it in visualization. This article will show you how to install Chromium OS onto a USB drive. Then you can keep your old OS, and boot from this usb drive anytime if you want to. It is also a breeze to install and it won't touch any of your current file system.
This is what you will need

Computer that can boot with USB thumb drive
USB with 4GB of space, new version only requires a 1 GB drive.


A version of pre build Chromium OS - I will show you where to find it.

Preparation - This instruction will show you how to use a pre build version of the Chromium OS, thus you won't need a linux machine to build it from source. You can start by downloading a pre-build version of the Chromium OS. There is a version online made by Hexxus which is good to go and easy to install on any USB drive.  Use the Windows Version or Mac  instructions to write that image to your USB drive.

Caution - Major issue with Chromium OS is that the hardware drivers are still in development stage.  Therefore it might be hard to get a few hardware to function, most errors reported were sound device or wifi drivers.  If there are any keyboard or Mouse problems, try to connect a USB version of it.

Boot up - Chromium requires your computer to be able to boot from USB, and once in the OS, it would ask for a username and password.  The default for Hexxus's image is facepunch/facepunch.  That is for the initial offline login, if you have internet connection you can try it with your usual gmail login.

Navigator - It is fairly easy to use the chromium OS, as there is only a browser and some simple settings of the machine.  Most noticeably is the use of the F8 command.  This command shows a translucent version of your keyboard, and the shortcuts available when hitting any of the combination of and shift.  I think it is great, you can even use it as a guide to know the keyboard shortcut to your normal chrome browser.  Since Chromium was built (strip down) from Linux, there is a way to bring out a prompt to by pressing - T.  This way you would have better access to most of the basics of your computer. 

Have fun hacking.

Tuesday, December 15, 2009

64bit boot for Snow Leopard

How do you know if your Snow Leopard upgrade is booting in 64 bit?  Try these commands

ioreg -l -p IODeviceTree | grep firmware-abi

This command will check if your EFI is 32 bit or 64 bit the EFI can make or break for your 64 bit hardware running in 32 bit.  There is a list of not too old Macs not being able to run in 64 bits because they have a dated version of the EFI.

To check if you are running the 64 bit Kernel, Type


uname -v

in terminal and if your response contains the string x86_64 in the output that means you are in luck.

Monday, December 14, 2009

How to use your Iphone and Tomato to turn on your computer remotely without going to the app store

So you think you know all the uses of an Iphone? Well try this, making an adhoc version of a remote computer switch with your Iphone without visiting the Apple app store. So here is what you need


  • A Router with Tomato Firmware installed
  • A computer with a LAN card that supports Wake-On-Lan
  • Iphone/Ipod Touch or any phone with Wifi and a web browser ( I haven't tested others yet)


     Ok, since you have landed on this blog, I assume that you are already familiar with the Tomato firmware. It is a free custom Linux based firmware written especially for most Boardcom chipset based routers. It can easily turn your $30 router to a $300 router if you know how to install it. You can easily search Google to find out if your router supports it, and you can also Google instructions on how to install it. There is a large community on custom firmwares that try to make it do different things everyday. Ok so after you have installed the Tomato firmware, you would automatically notice that tomato supports WOL automatically. Basically it is the use of a network card to turn on the computer when you have access to the network. When you want to turn on a computer, a magic packet is broadcast on the network to reach your target computer. However it is mostly a pain to enable that feature on your computer. I am using Asrock M3A790GXH/128M for this exercise. So here are the steps.

1. Install and configure tomato to work properly

2. Enable WOL on your computer. In my case, you have to goto BIOS and enable "PCI device Power On" in the power menu. This might be different for your setup, but the principle is the same. Try to Google your specific motherboard/LAN card for instructions.

3. Boot into windows/Mac/Linux and note down the Mac address of your network card. Also note the name of the computer you want to turn on, in my case it is "server". Then turn it off.

4.If you have used this computer extensively on your tomato router, it should remember the Mac address of your computer.

5.Now here is the fun part, use your iphone on the same network on your computer and goto the Safari browser. Goto the IP address of the Tomato router and goto the admin menu. In there you can see the WOL option which looks something like below.



6. Click on the target computer with the name "server" or the one with your target computer name. If it is not on the list, then you can enter it manually in the space below.

Wait for your computer to Beep and turn on right in front of you.  Now you can turn on your computer from the comfort of your sofa simply because you don't want to walk that extra distance or if you want to brag about it(I know I will) or just because you know that you can.  Now image what you can do with DDNS, VPN setup on the tomato, you can go anywhere and turn on your computer with the tip of your finger.

Wednesday, December 09, 2009

How to setup a web server with Ubuntu

Here shows a really nice picture walk through tutorial on how to setup a web server.

The basic walk through is to install ubuntu server, setup the web services with LAMP. LAMP stands for Linux, Apache, Mysql and PHP, basically all the free stuff.

This tutorial also goes on to show you how to harden your system by installing a firewall, and hiding some of your information from the public.

Some of the basic stuff such as Sudo are talking about, also how to upload your website, and some of the basics of port forwarding are talked about. Great tutorial for beginners

Tuesday, December 01, 2009

How to access mysql from outside of localhost 127.0.0.1 in Xampp

Xampp is a great tool if you want to setup a mock web server in your local computer. You don't have to go through the hassle of downloading and installing all the server in this great little mash up. For me personally, it was more than enough for local testing. However recently I have expanded some of my boundaries and now I require to have multiple access of a single database in my local network. This is how you do it.

Navigate to your Xampp installation directory, then goto the mysql/bin directory, in my case it is
C:\xampp\mysql\bin

open the file

my.cnf


Then find the line bind-address:127.0.0.1
If it is not there then add it, and replace 127.0.0.1 with the ip address of the computer you want to access the database from. You should now be able to access your mysql server from another computer than other localhost.