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
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
Would help if we knew the version. Remastering anything from 3.8.x onwards utilises UNIONFS and thus all directories are writeable.Originally Posted by Sass
Working with Knoppix 3.7.
thx
Someone maybe know right solution?
Do i need to make remaster with 3.8?
thx
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.
Hi Mark
I have the same problem, but i dont know where should i put your kode.
Can you help me, please.
thx
I put this script in the /KNOPPIX/usr/local/bin/ directory.
I presume you want to change theCode:#!/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"
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.
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
Hi Axy,
Re: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 dont have /usr/local/bin directory, only /usr/local/sbin
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
Just add /opt/lampp to the mkdir -p list.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
Regards,
Mark
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
So, i make ISO file, burn and ... read only againCode: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
Looks like, this is not all i have to write to linuxrc file. I was looking this code above in linuxrc file:
I dont know where and what must be changed, but i think something happens here.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 /
Thanks

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99
IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99
Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00
IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99
IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99
Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00
IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00
1 X IBM 720 POWER SERVER WITH 32 GB RAM
$344.97
IBM System X3650 M3 Server Xeon E5620 2.4 GHz 16 GB Ram Raid M5015 No OS No HDD
$87.96
IBM 00FN709 X3850 X6 Compute Book 3837 Barebone
$114.99