We're setting up an OpenSolaris server on Amazon's EC2 service. However, vi/vim doesn't work properly, and pkg doesn't have nano/pico.
Is there any other text-editor maybe?
We're setting up an OpenSolaris server on Amazon's EC2 service. However, vi/vim doesn't work properly, and pkg doesn't have nano/pico.
Is there any other text-editor maybe?
You may try copying the nano binaries (or compiling the source), to your user account and running it from there. It worked for me in a similar situation.
Sounds like you may just need to set an appropriate termtype to get vi working. Look into the "TERM" environment variable options, perhaps one of those will help you.
SUN is working on the SUNWgnu-nano package to include this in the next release. In the meantime, you can compile the nano sources yourself. It worked for me. To compile, follow these steps:
Download the source package from the debian distribution. http://packages.debian.org/source/stable/nano
Unzip the package with 'gunzip xxxx.tar.gz' where xxxx.tar.gz is the source package you downloaded.
Untar the package with 'tar -xf xxxx' where xxxx is the unzipped source package.
Go to the source folder. Do a './configure' to create the make file for your system.
Test it out!
You can ask the OpenSolaris on Amazon EC2 questions at https://www2.sun.de/dct/forms/reg_us_0505_351_0.jsp
1) Open the Package Manager (System > Administration > Package Manager) 2) Open the Repository settings (Settings > Manage Repositories) 3) Add the Blastwave repository (Name: blastwave, URL: http://blastwave.network.com:10000 ) 4) Select the repository in the upper right corner 5) Search for the package 'IPSnano' 6) Select the pacakge 7) Press 'Install/Update'
8) Modify your path to include /opt/csw/bin (For example $ vi ~/.profile and then add the line above to your path) 9) Logout and in again to reflect the changes
Check whether the correct version of nano is used: $ which nano
It looks like both Nano and Pico are available as auto-generated packages in the "pending" repository here: http://pkg.opensolaris.org/pending/en/index.shtml. I think they are waiting for someone to follow the verification steps and vouch that they work. Then they can be moved to the contrib repository. You can read more here: http://opensolaris.org/os/community/sw-porters/.