[Solved] Mac OSX Terminal Character set

Questions about using NAS on Mac OS.
edemunari
New here
Posts: 7
Joined: Thu Sep 13, 2007 1:20 pm

[Solved] Mac OSX Terminal Character set

Post by edemunari »

Hi to all
connecting to my TS109 with MacOsx Terminal i got strange character prompt instead of usual [] bracket.

How to set up them correctly?

Thanks in advance, ciao Eriberto
andwi
New here
Posts: 3
Joined: Tue Oct 23, 2007 11:27 pm

Re: Mac OSX Terminal Character set

Post by andwi »

One easy fix is to remove the reset line in the .profile.


Andreas
edemunari
New here
Posts: 7
Joined: Thu Sep 13, 2007 1:20 pm

Re: Mac OSX Terminal Character set

Post by edemunari »

I can't really understand ypur reply, sorry . What happens to my terminal is:
[img]
ftp://edm.dynalias.org/Public/terminal.tiff
[/img]
Ciao, E.
andwi wrote:One easy fix is to remove the reset line in the .profile.


Andreas
[/img]
andwi
New here
Posts: 3
Joined: Tue Oct 23, 2007 11:27 pm

Post by andwi »

The file ".profile" in your home folder contains two lines by default, "export PS1='[\w] # '" and "reset". You can recreate the file (easier than editing it with vi) by typing "cat >.profile" on one line and then "export PS1='[\w] # '" on the second, then control-d. Now .profile should have just the first line. Close and reopen the connection.

Andreas
thomasbo
New here
Posts: 8
Joined: Fri Dec 21, 2007 3:12 pm
Location: Denmark

Post by thomasbo »

Hi
I have the same problem!!! Very iritating...

When i connect via SSH from my MBP (OS 10.5) to my 209, the special caracters are wrong. For instance, the @ becomes $.

Is it .profile in the QNAP or in MBP i have to alter?

Regards

Thomas
Denmark
krh
Starting out
Posts: 23
Joined: Mon Dec 24, 2007 2:52 pm

Post by krh »

use iTerm and then set the profile to be type = linux encoding Western (ISO Latin 9)

works for me whit danish :)
network
wrt54g whit dd-wrt(router)
wrt350n home build fw(AP,switch)
D-Link DNS-323 NAS (backup system)
Qnap TS-109-PRO NAS (my new toy)
sdh
Getting the hang of things
Posts: 87
Joined: Tue Sep 25, 2007 6:49 am

An easy solution to the weird prompt character problem

Post by sdh »

Like many others, it seems, I've been irritated by the refusal of the TS-109 to display proper system prompts when connecting to it via the Mac OS X Terminal.

I've found an easy workaround for the problem that is so simple I can't believe it has taken me this long to find it. It does not require any editing of .profile files or anything like that. Simply connect to the TS-109 as usual using the ssh admin@a.b.c.d command in Terminal (replacing a.b.c.d by the IP address of the TS-109 of course). Then, when the weird prompt appears after authenticating, just type command-R to send a reset command. Hey presto, the proper prompt with the square brackets appears.

This is for Terminal running under 10.5.1, but I can't see why other versions shouldn't work as well, as long as you can send a reset.

Steve :D
thomasbo
New here
Posts: 8
Joined: Fri Dec 21, 2007 3:12 pm
Location: Denmark

Post by thomasbo »

Hi

Thanks. The "Command-R" works perfect.

Regards

Thomas
User avatar
Uncle B
Starting out
Posts: 35
Joined: Thu Dec 27, 2007 7:32 am
Location: London

Re: Mac OSX Terminal Character set

Post by Uncle B »

So, if I were to edit the ~/.profile file you mean Admin's one on the NAS not the one on the Mac account?
[Mutter! Grumble... Cough! Splutter. Mumble...]
plasticgoat
Starting out
Posts: 19
Joined: Sun Dec 02, 2007 10:18 pm
Location: France
Contact:

Re: An easy solution to the weird prompt character problem

Post by plasticgoat »

