Sunday, August 28, 2011

Bluetooth in Lubuntu 11.04

Man, all the while I thought there was a problem with this notebook's wifi Atheros driver, it turns out Lubuntu 11.04 doesn't install the Bluetooth apps, much less show it in the taskbar, by default.

Here it is:
1. First install the bluetooth package
sudo apt-get install bluetooth

2. Then install the personal file sharing thingy (this is needed for the bluetooth device - i.e. my phone - to be able to send files, and for the laptop to receive those files)
sudo apt-get install gnome-user-share

3. Then in the Preferences - Desktop Session Settings, put a tick mark on Bluetooth Manager. To make sure bluetooth service starts on every boot-up.

Saturday, August 27, 2011

Atheros wifi + bluetooth on Lubuntu 11.04


Link describing atheros wireless drivers in ubuntu 11.04, which is in the notebook I'm working on right now, this troublesome sandy-bridge HP Probook 4230s

Source: Ubuntu forum thread

sudo nano /etc/modprobe.d/blacklist-ath_pci.conf

and comment out the line
blacklist ath_pci

with
# blacklist ath_pci

hopefully this will make the bluetooth work.

Saturday, August 20, 2011

Brain food - PHP, mySQL, Apache stuff

Here are some common tasks that a newbie in PHP needs to memorize:

Restarting Apache, after doing some tweaks
sudo /etc/init.d/apache2 reload

Editing the php.ini file
sudo nano /etc/php5/apache2/php.ini

php.ini to display errors, for the development web server:
After opening the php.ini file for editing, scroll down to the Error handling and logging section.

Comment out the error_reporting = ... line, copy-paste it to a new line, and change it to:
error_reporting = E_ALL

Scroll down further to the line display_errors = ... and change it to:
display_errors = On

Accessing mySQL at the command-line:
mysql --user=root --password={root's password]


Saturday, August 13, 2011

Installing dotProject in Lubuntu

Documentation of my experience with dotProject starts here.

Installation steps

And a review of some basic Linux commands here.

And also a review of getting / setting permissions here.
Prerequisites:
1. A working Linux-Apache-MySQL-PHP machine


Move the downloaded file to the web server's root directory.
cd ~/Downloads
sudo mv dotproject-2.1.5.tar.gz /var/www

Unpack the file:
sudo tar -xzf dotproject-2.1.5.tar.gz

Delete the tar.gz file:
sudo rm dotproject-2.1.5.tar.gz

Now run the installer in the browser with this URL:
http://localhost/dotproject/install/

Then review the checklist and settle these to be resolved first:
./includes/config.php writable? - this should be writable
./files writable - this shouldn't be World Writable; come up with a more restrictive setting
./files/temp writable - this should be writable for PDF report generation
./locales/en writable - Translation files cannot be saved. Check /locales and subdirectories for permissions.

Check if we have the temp folder, and create if none:
cd /var/www/dotproject/files
mkdir temp
Then set the proper permissions:
cd /var/www/dotproject
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
sudo chown -R www-data:www-data /var/www/dotproject
(source link here)

Taking care of the PHP setting use_trans_sid:
sudo nano /etc/apache2/sites-available

And change that section AllowOverride None to AllowOverride All:
        
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All 
                Order allow,deny
                allow from all
        

But I still can't get this. Better study .htaccess tweaks here.

Create a new dp_user with password using phpmyadmin. Grant full access rights.
Then continue dotProject by clicking on the install button.