Friday, December 31, 2010

Installing a VNC Viewer, part 2

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

Open up a shell on the cr-48, and

sudo su
mkdir /mnt/stateful_partition/opt (if you haven't already)
cd /mnt/stateful_partition/opt
wget http://www.calliesfarm.com/chromeos/java.tar.gz
wget http://www.calliesfarm.com/chromeos/vncviewer.tar.gz
tar -zxvf java.tar.gz
tar -zxvf vncviewer.tar.gz
rm -rf java.tar.gz vncviewer.tar.gz
ln -s /usr/bin/java jre1.6.0_23/bin/java
mv vncviewer/vncviewer /usr/bin

after it's installed, you should be able to run

vncviewer

however, since there are no close window widgets, there's two ways to disconnect.. either navigate to the vnc server icon once connected, and tell it to disconnect you. or, kill it from the terminal.

Also, in theory, you should be able to link the java plugin to the browser plugins directory, and get java working in browser, however it doesn't work for me, and I'm not sure why at the moment.

It's got shortcomings, but it's a start.

Tuesday, December 28, 2010

Installing a VNC Viewer

WooHoo! Finally managed to wrangle a VNC Viewer onto this thing, I'm psyched.

There's an app in the webstore for VNC to a remote server, but that's not really suited for logging in to another machine on the local network.

I've coaxed java to work locally, and am able to run a java vnc client applet.

Still can't get the java plugin to work in browser however.

Detailed directions to follow in a bit

Installing Locate

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

I'm only going to give you the simple method for this one, as it has many files that need to be put in different directories

Open up a shell on the cr-48, and
sudo su
wget http://www.calliesfarm.com/chromeos/locate.tar.gz
mv locate.tar.gz /
cd /
tar -zxvf locate.tar.gz
rm -rf locate.tar.gz
after it's installed, you should be able to run
updatedb
to populate the database, and it should add a cron job to auto update the db daily

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

Notes

**You need to be somewhat versed in Linux for any of these mods.

**You need to have full shell access to use any of my tidbits here, whether this is by developer mode (which is what I did), or some other method you come up with.

While I could go and dual-boot the cr-48 into Ubuntu, I picked to leave the Chrome OS, and modify it to make it more shell friendly.


**You also need to make the root partition writable, and turn off boot verification.

sudo /usr/share/vboot/bin/make_dev_ssd --remove_rootfs_verification
sudo reboot

Then:

sudo mount -o remount,rw /
sudo mount -o remount,exec /mnt/stateful_partition

You will also need to re-run these commands after every reboot, so you may want to stick them in a shell script.


I'd like to get a full build system on it, but I'm not sure if that's possible yet.

I'm also working on getting java and acrobat support into the browser.