Thứ Ba, 31 tháng 12, 2013

Try Chrome OS Canary Without Risking Your Chromebook's Stability

There's been some buzz recently about Kenny Strawn's discovery of Chrome OS Canary (nice work Kenny!). If you're not aware, Canary is a version of Chrome OS that is even more up to date with code changes and new features than dev channel. So it goes stable --> beta --> dev --> canary with stable being the most stable, reliable and least often updated version and canary being the least stable and least reliable but most often updated. A Canary version of the Chrome browser has been available and can be run in parallel with other Chrome channels on Windows and Mac for some time but there's been no publicly known equivalent for Chrome OS until Kenny's discovery and normally, your Chromebook is only on one channel of Chrome OS, switching between channels meant a USB recovery or powerwash.

So Canary is going to give you the latest and greatest Chrome OS features weeks or months before stable channel gets them but you sacrifice the stability of your Chromebook because Canary isn't tested nearly as heavily as stable channel is. What if we could run stable channel on our Chromebook and only boot into Canary channel when we wanted to test something or check out a new feature? Wouldn't that be handy? Well, here are instructions:
  1. To get started, make sure your Chromebook is in developer mode. Model-specific instructions can be found here.
  2. Turn your Chromebook off then turn it back on but do not login. Make sure you have a WiFi or Ethernet connection configured at this point. 3G/4G is not recommended. Press CTRL+ALT+=> (=> is the forward arrow where the F2 key would be on a PC). Do not use the normal CTRL+ALT+T method to get a shell. Use the CTRL+ALT+=> method while no one is logged in.
  3. Login as user chronos, no password is needed.
  4. Run the command:

    sudo crossystem dev_boot_usb=1

    this tells your Chromebook to allow booting from USB / SD Card. Note that not all Chromebooks can boot from all USB or SD Card ports. For example, the Acer C710 can't boot from an SD Card and the Samsung Chromebook can't boot from the blue USB 3.0 port. You'll need to use a port on your device that supports booting. When in doubt, start with one of the black USB ports and go from there.
  5. Stick a USB or SD Card of at least 8gb size in your Chromebook and run the command:

    rootdev -s -d
    you'll get output like:

    /dev/sda

    or it might say /dev/mmcblk0. Whichever it is, that is the device for your Chromebooks primary drive.
  6. Now run:

    sudo fdisk -l | grep Disk

    this will list out all drives your Chromebook sees. Your Chromebook's main drive will be listed and you'll see some devices we don't care about like /dev/mapper/blahblahblah. We're looking for the USB or SD Card you inserted (compare sizes). On an Intel Chromebook with a USB drive it's likely to show as /dev/sdb, with an SD Card it's likely to be /dev/mmcblk0. On a ARM-based Chromebook, a USB drive is likely to be /dev/sda and a SD Card, /dev/mmcblk0. Make sure you've got the right device and remember what it is for the next step.
  7. Now we can run:

    sudo chromeos-install --skip_src_removable --skip_dst_removable --skip_vblock --dst <insert /dev/whatever from above step>

    chromeos-install is a script to copy Chrome OS to another drive. Normally the script is meant to copy from a removable device to a SSD or hard drive but we're going in the reverse direction, thus we need the --skip_src_removable and --skip_dst_removable options to turn off those checks. The --skip_vblock option is needed to prevent an error message that should not matter anyway. The --dst option allows you to specify the destination device you determined in the previous 2 steps. So on my Intel-based Pixel Chromebook and using a USB drive I would run exactly:

    sudo chromeos-install --skip_src_removable --skip_dst_removable --skip_vblock --dst /dev/sdb

    this command will output some details about the install process and may spit out errors if there's trouble copying to your drive (USB drives and SD Cards fail after awhile, get a new one if you need it).
  8. When the process completes, your Chromebook will reboot. Now with the USB/SD Card still inserted, if you press CTRL+U on the keyboard at the ugly computer screen you'll boot from your new installation on the external card instead of the internal drive. You'll probably notice it's slower, USB 2.0 is very slow compared to SSDs. On first boot, the Chrome OS installation on the external drive will want to repair itself by wiping out the stateful partition (note that this is the stateful partition on your external drive, not the one on your internal drive which should remain untouched). Eventually, after a reboot, you should see Chrome OS boot to the setup process.
  9. Lets confirm we're booted off of the external device by running:

    rootdev -s -d

    this time, we should see the USB/SD Card's device listed instead of the internal SSDs so we know we're running off the external device.
  10. Now we've got a separate Chrome OS install that we can boot into at will with CTRL+U instead of CTRL+D but we need to switch it to Canary channel. That's easy enough to do by running:

    sudo update_engine_client --channel canary-channel
    sudo update_engine_client --update
    this will install the latest Canary channel update for us on the external device, again leaving the internal device untouched. Now we're up and running! Canary channel without the risk.

