Personal Web Space

Posts Tagged "boot"

Fix for Boot Camp x64 is unsupported on this computer model

Fix for Boot Camp x64 is unsupported on this computer model

on 15 September, 2013 in Blog | 58 comments

Recently I tried to install Boot Camp 5.0.5033 on my MacBook Pro (13-inch, Mid 2009) having previously installed Windows 7 64-bit. Guess what? Apple decided to make our life difficult again by popping up “Boot Camp x64 is unsupported on this computer model” error. I am guessing that this problem  happening to many of you out there that have different models of Macs so here is how to solve: 1 Download Boot Camp 5.0.5033 (or a newer version) from apple’s website. 2 Extract all contents but do not run *BootCamp5.0.5033\BootCamp\setup.exe as this will produce the error displayed above. 3 Instead we need to run *BootCamp5.0.5033\BootCamp\Drivers\Apple\BootCamp.msi but if we try to do it the old fashioned way, yet another error pops up “this installation requires elevated privileges. launch the installer through setup.exe”. Unfortunately in my case there was no option to run the msi as Administrator. 4 To overcome the administrator issue, navigate to C:\Windows\System32 and locate cmd.exe. Right click the icon and select Run as administrator option. Hold on! Right click is not available without boot camp; well here is a secret, Shift+F10 does exactly the same! Navigate again to  *BootCamp5.0.5033\BootCamp\Drivers\Apple and execute BootCamp.msi from the command prompt by typing BootCamp.msi. If that does not work try “BootCamp.msi”. Voila! Restart your Mac and you are good to go. 5 (Bonus) Follow this link Windows BootCamp reverse scrolling to make scrolling in Windows have similar feeling as in Mac OS...

Read More
Linux – set any program to start as daemon/service

Linux – set any program to start as daemon/service

on 3 December, 2012 in Blog | 0 comments

This post explains how to add any program to start a service/daemon on linux (as long as the program supports this). It was created while attempting to start TeamViewer as a daemon while my home server was booting up. To start any program as a daemon, a link to the daemon script should be placed in /etc/rc*.d/ where * is the number of the boot mode the machine is set to start. In order to find what is your current default mode, please check in file /etc/inittab. Usually these types of daemon scripts are placed in /etc/init.d/ directory. The below script is a generic script that will start any application/service defined by the user. Simply copy the code below into a file, e.g. /etc/init.d/newdaemon and then create a symbolic link to it from within the directory your machine is booting e.g. # ln -s /etc/init.d/newdaemon /etc/rc3.d/S90daemon Note that this script was only tested using bash shell. Feel free to use and modify as you like. To test the script is working you can use it like this: # /etc/rc3.d/S90daemon start # /etc/rc3.d/S90daemon status # /etc/rc3.d/S90daemon stop # /etc/rc3.d/S90daemon status   #!/bin/bash # #Generic daemon script # # source function library . /etc/rc.d/init.d/functions RETVAL=0 USER=root PROG=sshd # MODIFY THIS PATHPROG=/usr/sbin/$PROG # MODIFY THIS start () { echo -n $PROG" starting up " $PATHPROG & > /dev/null 2> /dev/null sleep 5 if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then success $"" else failure $"" fi echo "" } status() { if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then echo -n $PROG" is running..." echo "" else echo -n $PROG" is stopped" echo "" fi } stop () { echo -n $PROG" shutting down" > /tmp/pid chmod 777 /tmp/pid > /dev/null 2> /dev/null ps -ef | awk '!/bash/' | awk '/'$PROG'/ {system("echo " $2 " >> /tmp/pid")}' cat /tmp/pid | awk '{system("kill -9 " $1 " > /dev/null 2> /dev/null") }' sleep 5 if [ `ps -ef | grep $PROG | grep -v grep | grep -v bash | wc -l` -gt 0 ] then...

Read More