[suggestion] About Software

Hi all!!!

Im playing these days with DietPi and I love this lightweight distro and the concept it has been developed.

Testing here and there I have been able to run PiHole, Kodi, Samba, OpenSSH and so on.

But for some reason I havent been able to install phpBB forums. And after a failed installation I dont know how to manage created database or how to correct mySql user and so on with different apps tested. Even using dietpi-uninstall to remove phpBB and reinstalling it does not run the very first script to configure it.

So I tried to configure and create database, database user … I tried to know about if apache and mySql service where up and running … but no way.

phpBB is just the example. I think it would be a nice idea attach for each piece of software some guidelines to know where are its config files, where is the file that starts it at boot and so on.

This is just my point of view as a noob. First of all I know its a hard and vast work. If there is something I can contribute to I will be pleased to do so.

Anyway I repeat this is a fantastic distro. Thanks.

Hi Dogdayfear,

This is excellent feedback, many thanks for sharing your suggestions, I’ve taken it all onboard. Adding the config file locations to documentation is an excellent idea. +1.

Regarding the PHPbb installation, what device and distro are you running (eg: Jessie RPiv2)?

First of all I know its a hard and vast work.

Compared to C++, unix shell scripts are a lot easier to work with. I find it relaxing :slight_smile:

If there is something I can contribute to I will be pleased to do so.

You’ve helped already with your excellent feedback. By all means, if you have any ideas/suggestions/improvements, please let us know.

Regarding the PHPbb installation, what device and distro are you running (eg: Jessie RPiv2)?

Its Wheezy RPiv2. I dont use Jessie because of an extrange error with closing SSH sessions when halting system. System does not halt. I tested official Raspbian Jessie and same error there with closing SSH sessions and halting system.

Last night I finally got phpbb3 installed and runnig. Its confussing (for me) the install script when asks for the mySql password. Now I know its ‘raspberry’ but this is not mentioned. I had to take a look to the LAMP documentation.

The same way I had to make a trick to figure out where phpbb3 was installed. LAMP thread says local directory = /var/www. But phpBB3 is not there.

So I looked for the name of an imge of the forum: example site_logo.gif.

Then I used:

find / -name site_logo.gif

to get that phpbb3 is installed in

/usr/share/phpbb3

Thanks a lot for your work and your support.

Ok, i’ve updated the installation method for phpBB3 in v101. It no longer uses the apt-get package. Instead, it will download the source.zip and automatically create the SQL database.

I’ve run through the installation and will update the documentation when its released.

If you want to test run the installation. See below.

Delete any previous phpbb3 sql databases with:

mysqladmin -u root -praspberry drop phpbb3 -f

Install:

wget https://www.phpbb.com/files/release/phpBB-3.1.6.zip -O package.zip
unzip package.zip -d /var/www
rm package.zip

chown -R www-data:www-data /var/www/phpBB3
/DietPi/dietpi/func/create_mysql_db phpbb3 raspberry root raspberry

Documentation Steps:
goto: http://192.168.0.100/phpBB3

Click the “Install” tab.
Click “Proceed to next step”
Click “Start install”

  • Database server hostname or DSN = localhost
  • Database name = phpbb3
  • Database username = root
  • Database password = raspberry

Click “Proceed to next step”
Click “Proceed to next step”

Create your admin account, enter your personal details.
Click “Proceed to next step”
Click “Proceed to next step”
Click “Proceed to next step”

Email and Server URL settings = Leave defaults
Click “Proceed to next step”
Click “Proceed to next step”
info = The database tables will now be generated, please wait.

Click “Login”
Using your admin login details that you created previously, you can now manage and create your forum pages.

As the installation is now completed, you will need to remove the installation folder, before the forum can be live. Run the following command:

rm -R /var/www/phpBB3/install

Your forum is now ready.

Yes, the installation steps are correct and forum is running.

Its a basic step-by-step installation method for phpBB3 so it works perfectly.

By the way Im testing Kodi. Your script installs an outdated version. Im trying with different methods to have Kodi 15.2 for wheezy working and Im almost done.

Just let me know if you are interested about this.

And another thing: I see that dietpi last version is v101, but download link is v94. It auto-updates itself from v94 to v101. And that is clearly an update process.

Do you consider creating a new fresh version instead of using updates over an old one? Just a noob question.

Thanks for your work.

Hi Dogdayfear,

Good to hear the new phpBB3 installation/docs are improved and working.

Kodi 15.2 for Wheezy would be awesome, we are currently using Michael Gorven’s repo for Wheezy (14.2). Please let me know how it goes.

