Thursday, May 16, 2013

FIx Ubuntu 13.04 Taking Too Long to Boot, Shutdown or Restart

Today I'm so fucked up facing Ubuntu having problem while restarting and shutting down. There were times that Ubuntu took more than a minute to halt even in a fast drive like SSD.

However, i finally managed to find a solution that solved this f****** problem and the fixes also improve the shutdown time and boot time.

The steps are as follows:

1. Open network-manager.conf (located in /etc/init/) and add this line ("kill timeout 1") after "stop on stopping dbus" line. See diagram for reference. Note that you'll need the root privilege to edit the file so simply type this command in the terminal:

gksudo gedit /etc/init/network-manager.conf



Then, save all changes made to the file.

2. Open modemmanager.conf (located in /etc/init/) and add this line ("kill timeout 1") after "stop on stopped network-manager" line. See diagram for reference. Note that you'll need the root privilege to edit the file so simply type this command in the terminal:

gksudo gedit /etc/init/modemmanager.conf



Then, save all changes made to the file. Reboot/shutdown/power on your computer too see the result.

There's some case where this don't usually work and you'll have to do more than just editing the configuration file. To solve this, you have remove modem manager package from Ubuntu and delete the modemmanager.conf file manually (if somehow it's not deleted after removing the package).

To get this done, open a terminal session and run these commands:

sudo apt-get autoremove modemmanager

sudo rm /etc/init/modemmanager.conf

The 2 commands above removed modemmanager package and deleted modemmanager.conf file respectively. If you run into problems with your mobile broadband after running those commands, feel free to install back modemmanager package by running this command:

sudo apt-get install modemmanager

Modemmanager is sort of an extension, that mainly brings few hardware related patches (only supports mobile broadband modems) to the existing Network (Gnome) manager in Ubuntu. Usually the default network manager should be able to handle the modem.

Source:
hecticgeek.com

Special thanks:
ActionPinarch from #ubuntu channel on freenode

Monday, May 13, 2013

Monitor Computer Temperature with Psensor

Today i stumbled upon a tiny little program that can monitor your computer components such as processor and graphics card and display them so that you'll know if your computer is overheating. The program is psensor.



This program can be installed by running this command:

sudo apt-get install psensor

After installing it, jump over to your dash menu and type in 'psensor' (without the single quote of course) to start it manually. You can play with the preferences and yes, it will be executed on startup. Since this is bugging some people out there, you can hide the windows by checking 'hide window on startup' in the preferences menu.


** Don't bother about my high temperature coz i overclocked my computer. Yours should be a lot cooler.

Wednesday, May 8, 2013

Install Google Chrome In Ubuntu 13.04

Installing Google Chrome in Ubuntu 13.04 requires some work around since package 'libudev0' is not available in the Ubuntu 13.04 repositories. This only apply to fresh Ubuntu installation which mean if you're upgrading from Ubuntu 12.10, you'll never see this problem arise.




To fix this problem you have to resolve all dependencies especially the package libudev0 by manually downloading and installing it. Get the .deb package here:




Install libudev0 by using this command (refer image below) and reinstall Google Chrome. However you'll likely see error message like this:




This can be easily solved by running this command in terminal:

sudo apt-get install -f

That's it! Google Chrome installed successfully!