Thứ Bảy, 21 tháng 12, 2013

New year Gift for you! Get a Skype Premium Account worth 71.88 Euros for Free

I found a new year gift, so i would like to share with you to all my readers. Skype, one of the biggest chat clients has launched a new project called “The Skype Collaboration Project” under which it is providing free group video calling and a few other things, all for free for one entire year. The collaboration project is open for everyone to join, and get those free credits. Here is how you can get one, and enjoy the free calling, which is worth around 71 euros if you are looking to get it directly.

Here are the different advantages with the Collaboration project from Skype:

Free group video calls
Free group screen sharing
No advertising
Live chat customer support

How to Get Free Skype Credits

To get the free credits, you need to visit this page and enter your email address and check the box that says: “Tick this box to receive regular updates from the Skype Collaboration Project”.


Once done, you will just need to wait for the next 48 hours, and any time during that, Skype would send you a mail with a special voucher code to use and redeem it on the website.

You would receive a mail from Skype with the voucher code to redeem. The same mail would have the link to redeem the code. If not, directly go to skype.com/go/voucher



Enter the voucher code that you received from Skype in the mail. Then check the “I agree to the Skype Terms of Service” and click on Redeem voucher or prepaid card.



.
Once you enter, it would take you to the success page saying that the code was accepted, and it should not take more than 15 minutes for the order to be processed, but in actual it takes just 2-3 minutes and a notification appears showing that your order is processed.



Go to the Payment settings page to verify it, and you would see the voucher delivered already in the account.




So, that was quite simple. No catch, this one is directly coming from Skype thus you don’t need to run around with any special tricks because you would be a part of the Collaboration project the company is running. The best part of this is the free group video calling as well as the group screen sharing, which is something very good for the companies where online discussions are regularly done. As a part of this, Skype is also going to provide live customer support for one year, another added advantage.


NOTE Well now this offer will not last forever, make sure you redeem your code before 30th April 2014 as that's the deadline for this offer. Well hope you will enjoy this awesome offer by skype, so do like and share this post enjoy.


If like my post and it made you happy, share this with your friends :) Sharing is caring...

Thứ Ba, 15 tháng 10, 2013

ChrUbuntu for New Chromebooks: Now with more Ubuntu

Since I started ChrUbuntu back in December of 2010, it's always been necessary to utilize the Chrome OS Linux kernel with Ubuntu in order to solve some compatibility issues with the Chromebook architecture. That's changed with the Chromebook Pixel and the newer Haswell-based Chromebooks like the Acer C720 and HP Chromebook 14. Each of these models supports booting from a more traditional PC BIOS mode which makes it simple to use stock Ubuntu kernels on them.

This ChrUbuntu release is a preview that will only support x86-based Chromebooks, Pixel and newer (read: the ARM-based HP Chromebook 11 is not supported, nor are the older Acer C7, Samsung 550, etc. Use the old s9ryd script for these devices). I hope to eventually wrap this script back in to the main sr9yd ChrUbuntu install script but for now, I recommend this script on these newer devices over the old one.

Note: The trackpad is only supported with 13.10 and higher. I'm working to backport the trackpad drivers to 12.04. For now stick with 13.10 or use a USB mouse.

