Friday, May 13, 2011

Convert your Ubuntu into Chrome OS

Chrome OS on Ubuntu

Yes you read it right!! This tutorial will tell you that how you can convert your Ubuntu machine into Browser only desktop. You may have heard the latest news that first NetTop (Chrome Netbooks) by Acer and Samsung are being launched in June.

But If you could make your own system behave exactly the way Chrome OS behaves, wouldn't that be amazing?  I was also intrigued by the same fact. After all Chrome OS is just a browser on top of Gentoo or Ubuntu [wiki:Talk] (I am sorry Chrome OS developers I know you have worked hard a lot to make Chrome OS complete OS and is very different from Google chrome/Chromium but for a laymen it is just a browser on top of a Linux).

Now my basic idea was, if we could run Google Chrome just at the starting of computer and nothing else is started we could save a lots of ram and can have access to Internet within seconds. So without any further delay lets see how we can configure Linux to achieve this.






Step 1: Start Autologin
You have to auto login to system so that you can access browser as fast as you can. To start auto login:
Login Screen
Go to:System->Administration ->Login ScreenUnlock: unlock the system by typing in your password.

Select: Click on radio box where it is written "Login as ******** Automatically"

Close it







Step 2: Install Openbox Search and install "Openbox" from Ubuntu Software Center.Or

simply type in terminal

sudo apt-get install openbox openbox-themes







Step 3: Install fbpanel and PCManFM Fbpanelis one of the lightest panel yet it is enough powerful to let you work in peace.To install fbpanel in Ubuntu

Search and install "fbpanel" and "PCManFM" from Ubuntu Software Center.

Or

simply type in terminal

sudo apt-get install fbpanel pcmanfm







Step 4: Install Chromium Search and install "chromium-browser" from Ubuntu Software Center.Or

simply type in terminal

sudo apt-get install chromium-browser







Step 5: Leave rest on me Download this file : chrome-session.tar.gzmake this install.sh file executable using

chmod +x install.sh

and install chrome-session by typing

./install.sh in terminal

Thats it now you can logout the computer and choose chrome-session at login (you can find it at the bottom of login screen). You should see chromium running with fbpanel at the top hidden until you move your mouse at top screen.

I will try to experiment more on this, meanwhile you can try to run a pure Firefox session. If you find any bug please report me as a comment here.

Here are some cool things I observed about this chrome session:

  • Access your Internet using the same nm-applet which power gnome desktop

  • Access Folders just like you open it in any other windows environment, as easy as that

  • You will find chrome market more useful in this case. Because you will have to find a web app for what you can do otherwise on your desktop.

  • Change many windows using the same old alt + tab








nm-applet in Chrome SessionFolder in chrome sessionChrome market in Chrome sessionchange active window in chrome session





Edit:

1. To revert back just close the browser. It will automatically log you out. You may then select Unity/Ubuntu classic again, just as you had selected chrome-session.

2. Here is the file if you want to enjoy firefox-session use this file firefox-session.[UPDATED]

3. If the script throws an error please post your queries in the comments. Before posting please try to start fbpanel by typing command "fbpanel", it may not run by showing some error but then you can re run the script and every thing would work perfectly.

PS: I updated firefox session file. You can use this new one. Please make sure that you have decompressed the downloaded file (you can do this by right click on the file and select extract here). Once decompressed  a folder named firefox-session would appear. using terminal go to the firefox-session folder and follow the above mentioned 5 th step.

