Tue Jan 21 00:31:30
iMi7:~ jkt$ sudo j8
   host
[: 2!:0 '(' , ' || true)' ,~ ]
   host 'set'
BASH=/bin/sh
BASH_ARGC=()
BASH_ARGV=()
BASH_EXECUTION_STRING='(set || true)   > /var/tmp/tmp.1.o7rtof'
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="2" [2]="51" [3]="1" [4]="release" [5]="x86_64-apple-darwin13")
BASH_VERSION='3.2.51(1)-release'
DIRSTACK=()
DISPLAY=/tmp/launch-gtaSux/org.macosforge.xquartz:0
EUID=0
GROUPS=()
HOME=/Users/jkt
HOSTNAME=iMi7.local
HOSTTYPE=x86_64
IFS='   
'
LANG=en_US.UTF-8
LOGNAME=root
MACHTYPE=x86_64-apple-darwin13
MAIL=/var/mail/root
OPTERR=1
OPTIND=1
OSTYPE=darwin13
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
POSIXLY_CORRECT=y
PPID=73474
PS4='+ '
PWD=/Users/jkt
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments:posix
SHLVL=1
SSH_AUTH_SOCK=/tmp/launch-0kgNYi/Listeners
SUDO_COMMAND=/usr/local/bin/j8
SUDO_GID=20
SUDO_UID=501
SUDO_USER=jkt
TERM=xterm-color
UID=0
USER=root
USERNAME=root
_=sh
__CF_USER_TEXT_ENCODING=0x1F5:0:0

So, looks like UID, USER, and USERNAME are set by invoking sudo jconsole

I've had no trouble using pacman (but again, that is as an "Admin user"). So, logging in as my granddaughter -

Tue Jan 21 00:49:29
iMi7:~ hannah$ j8
   install 'all'
Unable to run Package Manager, as you do not have access to the installation folder.

So this looks like the trouble you were expecting. If I use sudo in that case I am told that I'm "not in the sudo-ers file" and not allowed to do it. I think one of the side-effects of being an Admin user is to be able to do sudo.