Here are the steps to install ChrUbuntu on a Pixel or Haswell-based Chromebook:
  1. To get started, make sure your Chromebook is in developer mode. Model-specific instructions can be found here.
  2. Start with your Chrome device turned off. Turn it on but do not login. Make sure you have a WiFi or Ethernet connection configured at this point. 3G/4G is not recommended. Press CTRL+ALT+=> (=> is the forward arrow where the F2 key would be on a PC). Do not use the normal CTRL+ALT+T method to get a shell. Use the CTRL+ALT+=> method while no one is logged in.
  3. Login as user chronos, no password is needed.
  4. As the chronos user and without having changed directories or run other commands, run:

    curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs

    Make sure you have the command exactly right. The -O and -L after curl are both capital letters. 9sgchs is all lowercase letters and numbers and would sound like "nine ess gee see aich ess" if you said it out loud. If you get a "not found" error, make sure you have Internet connectivity and you're typing the command correctly.
  5. You'll be prompted with some information about your Chromebook and the version of ChrUbuntu to be installed. Press Enter to continue.
  6. The Chrome OS stateful partition where your data and settings are stored is just short of 11gb by default (except for the Pixel which has a 32 or 64gb SSD), the script shrinks the stateful partition to make room for ChrUbuntu. You can choose to give ChrUbuntu from 5gb up to 10gb in 1gb increments (Note: If you've installed a larger SSD in your Chrome device, your max number and recommended max will be larger). I recommend not going higher than 9 as 10 leaves Chrome OS with very little free space (less than 1gb).
  7. Once you've entered a number, your hard drive will be repartitioned. After awhile it will reboot and re-initialize the stateful partition. This process takes 2-15 minutes and then the Chromebook reboots again and shows you the Welcome screen you got when you first turned on your Chromebook out of the cardboard box.

    Pro Tip: don't like Ubuntu or any of it's variants? You can stop now and plug a ready to go Linux USB Boot disk for Fedora, Debian, Mint or pretty much any other distro in the drive. Then hit CTRL+L to initiate the legacy boot. Format and install the OS to the /dev/sda7 partition and make sure GRUB is installed to /dev/sda and you should be good to go!
  8. Go through the Chrome OS setup process again until you get to the Google login page. You'll need to have a WiFi or Ethernet connection again at this point. Now follow steps 2 through 5 again. This time the script will see that you've already made room for Ubuntu and start downloading ChrUbuntu.

    Pro Tip: Here's where you can install other versions of Ubuntu! To see what options you have run:

    curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs -h

    An example custom installation would be:

    curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs -m xubuntu-desktop -u lts -a i386

    which would install the 32-bit version of Xubuntu and the latest LTS release (12.04.3 as of writing) rather than a 64-bit 13.10 Unity desktop (which is the default). Some possible flavor alternatives to Unity (-m option) are:

    default  -- ubuntu-desktop
    kubuntu-desktop
    lubuntu-desktop
    xubuntu-desktop
    edubuntu-desktop
    ubuntu-standard  -- no GUI installed

    some possible versions (-u option) are:

    lts -- latest LTS Ubuntu release, 12.04.3 as of this writing
    latest -- latest official release, currently 13.10
    dev -- unstable development Ubuntu release. Experts only! If this breaks, don't be surprised.
    12.10 -- Ubuntu 12.10 release

    the possible architectures (-a option) are:

    amd64  -- default
    i386

    the -t target desk option is completely untested right now!
  9. During the installation (within the first 5-15 minutes). You'll see a few prompts to select your encoding, locale and language. For most people, the defaults should be fine, just press Enter but change them if you'd like. Later on, you'll be prompted to decide where GRUB should be installed. YOU MUST CHECK THE BOX NEXT TO /dev/sda in order for boot to work!
  10. After all of the Ubuntu files have been downloaded, installed and configured, the script will make a few more updates and then prompt you to reboot.
  11. At the scary developer mode screen, hit CTRL+L instead of CTRL+D. You'll see ChrUbuntu start up! The username is "user" and the password is "user".
That's it! Now you can just press CTRL+L to boot ChrUbuntu (L as in Legacy, traditional OS) or CTRL+D to boot Chrome OS (D as in Default OS on Disk).

Last but least, I want to give a big thank you to +Bill Richardson, +Ron Minnich, +Stefan Reinauer and other Googlers who work on the low-level Chrome OS hardware/software and have made a truly incredible, powerful and open Chrome OS platform! Great work guys!

Thứ Sáu, 31 tháng 5, 2013

ChrUbuntu: One Script to Rule Them All!

Update: If you want to run ChrUbuntu on a Chromebook Pixel or one of the new Haswell-based Chromebooks like the HP Chromebook 14 or Acer C720, please take a look at the newer script that offers a better way to dual boot.

Update: I'm aware that the script isn't working on Cr-48s, Samsung Series 5 and Acer C700 first gen Chromebooks but no longer have any of those to do testing with. For now, use the older 12.04 script on those models and upgrade to 13.10 if you want using the normal Ubuntu upgrade instructions.

I'm excited to announce a major update to the ChrUbuntu script. This new version offers:
  • A single script that works on ALL Chrome devices including the ARM-based Samsung Chromebook.
  • A single script that can install any Ubuntu version: 13.10, 12.04.3 LTS, even the latest daily dev image. (Note: ARM Chromebook is currently limited to 12.04.3 as newer versions are broken on ARM)
  • A single script that can install UbuntuKubuntuLubuntuXubuntuEdubuntu or many other desktop variants.
  • A fully up-to-date ChrUbuntu install on boot. No more downloading hundreds of megabytes in updates after first boot.
To make all of this possible, I've rewritten the ChrUbuntu script to pull packages directly from official ubuntu.com sources rather than utilizing my own pre-configured, static image of an Ubuntu installation.


Want to say thank you for ChrUbuntu? Feel free to do so in the comments below, via PayPal or by visiting the advertisements on this blog. If you purchase a Chromebook or any other Amazon.com items using these links, you pay the same price but a portion of the cost goes to support this blog.

Ready to get started with the latest, greatest ChrUbuntu? Here are the instructions:
  1. To get started, make sure your Chromebook is in developer mode and has a developer BIOS installed. See Google's instructions for your model. Older Samsung and Acer owners should pay special attention to the Developer BIOS instructions.
  2. Start with your Chrome device turned off. Turn it on but do not login. Make sure you have a WiFi or Ethernet connection configured at this point. 3G/4G is not recommended. Press CTRL+ALT+=> (=> is the forward arrow where the F2 key would be on a PC). Do not use the normal CTRL+ALT+T method to get a shell. Use the CTRL+ALT+=> method while no one is logged in.
  3. Login as user chronos, no password is needed.
  4. As the chronos user and without having changed directories or run other commands, run:

    curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd

    Make sure you have the command exactly right. The -O and -L after curl are both capital letters. s9ryd is all lowercase letters and numbers and would sound like "ess nine are why dee" if you said it out loud. If you get a "not found" error, make sure you have Internet connectivity and you're typing the command correctly.
  5. You'll be prompted with some information about your Chromebook. You may need to run an additional command to install a developer BIOS on your Chromebook. Press Enter to continue.
  6. The Chrome OS stateful partition where your data and settings are stored is just short of 11gb by default (except for the Acer C7 where it is much larger), the script shrinks the stateful partition to make room for ChrUbuntu. You can choose to give ChrUbuntu from 5gb up to 10gb in 1gb increments (Note: If you've installed a larger SSD in your Chrome device, your max number and recommended max will be larger). I recommend not going higher than 9 as 10 leaves Chrome OS with very little free space (less than 1gb).
  7. Once you've entered a number, your hard drive will be repartitioned. After awhile it will reboot and re-initialize the stateful partition. This process takes 2-15 minutes and then the Chromebook reboots again and shows you the Welcome screen you got when you first turned on your Chromebook out of the cardboard box.
  8. Go through the Chrome OS setup process again until you get to the Google login page. You'll need to have a WiFi or Ethernet connection again at this point. Now follow steps 2 through 4 again. This time the script will see that you've already made room for Ubuntu and start downloading ChrUbuntu.

    Pro Tip: Here's where you can install other versions of Ubuntu! Just specify the preferred Ubuntu flavor and version at the end of the command:

    curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd [flavor] [version] [target-disk]

    For example:

    curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd xubuntu-desktop lts

    this will install Xubuntu and the latest LTS release (12.04.3 as of writing) rather than a 13.10 Unity desktop. Some possible flavor alternatives to Unity are:

    default  (ubuntu-desktop on x86, xubuntu-desktop on arm)
    kubuntu-desktop
    lubuntu-desktop
    xubuntu-desktop
    edubuntu-desktop
    ubuntu-standard
        (no GUI installed)

    some possible versions are:

    lts -- latest LTS Ubuntu release, 12.04.3 as of this writing
    latest -- latest official release, currently 13.10
    dev -- unstable development Ubuntu release, experts only! If this breaks, don't be surprised
    12.10 -- Ubuntu 12.10 release

    [target-disk] is the last argument (specify "default" and "latest" for the first two arguments if you just want to install the defaults to an external drive). An example installation to SD Card might be:

    curl -L -O http://goo.gl/s9ryd; sudo bash s9ryd default latest /dev/mmcblk1
  9. During the installation (within the first 5-15 minutes). You'll see a few prompts to select your encoding, locale and language. For most people, the defaults should be fine, just press Enter but change them if you'd like.
  10. After all of the Ubuntu files have been downloaded, installed and configured, the script will make a few more updates and then prompt you to reboot.
  11. You'll see ChrUbuntu start up! The username is "user" and the password is "user".
  12. Right now, you're in ChrUbuntu but if you reboot, you'll be back in Chrome OS. This is a safety feature, if ChrUbuntu won't boot, you want to be able to get back into Chrome OS to fix it. To make ChrUbuntu the default, run:

    sudo cgpt add -i 6 -P 5 -S 1 /dev/sda

    on the ARM Chromebook, replace /dev/sda with /dev/mmcblk0. The password is "user". It should be possible to run this from ChrUbuntu or Chrome OS.

    To make Chrome OS the default again, either turn off Developer Mode, or run:

    sudo cgpt add -i 6 -P 0 -S 1 /dev/sda