DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-05-31 23:25:02

marinalink
Member
Registered: 2008-04-13
Posts: 56

Lightweight editor "nano" compiled for DNS 323

Hi,

since I'm not an expert in vi (I only know how to exit: ":q!"), I needed my own editor on my DNS box. Therefore I cross compiled nano 2.0.7 with all the ffp 0.5 tools. Please find the package for ffp 0.5 attached to this post.

Enjoy the tool!
marinalink


Attachments:
Attachment Icon nano-2.0.7-ffp05.tgz, Size: 149,603 bytes, Downloads: 937

Offline

 

#2 2008-06-09 14:23:10

hell0
Member
From: .de
Registered: 2008-05-13
Posts: 81

Re: Lightweight editor "nano" compiled for DNS 323

thank you, i hate vi wink
http://bash.org/?795779

Last edited by hell0 (2008-06-09 14:23:30)


CH3SNAS firmware 1.05 with WD1000FYPS and ffp 0.5 on USB Stick

Offline

 

#3 2008-06-11 04:12:27

SuperInsanity
Member
Registered: 2008-05-10
Posts: 11

Re: Lightweight editor "nano" compiled for DNS 323

Excellent, thanks!!

I can get by in vi, but I can get things done much more quickly in nano, so it's great to have this now!! big_smile

Offline

 

#4 2008-06-21 16:31:03

haldan
Member
Registered: 2008-04-08
Posts: 12

Re: Lightweight editor "nano" compiled for DNS 323

I installed this and when I attempt to run it, I get this error:

"Error opening terminal: vt102."

Does anyone know what causes this and how to fix it? Thanks.

Offline

 

#5 2008-06-21 19:50:34

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: Lightweight editor "nano" compiled for DNS 323

@haldan:
type "set" on the command line and have a look what TERM say.

Try to set TERM to xterm for example:

TERM=xterm

or vt100. I wouldn't know, why your term should be vt102...

marinalink

Offline

 

#6 2008-06-21 20:39:03

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Lightweight editor "nano" compiled for DNS 323

haldan wrote:

"Error opening terminal: vt102."

Just a guess. Installing the full ncurses package might fix this.

Offline

 

#7 2008-06-21 21:04:32

haldan
Member
Registered: 2008-04-08
Posts: 12

Re: Lightweight editor "nano" compiled for DNS 323

It did, thanks.  I thought I had already installed ncurses, but apparently I had not.

Offline

 

#8 2008-06-23 16:13:24

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: Lightweight editor "nano" compiled for DNS 323

@fonz:
good to know. i was wondering when compiling if the ncurses lib will be linked statically. Do you know if this can be done. Otherwise I recommend -as fonz says- to install the ncurses package for ffp0.5.

marinalink

Offline

 

#9 2008-06-23 16:57:46

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Lightweight editor "nano" compiled for DNS 323

marinalink wrote:

i was wondering when compiling if the ncurses lib will be linked statically.

No, usually it's used as shared lib.

Offline

 

#10 2008-07-01 18:11:25

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Lightweight editor "nano" compiled for DNS 323

Sorry, maybe stupid question but how do i install this?
I put the file in the HD_a2 directory and did: funpkg -i nano-2.0.7-ffp05.tgz but didn't work. I also tried the /ffp directory.

Offline

 

#11 2008-07-01 18:58:03

hell0
Member
From: .de
Registered: 2008-05-13
Posts: 81

Re: Lightweight editor "nano" compiled for DNS 323

make sure you are in the right folder containing the file you want to install
ls should show the file
funpkg -i nano-2.0.7-ffp05.tgz is correct


CH3SNAS firmware 1.05 with WD1000FYPS and ffp 0.5 on USB Stick

Offline

 

#12 2008-07-29 22:44:29

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: Lightweight editor "nano" compiled for DNS 323

@marinalink: Could you recompile nano with "--enable-nanorc"?

Offline

 

#13 2008-08-03 23:07:52

Fevida
Member
From: Eindhoven, Netherlands
Registered: 2008-08-03
Posts: 12

Re: Lightweight editor "nano" compiled for DNS 323

Thnx man, I just can't get along with VI, you just made my day!

Offline

 

#14 2008-08-04 05:22:32

RimBlock
Member
Registered: 2008-04-24
Posts: 77

Re: Lightweight editor "nano" compiled for DNS 323

I will have to take a look at nano as I tend to use vi (I have to at work on our Solaris boxes).

Just a note though.  People can use textpad on windows which is free and pretty easy if you save the files in UNIX mode (which it defaults to if I load UNIX shell scripts).

RB

Offline

 

#15 2008-08-04 18:31:33

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: Lightweight editor "nano" compiled for DNS 323

@DeLaCroix:
OK, no problem. Please find attached the new version of nano-2.0.7 with the option "--enable-nanorc".

