[Solved] Mac OSX Terminal Character set
-
- New here
- Posts: 7
- Joined: Thu Sep 13, 2007 1:20 pm
[Solved] Mac OSX Terminal Character set
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
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
-
- New here
- Posts: 3
- Joined: Tue Oct 23, 2007 11:27 pm
Re: Mac OSX Terminal Character set
One easy fix is to remove the reset line in the .profile.
Andreas
Andreas
-
- New here
- Posts: 7
- Joined: Thu Sep 13, 2007 1:20 pm
Re: Mac OSX Terminal Character set
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.
[img]
ftp://edm.dynalias.org/Public/terminal.tiff
[/img]
Ciao, E.
[/img]andwi wrote:One easy fix is to remove the reset line in the .profile.
Andreas
-
- New here
- Posts: 3
- Joined: Tue Oct 23, 2007 11:27 pm
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
Andreas
-
- New here
- Posts: 8
- Joined: Fri Dec 21, 2007 3:12 pm
- Location: Denmark
-
- Starting out
- Posts: 23
- Joined: Mon Dec 24, 2007 2:52 pm
-
- Getting the hang of things
- Posts: 87
- Joined: Tue Sep 25, 2007 6:49 am
An easy solution to the weird prompt character problem
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
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
- Uncle B
- Starting out
- Posts: 35
- Joined: Thu Dec 27, 2007 7:32 am
- Location: London
Re: Mac OSX Terminal Character set
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...]
-
- 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
Great !!sdh wrote: just type command-R to send a reset command. Hey presto, the proper prompt with the square brackets appears.
Steve
It work perfectly for me under OSX 10.4 !!
I was tired to edit .profile after each restart or firmware update
Thanks for the tips
QNAP TS-109 Pro with seagate 750Gb
For sharing between PowerBook, WinXP/Xubuntu, SME 7.3
France.
For sharing between PowerBook, WinXP/Xubuntu, SME 7.3
France.
-
- Starting out
- Posts: 12
- Joined: Thu Jan 24, 2008 5:50 am
- Location: France (92)
Re: Mac OSX Terminal Character set
Another method to correct this problem is to update the ncurses tools
1/ Install the Optware ipkg using QPKG
2/ ipkg install ncurses
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
- Uncle B
- Starting out
- Posts: 35
- Joined: Thu Dec 27, 2007 7:32 am
- Location: London
Re: Mac OSX Terminal Character set
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...]
- stevebow
- Been there, done that
- Posts: 626
- Joined: Mon Apr 07, 2008 11:46 am
Re: Mac OSX Terminal Character set
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
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
-
- Starting out
- Posts: 12
- Joined: Thu Jan 24, 2008 5:50 am
- Location: France (92)
Re: Mac OSX Terminal Character set
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.
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
- stevebow
- Been there, done that
- Posts: 626
- Joined: Mon Apr 07, 2008 11:46 am
Re: Mac OSX Terminal Character set
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
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