The balance of this article makes recommendations for making a Kubuntu installation suitable for a production environment.
The first task is to apply all available changes through the Discover file update system.
Install Chromium web browser using Discover.
Install the Grammarly plugin for Chromium. You may be asked to create a new account or log into your existing Grammarly account.
Install the Apache web server by using the following:
[codesyntax lang=”bash”]
sudo apt-get install apache2
[/codesyntax]
When prompted if the application should be added to the operating system respond with Yes.
Install the MySQL server by issuing the following command.
[codesyntax lang=”bash”]
sudo apt-get install mysql-server
[/codesyntax]
Create a MySQL by invoking the following command:
[codesyntax lang=”bash”]
sudo mysql
[/codesyntax]
At the prompt issue the following command:
[codesyntax lang=”bash”]
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'user_password';
[/codesyntax]
That command will create a new user. Now to grant permissions issue the following command:
[codesyntax lang=”bash”]
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
[/codesyntax]
Next, install PHPMyAdmin. This step causes the latest version of PHP to be installed as one of its dependencies. At the prompt select the Apache option. Create the database when prompted.
[codesyntax lang=”bash”]
sudo apt-get install phpmyadmin
[/codesyntax]
Go to the browser and log into PHPMyAdmin by issuing the following command:
[codesyntax lang=”bash”]
http://localhost/phpmyadmin
[/codesyntax]
Of course, supply the user name and password when prompted.
Install the Debian package builder by issuing the following command:
[codesyntax lang=”bash”]
sudo apt-get install checkinstall
[/codesyntax]
Install GTK+3.x by issuing the following command:
[codesyntax lang=”autoit”]
sudo apt-get install libgtk-3-dev
[/codesyntax]
Download wxWidgets from the wxWidgets site. Extract the downloaded files to the desired area for the subsequent build. Go to the root of the extract and create a directory named build. Change directory into the build subdirectory and issue the following command:
[codesyntax lang=”bash”]
../configure
[/codesyntax]
If configuration errors are present they will be printed in the text following the command. After there are zero configuration errors issue the following command:
[codesyntax lang=”bash”]
make -j4
[/codesyntax]
The -j4 option tells the make command to run 4 simultaneous tasks.
When the process completes with zero errors issue the following command:
[codesyntax lang=”bash”]
sudo checkinstall
[/codesyntax]
Follow the suggested prompts and proceed to build the Debian package and install wxWidgets 3.1.2.
Install MySQL c++ connector by issuing the following command:
[codesyntax lang=”bash”]
sudo apt-get install libmysqlcppconn-dev
[/codesyntax]
Install this option installs the required Boost libraries.
Go to the subdirectory containing the CodeBlocks source code and issue the following command:
[codesyntax lang=”bash”]
./configure --with-contrib-plugins=all
[/codesyntax]
When the configuration is complete without errors issue the following command:
[codesyntax lang=”bash”]
make -j4
[/codesyntax]
The -j4 option tells make to run four simultaneous tasks.
After make completes successfully issue the following command:
[codesyntax lang=”bash”]
sudo checkinstall
[/codesyntax]
Respond with the defaults when prompts appear to build the package successfully.
You may need to configure shared libraries by issuing the following command:
[codesyntax lang=”bash”]
sudo ldconfig
[/codesyntax]
You should be able to invoke the CodeBlocks IDE.
Install MySqlClient by issuing the following command:
[codesyntax lang=”bash”]
sudo apt-get install libmysqlclient-dev
[/codesyntax]
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.