OK. I think I found the answer after visiting AlexT's thread Edison opkg package repo created again (reading it more carefully), and following the posts of user rubidium.This is what I think I understood:
* Yes, the LAMP setting is possible and since it is still Yocto Linux it should be compatible with Intel XDK.
* Steps to do:
- Configure Edison for AlexT's repo according to Edison Package Repo Configuration Instructions
- Install Apache and PHP with opkg install apache2 modphp
- Start Apache with systemctl start apache2
Unfortunately my knowledge of Linux is such limited that I am stuck here:
- Does systemctl make that Apache will start automatically when Edison powered on?
- How to install MariaDB and start the service automatically?
- I think I read that the Edison has already some webserver running on port 80. Is this true and can I change the port, so that the Apache will answer to a standard request?
- Anything else to keep in mind (e.g. to have enough space for DB)?
Sorry to ask so many questions, but I want to make sure that the Edison is exactly what I need before I go any buy one.
Unfortunately I am stuck and need help!
Everything went more or less smoothly until I tried to install the MariaDB package. After installing and starting Apache as mentioned above I ran:
opkg install mariadb-server
This ended in a FATAL ERROR as it ran our of space (I think on the root partition).
Please help me!
Here is the output I got:
root@flaumibbq:/# opkg install mariadb-server Installing mariadb-server (5.5.40-r0) to root... Downloading http://repo.opkg.net/edison/repo/core2-32/mariadb-server_5.5.40-r0_core2-32.ipk. Installing libaio1 (0.3.109-r2) to root... Downloading http://repo.opkg.net/edison/repo/core2-32/libaio1_0.3.109-r2_core2-32.ipk. Installing perl-module-sys-hostname (5.14.3-r1) to root... Downloading http://repo.opkg.net/edison/repo/core2-32/perl-module-sys-hostname_5.14.3-r1_core2-32.ipk. Installing perl-module-file-temp (5.14.3-r1) to root... Downloading http://repo.opkg.net/edison/repo/core2-32/perl-module-file-temp_5.14.3-r1_core2-32.ipk. Running groupadd commands... NOTE: Performing groupadd with [ --system mysql] and 10 times of retry Running useradd commands... NOTE: Performing useradd with [ --system --home-dir /var/mysql -g mysql --shell /bin/false mysql] and 10 times of retry Configuring libaio1. /sbin/ldconfig: Writing of cache data failed: No space left on device Configuring perl-module-sys-hostname. Configuring perl-module-file-temp. Configuring mariadb-server. mkdir: can't create directory '/var/lib/mysql': No space left on device chown: /var/lib/mysql: No such file or directory FATAL ERROR: Could not find my_print_defaults The following directories were searched: /usr/bin /usr/extra If you compiled from source, you need to run 'make install' to copy the software into the correct location ready for operation. If you are using a binary release, you must either be at the top level of the extracted archive, or pass the --basedir option pointing to that location. The latest information about mysql_install_db is available at https://mariadb.com/kb/en/installing-system-tables-mysql_install_db Collected errors: * copy_file_chunk: write: No space left on device. * pkg_run_script: package "libaio1" postinst script returned status 1. * opkg_configure: libaio1.postinst returned 1. * opkg_conf_write_status_files: Couldn't close //var/lib/opkg/status: No space left on device.
You probably will have to repartition your rootfs as described elsewhere on this forum
Try "df -h" in console in order to see the remaining space
Thanks a lot. Yes, this is what I already confirmed as df shows that the root fs has no space left:
Filesystem Size Used Available Use% Mounted on /dev/root 463.9M 453.7M 0 100% / devtmpfs 479.9M 0 479.9M 0% /dev tmpfs 480.2M 0 480.2M 0% /dev/shm tmpfs 480.2M 504.0K 479.7M 0% /run tmpfs 480.2M 0 480.2M 0% /sys/fs/cgroup systemd-1 5.7M 5.3M 462.0K 92% /boot systemd-1 2.2G 13.1M 2.2G 1% /home tmpfs 480.2M 4.0K 480.2M 0% /tmp tmpfs 480.2M 0 480.2M 0% /var/volatile /dev/mmcblk0p5 1003.0K 19.0K 913.0K 2% /factory /dev/mmcblk0p10 2.2G 13.1M 2.2G 1% /home /dev/mmcblk0p7 5.7M 5.3M 462.0K 92% /boot
Unfortunately I could not find instructions on the internet how to reallocate space from one of the other filesystems to the rootfs (at least not for my level of knowledge). But thanks a lot for the hint regarding this forum. I will search it this evening.
It seems that some time between then and now, the amount of room in the file systems has been adjusted and this is no longer a problem.
Filesystem Size Used Available Use% Mounted on /dev/root 1.4G 561.2M 798.8M 41% / devtmpfs 479.8M 0 479.8M 0% /dev tmpfs
0 480.0M 0% /dev/shm tmpfs
572.0K 479.5M 0% /run tmpfs
0 480.0M 0% /sys/fs/cgroup systemd-1
5.4M 458.0K 92% /boot tmpfs
4.0K 480.0M 0% /tmp systemd-1
75.8M 1.2G 6% /home tmpfs
0 480.0M 0% /var/volatile /dev/mmcblk0p5
19.0K 913.0K 2% /factory /dev/mmcblk1p1
32.0K 14.9G 0% /media/sdcard /dev/mmcblk0p10
75.8M 1.2G 6% /home /dev/mmcblk0p7 5.8M 5.4M 458.0K 92% /boot
I followed the installation and start instructions for Apache2 that you listed, and followed the instructions from How do you disable the default Edison server? to dissable the default server so the Apache server comes up by default. Thanks for the info.