Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Lampp on Knoppix

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    9

    Lampp on Knoppix

    Hi
    I have made remaster CD with LAMPP (webserver) included. This aplication is located in /opt/lammp directory.
    Unfortunately this directory dont load in RAM, so i can write on.
    How can i mount or maybe make /opt directory writeable?

    thx

  2. #2
    Member registered user
    Join Date
    Mar 2005
    Posts
    87

    Re: Lampp on Knoppix

    Quote Originally Posted by Sass
    Hi
    I have made remaster CD with LAMPP (webserver) included. This application is located in /opt/lammp directory.
    Unfortunately this directory dont load in RAM, so i can write on.
    How can i mount or maybe make /opt directory writeable?

    thx
    Would help if we knew the version. Remastering anything from 3.8.x onwards utilises UNIONFS and thus all directories are writeable.

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    9
    Working with Knoppix 3.7.

    thx

  4. #4
    Junior Member
    Join Date
    Sep 2005
    Posts
    9
    Someone maybe know right solution?

    Do i need to make remaster with 3.8?

    thx

  5. #5
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    http://www.knoppix.net/forum/viewtop...570&highlight=

    should help you remaster 3.7 to solve your problem. This problem doesn't affect versions that use UNIONFS.

  6. #6
    Junior Member
    Join Date
    Oct 2005
    Posts
    3
    Hi Mark

    I have the same problem, but i dont know where should i put your kode.

    Can you help me, please.

    thx

  7. #7
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    I put this script in the /KNOPPIX/usr/local/bin/ directory.
    Code:
    #!/bin/bash
    # Start Apache and MySQL. Put toophpix database into RAM. Open Mozilla browser.
    
    /etc/init.d/apache start
    rm -rf /var/lib/mysql
    cp -rp /KNOPPIX/var/lib/mysql /var/lib
    mysqld_safe &
    mozilla "http://127.0.0.1/Toophpix/page3.php"
    I presume you want to change the
    rm -rf /var/lib/mysql
    cp -rp /KNOPPIX/var/lib/mysql /var/lib
    lines to
    rm -rf /opt/lammp
    cp -rp /KNOPPIX/opt/lammp /opt/lammp
    and the mozilla line to open your index web-page.
    Try the commands one at a time as root from the command line first.
    The advantage of doing it this way is that any error messages will appear in the terminal window as you run each command.
    Once you have established that the commands make the /opt/lammp directory writeable then you can put together the script
    in /KNOPPIX/usr/local/bin/ and make a desktop icon (using the /etc/skel/Desktop directory) to execute it.
    Hope this helps.
    Regards,
    Mark
    P.S. The above assumes you have created your own mysql installation in /opt/lammp.
    If you are using the mysql that comes with Knoppix, and /opt/lammp is the document root for the Apache webserver then you would need to
    run
    rm -rf /opt/lammp
    cp -rp /KNOPPIX/opt/lammp /opt/lammp
    in addition to
    rm -rf /var/lib/mysql
    cp -rp /KNOPPIX/var/lib/mysql /var/lib
    commands.

  8. #8
    Junior Member
    Join Date
    Oct 2005
    Posts
    3
    Thx for your response Mark

    I have some question again
    First, i dont have /usr/local/bin directory, only /usr/local/sbin

    When i try to execute first command as root:
    rm -rf /opt/lampp

    i become something with "cannot remove /opt/lampp : read only file system"

    and second coomand:
    cp -rp /KNOPPIX/opt/lampp /opt/lampp

    i become: "cannot overwrite non-directory /opt/lampp/lampp with directory /KNOPPIX/opt/lampp

    Any yes, i run all services in /opt/lampp directory.
    When i working in chrooted mode, everything works fine.

    Thanks again

  9. #9
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    Hi Axy,
    Re:
    i dont have /usr/local/bin directory, only /usr/local/sbin
    The version I did my remaster was 3.3 and this had both, but I don't think it will affect anything if you use /usr/local/sbin instead of /usr/local/bin.
    I may be wrong though!

    If you run the

    rm -rf /var/lib/mysql

    command what happens?

    Maybe the second command should read.
    cp -rp /KNOPPIX/opt/lampp /opt

    Let me know what happens.
    You could also try
    cp -rp /KNOPPIX/opt/lampp /var/lib
    This might work.

    The other way you could try would be to modify the linuxrc file in minirt24.gz
    From Knoppix 3.7, minirt24.gz, the linuxrc file, starting at line 611, showing how the symlinks are created.
    Code:
    # We need /bin/mount here for the -o size= option
    /bin/mount -t tmpfs -o "size=${RAMSIZE}k" /ramdisk /ramdisk && mkdir -p /ramdisk
    /home /ramdisk/var && ln -s /ramdisk/home /ramdisk/var /
    echo "${BLUE}Done.${NORMAL}"
    else
    mkdir -p /home /var
    fi

    echo -n "${CRE}${BLUE}Creating directories and symlinks on ramdisk...${NORMAL}"
    # Create common WRITABLE (empty) dirs
    mkdir -p /var/run /var/backups /var/cache/apache /var/local /var/lock/news \
    /var/nis /var/preserve /var/state/misc /var/tmp /var/lib \
    /var/spool/cups/tmp /var/lib/samba /var/lib/nessus \
    /mnt/cdrom /mnt/floppy /mnt/hd /mnt/test \
    /home/knoppix /root /etc/sysconfig /etc/X11 /etc/cups /etc/dhcpc
    chown knoppix.knoppix /home/knoppix
    Just add /opt/lampp to the mkdir -p list.

    Regards,
    Mark

  10. #10
    Junior Member
    Join Date
    Oct 2005
    Posts
    3
    Hi Mark

    When i execute command
    rm -rf /var/lib/mysql
    it works, i mean i can remove this file,
    but with command
    rm -rf /opt/lampp
    i become "read only file system" error.

    Then i try your second suggestion with command
    cp -rp /KNOPPIX/opt/lampp /opt
    and i become again notice " /opt/lampp is same like /KNOPPIX/opt/lampp"

    So, i decide to try changing linuxrc file. I have unzip minirt24, find linuxrc and change the line you suggested

    Code:
    mkdir -p /var/run /var/backups /var/cache/apache /var/local /var/lock/news \
    /var/nis /var/preserve /var/state/misc /var/tmp /var/lib \
    /var/spool/cups/tmp /var/lib/samba /var/lib/nessus \
    /mnt/cdrom /mnt/floppy /mnt/hd /mnt/test \
    /home/knoppix /root /etc/sysconfig /etc/X11 /etc/cups /etc/dhcpc /opt/lampp
    So, i make ISO file, burn and ... read only again

    Looks like, this is not all i have to write to linuxrc file. I was looking this code above in linuxrc file:


    Code:
    # We need /bin/mount here for the -o size= option
    /bin/mount -t tmpfs -o "size=${RAMSIZE}k" /ramdisk /ramdisk && mkdir -p /ramdisk
    /home /ramdisk/var && ln -s /ramdisk/home /ramdisk/var /
    I dont know where and what must be changed, but i think something happens here.

    Thanks

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU picture

INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU

$11.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$350.48



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid picture

DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid

$139.99



Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA

$374.48



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00



DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11 picture

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11

$149.00