Jump to content
OMRON Forums

directly installing Linux software on the PowerPMAC


bradp

Recommended Posts

The powerpmac can directly install Linux software if it has been properly setup to reach the Internet. The steps are below. 1) The /etc/network/interfaces file must contain a valid gateway to reach the Internet from your facility. You should obtain this from your IT department. Windows users on the same network can figure this out by typing ipconfig /all from a Windows command prompt. 2.) The appropriate nameserver must be setup in the /etc/resolv.conf file. You should obtain this from your IT department. 3.) In addition for flash systems the filesystem is mounted readonly for reliability. Therefore, you must remount the root filesystem to be writable with the mount -o remount,rw / command 4.) Often programs write data to the /etc folder after installation. /etc is mounted using a tmpfs and aufs file system. To insure the changes made to /etc are permanent you must copy the contents of /.readonly/etc-tmpfs-mirror to /.readonly/etc 5.) Afterwards remember to restore your file system to read only mode with the mount -o remount,ro / command Below we will take you through an example of installing the linux partioner parted on the the powerpmac. root@10.34.9.222:/.readonly/etc-tmpfs-mirror# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback iface eth0 inet static address 10.34.9.222 netmask 255.255.255.0 gateway 10.34.9.254 auto eth0 root@10.34.9.222:/opt/ppmac# echo "nameserver 10.10.98.7" >/etc/resolv.conf root@10.34.9.222:/opt/ppmac# mount -o remount,rw / root@10.34.9.222:/opt/ppmac# apt-get install parted Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libparted1.8-10 Suggested packages: libparted1.8-dev libparted1.8-i18n parted-doc The following NEW packages will be installed: libparted1.8-10 parted 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 294kB of archives. After this operation, 737kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://mirror.anl.gov lenny/main libparted1.8-10 1.8.8.git.2008.03.24-11.] Get:2 http://mirror.anl.gov lenny/main parted 1.8.8.git.2008.03.24-11.1 [77.2kB] Fetched 294kB in 6s (45.8kB/s) debconf: Perl may be unconfigured (Can't locate strict.pm in @INC (@INC contain. BEGIN failed--compilation aborted at (eval 1) line 2. ) -- aborting Selecting previously deselected package libparted1.8-10. (Reading database ... 17533 files and directories currently installed.) Unpacking libparted1.8-10 (from .../libparted1.8-10_1.8.8.git.2008.03.24-11.1_p. Selecting previously deselected package parted. Unpacking parted (from .../parted_1.8.8.git.2008.03.24-11.1_powerpc.deb) ... Processing triggers for man-db ... Setting up libparted1.8-10 (1.8.8.git.2008.03.24-11.1) ... Setting up parted (1.8.8.git.2008.03.24-11.1) ... E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporar) E: Unable to lock the download directory E: Problem executing scripts DPkg::Post-Invoke 'apt-get clean' E: Sub-process returned an error code root@10.34.9.222:/opt/ppmac# parted /dev/sda GNU Parted 1.8.8 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: SAIN BCR-620 (scsi) Disk /dev/sda: 1049MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 378MB 378MB primary fat32 2 378MB 1045MB 666MB primary ext2 (parted) (parted) quit root@10.34.9.222:/opt/ppmac# cd /.readonly/ root@10.34.9.222:/.readonly# cd etc-tmpfs-mirror/ root@10.34.9.222:/.readonly/etc-tmpfs-mirror# ls ld.so.cache mtab network resolv.conf udev root@10.34.9.222:/.readonly/etc-tmpfs-mirror# cp -a * ../etc/ root@10.34.9.222:/.readonly/etc-tmpfs-mirror# mount -o remount,ro /
Link to comment
Share on other sites

  • 5 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

As our pakage is old the location for the archive updates need to modify for updates. Type these commands form the terminla on PowerPMAC to make necessary change to the file and then use apt-get to load new pakages. -------------------At powerPmac Terminal type------------- mount -o remount,rw / echo "deb http://archive.debian.org/debian/ lenny main non-free contrib" >/.readonly/etc/apt/sources.list echo "deb http://archive.debian.org/debian/ lenny main non-free contrib" >>/.readonly/etc/apt/sources.list echo "deb http://archive.debian.org/debian/ lenny main non-free contrib" >>/.readonly/etc/apt/sources.list mount -o remount,ro / reboot --------------------------------------------------------------
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...