65 comments:

  1. very good technique!

    ReplyDelete
  2. [...] - which my mind insists on reading as tooty-fruity for some insane reason – have put together a neat how-to on transforming Ubuntu into a ChromeOS-style [...]

    ReplyDelete
  3. how to revert back to ubuntu version again

    ReplyDelete
  4. I dont get the  5th step? what do i do after downloading...? whenever I type chmod +x install.sh in the terminal i get this: chmod: cannot access `install.sh': No such file or directory
    Can anybody help????????

    ReplyDelete
  5. hey and if I would like to do the same with firefox? could you tell me if it is possible and which changes are required in your wonderful guide?

    ReplyDelete
  6. just close the browser and select any other desktop environment

    ReplyDelete
  7. Yes I will upload another file to do the same for Firefox session

    ReplyDelete
  8. [...] ΔΕΙΤΕ ΑΝΑΛΥΤΙΚΟΤΕΡΑ ΣΤΟ TATAFUTA BLOG (φοβερό όνομα!) [...]

    ReplyDelete
  9. Make sure that you're in the correct directory with the terminal. I presume you downloaded the file to your Downloads folder so simply typing cd ~/Downloads and then trying the chmod command should work. If not you can always find "install.sh" in the file browser. right click it and select properties and then selecting permissions and then make sure it's marked as executable. Once you've done that you can just double click it in the file browser and select Run in Terminal. Good luck :P

    ReplyDelete
  10. [...] - which my mind insists on reading as tooty-fruity for some insane reason – have put together a neat how-to on transforming Ubuntu into a ChromeOS-style [...]

    ReplyDelete
  11. hi, using your trick, very nice, expecially using jolicloud. it would be nice to add an icon in fbpanel for pcmanfm, so one can browse his files. 

    also, i'd like to understand more about the way you arranged everything. i gave a look to the scripts, and they seem quite simple, so i don't get how you make it quit the session when you close chromium, and how you keep the alt+tab thing. Is it something done by openbox-session?

    ReplyDelete
  12. same here... "no such file or directory"

    ReplyDelete
  13. And if you uses lxpanel? it's lightweight then fbpanel (it's more customizable)

    I tested with lxpanel it's very nice, it's much better than fbpanel.

    And the associate downloaded files with pcmanfm/file roller/otherwise?

    Thanks e sorry my bad english!

    ReplyDelete
  14. Thanks for the suggestion. I would add it, in an updated version experimentation is on.
    A session is automatically logged out when the script invoking the session is exited. 
    Yes that is the feature of openbox.

    ReplyDelete
  15. firefox-session doesn't work. it contains an error, chrome instead of firefox at the beginning, but also once u fix it it keep saying "cp: cannot create regular file `/home/myaccountname/.config/fbpanel/default': No such file or directory
    cp: cannot stat `./firefox-Session.desktop': No such file or directory"

    ReplyDelete
  16. I updated firefox session file. You can use this new one. Please make sure that you have decompressed the downloaded file (you can do this by right click on the file and select extract here). Once decompressed  a folder named firefox-session would appear. using terminal go to the firefox-session folder and follow the above mentioned 5 the step

    ReplyDelete
  17. same here im getting 

    cp: cannot create regular file `/home/me/.config/fbpanel/default': No such file or directory

    ReplyDelete
  18. fbpanel or lxpanel or any panel can be used. But main point is I focused on browser only desktop. I may remove anytype of panel in next update of chrome session .

    ReplyDelete
  19. just like my computer tweaking... openbox, fbpanel, but i use wicd instead of nm-applet

    ReplyDelete
  20. How can I stop the pannel auto-hiding?

    ReplyDelete
  21. in your home folder allow seeing hidden files using ctrl + h. then find this folder structure 
    .config > fbpanel 
    there you will find default file. open it with gedit.
    findautohide = true
    change it to 
    autohide = false
    but why you want to do that ?

    ReplyDelete
  22. [...] - which my mind insists on reading as tooty-fruity for some insane reason – have put together a neat how-to on transforming Ubuntu into a ChromeOS-style [...]

    ReplyDelete
  23. [...] (you can find it at the bottom of login screen). At last, thanks to Tutafuta.com for such useful tutorial. Tags: chrome, How to, transform, [...]

    ReplyDelete
  24. cp: cannot stat `./default': No such file or directory
     I get this now.. what shud i do??? :(

    ReplyDelete
  25. Gahhhh.. i got that... i opened it.. and it sucks..! maybe some problem with my computer... but it is nothing more than the browser... : i would still recommend ... But could anyone tell me how to delete those.. i mean ... uninstall all these things, the openbox fbpanel.. etcetera etcetera ?

    ReplyDelete
  26. I think we need to set via terminal /home/user/.config/fbpanel/default I set top, transparent and center but it still stand at the bottom and not transparent or center.

    ReplyDelete
  27. Humm, I see. 

    But, and usb disks? network-manager? or the file manager? I don't see a way remove the panel =(I modified you script, and the results: http://i52.tinypic.com/1zd2fxh.pngI used the fbpanel, ejecter (for the usb-disks), pcmanfm -d (usb disk window notifier) and um fix to associate the pcmanfm for the "open with" of Chromium: http://ubuntuforums.org/archive/index.php/t-1499046.html

    And used a ambiance theme for the openbox

    ReplyDelete
  28. you need to go to /home/youtusername/path-to-where-you-extracted-chrome-session. cd to that folder and run the operation there

    ReplyDelete
  29. Hey that is nice configuration. How do you managed to get notification area with minimize:maximize:close panel??. This is exactly what we need to move this an inch closer to Chrome OS. Can you share how you did that?

    ReplyDelete
  30. Yeah! it sucks big time. But it sucks only for the users who want to do other tasks like watching movie, listening songs, playing games etc. It may be of great help for those who don't want these things or have very low configuration of desktop. It may be of great help to someones granny who knows how to run Facebook profile but gets hard time searching for things on desktop.

    ReplyDelete
  31. have you copied the default file given by me to fbpanel folder? if yes then there is some problem with fbpanel(please explain it exactly what happens).

    ReplyDelete
  32. Ouch, I used lxpanel, not fbpanel *facepalm*

    Ah, unfortunately I just let the lxpanel very close to minimize: maximize: close panel, they are not really integrated =(. It's only that impression because the color of lxpanel is the same of ambience theme.

    I'm sorry for the mistake

    ReplyDelete
  33. You want to go into the directory where install.sh is downloaded. You can do that in the terminal simply by using the "cd" command. Not "cp"

    ReplyDelete
  34. you can use Lubuntu and get there faster.

    ReplyDelete
  35. [...] OMG! Ubuntu posted one of the tutorials posted by us few days back. And the effects were amazing. Within few hours the received 1000+ [...]

    ReplyDelete
  36. [...] i.e. create a os that boots asap into a browser. If that's the case there is a tutorial at: < http://tutafuta.com/2011/05/13/conve...nto-chrome-os/ > that may be a better way to go. ,at least until the real thing comes along. Believe it or [...]

    ReplyDelete
  37. [...] here 总体效果如下图所示: 参考消息来源 [...]

    ReplyDelete
  38. THAT IS NOT THE PROBLEM.  We're in the right directory.  It simply does not work.

    ReplyDelete
  39. Got the SH to work.  Now there's no Chrome session option in GDM.  Thanks for nothing.

    ReplyDelete
  40. Dear Eric
    can you explain your problem?

    can you type this in terminal:
    whereis chrome-session
    if this is your output chrome-session:
    /usr/bin/chrome-session
    then check by typing this in terminal:
    ls /usr/share/xsessions/Chrome-Session.desktop
    if you get the same path in result then every thing is alrightthere might be some other problem otherwise try to re-run the script

    ReplyDelete
  41. I run the install.sh file in terminal after extracting and I get the message 

    cp: cannot create regular file `/home/lawrence/.config/fbpanel/default': No such file or directory

    this is doing all the above steps in ubuntu 11.04 - any hints?

    ReplyDelete
  42. Athos BacchiocchiMay 23, 2011 at 7:54 AM

    i had a similar problem, it couldn't find ~/.config/fbpanel , where the "default" file should be copied.

    I solved manually, creating the directory before launching the script.

    ReplyDelete
  43. [...] Para sair do chrome-session, basta clicar no botão fechar do Chromium que automaticamente aparece a tela de login novamente. Depois, só voltar a usar o Unity ou o Gnome. Fontes: Dicas Browser e Tutafuta [...]

    ReplyDelete
  44. [...] a tela de login novamente. Depois, só voltar a usar o Unity ou o Gnome. Fontes: Dicas Browser e Tutafuta window.fbAsyncInit = function() { FB.init({appId: "105225702901403", xfbml: true}); [...]

    ReplyDelete
  45. [...] 参考消息来源 分类: 美化 标签: Chrome OS 评论 (RSS)  |  引用  |  Permalink [...]

    ReplyDelete
  46. That's joli os, not chrome os.

    ReplyDelete
  47. You can but this was a nice attempt and I personally actually liked it. I prefer firefox though so tend to use that if I want a web only session. ie idea for short bursts needing web access, bit of music and some email access and a little social networks...ideal

    ReplyDelete
  48. same problem as eric...checked everything you mentioned, getting the same path too but no chrome session option to log into...any suggestions?

    ReplyDelete
  49. Bloomin' marvellous post. I've been trying to get an old Webbook up and running again for the kids using JoliOS or ChromeOS to no avail. However, I CAN get ubuntu up and running. This is the answer I've been looking for :-D

    ReplyDelete
  50. Thanks, very useful post. I just tried with a fresh Ubuntu 11.10 install and I could not get the Chrome session to stick (I had to keep manually switching from Unity to Chrome) until I ran this command:

    sudo /usr/lib/lightdm/lightdm-set-defaults --session Chrome-Session

    After that it worked.

    The startup speed improvement is nice. I'm curious if the "Startup Applications" are only run when the Unity shell is started. If startups also occur with the Chrome/Firefox shells suggested here, then it's worth removing unnecessary startup apps to improve performance even further.

    ReplyDelete
  51. anybody know how to make it default to chrome-session at automatic login?

    ReplyDelete
  52. Hello. I would like to copy this in a forum for education purposes. :) will give due credit and will remove if asked.

    ReplyDelete
  53. Hi! No probs as far as you give alink back

    ReplyDelete
  54. Is it possible to create a live image of Chromium and the profile it's using in its virgin state?

    I'm trying to find a way to ditch all the synced data stored in the profile and google profiles, etc on logoff. If I can get it to work, then I can use this as a Google cloud computer lab workstation.

    ReplyDelete
  55. Does this still work? I would love to use it, but can't get it to work in bodhi.  When I try to run install.sh, I get error message "command not found"

    ReplyDelete
  56. Has anybody figured out step 5?

    ReplyDelete
  57. If we install freenx on top of this - can this be used as remote web browser desktop so that multiple users can connect and browse the internet ?

    ReplyDelete