sdh wrote: just type command-R to send a reset command. Hey presto, the proper prompt with the square brackets appears.
Steve :D
Great !!
It work perfectly for me under OSX 10.4 !!
I was tired to edit .profile after each restart or firmware update :wink:
Thanks for the tips
QNAP TS-109 Pro with seagate 750Gb
For sharing between PowerBook, WinXP/Xubuntu, SME 7.3
France.
pepsi92
Starting out
Posts: 12
Joined: Thu Jan 24, 2008 5:50 am
Location: France (92)

Re: Mac OSX Terminal Character set

Post by pepsi92 »

Another method to correct this problem is to update the ncurses tools

1/ Install the Optware ipkg using QPKG
2/ ipkg install ncurses

1. Model - TS-209
2. Firmware - v2.1.2 / Build 1031
3. Operation System - MacOS X 10.5.6
4. Language - French
5. HDDs - 2 x 750 GB
6. HDD model - HITACHI HDS721075KLA330
7. RAID configuration - RAID1
8. Services enabled - Microsoft network, FTP, Web File
9. Additionnal services - Optware iPKG, Net-SNMP, Bind, PHP, Shell utils (bash, diff, find, ...)
10. External devices - none
11. NAS Connection speed/MTU - 1000/1500
12. Router - Freebox v5
User avatar
Uncle B
Starting out
Posts: 35
Joined: Thu Dec 27, 2007 7:32 am
Location: London

Re: Mac OSX Terminal Character set

Post by Uncle B »

I tried that as you wrote it and the install went ahead. I rebooted the QNAP but still the character set is off when seen from a Mac.
[Mutter! Grumble... Cough! Splutter. Mumble...]
User avatar
stevebow
Been there, done that
Posts: 626
Joined: Mon Apr 07, 2008 11:46 am

Re: Mac OSX Terminal Character set

Post by stevebow »

There is a bug in the QNAP firmware, see http://forum.qnap.com/viewtopic.php?f=45&t=7488 for the gory technical details.
NAS: TS-509 Pro
Firmware: 4.1.1 Build1101
Drives: 5 x Western Digital WD20EFRX (Red) 2TB drives (RAID5)

NAS: TS-409 Pro
Firmware: 3.3.2 build 0918T
Drives: 4 x Western Digital WD20EFRX (Red) 2TB drives (RAID0)
Note: TS-409 Disk Management GUI mostly non-functional with WD Red HDDs
pepsi92
Starting out
Posts: 12
Joined: Thu Jan 24, 2008 5:50 am
Location: France (92)

Re: Mac OSX Terminal Character set

Post by pepsi92 »

In my configuration, installing ncurses corrects the problem. When I uninstall it, the problem is back.

You're ".profile" should contain the "reset" command. Once ncurses is installed, you just have to exit your shell and reconnect with ssh.

1. Model - TS-209
2. Firmware - v2.1.2 / Build 1031
3. Operation System - MacOS X 10.5.6
4. Language - French
5. HDDs - 2 x 750 GB
6. HDD model - HITACHI HDS721075KLA330
7. RAID configuration - RAID1
8. Services enabled - Microsoft network, FTP, Web File
9. Additionnal services - Optware iPKG, Net-SNMP, Bind, PHP, Shell utils (bash, diff, find, ...)
10. External devices - none
11. NAS Connection speed/MTU - 1000/1500
12. Router - Freebox v5
User avatar
stevebow
Been there, done that
Posts: 626
Joined: Mon Apr 07, 2008 11:46 am

Re: Mac OSX Terminal Character set

Post by stevebow »

Of course you shouldn't have to install a 3rd party package to work around a QNAP bug, they should fix it.
NAS: TS-509 Pro
Firmware: 4.1.1 Build1101
Drives: 5 x Western Digital WD20EFRX (Red) 2TB drives (RAID5)

NAS: TS-409 Pro
Firmware: 3.3.2 build 0918T
Drives: 4 x Western Digital WD20EFRX (Red) 2TB drives (RAID0)
Note: TS-409 Disk Management GUI mostly non-functional with WD Red HDDs
Post Reply

Return to “Mac OS”