Re: using apt-zip

2008-01-24 Thread Paul Csanyi
2008/1/24, Paul Csanyi <[EMAIL PROTECTED]>:
> 2008/1/24, Sven Joachim <[EMAIL PROTECTED]>:
> > Hello Paul,
> >
> > On 2008-01-23 23:30 +0100, Paul Csanyi wrote:
> >
> > > I did the following steps:
> > >
> > > sudo aptitude update
> > > mount /media/usb0
> > > apt-zip-list -m /media/usb0 -a dist-upgrade
> > >
> > > mount /media/usb0
> > > try to run in the usb0/
> > >
> > > ./fetch-script-wget-debian-asztal
> > > but get error message:
> > > bash: ./fetch-script-wget-debian-asztal: /bin/sh: bad interpreter:
> > > Permission denied
> > >
> > > How can I solve this problem?
> >
> > My crystal ball tells me that your drive is mounted with the `noexec'
> > option (this is the default for user-mountable devices).  You need to
> > mount /media/usb0 with the `exec' option, like this:
> >
> > # mount -o exec /media/usb0
> >
> > You need to be root to to this, but you can also specify the `exec'
> > option in /etc/fstab.  See mount(8) for details.
>
> I am using usbmount, so I must edit usbmount.conf. Yes, there was a noexec
> option that I change now to exec. :)
>
> FS_MOUNTOPTIONS="uid=1000,gid=1000,umask=022,exec,\
> nosuid,dmask=0007,fmask=0117"

Also I setup here in the usbmount.conf the exec option:

MOUNTOPTIONS="sync,exec,nodev,noatime"


-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: using apt-zip

2008-01-24 Thread Paul Csanyi
2008/1/24, Sven Joachim <[EMAIL PROTECTED]>:
> Hello Paul,
>
> On 2008-01-23 23:30 +0100, Paul Csanyi wrote:
>
> > I did the following steps:
> >
> > sudo aptitude update
> > mount /media/usb0
> > apt-zip-list -m /media/usb0 -a dist-upgrade
> >
> > mount /media/usb0
> > try to run in the usb0/
> >
> > ./fetch-script-wget-debian-asztal
> > but get error message:
> > bash: ./fetch-script-wget-debian-asztal: /bin/sh: bad interpreter:
> > Permission denied
> >
> > How can I solve this problem?
>
> My crystal ball tells me that your drive is mounted with the `noexec'
> option (this is the default for user-mountable devices).  You need to
> mount /media/usb0 with the `exec' option, like this:
>
> # mount -o exec /media/usb0
>
> You need to be root to to this, but you can also specify the `exec'
> option in /etc/fstab.  See mount(8) for details.

I am using usbmount, so I must edit usbmount.conf. Yes, there was a noexec
option that I change now to exec. :)

FS_MOUNTOPTIONS="uid=1000,gid=1000,umask=022,exec,\
nosuid,dmask=0007,fmask=0117"

-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: using apt-zip

2008-01-24 Thread Sven Joachim
Hello Paul,

On 2008-01-23 23:30 +0100, Paul Csanyi wrote:

> I did the following steps:
>
> sudo aptitude update
> mount /media/usb0
> apt-zip-list -m /media/usb0 -a dist-upgrade
>
> mount /media/usb0
> try to run in the usb0/
>
> ./fetch-script-wget-debian-asztal
> but get error message:
> bash: ./fetch-script-wget-debian-asztal: /bin/sh: bad interpreter:
> Permission denied
>
> How can I solve this problem?

My crystal ball tells me that your drive is mounted with the `noexec'
option (this is the default for user-mountable devices).  You need to
mount /media/usb0 with the `exec' option, like this:

# mount -o exec /media/usb0

