tag:blogger.com,1999:blog-315611432023-11-15T09:42:31.986-08:00Hacks and SlashTutorials on just about anything computer relatedJohn Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.comBlogger63125tag:blogger.com,1999:blog-31561143.post-36204231257218751542011-02-15T09:41:00.000-08:002011-02-15T09:41:16.068-08:00OSCommerce Hacked, Eval Base64 Decode attackRecently one of my OSCommerce site is being banned by Google as malicious and harmful for your computer so I was forced to take a look at the code. I had experience with Drupal and Joomla, but not too much with OSCommerce, this was a site that a friend of mine had setup and now it is kinda in my hands. It was also a site that had a lot of customization and it was setup on shared hosting, so there were a lot of unknowns for me. I found that part of the code that were trying to load malicious code was in fact based on a Eval Base64 command that can be easily found by using either UltraEdit or PSPad. Just try to find '<a href="http://forums.oscommerce.com/index.php?showtopic=344272">base64</a>' in the whole directory and it will be quite obvious which ones are legit and which ones are not. <br />
<br />
However, the problem comes when similar code keeps poping up in my header.php file day after day. So I had to look at my site again. I then later found out that in my catalog/image/ and /catalog/admin/image directory there are a few suspected php, and looking into them shows signature of hackers claiming "... was here". So it was again quite obvious, since you probably don't expect anyone to put php files into image directory. <br />
<br />
As after this I have implemented a few of the steps listed <a href="http://forums.oscommerce.com/index.php?showtopic=313323">here </a>. It is recommended in the previous listed article about the base64 that you should at least change the admin path, install a few security add-ons for my site. I hope I will never find those attack on my site ever again. <br />
<br />
Hope this helps anyone out there who is having the same problem.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-24916798608598301452010-10-19T01:55:00.000-07:002010-10-19T01:55:43.182-07:00How to add Google Analytics to Diferior Torrent Tracker CMS.Diferior is a new breed of Open Source Tracker Content Management System(CMS). It has built in support for Blog,Forum,Tracker and User Management, basically all you need to get your own Torrent site going. You can also incorporate different Tracker configuration based on your needs, it is easy to setup and very powerful. I got the site up and running but one thing is missing, it is not as straight forward to get Google analytic working with it. The main reason is because this is not a simple CMS with the use of HTML and PHP, it uses a template system called <a href="http://www.smarty.net/">Smarty</a>. This makes installation of the Google Analytics script non-function if you install it as other websites. <br />
There is workaround for that. Simply goto the template file of index.tpl.php and add the normal google code, but make sure the code is wrap around by the tag<br />
{literal} <br />
Google Code<br />
{/literal}<br />
<br />
and you are good to go.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-82527261159342372632010-09-21T01:16:00.000-07:002010-09-26T22:39:30.226-07:00Zotac H55ITX-A-E Snow Leopard 10.6.4 Install Guide Using tonymacx86 iBoot and MultiBeast 2.0<div class="separator" style="clear: both; text-align: center;"><a href="http://www.computerlounge.co.nz/uploads2/Zotac/Motherboards/Zotac_H55ITX-A-E_pic1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://www.computerlounge.co.nz/uploads2/Zotac/Motherboards/Zotac_H55ITX-A-E_pic1.jpg" width="316" /></a></div><br />
<br />
This is a Guide that shows how to install Snow Leopard on Zotac, H55ITX-A-E. This is the perfect setup for a MiniHack Pro. This board supports up to i7 of the 1136 socket, depending on what kind of case you are getting, it is possible that this setup can out perform some of the current generation Mac Pro. On the other hand you can install a low power consumption i3, with dual boot into W7 it can take advantage of the Intel HD graphics. The current generation i3 can match the Atom CPU power consumption in idle, making it a great setup for a HTPC in your living room.<br />
<br />
Advantage of using a Zotac H55ITX-A-E<br />
- Small form factor, Mini-ITX size board<br />
- Lots of positive review on the build quality and versatility of this board.<br />
- 10 USB 2.0 port (H55ITX-C-E has USB 3.0 support)<br />
- Built-in Wireless card (US version gets the Atheros chipset which works out of the box, for with the RALink chip, it supports with kext, but not in n mode)<br />
- Has an extra PCIe slot for a medium to high-end Video card, then you have yourself a decent gaming system.<br />
- SpeedStep, LAN, Sound and Wifi all works in snow leopard, refer to <a href="http://tonymacx86.blogspot.com/2010/05/iboot-supported-with-vanilla-kernel-for.html">TonyMac</a>'s general guide on how to install. <br />
- Sleep doesn't quite work<br />
<br />
Thanks to TonyMac and InsanelyMac this <a href="http://www.insanelymac.com/forum/index.php?act=attach&type=post&id=75082">guide</a> provides the most comprehensive instruction on the installation of Snow Leopard on Zotac's board. This is indeed one of the best board on all builds of SL.<br />
<br />
<br />
<a href="http://www.insanelymac.com/forum/index.php?showtopic=217492">Neil's Post in Insanelymac</a> should be the best place to ask further question.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com4tag:blogger.com,1999:blog-31561143.post-27931257333480874592010-06-12T09:45:00.000-07:002010-06-12T09:45:34.841-07:00How to fix 'suexec command was not found on your system.' in VirtualminI ran into this error message in Virtualmin when I want to disable Bind and Mail for Domain, I searched around for answers and I couldn't find it. Finally I found out that Suexec was not installed correctly, so I reinstalled again with the command<br />
<br />
<div style="font-family: "Courier New",Courier,monospace;">apt-get install apache2-suexec-custom</div><br />
And then it changed to another error message, where it shows.<br />
<br />
<br />
<br />
<h3 class="post-title"><a href="http://blog.johnso.org/2010/04/suexec-command-on-your-system-is.html">The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.</a></h3><h3 class="post-title" style="font-family: inherit;"><span style="font-size: small;"> </span><span style="font-family: inherit; font-size: small; font-weight: normal;">The above </span><span style="font-size: small;"> <span style="font-weight: normal;">link also shows the solution to that problem</span>.</span></h3><h3 class="post-title" style="font-family: inherit; font-weight: normal;"><span style="font-size: small;">Enjoy.</span></h3><h3 class="post-title"><br />
</h3><h3 class="post-title"><br />
</h3><h3 class="post-title"><br />
</h3>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com1tag:blogger.com,1999:blog-31561143.post-2969356885277163412010-06-09T02:36:00.000-07:002010-06-09T20:57:25.101-07:00How to install webmin for Ubuntu 10.04 LTS ServerIt is actually very easy to install webmin on the new Ubuntu 10.04 LTS Server. Here is what you will need to type<br />
<div><br />
</div><div>Login to your server and update your server</div><div><br />
</div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="color: red;">apt-get update</span></span><span class="Apple-style-span" style="color: red;"><br />
</span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="color: red;">apt-get upgrade</span></span><span class="Apple-style-span" style="color: red;"><br />
</span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="color: red;">apt-get dist-upgrade</span></span></div><div><br />
</div><div>Then you can get the and install webmin</div><div><br />
</div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="color: red;">wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb</span></span><span class="Apple-style-span" style="color: red;"><br />
</span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="color: red;">sudo dpkg -i webmin_1.510-2_all.deb</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"><br />
</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;">Then if there are errors then type the following commands</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><br />
</span></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="color: red;">sudo apt-get install -f</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><br />
</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;">Then you are good to go. Make sure you have noted your IP address so that you can login from your browser at </span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;">http://yourip:10000/</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;">Enjoy</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><br />
</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><br />
</span></span></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Times; font-size: medium; line-height: normal;"><br />
</span></span></div>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com1tag:blogger.com,1999:blog-31561143.post-50078306271666529372010-05-11T09:27:00.000-07:002010-05-11T09:27:27.048-07:00SOLVED: Http 500 error caused by .htaccess in CMS UbuntuA recent move of my server from a public server to a self hosted server in Ubuntu had turned into a problem solving challenge. I had build a new Ubuntu server with webmin as a hosting manager. A current live version of Joomla was moved over to this server, and all of a sudden the SEF stopped working. I am currently a user of SH404 with JoomFish, and everything worked before. Now I got 500 error even in the admin screen. I made sure the naming convention is right, .htaccess was typed correctly. The main error was that by default apache does not turn on mod_rewrite, to do that in a Ubuntu or Redhat server all you have to do is type<div><div><br />
</div><div><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">sudo a2enmod rewrite</span></div><div> </div><div>and restart the apache server by typing </div><div><br />
</div><div><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">sudo /etc/init.d/apache2 restart</span></div><div><br />
</div><div>This should fix all those errors when migration a CMS to a new Ubuntu server.</div><div><br />
</div><div>Enjoy</div></div>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-41935583323001068272010-05-10T00:56:00.000-07:002010-05-10T00:57:57.502-07:00How to load MYSQL Database from Command Line in Linux and XAMPP<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">To load a Mysql file from the command line to a certain database you can use the following command</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #003150; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: 12px; line-height: 15px;">mysql -u root -p joomla < backup.mysql</span><br />
<span class="Apple-style-span" style="color: #003150; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: small;"><span class="Apple-style-span" style="font-size: 12px; line-height: 15px;"><br />
</span></span><br />
<span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">This works in linux environment where joomla is your database name. Best to be in the same directory as the mysql file and you can load it without typing the path to the file.</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;">If you are hosting in your own Xampp in Windows, there is also a way to load your mysql file from the command line, in my example I would assume that you have installed Xampp in </span></span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><br />
</span></span><br />
<span class="Apple-style-span" style="color: #003150;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">c:\Xampp,</span></span></span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"> thus the directory for mysqld would be</span></span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><br />
</span></span><br />
<span class="Apple-style-span" style="color: #003150;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">c:\Xampp\mysql\bin</span></span></span><br />
<span class="Apple-style-span" style="color: #003150;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></span></span><br />
<span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">then if you put your mysql file in the same directory, you can load it directory from that directory if you haven't had your path set. Type</span></span><br />
<span class="Apple-style-span" style="color: #003150;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></span></span><br />
<span class="Apple-style-span" style="color: #003150;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-size: 13px; line-height: 17px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">mysql --user root --password </span><span class="Apple-style-span" style="font-size: 12px; line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">joomla < backup.mysql</span></span></span></span></span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans', Verdana, Helvetica; font-size: 13px; line-height: 17px;"><br />
</span></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans', Verdana, Helvetica; font-size: 13px; line-height: 17px;">It will prompt you for a password then your mysql will be loaded depending on how big your backup is. you could add a -f flag if your database is very big, it will prevent it from stopping if there is error. </span></span></span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans', Verdana, Helvetica; font-size: 13px; line-height: 17px;"><br />
</span></span></span><br />
<span class="Apple-style-span" style="color: #003150;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-size: 13px; line-height: 17px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">mysql -f --user root </span><span class="Apple-style-span" style="font-size: 12px; line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">joomla < backup.mysql</span></span></span></span></span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans', Verdana, Helvetica; font-size: 13px; line-height: 17px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: 12px; line-height: 15px;"><br />
</span></span></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;">Enjoy</span><br />
<span class="Apple-style-span" style="color: #003150; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans', Verdana, Helvetica; font-size: 13px; line-height: 17px;"><span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: 12px; line-height: 15px;"><br />
</span></span></span></span>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com1tag:blogger.com,1999:blog-31561143.post-33616167778890185052010-05-03T02:54:00.000-07:002010-05-03T02:55:33.439-07:00How to connect to Tomato VPN in Windows 7 and Vista<span class="Apple-style-span" style="font-family: inherit;">I have recently upgrade my main laptop from XP to windows 7, I was updating my Tomato </span><a href="http://www.openvpn.net/"><span class="Apple-style-span" style="font-family: inherit;">OpenVPN </span></a><span class="Apple-style-span" style="font-family: inherit;">setup as well. My</span><a href="http://blog.johnso.org/2009/08/how-to-setup-openvpn-in-tomato.html"><span class="Apple-style-span" style="font-family: inherit;"> recent blog entry</span></a><span class="Apple-style-span" style="font-family: inherit;"> shows instructions on how to setup OpenVPN server from the tomato router. A lot has changed since then. For me now it's Windows 7 and OpenVPN </span><a href="http://www.openvpn.net/release/openvpn-2.1.1-install.exe"><span class="Apple-style-span" style="font-family: inherit;">windows installer</span></a><span class="Apple-style-span" style="font-family: inherit;"> now comes with a GUI, you don't have to install it yourself. The installation went well, however after I set everything up and I tried to connect I got this error message.</span><br />
<br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 15px; -webkit-border-vertical-spacing: 15px;"></span><br />
<pre><span class="Apple-style-span" style="font-size: x-large;">The requested operation requires elevation.</span></pre><pre><span class="Apple-style-span" style="font-family: 'Times New Roman'; white-space: normal;">
<pre><span class="Apple-style-span" style="font-size: x-large;">ERROR: Windows route add command failed [adaptive]: system() returned </span></pre></span></pre><br />
<span class="Apple-style-span" style="font-family: arial, sans-serif;"><span class="Apple-style-span" style="font-size: small; line-height: 19px;"><br />
</span></span><br />
<span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;">I</span></span><span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;"> can connect to my server, however I can't add the route to my Tomato router, therefore my traffic does not route through the Tomato VPN server. </span></span><br />
<span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;"><br />
</span></span><br />
<span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;">For those who are experiencing the same error, I found it on requires a simple fix. First you have to configure the GUI such that it works with your ovpn and your static.key file. Instead of using the connect.ovpn file from anywhere, you can connect by using the GUI which came with the installer. The trick is to run the GUI as administrator, this can fix this error and I can connect to the VPN server. </span></span><br />
<span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;"><br />
</span></span><br />
<span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;">One trick is to run OpenVPN as a service and run as administrator, you can also make your computer connect automatically each time you logon. </span></span><br />
<span class="Apple-style-span" style="line-height: 19px;"><span class="Apple-style-span" style="font-family: inherit;"><br />
</span></span>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com4tag:blogger.com,1999:blog-31561143.post-53317478427403869582010-04-13T03:31:00.000-07:002010-04-13T03:37:14.757-07:00The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.I had my system running Ubuntu 9.10 Server and after installing Webmin and Virtualmin I came across this problem<br />
<br />
<blockquote>The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.</blockquote><br />
If you installed using the script provided by virtualmin then you might not have this problem, but when you see this error it is already too late. The script was only available for Ubuntu LTS, and obviously I didn't install that variation of the OS. For me to uninstall and try it is too time consuming, thus I have found some easy solutions to fix this error. No compiling involved.<br />
<br />
1. Disable Suexec in Virtualmin<br />
<br />
<br />
<blockquote>1. Use the Virtualmin framed layout;</blockquote><blockquote>2. On the left top; click on Virtualmin;</blockquote><blockquote>3. Open the + on "System settings";</blockquote><blockquote>4. Click "Server Templates";</blockquote><blockquote>5. On the right screen; click "Default Settings";</blockquote><blockquote>6. On the select box "Edit template section" choose "Apache website";</blockquote><blockquote>7. Find the radio button: "Automatically add appropriate SuExec directive" </blockquote><blockquote>8. Choose "no", scroll down and "save"</blockquote><br />
<span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;"><br />
</span><br />
<span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;"><br />
</span><br />
<span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;">2. Create a temporary <b>mount</b> between the 2 directories by typing the following command</span><br />
<span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;"><br />
</span><br />
<blockquote><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">mount --bind /var/www /home</span></blockquote><span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;"><span class="Apple-style-span" style="color: #4c4c4c; font-family: monospace; font-size: 21px; line-height: 32px;"><br />
</span></span><br />
<span class="Apple-style-span" style="color: #333333; font-size: 16px; line-height: 21px;"><span class="Apple-style-span" style="color: #4c4c4c; font-size: 21px; line-height: 32px;"><span class="Apple-style-span" style="font-family: inherit;">3. Create a symlink between the 2 directories, similar solution as #2, but a different command. You first have to move the original /var/www directory, then create the link</span></span></span><br />
<span class="Apple-style-span" style="color: #333333; font-size: 16px; line-height: 21px;"><span class="Apple-style-span" style="color: #4c4c4c; font-size: 21px; line-height: 32px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></span></span><br />
<blockquote><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">rm -fr /var/www</span></blockquote><blockquote><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">ln -s /home /var/www</span></blockquote><span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;"><span class="Apple-style-span" style="color: #4c4c4c; font-family: monospace; font-size: 21px; line-height: 32px;"><span class="Apple-style-span" style="color: #333333; font-family: Verdana; line-height: 29px;"><br />
</span></span></span><br />
<span class="Apple-style-span" style="color: #333333; font-family: Verdana; font-size: x-large;"><span class="Apple-style-span" style="font-size: 21px; line-height: 29px;">Enjoy</span></span><br />
<span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px;"><span class="Apple-style-span" style="color: #4c4c4c; font-family: monospace; font-size: 21px; line-height: 32px;"><span class="Apple-style-span" style="color: #333333; font-family: Verdana; line-height: 29px;"><br />
</span></span></span>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com2tag:blogger.com,1999:blog-31561143.post-71579637039783702452010-04-12T23:30:00.000-07:002010-04-12T23:31:44.082-07:00How to change hostname in Ubuntu (for Virtualmin)In Ubuntu you can check your hostname with the command<br />
<br />
hostname -f<br />
<br />
And for the purpose of installing webmin, you would need a hostname that is searchable and resolve to your IP address. Therefore you can set it by editing<br />
<br />
sudo pico /etc/hostname<br />
sudo pico /etc/host<br />
<br />
and replacing the OLDNAME with the NEWNAME in these files. This will take effect after a reboot. However to set it immediately, you can simply type<br />
<br />
sudo hostname NEWNAME<br />
<br />
this should fix your hostname, and it will be much easier to install VirtualminJohn Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-86832770482361652522010-03-30T09:31:00.000-07:002010-03-30T09:32:07.574-07:00boot0: errorWhen ever one tries to install a multiboot OSX Window box, you are most likely to run into the<b> boot0:error</b>, or a <b>b0 error</b>. what this means is that the partition that you intend to boot into did not have the active flag set. Most of these errors arise after you have installed 2 systems and it wouldn't boot into either or both. This can be easily fixed by the following steps<br />
<br />
1. Boot with mac OSX boot disc<br />
2. Goto Utilities and enter Terminal<br />
3. in the terminal type<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">diskutil list</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></b><br />
Make a note of which disk has the partitions(rdisk0, rdisk1, etc)<br />
<br />
4. type<br />
<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> </span><b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">fdisk -e /dev/rdisk0</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></b><br />
you might see the MBR error, don't worry about it.<br />
<br />
5. type<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">p</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></b><br />
and you should see all your partitions. At this point you would want to figure out which partitions you want to boot into first. If you have 2 partitions then flag the one you want to be primary last.<br />
<br />
For example, you have 2 partitions, 1 and 2.Partition 2 holds windows 7 and 1 holds OSX Snow Leopard. You want to boot into OSX boot loader to choose which parition to boot, in this case you want to flag the windows partition active first, then flag the OSX partition active,<br />
<br />
6. so you would type<br />
<br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> f 2</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> write</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> y</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> f 1</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> write</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> y</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> exit</span></b><br />
<b><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></b><br />
This would fix your problem, eject your CD and reboot.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com6tag:blogger.com,1999:blog-31561143.post-53584171976602012772010-01-12T06:24:00.000-08:002010-01-12T06:24:42.809-08:00Kapow: Creating DataModel and Database Link<span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;">Kapow: Creating DataModel and Database Link</span><br />
<div style="margin-bottom: 0px; margin-top: 0px;"><div style="margin-bottom: 0px; margin-top: 0px;"><br />
<div style="margin-bottom: 0px; margin-top: 0px;">Kapow robosuite 6.4 works with many database, in this example I will use mysql.For mysql, you need to download and install this file</div><div style="margin-bottom: 0px; margin-top: 0px;"><span style="font-family: arial, sans-serif;"><i><span style="font-size: x-small;"><br />
</span></i></span></div><div style="margin-bottom: 0px; margin-top: 0px;"><span style="font-family: arial, sans-serif;"><span style="font-size: x-small;"><i>mysql</i>-<i>connector</i>-java5.0.5-bin.jar</span></span></div><div style="margin-bottom: 0px; margin-top: 0px;"><span style="font-family: arial, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></div><div style="margin-bottom: 0px; margin-top: 0px;">Make sure you have set this up properly. Google is your friend. </div><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-top: 0px;">Create a database in your mysql. To do that, I log into my xamp and I did it in phpmyadmin.</div><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-top: 0px;">After you have done that, open <b>Kapow</b> <b>Settings </b>then goto database Connection Add your database by selecting </div><div style="margin-bottom: 0px; margin-top: 0px;"> Name </div><div style="margin-bottom: 0px; margin-top: 0px;"> Host<br />
</div><div style="margin-bottom: 0px; margin-top: 0px;"> Database Type<br />
</div><div style="margin-bottom: 0px; margin-top: 0px;"> Name and Password<br />
</div><div style="margin-bottom: 0px; margin-top: 0px;"> if using utf8</div><div style="margin-bottom: 0px; margin-top: 0px;"> goto advanced and type "utf8" in the Character Encoding Field</div><div style="margin-bottom: 0px; margin-top: 0px;"> I would also add this line when creating database at the end </div><div style="margin-bottom: 0px; margin-top: 0px;"> DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<br />
</div><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-top: 0px;"> Click on "test Connection" to see if it works</div><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-top: 0px;">Start <b>Robomanger</b> and it will ask if you want to add the new database into use, answer yes and all basic data type will be added to that database.</div><div style="margin-bottom: 0px; margin-top: 0px;">If it doesn't get added automatically, then select <b>Database</b>-><b>Select Database to use</b> and find the database you recently added. This will trigger the program to check if the required tables are there, if not you will be asked and the tables will be added automatically.</div><div style="margin-bottom: 0px; margin-top: 0px;"><div style="margin-bottom: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-top: 0px;"><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-top: 0px;">In Kapow you have to have a Data Model before you can load anything. You need to create a Data model, similar idea to a Class in the C language. Make sure you have data model ready or use existing ones. You can do that in <b>Kapow </b><b>ModelMaker </b></div><div style="margin-bottom: 0px; margin-top: 0px;">Then goto <b>Tools </b>-><b> Create Database Table</b>, you should now be able the choose the new database you just created.</div><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div></div></div><div style="margin-bottom: 0px; margin-top: 0px;"></div><div style="margin-bottom: 0px; margin-top: 0px;">If your robomaker is opened, save you work and close the program. Restart the program and now you will be able to choose your data model as the output type or use your database as storage in <i>debug mode. <b>Warning</b>: </i>Without restarting robomaker won't be able to see the newly added database.</div><div style="margin-bottom: 0px; margin-top: 0px;"><br />
</div></div></div>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-51785006309610983752009-12-22T20:28:00.000-08:002009-12-22T20:28:51.534-08:00How to update Kext in MacsMac 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. <br />
<br />
<br />
<br />
<br />
To update a kext:<br />
<br />
cd /path/to/new/kext (put your downloaded kext path here)<br />
<br />
cp -R KextName.kext /System/Library/Extensions<br />
<br />
next you need to fix permissions so the kext can be executed by OS user (root/system)<br />
<br />
<i>cd /System/Library/Extensions</i><br />
<br />
<i>chmod -R 755 KextName.kext</i><br />
<br />
<i>chown -R 0:0 KextName.kext </i> (this will set the ownership on files to system user (root))<br />
<br />
<i>rm /System/Library/Extensions.mkext</i> (this will reset all kext caching done by OSX)<br />
<br />
<br />
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. <br />
<br />
EnjoyJohn Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-56313069188414393972009-12-21T07:58:00.001-08:002010-04-15T01:28:06.443-07:00Asus w7j OSX86 settingsAsus w7j OSX86 settings 10.5.7<br />
<div><br />
These are the settings used to install IPC distro on my Asus w7J.<br />
<br />
</div><div>Video: <span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;">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.</span><br />
<span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"><br />
</span></div><div>Chipset: ICHX</div><div>Audio: ALC861 </div><div>Ethernet:Realtek R1000</div><div>Fix: PS2/keyboard</div><div>PowerMgmt: all</div><div>Video Card:Nvidia Geforce Go 7400<br />
Wifi (3945): works with new <a href="http://redirectingat.com/?id=292X457&url=http%3A%2F%2Fprojectcamphor.mercurysquad.com%2F&sref=http%3A%2F%2Fwiki.osx86project.org%2Fwiki%2Findex.php%2FHCL_10.6.2%23NVIDIA">driver </a>for Snowleopard only.<br />
<br />
<br />
These few links might be useful read for further study (will update)<br />
<a href="http://www.ihackintosh.com/2009/02/what-is-kextwhere-is-kext-how-to-install-kext/">Basics of Kext and installation of it (drivers for Mac)</a></div><a href="http://ihackintosh.blogspot.com/2008/09/how-to-add-osx86-to-xp-vista-grub-boot.html">Dual boot </a><br />
<div><br />
</div><div><a href="http://video.aol.fr/video-detail/the-osx86-dualboot-tutorial-chameleon-rc3-fix-boot0-erroreasybcd-bootthink-and-pc-efi/3698592651">Video Chameleon fix boot0<br />
</a></div><br />
<div><br />
</div><div><div><br />
</div>Snow leopard 10.6.2</div><div>For the Asus W7J, the <a href="http://blog.johnso.org/2009/11/snowosx-universal-v36-1062.html">SnowOSX Universal v.3.6 </a>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.</div><div><br />
<a href="http://www.infinitemac.com/f57/the-ga-ep43-ud3l-motherboard-and-how-i-t4856/">Solution 1</a><br />
<a href="http://forum.netkas.org/index.php?action=printpage;topic=222.0">Solution 2</a><br />
<a href="http://www.insanelymac.com/forum/index.php?showtopic=200579">Solution 3 - The simple line of Graphicsenabler=yes would suffice. </a></div><div><br />
<br />
Seems like in 10.6.2 there is a problem with the VoodooHDA.kext and NVInject.kext</div>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-83544805674959273612009-12-16T20:25:00.000-08:002009-12-16T20:29:04.267-08:00Chromium OS install and boot from USB from Windows or MacGoogle 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.<br />
This is what you will need<br />
<br />
Computer that can boot with USB thumb drive<br />
USB with 4GB of space, new version only requires a 1 GB drive. <br />
<br />
<br />
A version of pre build Chromium OS - I will show you where to find it.<br />
<br />
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 <a href="http://chromeos.hexxeh.net/windows.html">Windows Version</a> or <a href="http://chromeos.hexxeh.net/mac.html">Mac</a> instructions to write that image to your USB drive.<br />
<br />
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.<br />
<br />
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.<br />
<br />
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 <ctrl> <alt> 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 <ctrl>-<alt> T. This way you would have better access to most of the basics of your computer. </alt></ctrl></alt></ctrl><br />
<br />
Have fun hacking.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-79178647747912165282009-12-15T09:50:00.000-08:002009-12-15T09:55:04.902-08:0064bit boot for Snow LeopardHow do you know if your Snow Leopard upgrade is booting in 64 bit? Try these commands<br />
<br />
<span style="font-family: monospace, sans-serif; font-size: 10px; line-height: 18px;">ioreg -l -p IODeviceTree | grep firmware-abi</span><br />
<br />
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.<br />
<br />
To check if you are running the 64 bit Kernel, Type<br />
<span style="color: #333333; font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; font-size: small;"><span style="font-size: 13px; line-height: 19px;"><br />
</span></span><br />
<span style="color: #333333; font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; font-size: 13px; line-height: 19px;">uname -v</span><br />
<br />
in terminal and if your response contains the string <span style="color: #333333; font-family: 'trebuchet ms', helvetica, hirakakupro-w3, osaka, 'ms pgothic', sans-serif; font-size: 13px; line-height: 19px;">x86_64<span style="color: black; font-family: Times; font-size: medium; line-height: normal;"> in the output that means you are in luck.</span></span>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-29245118260997738972009-12-14T04:40:00.000-08:002009-12-14T05:18:41.369-08:00How to use your Iphone and Tomato to turn on your computer remotely without going to the app storeSo 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<br />
<br />
<br />
<ul><li>A Router with <a href="http://en.wikipedia.org/wiki/Tomato_(firmware)">Tomato </a>Firmware installed</li>
<li>A computer with a LAN card that supports Wake-On-Lan</li>
<li>Iphone/Ipod Touch or any phone with Wifi and a web browser ( I haven't tested others yet)</li>
</ul><br />
<br />
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.<br />
<br />
1. Install and configure tomato to work properly<br />
<br />
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.<br />
<br />
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.<br />
<br />
4.If you have used this computer extensively on your tomato router, it should remember the Mac address of your computer. <br />
<br />
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.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_yHXEFOM_5vo/SyYxaX8c0AI/AAAAAAAAJN0/5bVChIcHers/s1600-h/tomato_WOL.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="http://2.bp.blogspot.com/_yHXEFOM_5vo/SyYxaX8c0AI/AAAAAAAAJN0/5bVChIcHers/s320/tomato_WOL.jpg" width="320" /></a><br />
</div><br />
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.<br />
<br />
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.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com3tag:blogger.com,1999:blog-31561143.post-20408327398693497672009-12-09T19:13:00.000-08:002009-12-09T19:13:23.516-08:00How to setup a web server with Ubuntu<a href="http://net.tutsplus.com/articles/news/how-to-setup-a-dedicated-web-server-for-free/">Here</a> shows a really nice picture walk through tutorial on how to setup a web server. <br />
<br />
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. <br />
<br />
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.<br />
<br />
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 beginnersJohn Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-55708874004870797662009-12-01T21:53:00.000-08:002009-12-01T21:53:28.354-08:00How to access mysql from outside of localhost 127.0.0.1 in XamppXampp 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.<br />
<br />
Navigate to your Xampp installation directory, then goto the mysql/bin directory, in my case it is <br />
C:\xampp\mysql\bin<br />
<br />
open the file<br />
<br />
my.cnf<br />
<br />
<br />
Then find the line bind-address:127.0.0.1<br />
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.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-77103857747804321132009-11-23T08:08:00.001-08:002009-12-15T09:59:29.328-08:00SnowOSX Universal v3.6 (10.6.2)<a href="http://i49.tinypic.com/2cgymc7.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img alt="" border="0" src="http://i49.tinypic.com/2cgymc7.jpg" style="cursor: hand; cursor: pointer; display: block; height: 426px; margin: 0px auto 10px; text-align: center; width: 328px;" /></a><br />
<span style="font-weight: bold;"><br />
UPDATE: On the russian site, it cites support for AMD, ATOM 330, Pentium 4 (D), Celeron CPUs, this is great news.<br />
Also support for Samsung R-560 (R-310, R-610... etc.) </span><br />
<b>I got this to work on my Asus W7J, installed on a 16GB USB thumb drive. Running 64 Bit EFI Kernel too.</b><br />
<br />
<br />
The new version of the assembly for single-layer DVD, which is built on the basis of Retail Snow Leopard 10.6 Update 10.6.2 Safari 4.04. An assembly can be installed on GUID, and at the Mbr. In the assembly immediately included Russian localization.<br />
<br />
Extras. information: from the assembly removed all packages with drivers for printers, AdditionalSpeechVoices, other languages<br />
<br />
The contents of the folder Customise<br />
- PC EFI 9.4 - boot-9-4 by Netkas<br />
or choice<br />
- PC EFI 10.5 - Chameleon 2 RC3 (r658) PC EFI 10.5 by Netkas<br />
- NullCPUPM - blocker (disabler) for IntelCPUPowerManagement<br />
- PlatformUUID - Error 35 fix<br />
- FakeSMC<br />
- IOATA Kernel Panic fix - 32/64-bit IOATAFamily.kext from Leo 10.5.8 (compiled by Slice)<br />
- EvOreboot - Restart and Shutdown fix<br />
- EvOSpeedStep - Power Management for Core i7<br />
- EvOenabler - ATI video injector<br />
- SMBIOSResolver - only for PC EFI 9.4!!!<br />
- Legacy AHCI - 32/64-bit Legacy kext for Intel AHCI (SATA)<br />
- Legacy ATA - 32/64-bit Legacy kext for Intel ATA (IDE)<br />
- Legacy JMicron ATA - 32/64-bit Legacy kext for JMicron ATA (IDE)<br />
- PS / 2 - kekst interface PS / 2<br />
- Rosetta - support for legacy applications<br />
- ATools - a folder with a set of office utilities and drivers<br />
<br />
System requirements: PC with a processor Intel SSSE3 (not to be confused with SSE3!)<br />
Year: 2009<br />
Version: 3.6<br />
Platform: PC<br />
Language: English Russian<br />
Tabletka: Not required<br />
Size: 4.71 Gb<br />
Checksum:<br />
MD5: 5d76a853b7d76d99e48f0fa1762933fd<br />
<br />
<a href="http://www.tinydl.com/software/111102-mac-os-x-snow-leopard-universal-v36-1062.html#ixzz0XhQow7Oa">Read more</a><br />
<br />
Currently not on the bay or the nova.<br />
<br />
Download from these links below. Apparently the other sites included were either not available or it is a paying download service.<br />
<br />
http://hotfile.com/dl/18438462/9060fd3/SnowOSX3.6.part01.rar.html<br />
http://hotfile.com/dl/18438637/72892f3/SnowOSX3.6.part02.rar.html<br />
http://hotfile.com/dl/18438908/230262f/SnowOSX3.6.part03.rar.html<br />
http://hotfile.com/dl/18439140/81b3032/SnowOSX3.6.part04.rar.html<br />
http://hotfile.com/dl/18439356/b585762/SnowOSX3.6.part05.rar.html<br />
http://hotfile.com/dl/18438428/a5a1c8e/SnowOSX3.6.part06.rar.html<br />
http://hotfile.com/dl/18438588/3a02c05/SnowOSX3.6.part07.rar.html<br />
http://hotfile.com/dl/18438860/2a2e7b1/SnowOSX3.6.part08.rar.html<br />
http://hotfile.com/dl/18439183/a6f7460/SnowOSX3.6.part09.rar.html<br />
http://hotfile.com/dl/18439408/2037804/SnowOSX3.6.part10.rar.html<br />
http://hotfile.com/dl/18438383/2b0146a/SnowOSX3.6.part11.rar.html<br />
http://hotfile.com/dl/18438657/b33517f/SnowOSX3.6.part12.rar.html<br />
http://hotfile.com/dl/18438938/c0f3eea/SnowOSX3.6.part13.rar.html<br />
http://hotfile.com/dl/18439150/98ef300/SnowOSX3.6.part14.rar.html<br />
http://hotfile.com/dl/18439360/2cd8681/SnowOSX3.6.part15.rar.html<br />
http://hotfile.com/dl/18438577/27d052b/SnowOSX3.6.part16.rar.html<br />
http://hotfile.com/dl/18438844/8563e23/SnowOSX3.6.part17.rar.html<br />
http://hotfile.com/dl/18439054/cd757f5/SnowOSX3.6.part18.rar.html<br />
http://hotfile.com/dl/18439182/05d7168/SnowOSX3.6.part19.rar.htmlJohn Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-21773727105329247822009-11-22T18:58:00.001-08:002009-11-23T07:43:40.354-08:00Dual Booting windows 7 and Mac OSX Hackintosh with bootthink<a href="http://www.apple163.com/">Bootthink</a> is a relatively new bootloader created by a Chinese hacker. However it sometimes be easier to use than the traditional Chameleon. This is what you have to do. One very interesting aspect is that you can install this onto a USB Drive. By doing that you experiment with different settings before you install to your real system, thus not taking any chance of screwing your system.<br /> <br /><br />1. Get yourself a copy of Ideneb, IPC or iATKOS and burn it to disc.<br />2. Boot that up in your computer and goto Disk Utilities<br />3. Make 2 partitions, first Mac Extended, and 2nd partition use a FAT<br />4. Install OSX into the Mac Extended partition. (I would assume you already know how to do that, for any problems go to <a href="http://www.insanelymac.com/">insanelymac </a>and search first, if you cannot find what you are looking for ask nicely, they are really helpful.)<br />5. After your mac is booted and running smoothly, pop in the Windows 7 install Disc and boot with it.<br />6. Make sure you do not re-partition your drive, format it with NTFS, and click continue. <br />7. You can find windows 7 loader from google.<br />8. Download Boot-think(2.3.18 is the newest version at the time of this article) and install the windows version with the .exe and reboot. Make sure you run as administrator.<br />9. Boot into Windows 7 and goto "Darwin" folder. Once you are in there, goto the "MBR" folder, run "setupMBR.bat" as administrator. <br />10. Enjoy<br />It should already work.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-3694316618868595452009-09-21T23:21:00.000-07:002009-09-21T23:24:30.704-07:00Free Iphone Ipod touch paper stand<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://sidxx.files.wordpress.com/2009/09/img_00371.jpg?w=510&h=765"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 509px; height: 765px;" src="http://sidxx.files.wordpress.com/2009/09/img_00371.jpg?w=510&h=765" border="0" alt="" /></a><br />Here is a free paper Iphone Ipod stand that you can make yourself at home. Nice and easy huh?<br /><br /><a href="http://www.dessinemoiunobjet.com/iphone-paper-dock-stand/template_iphonepaper.pdf">http://www.dessinemoiunobjet.com/iphone-paper-dock-stand/template_iphonepaper.pdf</a>John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com5tag:blogger.com,1999:blog-31561143.post-84418132998349948262009-09-05T22:26:00.000-07:002009-09-05T22:30:35.041-07:00Difference between Ophone SDK and Android SDKChina Mobile has announced their own version of the online shop, it's dubbed the mmarket. This is the main platform for they new line of phones based under the new Ophone name. As most has suspected the Ophone is really just a repackaged Android platform with a minor tweak. First as of now the Android SDK is up to version 1.5, however the Ophone (after days of this major marketing event and product roll-out), is still sitting at version 1.0. There are a few functions added onto it, it is suspected that these functions are possibly used for the billing since China mobile bills their online payment through their phone bills.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-91785142659008019782009-09-05T22:15:00.000-07:002009-09-05T22:25:12.777-07:00Zoo extension how to customize your own elementsYootheme zoo is a very powerful extension to the joomla CMS. In Zoo everything is arranged from the base component of Elements, and if you need your own element that is not listed with Zoo then you have to create it yourself and example would be adding Google map to it. Yootheme gives a fairly good starting point as to how to create a new Helloworld Document <a href="http://zoo.yootheme.com/documentation/item/root/develop-your-own-hello-world-element">here</a>. <br /><br /><a href="http://zoo.yootheme.com/documentation/item/root/develop-your-own-hello-world-element">http://zoo.yootheme.com/documentation/item/root/develop-your-own-hello-world-element</a><br /><br />There is a simply way that I started editing code for this is to add code in the display field. Where it is asked to display it in either item view or category view you can inject php code into it to do the things that you want. In this example you can insert the Google map php code into that section thus you can display the google map in either the category view or item view. I am sure there is an easier or neater way to do it, but this is the most straightforward method to get your site working under yootheme zoo and joomla.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0tag:blogger.com,1999:blog-31561143.post-38685197416735733142009-08-10T09:39:00.000-07:002009-08-10T09:46:27.215-07:00Lenovo Ophone will be out as early as next month<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_yHXEFOM_5vo/SoBNnXT5bhI/AAAAAAAAIas/smRBkjL1qCQ/s1600-h/1.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://1.bp.blogspot.com/_yHXEFOM_5vo/SoBNnXT5bhI/AAAAAAAAIas/smRBkjL1qCQ/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5368376094493339154" /></a><br />The Chinese version of the Ophone reportedly will be out in China as soon as September. The image of the phone had been leaked since a few months ago. China Mobile will be the carrier of choice of this phone, and this will be an Android powered phone. According to sources, China Mobile is willing to give 50% of the price rebate of the phone, and after that rebate, phones will cost RMB $2000, or roughly $300 US dollars.<br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_yHXEFOM_5vo/SoBNtEdKExI/AAAAAAAAIa0/JvaVUlzw0oY/s1600-h/2.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://1.bp.blogspot.com/_yHXEFOM_5vo/SoBNtEdKExI/AAAAAAAAIa0/JvaVUlzw0oY/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5368376192511120146" /></a><br /><br />This phone will carry the usual 800x480 screen, along with 3MP camera. 3.5 inch touch screen, with no physical keyboard.John Sohttp://www.blogger.com/profile/15317303546508597301noreply@blogger.com0