Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Feb 182010
 

Put a profile in AppArmor complain mode

Answer:

Some applications, such as the MySQL server, if you changed the default datadir, you might not be able to startup MySQL.

To solve the problem, put the MySQL profile in AppArmor complain mode can solve the problem.

# sudo aa-complain /usr/sbin/mysqld

Then reload AppArmor

# sudo invoke-rc.d apparmor reload

Feb 172010
 

Set system-wide environment variables in Ubuntu

Answer:

The recommended way now is to edit the file /etc/environment .

# vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

Add you key=value pairs into this file and save it.