Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts

Friday, February 27, 2015

Ubuntu 14.04 with AMD Radeon Graphic Card

After setting up Ubuntu 14.04 with my AMD Radeon GPU, I have the following problems.


  • GPU fan nosie
    • It is because the default driver does not have the fan control, you could
    • Driver -> Additional Driver -> install fglrx-updates
  • Cannot full screen
    • After installing fglrx driver
    • $ sudo amdcccle
    • Display Manger -> Digital Monitor (1) -> Adjustments -> Scaling Options -> 0%


Monday, November 24, 2014

Update MySQL root password in Ubuntu 14.04

Edit /etc/mysql/my.cnf, and add the following line
 skip-grant-tables

Restart MySQL service
 $ sudo service mysql restart

Login to mysql and modify passwords
 $ mysql -u root
 mysql> UPDATE mysql.user set password = PASSWORD('YOUR NEW PASSWORD') where user = 'root' and host = 'localhost';
 mysql> quit

Restart MySQL service
 $ sudo service mysql restart

You should be able to login to MySQL with your new password
 $ mysql -u root -p

Tuesday, August 5, 2014

Can not log in to Skype in Ubuntu

Skype 4.2 worked perfectly until this morning in my Ubuntu 12.04. It took me a while to make Skype work again. This is how it works.

Remove Skype 4.2
$ sudo apt-get remove skype
Get rid of old Skype configuration
$ rm -fR ~/.Skype 
Download Skype 4.3 from Skype's website (http://www.skype.com/en/download-skype/skype-for-computer/). From there I got
skype-ubuntu-precise_4.3.0.37-1_i386.deb
*Depending on your machine and time, you might get different version of Skype.
*I tried to apt-get update to get the latest Skype. However, it seems the apt list is not up to date at that time, I can get the latest Skype by that approach.

Then install Skype 4.3
$ sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb
Hope it works for you  : )

Tuesday, March 19, 2013

Math extesion for MediaWiki


I spent quite a lot of effort to deal with Math extension for MediaWiki 1.19.2, and I have encountered the following errors: 
PHP Fatal error:  Call to undefined method TempFSFile::autocollect()
PHP Fatal error:  Call to undefined method FSFileBackend::getRootStoragePath()
This is how it finally works for (at least for me). BTW, I'm using Ubuntu 12.04.


1.First of all the HEAD in git did not work, you shall download the following version.
cd extensions
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Math.git
cd Math
git reset --hard 29a0a80e8fbb2d33507760075e4da9103439cbd9 
2.Install texvc, which generate graph for latex syntax
sudo apt-get install mediawiki-math
3.Modify LocalSettings.php:
require_once("$IP/extensions/Math/Math.php");
$wgTexvc = '/usr/bin/texvc';
4.Update your database to generate table for Math extenstion.
sudo php <your_path_to_wiki>/maintenance/update.php
5.Don't forget to check permission of folders to your wiki account. It should work.

If it still won't work, try to take a look at /var/log/apache2/error.log to see if there's any error message.
Hope this works for you : )

Thursday, November 15, 2012

Tip that make Firefox runs fast!


I found Firefox 16.0.2 works incredibly slow in Ubuntu 12.04.
After following some debugging procedures like this, I found that it is the "Global Menu Bar integration 3.5.4" Add-on that make Firefox slow.
Simply disable it make my Firefox runs fast again.