You need to be root to to this, but you can also specify the `exec'
option in /etc/fstab.  See mount(8) for details.

Sven


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: using apt-zip

2008-01-24 Thread Csányi Pál
Thu, 24 Jan 2008 10:46:02 + keltezéssel Csányi Pál azt írta:

> Wed, 23 Jan 2008 23:30:07 +0100 keltezéssel Paul Csanyi azt írta:
> 
>> Hello!
>> 
>> I am using apt-zip to upgrade my old laptop from Etch testing
>> (when I installed on tjis laptop Debian Etch, then Etch was in
>> testing state) to Etch stable.
>> 
>> I red the tutorial
>> http://linuxbasics.org/tutorials/using/apt-zip
>> 
>> and man apt-zip.
>> 
>> I did the following steps:
>> 
>> sudo aptitude update
>> mount /media/usb0
>> apt-zip-list -m /media/usb0 -a dist-upgrade
>> 
>> mount /media/usb0
>> try to run in the usb0/
>> 
>> ./fetch-script-wget-debian-asztal
>> but get error message:
>> bash: ./fetch-script-wget-debian-asztal: /bin/sh: bad interpreter:
>> Permission denied
> 
> When I try this with sudo:
> sudo /media/usb0/fetch-script-wget-debian-asztal 
> sudo: unable to execute /media/usb0/fetch-script-wget-debian-asztal:
> Permission denied
> 
> What permission to give to the /media/usb0/ directory?
> 
> The permissions are now:
> 
> $ LANG=en_EN ls -ln /media/usb0/
> total 24
> -rw-r--r-- 1 1000 1000   184 Jan 24 00:12 apt-zip.options
> -rwxr--r-- 1 1000 1000   926 Jan 24 00:12 fetch-script-wget-debian-asztal
> drwx-- 2 1000 1000 16384 Jan 23 23:47

$ LANG=en_EN ls -ln /media
total 38
...
lrwxrwxrwx  1004 Jan 20 15:40 usb -> usb0
drwxr-xr-x  3 1000 1000 4096 Jan 24 00:00 usb0
...

On the usb drive I have ext3 filesystem.

-- 
Regards, Paul


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: using apt-zip

2008-01-24 Thread Csányi Pál
Wed, 23 Jan 2008 23:30:07 +0100 keltezéssel Paul Csanyi azt írta:

> Hello!
> 
> I am using apt-zip to upgrade my old laptop from Etch testing
> (when I installed on tjis laptop Debian Etch, then Etch was in
> testing state) to Etch stable.
> 
> I red the tutorial
> http://linuxbasics.org/tutorials/using/apt-zip
> 
> and man apt-zip.
> 
> I did the following steps:
> 
> sudo aptitude update
> mount /media/usb0
> apt-zip-list -m /media/usb0 -a dist-upgrade
> 
> mount /media/usb0
> try to run in the usb0/
> 
> ./fetch-script-wget-debian-asztal
> but get error message:
> bash: ./fetch-script-wget-debian-asztal: /bin/sh: bad interpreter:
> Permission denied

When I try this with sudo:
sudo /media/usb0/fetch-script-wget-debian-asztal 
sudo: unable to execute /media/usb0/fetch-script-wget-debian-asztal:
Permission denied

What permission to give to the /media/usb0/ directory?

The permissions are now:

$ LANG=en_EN ls -ln /media/usb0/
total 24
-rw-r--r-- 1 1000 1000   184 Jan 24 00:12 apt-zip.options
-rwxr--r-- 1 1000 1000   926 Jan 24 00:12 fetch-script-wget-debian-asztal
drwx-- 2 1000 1000 16384 Jan 23 23:47


-- 
/home/csanyipal/signature


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using apt-zip -was Re: Upgrade on box not on Net

2007-07-07 Thread Celejar
On Sat, 7 Jul 2007 20:58:55 + (UTC)
Felix Karpfen <[EMAIL PROTECTED]> wrote:

> On Thu, 05 Jul 2007 16:02:44 -0400, Celejar wrote:
> 
> > On Thu, 5 Jul 2007 20:25:09 +0100
> > John K Masters <[EMAIL PROTECTED]> wrote:
> > 
> >> Is it possible to upgrade a box not connected to the Internet?
> >> 
> 
> > 
> > This is what the apt-zip package is for.
> 
> 2  simple queries:
> 
> 1. ZIP drives are a thing of the past. Presumably apt-zip works equally
>well with usb memory-sticks; and

>From the package description:

> Description: Update a non-networked computer using apt and removable media
>  These scripts simplify the process of using dselect and apt on a 
> non-networked
>  Debian box, using removable media like ZIP floppies and USB keys. One 
> generates
>  a `fetch' script (supporting backends such as wget and lftp, in a modular,
>  extensible way) to be run on a host with better connectivity, check space
>  constraints of your removable media, and then install the package on your
>  Debian box.

> 
> 2. My daughter - who has broadband access - uses a Mac. Can that be
>used to download the packages identified by apt-zip?

To be honest, I've never actually used apt-zip, so I don't know.
 
> Felix Karpfen

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]