Regarding the DietPi images, yes, they automatically update during 1st run. So unlike other image based projects, we dont need to make/use a new image each time.
I tend to update the images where there are a lot of big changes that take a long time to update. The image creation also takes time as we need to do each of the 6 images.

For now I have an stable installation of DietPi running kodi 15.1

The 15.2 version I found for Wheezy was not compiled with CEC so you cant control Kodi with your Tv remote.

14.x versions of Kodi have the well known bug of the blank screen after exiting the app the second time.

So for now my tests say the 15.1 is the most advisable version IMO.

But I will do a final clear install to test the process and to be sure everything works as expected.

Awesome stuff and great research. Let us know how it goes with 15.1 :slight_smile:

Finally I took the hard way: I have built Kodi 15.2 from source in DietPi v101. And it woks as expected !!!

Would like to know if there is a way to “pack” my compilation for use in the future without having to build it again. Something like creating a .deb package or a .tar.gz file for you and me to use in new DietPi installations. Let me know and I will do the job.

By the way, I have noticed that if for some reason you install Samba server via dietpi-software after having Kodi installed and running, Kodi stops working. I think it is because after installing Samba server, dietpi-config is recalled to split memory with Samba ideal values, but this values are not enought to run Kodi.

P.S. I think Im focusing this post to Kodi, when the porpouse was software in general. Is there any way to submmit suggestions in general without contaminating posts?

Thanks again.

You can use checkinstall:

apt-get install checkinstall

After you have run configure and make, you can run this from the same location:

checkinstall



By the way, I have noticed that if for some reason you install Samba server via dietpi-software after having Kodi installed and running, Kodi stops working. I think it is because after installing Samba server, dietpi-config is recalled to split memory with Samba ideal values, but this values are not enought to run Kodi.

Thanks for the report, i’ll take a look. You still using Wheezy RPIv2?

P.S. I think Im focusing this post to Kodi, when the porpouse was software in general. Is there any way to submmit suggestions in general without contaminating posts?

On Kodi forums no idea, on these forums DietPi software requests can be made here: DietPi Community Forum - Welcome to the DietPi OS Community Forum

Thanks for the report, i’ll take a look. You still using Wheezy RPIv2?

Yes, Wheezy RPIv2 and DietPi updated from v94 to v101.

I will build tonight and create packages. After that will test packages in a clean install to see if that works.

.deb package created, but wondering if it will work.

My current system with DietPi works too much well to destroy it. Perhaps will create a disk image to restore it and go for a new clean install of DietPi to test the created kodi, but not this week.

You can use dietpi-backup to create a system backup. This will create a “restore point” (similar to windows restore) that will roll your system to the previous backup state.

I use it all the time for testing. I install what I need, then, backup my system. I can now install/test any program or setup I need, then run dietpi-backup and restore to return it back to its original state.

dietpi-backup

A new Sd card has made the trick.

And as I expected kodi .deb package I have generated does not work. Lots of dependencies broken and missing libraries. :frowning:

I have seen people that has compiled kodi and they provide a .tar.gz file for other people. So you extract files and ./install to install kodi. That is what I want to get, but no idea wich files to include in that .tar.gz file after I build with make and make install.

With two sdcards now I can try to build kodi for DietPi, but need to know how can I create the final installation file for other people or even for me.

Ok, Ive got it.

Kodi 15.2 with remote control CEC working in Wheezy.

I have built it from source for DietPi and created .deb files and install script.

If you are interested about this, just let me know and I will send you the files.

Brilliant, please, i’d like to give it a spin to see if its better than the current installation (which i believe is 14.x).

Of course. Let me know the way you prefer me to send you the .tar.gz file containing all files. Of course you can check all files if you want and install script. I suppouse you can improve the install script, because mine is so basic, but I would like to know about your changes to learn.

Yep by all means, send everything over and i’ll take a look. Not sure if you can email (daniel_haze@hotmail.com) it due to size, would you be able to upload to megaupload/dropbox or something similar?

If I can improve the script, i’ll let you know what I changed and why.

Well I think I now really have it:

Its courious: I was going to test it again over a clean DietPi install a few minutes ago and then I saw that v94 does not updates itself because v102 is available for download so I have been able to do two more tests.

Some info:

  • Kodi 15.2 (latest stable) with CEC support built from source over DietPi Wheezy.
  • Tested over clean installs v94, v101 and v102.
  • No software added before installing with the ./install script.
  • No configs touched except memory splits, set to Game, cause needed by Kodi to run.
  • Works perfectly out of the box.

If you want to give it a try let me know.

Thanks.

Yep by all means, send it over and I’ll take a look.
I havn’t had the time to test the previous one you sent yet. Is this a new package or the same one you sent me?