如何让 nano/pico 在 OpenSolaris 上运行?

发布于 2024-07-09 11:22:54 字数 108 浏览 7 评论 0原文

我们正在 Amazon 的 EC2 服务上设置 OpenSolaris 服务器。 然而,vi/vim 不能正常工作,pkg 没有 nano/pico。

也许还有其他文本编辑器吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

千里故人稀 2024-07-16 11:22:54

听起来您可能只需要设置适当的术语类型即可让 vi 工作。 查看“TERM”环境变量选项,也许其中之一会对您有所帮助。

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.

誰認得朕 2024-07-16 11:22:54

您可以尝试将 nano 二进制文件(或编译源代码)复制到您的用户帐户并从那里运行它。 它在类似的情况下对我有用。

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.

温暖的光 2024-07-16 11:22:54

SUN 正在开发 SUNWgnu-nano 软件包,以便将其包含在下一版本中。 同时,您可以自己编译纳米源。 这对我有用。 要进行编译,请按照下列步骤操作:

  1. 确保安装了 SUNWgcc 软件包,以便安装 gcc。
  2. 从 debian 发行版下载源包。
    http://packages.debian.org/source/stable/nano

  3. 使用 'gunzip xxxx.tar.gz' 解压软件包,其中 xxxx.tar.gz 是您下载的源软件包。

  4. 使用“tar -xf xxxx”解压软件包,其中 xxxx 是解压缩的源软件包。

  5. 转到源文件夹。 执行“./configure”为您的系统创建 make 文件。

  6. 输入“make”创建二进制文件
  7. “nano”二进制文件应位于 src 子文件夹中。 将其复制到“/usr/bin”。 并为“pico”创建一个软链接,即“ln -s /usr/bin/nano pico”

测试一下!

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:

  1. Make sure you install SUNWgcc package so that gcc is installed.
  2. Download the source package from the debian distribution.
    http://packages.debian.org/source/stable/nano

  3. Unzip the package with 'gunzip xxxx.tar.gz' where xxxx.tar.gz is the source package you downloaded.

  4. Untar the package with 'tar -xf xxxx' where xxxx is the unzipped source package.

  5. Go to the source folder. Do a './configure' to create the make file for your system.

  6. Type 'make' to create the binary
  7. The 'nano' binary should be located in the src subfolder. Copy this to '/usr/bin'. And create a soft link for 'pico' to it i.e. 'ln -s /usr/bin/nano pico'

Test it out!

圈圈圆圆圈圈 2024-07-16 11:22:54

1) 打开包管理器(系统 > 管理 > 包管理器)
2)打开存储库设置(设置>管理存储库)
3) 添加 Blastwave 存储库(名称:blastwave,URL:http://blastwave.network.com:10000)
4)选择右上角的存储库
5) 搜索包“IPSnano”
6) 选择套餐
7) 按“安装/更新”

8) 修改路径以包含 /opt/csw/bin
(例如 $ vi ~/.profile ,然后将上面的行添加到您的路径中)
9) 注销并再次登录以反映更改

检查是否使用了正确的nano版本:
$ 哪个纳米

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

负佳期 2024-07-16 11:22:54

看起来 Nano 和 Pico 都可以在“pending”存储库中作为自动生成的软件包使用:http://pkg.opensolaris.org/pending/en/index.shtml。 我认为他们正在等待有人遵循验证步骤并保证他们的工作。 然后它们可以被移动到 contrib 存储库。 您可以在此处阅读更多信息: http://opensolaris.org/os/community/sw-porters /

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/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文