Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, November 5, 2015

How to open big text files on Ubuntu

Problem:
You want to read a big text file. But the editor is very slow loading it.

Solution:
Chop the big text file into smaller ones.

split -b 1024k <path/of/your/filename.txt>

The Terminal command above splits the file path/of/your/filename.text into 1024kb files.

Wednesday, August 7, 2013

phpMyAdmin Installation on Ubuntu using Terminal

Had to install phpmyadmin on Ubuntu 12.04

Just used the following command:
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin


When asked to choose a Web server, I chose
[*] apache2


Clicked Enter when asked to create the database called dbconfig-common

Entered password for MySQL root, phpMyAdmin.

The installation completed but I was not able to open the link:
http://127.0.0.1/phpmyadmin/

Had to edit /etc/apache2/apache2.conf and added the following to the end of the file:
Include /etc/phpmyadmin/apache.conf


Restarted apache using
sudo /etc/init.d/apache2 restart


Finally, opened http://127.0.0.1/phpmyadmin/ again and it worked at last.

Wednesday, March 13, 2013

Installing rpm file in Ubuntu

Simple run the following command on your terminal:

sudo alien yourFileName.rpm

Then, double-click the generatd .deb file.


If alien is not yet installed, you will need to run the following command first:

sudo apt-get install alien dpkg-dev debhelper build-essential

Tuesday, June 5, 2012

Reset Ubuntu Panel

My Ubuntu 10.04 panel are not showing all the application icons that are currently running. It happened after an error occurred while opening my computer. Good thing the panel can be reset through the following terminal commands:

Unset all gnome settings:
gconftool --recursive-unset /apps/panel

Remove configuration files:
rm -rf ~/.gconf/apps/panel

Restart the Gnome panel:
pkill gnome-panel