andLinux andWindows7
loading...
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 cannot open display (4)
- Gtk-WARNING **: cannot open display: 192 168 11 1:0 0 (4)
- andlinux windows 7 firewall (4)
- andlinux (4)
- andlinux windows 7 (3)
- andlinux service could not open display (3)
- Gtk-WARNING **: cann ot open display: 192 168 11 1:0 0 (2)
- andlinux terminal permission denied (2)
- windows 7 andlinux (2)
| Print article | This entry was posted by admin 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.
Play Kaun Banega Crorepati Flash Game ( kbc6 practice ), India’s favorite KBC game
about 3 months ago - 757 comments
WARNING: This game is very addictive ! People have wasted days together, and I bet you cant stop at one game. This flash game is a simulation of the actual TV show and includes the audio samples from the real game show. The questions are randomly selected from a database of 1200 entries which range
Titanium Mobile vs Sencha Touch
about 1 year ago - 8 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 1 year ago - 2 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 1 year ago - 158 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 1 year ago - 1 comment
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:
Google talk animated/dynamic status message
about 1 year ago - 1 comment
Scrolling status messages and google shared status pseudo menu for users to select their dynamic status. Works on the default google talk client. Built using PHP 5 command line scripting.
Textoo : iPhone (and now Android) app to send free SMS using web gateways
about 1 year ago - 3 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 1 year ago - No 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 1 year 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 1 year 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


about 1 year 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 1 year 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 11 months ago
I think you can run Compiz using andLinux.
about 11 months ago
I think you can run Compiz using andLinux.