- Home
- About
- My work
- Photoshop poster design
- Kaun banega crorepati game (kbc2) (download the game)
- Textoo : iPhone (and now Android) app to send free SMS using web gateways
- 3ds max animation
- Multi user avatar chat based flash website for Incident 09
- Video editing / post production / audio mixing
- Joomla real estate component built using ExtJS
- Facebook cricket betting application
- Swishmax projects & Flash website for Incident 08 using Swish
- PHP-Selenium Framework for UI Automation
- PHP based CMS with chat
- Twitter reputation score
- Downloads
- Contact
andLinux andWindows7
I have been doing PHP on Windows till now, but a week back I realised that I wanted something which Windows couldnt give me. The pcntl_fork( ) function was not implemented on windows. So I had to either do PHP on a remote shell or install linux on separate partition. Remote shell wasnt a bad idea because I already had an account on freeshell.de and they had all PHP functions enabled. But there was not Gnome/KDE and I had to settle for vim. Then I decided that I will run Linux through VMware. I had tried this even before, and knew that it would be painstakingly slow.
Luckily I came across andLinux when I was googling for vmware. I thought I will give it a try .. 200 MB wont take much time. The installation was quick, just keep “next”ing and Voila , linux is installed in 5 minutes.
Trying to be smart,I selected it to run as a Manually started windows service so that it would boot up when required only. This small step made me spend a lot of time trying to fix a major issue. The issue was that , after the andLinux service is started, I cannot run any linux application which has a GUI , which actually includes even the Terminal. The error was
“Gtk-WARNING **: cannot open display: 192.168.11.1:0.0″
Googling gave a lot of links leading to a a few linux forums. But I couldnt find a fix. FInally I gave up, and thought of shutting down windows and going to bed. With a dejected heart, I clicked on the Start Menu and was trying to find the shut down button. Amidst the cluttered rack of icons, I saw the “All Programs” button highlighted. I clicked on it to see andLinux folder also being highlighted in orange. I kept clicking orange coloured links to finally reach something called Xming. Clicked on it and to my surprise every linux application started working. Later I came to know that Xming was nothing but X server for Windows. It had got disabled because of making andLinux boot manually instead of automatic. I happily went to Synaptic package manager and installed Apache,mysql , php and also gPHPEdit.
Now I have a fully working copy of linux running ubuntu 9 inside windows 7. The speed is amazing. All the linux window will appear beside you windows’ window. You can make use of linux for development only, without even booting up Linux.
Now I wanted to access my files which were in windows through andLinux. So I read the documentation on their site which said that Samba is enabled by default and can access windows shared files. But I was facing problems due to windows firewall. So I disabled firewall, and shared my entire windows partition ( with the appropriate permissions .. of course ). And executed the /etc/rc.local file. It said permission denied even after trying sudo. The problem was that my windows username didnt have a password. So I had to leave it blank in the smbpasswd file which gave a input error. So i gave my username as my password, which didnt work either. So i setup my windows username with a password and specified it in the smbpasswd file and ran rc.local again. VOILA !! it mounted and I was able to read and write to my windows partition.
Now I wanted one more thing. Remote ssh from outside my home network. SO I reached office, accesed my comp through logmein.com and starting setting ssh. Doing a ps said that sshd was running. So i tried to login to ssh from my windows machine by putting the IP as 192.168.11.150. It worked. But my router wasnt able to ping 192.168.11.150. So I tried ssh to 192.168.11.1 and the connection ws refused. So I again went to the colinux site and found out that the settings.txt file in the andLinux install folder had to be edited to add the port forwarding option through windows. The following line had to edited
eth0=slirp,,tcp:22:22/tcp:80:80
Now i restarted my windows 7. Ran the andLinux service. Then I forwarded port 22 on the router to port 22 of the windows ip (mine’s 192.168.1.90) and tried out www.canyouseeme.org for port 22 and it reported a success.
Finally I was able to access ssh from the outside world.
Now I wish I could run Beryl/compwiz on windows 7 through andLinux… that;ll be awesome.. andLinux folks- gr8 job.
(P.S: If your linux takes a long time when it tries to run local boot scripts (rc.local) , try disabling windows firewall through control panel. It worked for me )
Incoming search terms:
- xming on windows7 (6)
- andlinux (5)
- andlinux windows 7 firewall (5)
- Gtk-WARNING **: cannot open display: 192 168 11 1:0 0 (5)
- andlinux cannot open display (4)
- andlinux windows 7 (3)
- cannot connect to x server 192 168 11 1:0 0 (3)
- andlinux cannot connect to X server 192 168 11 1:0 0 (3)
- andlinux service could not open display (3)
- andlinux could not connect to 192 168 11 150 (2)
and linux, andLinux, andlinux in windows 7, andlinux performance, andlinux review, dual boot linux inside windows, freeshell, gedit in windows, issue, linux application, linux forums, linux windows unity, partition, password, pcntl for php in windows, php all functions inside windows, php extension for windows to allow forking, php fork function in windows, php functions, port, remote shell, running linux inside windows, shell, simulate linux in windows, ssh, start menu, time, ubuntu inside windows, username, virtual linux in windows 7, VMware, voila, windows 7 with ubuntu, windows service, x server
Print article | This entry was posted by Kiran Kumar on November 7, 2009 at 2:51 am, and is filed under Misc. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
Titanium Mobile vs Sencha Touch
about 14 years ago - 9 comments
I just tried out the sencha touch examples on the android 1.6 simulator and the performance is pathetic. Seems like google forgot to properly implement their javascript V8 engine onto their OS. Appcelerator’s Titanium Mobile and Sencha touch are 2 different frameworks which address a totally different set of audiences. Comparing them is like comparing…
Facebook cricket betting application
about 14 years ago - 4 comments
Developed a facebook app for placing virtual bets on cricket matches with teams made from your facebook friends. Made using PHP 5, ExtJS framework, Facebook API
Kaun banega crorepati game (kbc2) (download the game)
about 14 years ago - 300 comments
Update as of 5th June 2011 : Source code for the game has been published on this page. Now you can change the game as you wish, using Swishmax (www.swishzone.com) Update as of 20th Dec 2010 : I have been noticing quite a lot of visitors reaching this page through google search. So drop in…
3ds max animation
about 14 years ago - 4 comments
Playiing with reflection & refraction materials combined with smoke and particles became my new way to pass time. With help from the ’3dsmax 6 Bible’, I learnt a few basics. Here are some of the videos I rendered:
Textoo : iPhone (and now Android) app to send free SMS using web gateways
about 14 years ago - 4 comments
Textoo, the first iPhone/Android app I made to send free SMS to India using web gateways. Made using Titanium SDK and PHP on server side. More info at http://textoo.in
Multi user avatar chat based flash website for Incident 09
about 14 years ago - 18 comments
Website fully built on Flash CS3 & Actionscript 3, Poser,Photoshop, Google sketchup, PHP 5 – Multi user avatar based realtime chat uses PHP backend. Explore 3d map of my college , chat bot, user moderation based on XMPP etc
About
about 14 years ago - Comments Off
Hey there, My Name is Kiran Kumar (so is the name of this site) and I am a 23 yr old web developer from Mangalore, India. This blog is a place for me to share my thoughts and my contributions to the open source community. Apart from that, this website is my face on the…
Textoo: An application to send free SMS using SMS gateways (India,UAE,Kuwait etc)
about 14 years ago - 6 comments
Update : 17th July ’11 Textoo 1.0 is no more supported. Textoo Pro has reached the app store. Supports more gateways and has a lot of bonus features. Android version of Textoo is also being worked on. Click here to know more. Update : 22nd Sept ’10 A new page has been setup here for…
Flash draw-on-sand application with source (.fla)
about 14 years ago - 2 comments
Flash CS3 Source code and PHP script to export drawing to JPG. I made this flash app a year ago for my college NITK Surathkal’s cult fest Incident’s website. But I did not find time to add all the features I had thought of. The plan was to have this drawing canvas as the background…
PHP class to send SMS using free SMS gateways
about 14 years ago - 256 comments
17th Dec ’10 : Now here’s the deal. 160by2,way2sms and freesms8 offer free SMS and earn money through the ads on their website. By using this PHP script, we are bypassing their website illegally as their ad never gets shown. I hope you will keep this in mind when you use this script. If you…
about 14 years ago
Hi,
Thanks for the detailed post. I am going through the exact sequence like you have gone thru with my laptop. However, i am blocked and mounting windows share to access my Windows 7 folders. The problem is i have McAfee Antivirus installed. It controls windows firewall. I do not want to disable firewall entirely as i am connecting to internet and i need firewall. Is there a better mechanism to mount windows partition without disabling firewall. Please let me know.
Thanks,
Ramesh
about 14 years ago
In mcafee , there should be a provision to allow connections from a defined list of IPs.. called ‘exception rules’ or sth liek that. You could add that for the andLinux IP address so that all connections from within andLinux is approved by mcafee. I am not sure whether it will work, havent tried it
btw, andlinux ip is 192.168.11.150
about 13 years ago
I think you can run Compiz using andLinux.
about 13 years ago
I think you can run Compiz using andLinux.
about 11 years ago
bear grylls messer
about 11 years ago
If some one needs expert view regarding blogging and site-building after that i propose him/her to go to see this webpage, Keep up the fastidious
work.
about 11 years ago
Hi there, its nice post regarding media print, we all know media is a wonderful source
of facts.
about 6 years ago
I was pretty pleased to uncover this page. I wanted to thank
you for ones time for this particularly fantastic read!!
I definitely really liked every bit of it and
I have you saved as a favorite to check out new information on your website.