All of a sudden, the “Menu Bar” (equivalent to what we call Taskbar in Windows) on my Ubuntu has stopped showing me date & time for some unknown reasons. My first instinct were to check the System Settings -> Time and Date
As soon as you begin installing Ubuntu or being downloading packages, the number one question is, Why is this download taking so long?
The answer is simple, probably your mirror is not correctly set and its taking longer to download files. How to fix? simply follow these instructions
dig is a very useful utility to help webmaster and server admins alike. To install dig, just run the following in Ubuntu
sudo apt-get install dnsutils
I still remember the first time I test-drove Mandriva Linux (formerly known as Mandrake), I could run every other audio and video format out-of-the-box without downloading anything (it was a dialup modem era so downloading was a pain-in-the-rear).
Many years after, I finally installed Ubuntu 14.04 LTS on my new laptop but it does not recognize some of my mp3 files and im like “Are you kidding me?”
Im glad I found a solution, there is a package called ubuntu-restricted-extras (read the Wikipedia entry and Ubuntu documentation) that you can install and it support all major media formats, Codecs and even Flash Player. To install, you need to run
sudo apt-get install ubuntu-restricted-extras
Legal Notice Patent and copyright laws operate differently depending on which country you are in. Please obtain legal advice if you are unsure whether a particular patent or restriction applies to a media format you wish to use in your country.
phpMyAdmin is a very common and handy tool that most of the developers use. It is available on almost every server.
Installing phpMyAdmin on Ubuntu server is even easier, you just need to
sudo apt-get install phpmyadmin
but what if we accidently skip the configuration screen where phpmyadmin makes modifications to apache?
Dont worry just do the following
Edit Apache’s configuration file (assuming you are using apache2)
sudo nano /etc/apache2/apache2.conf # better to use the following command instead of the one above #gksudo gedit /etc/apache2/apache2.conf
Add the following line of code inside apache2.conf:
Now restart Apache:
sudo /etc/init.d/apache2 restart
Go to /phpmyadmin/ and login with your mysql username and password.
Few weeks ago I wrote an article on how to setup Xampp package on Ubuntu. Today, I am revisiting this.
I came across a great article straight from the Ubuntu community, it is very simple, very strraight forward to setup Apache / MySQL and PHP on your Ubuntu box (server or desktop)
Read the article here.
If you want to specify a default gateway or ip address for your Ubuntu installation, try the following steps.
Open SSH and type this command
sudo nano /etc/network/interfaces
You can edit everything there as shown in the screenshot below (click to enlarge)
auto eth0 iface eth0 inet static address 192.168.1.231 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.77 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.1.253 192.168.1.226 dns-search nextbridge.org
WARNING: Please use this method to install Apache, PHP and MySQL because its more suitable for most of your needs and has options to auto-upgrade your installation. The following method is obsolete and not recommended.
After trying to install Apache, MySQL and PHP on Ubuntu 8.10 via several methods listed over the web. I opted for xampp package for linux.
It is as easy as ABC
Download the xampp linux package from their official website
(I have selected NCHC, Taiwan as the mirror to download this package, you may try another)
Extract the files
sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt
Chmod the files to have nobody ownership
sudo chown -R nobody:root /opt/lampp/
Configure xampp security
sudo /opt/lampp/lampp security
Start xampp with this command
sudo /opt/lampp/lampp start
sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp restart
Login to ftp using the username nobody and the password that you have set up in the “xampp security”
To uninstall xampp
sudo rm -fr /opt/lampp
I wanted to download something off a sub-domain using wget that I have password protected using .htaccess
so the following command was NOT working
Luckily, we can pass two arguments to the same command and tell wget what the username and password is
wget http://secure.asim.pk/myfiles.tar --http-user=myuser --http-password=mypass
If you are using Ubuntu 8.10, have not enabled root user and trying to download to a directory that has “nobody” or “root” as owner then try pre-pending it with sudo
sudo wget http://secure.asim.pk/myfiles.tar --http-user=myuser --http-password=mypass
From the little help that I can get over the internet, I found out that you need to install the following packages to prepare the system for Webmin installation.
Run the following command over SSH or Ubuntu Desktop’s terminal window (Applications -> Accessories -> Terminal).
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
(Learn how to configure SSH on Ubuntu 8.10 if you want to have a remote access to your Ubuntu box).
Download the latest version of Webmin by running the following command (visit webmin download section for newer versions)
After the package has been downloaded, run the following command to install it
sudo dpkg -i webmin_1.500_all.deb
You should now be able to login to Webmin at the URL https://localhost:10000/ using root or any other user with sudo access.