Showing posts with label nano. Show all posts
Showing posts with label nano. Show all posts

Thursday, January 6, 2011

Making /mnt/stateful_partition exec friendly

Finally found out how to make the /mnt/stateful_partition exec permission persistant.

open up a shell
CTRL-ALT-T
shell
sudo su
open up /sbin/chromeos_startup - i'll use nano, as I have a tutorial for installing it
nano /sbin/chromeos_startup

Now, when scrolling around in nano, the screen will not refresh properly when scrolling up/down pages, but, we can press CTRL-L to make it redraw the screen

While in nano, CTRL-C will give you you're current cursor position.
We want to edit lines 51, 58, and 67.

Remove noexec, from each of those lines

The line should then look something like .... -o nodev,nosuid .....

You can also remove the ,nosuid if you'll be wanting to install and SUID programs on the stateful partition.


Save the file by pressing CTRL-X and answering Y and pressing enter for the filename.

Reboot, and your stateful partition should be remounted with the correct options from this point forward.

Tuesday, December 28, 2010

Installing the Nano text editor

I've discovered that the stock cr-48 setup can use binary packages from Arch Linux.
This is how to install the Nano editor from arch. I'll provide two different methods, depending on if you want to pull the package from the repository yourself, or use my repackaged binary.

**You need to follow the instructions in the Notes post first, to make the partitions writeable

* Installing from an Arch repo.
You'll need to download the package to a linux machine of your choosing. You can find the package at: http://www.archlinux.org/packages/core/i686/nano/

The package is compressed as a .tar.xz, which eluded me for the longest time.
To extract the package use XZ Utils on Linux
The syntax is: xz -d filename

Once you have decompressed the file from it's .xz container, you will be left with a .tar file, which the cr-48 has tools to open.

Now we need to get the file to the CR-48.
If you have a ssh server on your linux box, we can use sftp to retrieve the file
sftp user@host If you don't have an ssh server, you can upload the file to some public webspace, and wget the file from the cr-48

Once the file is on your cr-48, you can tar -xvf it, and copy the nano exec from the bin directory into /usr/bin (which is in the path) and nano should run flawlessly.



** If you don't want to go through all that work, open up a shell on the cr-48, and wget http://www.calliesfarm.com/chromeos/nano.tar.gz then, tar -zxvf nano.tar.gz and move the nano exec to /usr/bin