@fonz:
while compiling, configure warns about a missing utf8 support of ncurses. Could you recompile ncurses with full utf8 support? Thanks.


Attachments:
Attachment Icon nano-2.0.7-1-ffp05.tgz, Size: 157,187 bytes, Downloads: 326

Offline

 

#16 2008-08-04 22:12:02

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: Lightweight editor "nano" compiled for DNS 323

marinalink wrote:

@DeLaCroix:
OK, no problem. Please find attached the new version of nano-2.0.7 with the option "--enable-nanorc".

Hi,
thanks for recompiling, but i have some serious Problems while trying to check if it works. It seems to enable the nanorc (Thanks!), but doesn't include the

I've added some lines for the inclusion to /etc/nanorc:

Code:

## Nanorc files
include "/ffp/share/nano/nanorc.nanorc"

/ffp/share/nano/nanorc.nanorc:

Code:

## Here is an example for nanorc files.
##
syntax "nanorc" "\.?nanorc$"
## Possible errors and parameters
icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Keywords
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|mat$
icolor green "^[[:space:]]*(set|unset|include|syntax)\>"
## Colors
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))$
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
## Strings
icolor white ""(\\.|[^"])*""
## Comments
icolor brightblue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$"

This file works on several root-servers (taken from the Gentoo-Wiki)

When i try to open e.g. /etc/nanorc it results in:

Error in /ffp/etc/nanorc on line 2: Command "include" not understood

Press Enter to continue starting nano.

=> Doesn't work and i didn't find any solution fo this...perhaps you know any hint. Thank you very much anyway.

Offline

 

#17 2008-08-04 23:28:41

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: Lightweight editor "nano" compiled for DNS 323

Hm... I didn't compile nano with color support. maybe this is needed? Can you just setup a nanorc with no color setting? Does this help?

Why do you need nanorc anyhow?

Offline

 

#18 2008-08-05 00:08:41

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: Lightweight editor "nano" compiled for DNS 323

I need the nanorc for syntax highlighting. On my other server (normal gentoo) it looks like this:

http://img141.imageshack.us/img141/1355/nanowithcolorsupportsm9.th.png

Sorry i don't know how to compile a package for ffp (didn't figure it out yet), could you recompile another package with color support?

Offline

 

#19 2008-08-05 22:18:28

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: Lightweight editor "nano" compiled for DNS 323

ok, I compiled it with the following options:

# ./configure --prefix=/ffp --enable-nanorc --enable-color --enable-multibuffer
# make
# make DESTDIR=/mnt/HD_a2/.bootstrap/packages-nonffp/nano-2.0.7 install

I hope this will satisfy your needs.

The new version is called nano-2.0.7-2-ffp05.tgz.


Attachments:
Attachment Icon nano-2.0.7-2-ffp05.tgz, Size: 173,239 bytes, Downloads: 486

Offline

 

#20 2008-08-05 22:51:19

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: Lightweight editor "nano" compiled for DNS 323

Thank you thank you thank you!!!

It works! Thanks a lot!

Offline

 

#21 2008-09-05 22:35:16

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: Lightweight editor "nano" compiled for DNS 323

I've compiled nano using the Build-Scripts of fonz: http://nas-tweaks.net/CH3SNAS:Tutorials/nano
This Package includes several highlighting-files. The spell-checker was disabled as there is no dictionary available.

Offline

 

#22 2009-04-07 23:53:05

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: Lightweight editor "nano" compiled for DNS 323

Perfect ! I couldn't get used to vi, this package will be very useful to me, thanks !

It seems to work great for DNS-313 too.

Last edited by Electrocut (2009-04-07 23:54:17)


DNS-313

Offline

 

#23 2009-08-06 01:57:43

dale
New member
Registered: 2009-08-06
Posts: 1

Re: Lightweight editor "nano" compiled for DNS 323

Thanks! Nano is one of the first things I install on any box that I work on. Clearly I'm not the only one who loathes VI.

I wonder if they would be willing to list this package listed with the rest of them at

http://www.inreto.de/dns323/fun-plug/0.5/PACKAGES.html

?

Offline

 

#24 2009-08-07 21:06:08

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: Lightweight editor "nano" compiled for DNS 323

I'm using a separate repository as i'm the only person who tests my stuff tongue So simply sync mine and be happy smile

Offline

 

#25 2009-08-10 23:38:13

kifusan
New member
From: Singapore
Registered: 2009-08-10
Posts: 1
Website

Re: Lightweight editor "nano" compiled for DNS 323

Thanks marinalink! Installed and worked perfectly.

Last edited by kifusan (2009-08-10 23:49:38)


D-Link DNS-323 (Purchased in Singapore Aug '09 preloaded w/ firmware v1.07)
fun-plug 0.5

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB