[FRPythoneers] Running Pythong from a CD-Rom

Keith Hellman kehellman at yahoo.com
Sun Oct 6 14:13:42 MDT 2002


On Sun, Oct 06, 2002 at 11:20:21AM -0700, John Purser wrote:
> Does anyone have any experience in running Python from a CD-ROM?  I'm
> trying to get the Cygwin utilities at work but I could live with just
> python.  Actually installing the software on my work computer is out
> of question for a series of really depressing reasons.

I'm sure they must be :^(

I remounted my /usr read only and python doesn't seem to complain...

=====================================================================
khellman$ mount
/dev/hda7 on / type ext2 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda5 on /boot type ext2 (rw)
/dev/system/home on /home type ext3 (rw)
/dev/system/opt on /opt type ext3 (rw)
/dev/system/usr on /usr type ext3 (rw)
/dev/system/var on /var type ext3 (rw)
shmfs on /dev/shm type shm (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
automount(pid431) on /mnt/local type autofs (rw,fd=5,pgrp=431,minproto=2,maxproto=4)
automount(pid429) on /mnt/nosebleed type autofs (rw,fd=5,pgrp=429,minproto=2,maxproto=4)
khellman$ sudo mount -o ro,remount /usr
Password:
khellman$ cd /usr/local/bin/ 
bin$ ./python
Python 2.2.1c2 (#1, Apr  8 2002, 13:32:43) 
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.getcwd()
/usr/local/bin
>>> m = open( "/proc/mounts" )
>>> for l in m : print l 
... 
rootfs / rootfs rw 0 0

/dev/root / ext2 rw 0 0

proc /proc proc rw 0 0

devpts /dev/pts devpts rw 0 0

/dev/hda5 /boot ext2 rw 0 0

/dev/system/home /home ext3 rw 0 0

/dev/system/opt /opt ext3 rw 0 0

/dev/system/usr /usr ext3 ro 0 0

/dev/system/var /var ext3 rw 0 0

shmfs /dev/shm shm rw 0 0

usbdevfs /proc/bus/usb usbdevfs rw 0 0

automount(pid431) /mnt/local autofs rw 0 0

automount(pid429) /mnt/nosebleed autofs rw 0 0





More information about the FRPythoneers mailing list