Thursday, December 23, 2010

Make CTRL+ALT+T go straight to Bash instead of the limited Crosh shell

This tip comes courtesy of ngharo on the Chromium OS discuss mailing list, If you know Linux and you've rooted your Cr-48, chances are that when you hit CTRL+ALT+T you're headed for a Bash shell and the limited Crosh shell just leaves you with the additional step of needing to type "shell" each time. Now you can make CTRL+ALT+T go straight to Bash:

  1. Become root.
  2. Run the following commands:
    1. /usr/share/vboot/bin/make_dev_ssd --remove_rootfs_verification
    2. reboot       (Cr-48 will reboot and you'll need to re-login and get back to root)
    3. mount -o remount,rw /
    4. mkdir /usr/local/bin
    5. cat /sbin/window_manager_session.sh | sed -e 's/\/usr\/bin\/cros-term/\/usr\/local\/bin\/bash-term/' > /tmp/window
    6. cat /usr/bin/cros-term | sed -e 's/\/usr\/bin\/crosh/\/bin\/bash/'  > /tmp/bash
    7. sudo cp /tmp/window /sbin/window_manager_session.sh 
    8. sudo cp /tmp/bash /usr/local/bin/bash-term 
    9. sudo chmod +x /usr/local/bin/bash-term /sbin/window_manager_session.sh
Now when you press CTRL+ALT+T, you should drop right to a lovely little Bash shell saving you 6 precious keystrokes (S, H, E, L, L, and Enter). Be sure to enjoy your newfound free time.