Trying to get the zip file (Darwin doesn't include wget, so using curl) -

Tue Jan 21 00:40:06
iMi7:Downloads jkt$ curl -v http://www.jsoftware.com/download/j801/j801_mac64.zip
* Adding handle: conn: 0x7f9cbb80aa00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f9cbb80aa00) send_pipe: 1, recv_pipe: 0
* About to connect() to www.jsoftware.com port 80 (#0)
*   Trying 23.21.67.48...
* Connected to www.jsoftware.com (23.21.67.48) port 80 (#0)
> GET /download/j801/j801_mac64.zip HTTP/1.1
> User-Agent: curl/7.30.0
> Host: www.jsoftware.com
> Accept: */*
>
^C
Tue Jan 21 00:43:37
iMi7:Downloads jkt$

Which is the same hang I see using the browser to fetch the .zip file, but consider -

Tue Jan 21 00:45:02
iMi7:Downloads jkt$ curl -v http://www.jsoftware.com/download/j801/j801_raspi32.tar.gz > j801_raspi32.tar.gz
* Adding handle: conn: 0x7fbc42803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fbc42803a00) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to www.jsoftware.com port 80 (#0)
*   Trying 23.21.67.48...
* Connected to www.jsoftware.com (23.21.67.48) port 80 (#0)
> GET /download/j801/j801_raspi32.tar.gz HTTP/1.1
> User-Agent: curl/7.30.0
> Host: www.jsoftware.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 21 Jan 2014 08:45:28 GMT
* Server Apache/2.2.22 (Ubuntu) is not blacklisted
< Server: Apache/2.2.22 (Ubuntu)
< Last-Modified: Sat, 18 Jan 2014 00:54:05 GMT
< ETag: "86a156-17085f-4f0341863c540"
< Accept-Ranges: bytes
< Content-Length: 1509471
< Content-Type: application/x-gzip
<
{ [data not shown]
100 1474k 100 1474k 0 0 282k 0 0:00:05 0:00:05 --:--:-- 298k
* Connection #0 to host www.jsoftware.com left intact
Tue Jan 21 00:45:33

My problem is some routing issue that has been a plague for some time now...

I'll look into my/the plot problems after some sleep - too late already.

- joey


On 2014/01/20, 22:49 , bill lam wrote:
Are there any environment variables or other means to detect jconsole
being under with sudo?

Can a normal use pacman?  I think there may not be any prompt for password?

You may already tried, but just in case, run wget with verboseor debug
option to get zip or exe file and see what error messages.

the plot domain error actually occurs inside afm.  Can you help
investigate the problem by adding smoutout msk len ext just before
that line in afm.ijs or advise what will be the fix to it?

I always enjoying reading your posts. -:)

On Tue, Jan 21, 2014 at 2:14 PM, Joey K Tuttle <[email protected]> wrote:
Bill,

I always install my j systems in /Applications.

I'm usually logged in as an "Admin" user but can run the following again as
a "Standard" user if you need it. I believe the main difference is that the
"Standard user" will be asked for an Admin password to move the folder into
/Applications - after that, I think everything stays the same (although I'm
uncertain what owner.group results). I can test that if you want. Here is a
result of a "fresh install" -

When I downloaded the file j801_mac64.zip and "opened it" it created a
folder "j64-801" - I simply dragged that to /Applications (it is in the list
of places in my default finder gui view). Then, switching to a Terminal
session -

Mon Jan 20 20:27:19
iMi7:~ jkt$ ls -lt /Applications
total 117288
drwxr-xr-x@ 12 jkt   staff       408 Jan 20 20:05 j64-801
drwxrwxr-x   3 root  admin       102 Jan 16 08:18 Adobe Reader.app
drwxrwxr-x@  3 jkt   admin       102 Jan 13 07:38 Google Chrome.app
   ....

Mon Jan 20 20:27:37
iMi7:~ jkt$ ls -l /Applications/j64-801
total 8
drwxr-xr-x@  3 jkt  staff  102 Jan 18 08:54 addons
drwxr-x---@ 10 jkt  staff  340 Jan 18 08:54 bin
drwxr-xr-x@  3 jkt  staff  102 Jan 18 08:54 jbrk801.app
drwxr-xr-x@  3 jkt  staff  102 Jan 18 08:54 jcon801.app
drwxr-xr-x@  3 jkt  staff  102 Jan 18 08:54 jhs801.app
drwxr-xr-x@  3 jkt  staff  102 Jan 18 08:54 jqt801.app
-rw-r--r--@  1 jkt  staff   94 Jan 18 08:54 readme.txt
drwxr-xr-x@  6 jkt  staff  204 Jan 18 08:54 system
drwxr-x---@  3 jkt  staff  102 Jan 18 08:54 tools
Mon Jan 20 20:28:49
iMi7:~ jkt$ ls -l /Applications/j64-801/bin
total 4632
drwxr-x---@ 19 jkt  staff      646 Jan 18 08:54 icons
-rw-r--r--@  1 jkt  staff       18 Jan 18 08:54 installer.txt
-rwxr-x---@  1 jkt  staff       56 Jan 18 08:54 jbrk.command
-rwxr-x---@  1 jkt  staff    15432 Jan 18 08:54 jconsole
-rwxr-x---@  1 jkt  staff      143 Jan 18 08:54 jhs.command
-rwxr-x---@  1 jkt  staff  2331664 Jan 18 08:54 libj.dylib
-rwxr-x---@  1 jkt  staff     1545 Jan 18 08:54 profile.ijs
-rwxr-x---@  1 jkt  staff      819 Jan 18 08:54 profilex_template.ijs
Mon Jan 20 20:29:01
iMi7:~ jkt$ /Applications/j64-801/bin/jconsole
    2!:5 'HOME'
/Users/jkt
    exit 0

Mon Jan 20 20:34:47

iMi7:~ jkt$ sudo /Applications/j64-801/bin/jconsole
Password:
    2!:5 'HOME'
/Users/jkt
    'hmmm' fwrite 'who-owns'
4
    exit 0

Mon Jan 20 20:35:52
iMi7:~ jkt$ ls -l who-owns
-rw-r--r--  1 root  staff  4 Jan 20 20:35 who-owns

Mon Jan 20 20:35:57
iMi7:~ jkt$ rm who-owns
override rw-r--r--  root/staff for who-owns? y

Mon Jan 20 20:36:12
iMi7:~ jkt$ # Here is another run invoking pacman

Mon Jan 20 20:57:12
iMi7:Applications jkt$ /Applications/j64-801/bin/jconsole
    load 'pacman'
    'update' jpkg ''
Updating server catalog...
Local JAL information was last updated: 20 Jan 2014 21:13:51
Installed addons are up to date, 81 addons are not yet installed.
The base library is up to date.
    install 'all'
Updating server catalog...
Installing 82 packages
Downloading base library...
   ....
Downloading xml/sax...
Installing xml/sax...
Done.
Installing JQt binaries...

But their it hung ... after waiting several minutes, I hit ^c

^CConnection failed:
Connection failed:

unable to download: jqt-mac-x64.zip

But, this has to do with another problem I have been chasing for some time.
When I try to download from

http://www.jsoftware.com/download/j801/

I have no trouble getting files with suffix .deb .gz (and presumably .dmg)
but if I try do download (through my normal connection) any of the .zip or
.exe files, I get no result.

I have this routing problem with other sites too, and have been trying to
puzzle what is wonky with routing in my connection to the net. Any
ideas/thoughts appreciated.

Do you want me to run pacman when invoking jconsole under sudo? That would
seem like a very unlikely scenario for "normal" OS X users...

Again, if the Admin user is running j, I think pacman deals with the updates
just fine. And your other question "why permissions of some folders ... are
not 755 - the above file listings are from the fresh install.

So, I changed my path out to the net (bypassing my router/firewall) and
tried the install 'all' again with the more reasonable result -

    install 'all'
Updating server catalog...
Installing 1 package
Downloading base library...
Installing base library...
Done.
Installing JQt binaries...
Finished install of jqt binaries.
Installing Qt library...
Finished install of Qt binaries.


I also, as you may remember, set a symbolic such as -

Mon Jan 20 21:24:52
iMi7:Applications jkt$ ls -l /usr/local/bin/j8
lrwxr-xr-x  1 root  wheel  34 Sep 24 21:05 /usr/local/bin/j8 ->
/Applications/j64-801/bin/jconsole

so that I can start j conveniently in a terminal session (or in a shell
script). This also let's me have "ja" as my "production j" and jb as "beta"
and not have to change various scripts and habits of using those.

This is likely more information than you were looking for but I want to add
that a .zip file isn't the installation vehicle for most OS X app installs.
It would be more "normal" to use a .dmg file (as in the j701 download) - you
could go a step further and provide an alias in the mounted disk image  ->
/Applications and that way installation would consist of dragging the
j64-801 folder onto the image of the alias.

Ahh, one more thing ... after doing all the above and having a current set
of everything, I was dismayed to see the following -

iMi7:~ jkt$
Mon Jan 20 22:05:37
iMi7:~ jkt$ j8

    JVERSION
Engine: j701/2011-01-10/11:25 build: Feb  6 2011 16:16:29
Library: 8.01.017

Platform: Darwin 64
Installer: j801 beta install
InstallPath: /Applications/j64-801
    require 'plot'
    plot i.6
|domain error: inverse
|   ext=.msk     expand(;len{.each 1)+/;.1 ext



Let me know if you have more questions, I'll try to shorten my answers ...
;-)

- joey



On 2014/01/20, 19:23 , bill lam wrote:

Joey,

Can you also check what is 2!:5'HOME' when running sudo jconsole?

I want to let pacman knows if the effective user is root because
tar will behave differently in such case. (files will retain
their original user/permission)

A few related questions.

does it need privilege for a regular user to install files under
/Applications

does everyone also have full permission on those files

does pacman ever need to concern files are being install under
/Applications

Also, why permissions of some folders under your
/Applications/j64-801/ is not 755, are those default permissions
after a fresh install?

Thanks

Пн, 20 янв 2014, Joey K Tuttle писал(а):

Bill,

I’m not sure what is being worked on, but the answer to your question is,
Yes, OSX supports sudo.

Follows a series of  commands …

iMi7:~ jkt$ ls -l /
total 16445
drwxrwxr-x+ 115 root  admin     3910 Dec 20 08:10 Applications
    ….

Mon Jan 20 18:52:06
iMi7:~ jkt$ ls -l /Applications/j64-801/
total 16
drwxr-xr-x@ 26 jkt  staff  884 Sep 24 21:09 addons
drwxr-x---@ 13 jkt  staff  442 Oct  6 23:48 bin
drwxr-xr-x@  3 jkt  staff  102 Jun 14  2013 jbrk801.app
drwxr-xr-x@  3 jkt  staff  102 Jun 14  2013 jcon801.app
drwxr-xr-x@  3 jkt  staff  102 Jun 14  2013 jhs801.app
drwxr-xr-x@  3 jkt  staff  102 Jun 14  2013 jqt801.app
-rw-r--r--@  1 jkt  staff   94 Jun 14  2013 readme.txt
lrwxr-xr-x   1 jkt  staff   85 Oct  6 23:51 startup.ijs ->
/Applications/j64-801/bin/quedprof.ijs/Applications/j64-801/system/config/startup.ijs
drwxr-xr-x@  7 jkt  staff  238 Sep 24 20:33 system
drwxr-x---@  3 jkt  staff  102 Jun 14  2013 tools

Mon Jan 20 18:53:43
iMi7:~ jkt$ sudo /Applications/j64-801/bin/jconsole
Password:
     i. 3 4
0 1  2  3
4 5  6  7
8 9 10 11
     exit 0

Mon Jan 20 18:54:30
iMi7:~ jkt$ /Applications/j64-801/bin/jconsole
     JVERSION
Engine: j701/2011-01-10/11:25 build: Feb  6 2011 16:16:29
Library: 8.01.012
Platform: Darwin 64
Installer: j801 beta install
InstallPath: /Applications/j64-801
     ^D

Mon Jan 20 18:56:00
iMi7:~ jkt$

Happy to try to help, but still not clear what the question was.

- joey


On 2014 Jan 20, at 17:53 , bill lam <[email protected]> wrote:

Does osx support sudo?  If yes, can you please check what will
the output if started by
sudo /Applications/j64-801/bin/jconsole

Can you also check the file owenr and permission of that that
folder?

ls -l /Applications/j64-801

Вт, 21 янв 2014, Ian Clark писал(а):

Last login: Fri Jan 17 21:54:08 on ttys000
ians-air:~ ianclark$ /Applications/j64-801/bin/jconsole ; exit;
JVERSION
Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29
Library: 8.01.016
Platform: Darwin 64
Installer: j801 beta install
InstallPath: /Applications/j64-801
2!:0'echo $HOME'
/Users/ianclark



JVERSION

Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29

Library: 8.01.016

Qt IDE: 1.0.22/4.8.5

Platform: Darwin 64

Installer: j801 beta install

InstallPath: /Applications/j64-801

2!:0'echo $HOME'

/Users/ianclark





JVERSION
Installer: j602a_mac_intel.dmg
Engine: j602/2008-03-03/16:45
Library: 6.02.069

2!:0'echo $HOME'
/Users/ianclark




On Mon, Jan 20, 2014 at 3:05 PM, bill lam <[email protected]> wrote:

Thanks. Can you find what is $HOME when running as root?

Пн, 20 янв 2014, Ian Clark писал(а):

@Bill,

It's not me having the problems, it's Rudi. I was guessing at
possible
answers.

Everything I've tried so far with Mavericks on MBA works fine for me.

But do you want me to run some pre-emptive tests?


On Sat, Jan 18, 2014 at 2:50 AM, bill lam <[email protected]>
wrote:

@Ian
/Applications should be owned by root so as /Applications/j64-801
it may need first su then run j as root in order to run pacman.

Did you succeed in running pacman as a regular user?  What does
it report when running a command "ls -l" on that folder?

Did you suggest that it is no longer possible to run unsigned
apps under user folder?

Пт, 17 янв 2014, Ian Clark писал(а):

@Rudi -- I'll have to bow out at this point. I'm not an expert on
the
things that can go wrong with a J installation -- there's other

people on

this list who are. But they'll want to know the following...

After you've got (i.6) to work, enter:
    JVERSION
and post the result.

I suppose you've done the obvious thing like checking you really do

have

write access to the installation folder? Cos jconsole.app thinks
you
haven't. You'll see its path at the bottom of the result of

JVERSION. On

my

machine it's

/Applications/j64-801

What I'd do then is look verrrrry carefully at the "Get Info"

window of

both /Applications/j64-801 and its parent, /Applications -- and of

sample

files in those folders.

Then cast a beady eye at System Preferences > Security & Privacy

(also

Parental Controls, Network, Sharing...). Try using TextEdit to save
a

test

file into /Applications . I can do it -- can you? Once having saved

it,

try

editing it. Try it again, using "cat" and "nano" under Unix in the

Terminal

app. Look at its "Get Info" --especially Sharing & Permissions. Is

the

"Locked" checkbox checked? Use Terminal to look at the Unix

permissions

of

sample files in /Applications and /Applications/j64-801.

Have you got a virus checker or other gatekeeper which might be

guarding

write access to /Applications ? There's just so many things on the

Mac

nowadays that can stop J's Package Manager from updating files in a
sensitive folder like /Applications. Mavericks is a new o/s, and in

my

long

experience one of the last things o/s developers seem to get right

is the

Permissions structure and its inheritances.


On Fri, Jan 17, 2014 at 8:02 AM, Rudi Mann <[email protected]>

wrote:


Ian,

thanks for the answer. I tried to do the same, but got different

results:


1. I downloaded and unzipped: j801a_mac64.zip
   This gave me a folder: j64-801 in my Downloads folder -which I

moved to

Applications.
Opened jcon801.app --after getting past the "unregistered

developer"

gatekeeper :-\
Entered: i.6
--it worked ok.


Here too.

Before trying *anything* else, entered: install'all'
--that worked too.


Not here; this is what I got:

Last login: Fri Jan 17 08:46:22 on console
admins-MacBook-Pro:~ admin$ /Applications/j64-801/bin/jconsole ;

exit;

    i.6
0 1 2 3 4 5
    install 'all'
Unable to run Package Manager, as you do not have access to the
installation folder.

What now?

Rudi

----------------------------------------------------------------------

For information about J forums see

http://www.jsoftware.com/forums.htm



----------------------------------------------------------------------

For information about J forums see

http://www.jsoftware.com/forums.htm


--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3

----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm


--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to