WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Acrobat Reader 9.4.0  (Read 20496 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Acrobat Reader 9.4.0
« Reply #15 on: January 04, 2012, 11:58:25 AM »
I attached a hopefully fixed version.

I tried the script but I'm not gone, just created. dep in  ./optional

Code: [Select]
tc@box:/mnt/sda6/AcrobatReadnerd$ ./get_acroread
mkdir: can't create directory '/mnt/sda1/acroread123/': Read-only file system
chown: /mnt/sda1/acroread123: No such file or directory
./get_acroread: cd: line 60: can't cd to /mnt/sda1/acroread123
Connecting to ftp.adobe.com (192.150.16.26:21)
AdbeRdr9.4.6-1_i486l 100% |*******************************| 55768k  0:00:00 ETA
md5sum passed.
AdobeReader/
AdobeReader/COMMON.TAR
AdobeReader/ILINXR.TAR
AdobeReader/INSTALL
AdobeReader/ReadMe.htm
./get_acroread: cd: line 80: can't cd to /mnt/sda1/acroread123/AdobeReader
tar: can't open 'COMMON.TAR': No such file or directory
tar: can't open 'ILINXR.TAR': No such file or directory
./get_acroread: cd: line 83: can't cd to Adobe/Reader9
mkdir: can't create directory '/mnt/sda1/acroread123/': Read-only file system
cp: can't create '/mnt/sda1/acroread123/acroread21654/pkg/usr/local/lib/Acroread/AdbeRdr9.4.6-1_i486linux_enu.tar.bz2': Path does not exist
cp: can't create directory '/mnt/sda1/acroread123/acroread21654/pkg/usr/local/lib/Acroread/AdobeReader': No such file or directory
cp: can't create '/mnt/sda1/acroread123/acroread21654/pkg/usr/local/lib/Acroread/get_acroread': Path does not exist
mkdir: can't create directory '/mnt/sda1/acroread123/': Read-only file system
ln: /mnt/sda1/acroread123/acroread21654/pkg/usr/local/bin/acroread: No such file or directory
Installing Broswer Plugin...
mkdir: can't create directory '/mnt/sda1/acroread123/': Read-only file system
ln: /mnt/sda1/acroread123/acroread21654/pkg/usr/local/lib/mozilla/plugins/nppdf.so: No such file or directory
Installing Icon Resource...
install: can't create directory '/mnt/sda1/acroread123/': Read-only file system
install: can't stat 'Resource/Support/AdobeReader.desktop': No such file or directory
install: can't create directory '/mnt/sda1/acroread123/': Read-only file system
install: can't stat 'Resource/Icons/64x64/AdobeReader9.png': No such file or directory
sed: /mnt/sda1/acroread123/acroread21654/pkg/usr/local/share/applications/acroread-9.4.6.desktop: No such file or directory
./get_acroread: line 108: can't create /mnt/sda1/acroread123/acroread21654/pkg/usr/local/share/applications/acroread-9.4.6.desktop: nonexistent directory
Installing License...
install: can't create directory '/mnt/sda1/acroread123/': Read-only file system
install: can't stat 'Reader/Legal/en_US/License.txt': No such file or directory
./get_acroread: cd: line 113: can't cd to /mnt/sda1/acroread123/acroread21654
Cannot stat source directory "pkg/" because No such file or directory
acroread-9.4.6.tcz is now in /mnt/sdb1/tce/optional ready to be installed.
tc@box:/mnt/sda6/AcrobatReadnerd$

After, in order:
1 I kept the downloaded file
2 I unmount sda1
3 I restart the script but instead of re-use previously downloaded file starts to download again
4 so I gave up  :P
« Last Edit: January 04, 2012, 12:01:21 PM by vinnie »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Acrobat Reader 9.4.0
« Reply #16 on: January 09, 2012, 03:46:55 PM »
Attached is a corrected copy, uses /opt by default, does not redownload if source exists. 

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Acrobat Reader 9.4.0
« Reply #17 on: January 10, 2012, 05:19:20 AM »
Unfortunately the script does not work yet:
Code: [Select]
tc@box:/opt$ ls
AdbeRdr9.4.6-1_i486linux_enu.tar.bz2  backgrounds/  bootsync.sh   shutdown.sh
alsa/                                 bootlocal.sh  get_acroread  tcemirror
tc@box:/opt$ ./get_acroread
--2012-01-10 12:18:27--  ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.4.6/enu//AdbeRdr9.4.6-1_i486linux_enu.tar.bz2
           => `AdbeRdr9.4.6-1_i486linux_enu.tar.bz2'
Resolving ftp.adobe.com... 192.150.16.26
Connecting to ftp.adobe.com|192.150.16.26|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/adobe/reader/unix/9.x/9.4.6/enu/ ... done.
==> SIZE AdbeRdr9.4.6-1_i486linux_enu.tar.bz2 ... 57106801
==> PASV ... done.    ==> RETR AdbeRdr9.4.6-1_i486linux_enu.tar.bz2 ... done.
Length: 57106801 (54M) (unauthoritative)

 0% [                                       ] 50,680      11.2K/s  eta 82m 39s ^C
tc@box:/opt$
tc@box:/opt$
tc@box:/opt$ ./get_acroread AdbeRdr9.4.6-1_i486linux_enu.tar.bz2
--2012-01-10 12:18:49--  ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.4.6/enu//AdbeRdr9.4.6-1_i486linux_enu.tar.bz2
           => `AdbeRdr9.4.6-1_i486linux_enu.tar.bz2'
Resolving ftp.adobe.com... 192.150.16.26
Connecting to ftp.adobe.com|192.150.16.26|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/adobe/reader/unix/9.x/9.4.6/enu/ ... done.
==> SIZE AdbeRdr9.4.6-1_i486linux_enu.tar.bz2 ... 57106801
==> PASV ... done.    ==> RETR AdbeRdr9.4.6-1_i486linux_enu.tar.bz2 ... done.
Length: 57106801 (54M) (unauthoritative)

 0% [                                       ] 27,512      16.2K/s              ^C
tc@box:/opt$

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Acrobat Reader 9.4.0
« Reply #18 on: January 10, 2012, 04:52:00 PM »
The SRCDIR is /opt/acroread123, not /opt.  If you place the tarball in /opt it will be downloaded again, and again.  Since the download attempts were cut short with control-C, the source will start downloading again since the source is deleted if it's md5sum does not match up.

It works here, I cannot reproduce.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Acrobat Reader 9.4.0
« Reply #19 on: January 10, 2012, 10:47:51 PM »
Now is ok  :D
Use the relative path to where the script is not a good idea?

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Acrobat Reader 9.4.0
« Reply #20 on: January 11, 2012, 04:10:48 AM »
Actually, that can be done, just change the SRCDIR variable to point to `pwd`, or wherever you want.  I picked /opt as everyone has an /opt and it can be mounted.  I will ponder on whether to change it to default to `pwd`, but most scripts use a temporary directory as to not clutter /home or wherever the script is located.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Acrobat Reader 9.4.0
« Reply #21 on: January 13, 2012, 01:03:04 AM »
I do not understand the script, but a solution could be to first search for the files in `pwd` and if it is not in /opt/acroread123, after that make all operations there, as already is.

You could also make possible the selection of files through an argument after the command, and if not, tell to the user where the file will be downloaded.

Anyway thanks again, yesterday acrobat helped me a lot (especially for print settings)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Acrobat Reader 9.4.0
« Reply #22 on: January 13, 2012, 06:34:19 AM »
Actually, the current working directory makes sense and is the path of least surprise.  Want to download to /tmp, the cd to /tmp and run the script.   I will add that in when I get a chance.

Offline Techmaster317

  • Newbie
  • *
  • Posts: 11
Re: Acrobat Reader 9.4.0
« Reply #23 on: February 06, 2012, 11:02:37 AM »
Hello, I am using 4.2 and I am still having trouble with this. When I try to execute the file with terminal I get a message Cant open file. If anybody could help I would appreciate it.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Acrobat Reader 9.4.0
« Reply #24 on: February 06, 2012, 01:25:28 PM »
You've made the script executable?
chmod 777 . /get_acroread
« Last Edit: February 06, 2012, 01:28:00 PM by vinnie »

Offline Techmaster317

  • Newbie
  • *
  • Posts: 11
Re: Acrobat Reader 9.4.0
« Reply #25 on: February 06, 2012, 02:19:41 PM »
I had not done that but it is still giving the "couldn't open file" error, its directory is /home/tc/get_acroread.sh so I have been typing sh /home/tc/get_acroread.sh in terminal and get message " sh: can't open '/home/tc/get_acroread.sh' "
any ideas?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Acrobat Reader 9.4.0
« Reply #26 on: February 06, 2012, 02:26:01 PM »
Hi Techmaster317
Is the file called  get_acroread.sh  or get_acroread?

Offline Techmaster317

  • Newbie
  • *
  • Posts: 11
Re: Acrobat Reader 9.4.0
« Reply #27 on: February 06, 2012, 02:28:11 PM »
I thought I had it working because when I left off the .sh in the file name it executes but now it starts to download something and then I get a message "Download failed, aborting" now what?
« Last Edit: February 06, 2012, 03:01:41 PM by Techmaster317 »

Offline Techmaster317

  • Newbie
  • *
  • Posts: 11
Re: Acrobat Reader 9.4.0
« Reply #28 on: February 06, 2012, 02:36:27 PM »
Ok I tried it again and both times it gives the download failed message at 59% if that is any help

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Acrobat Reader 9.4.0
« Reply #29 on: February 06, 2012, 03:09:13 PM »
Are you running out of RAM during the download?