Ads

Sunday, 20 November 2016

This tutorial will describes how to upgrade Ubuntu Server 12.04.x to Ubuntu Server 14.04 LTS. As we know, Ubuntu Server 14.04 is the latest version of ubuntu server edition that released by canonical few month ago.

NOTE : Before starting upgrade to latest version of ubuntu server, make sure you have full backups you data and everything important on your ubuntu server to other remote system or backup drive. If you are using Ubuntu on VPS make sure take a server snapshot at your provider before upgrading. And we do not grantees the following tutorial will work for you properly.


Step 1: 

Updating Ubuntu Repository and Install Update Manager

Make sure your current ubuntu server  is fully up to date, doing it with the following command:
sudo apt-get update
Install update manager core package with these command:
sudo apt-get install update-manager-core

Step 2: 

Check Current Version of Ubuntu Server and Kernel Version

Run the following command to check current version of ubuntu server and kernel information that used ubuntu server
lsb_release -a
lsb-release ubuntu server 12-04
uname -a
kernel version of ubuntu server 12.04
On this case, we are using Ubuntu Server 12.04.4 and kernel 3.8.0-29-generic

Step 3: Upgrade to Ubuntu Server 14.04 LTS

Type the following command to upgrade the Ubuntu server 12.04.4 to Ubuntu Server 14.04 LTS :
sudo do-release-upgrade -d
After execute command do-release-upgrade, it will showing the upgrade tool like the screenshot on below. Answer ” Y ” to upgrade.
checking package manager and starting additional SSH
During the upgrade prosess, you may be asked “Disable SSH password authentication for root?” answer “No” if you want to disable SSH password authentication after the upgrading finish
disable ssh password
Next, you may be asked “Restart services during package upgrades without asking?” answer yes if you won’t be asked on each library update.
restarting service during upgrade
The end of the installation you will be prompted to remove any obsolete packages, Answer ‘y’ to continue and remove. Hit ‘d’ to see details of these packages.
remove obsolete packages
Once remove obsolete packages is complete, you will get message “System upgrade is complete”. Congratulations, your Ubuntu Server 12.04 has now been upgraded to the Ubuntu Server 14.04 LTS. To complete the upgrade, reboot your Ubuntu Server by answering ‘Y’.
system upgrade is complete

Step 4 : Checking Version of Ubuntu Server and Kernel Version After Upgrade

Once your Ubuntu Server has been rebooted successfully, you need to check the version of ubuntu server and kernel version with the command “lsb_release -a” and “uname -r”.
lsb_release -a
lsb-release ubuntu server 14.04
uname -r
check kernel version ubuntu server 14.04
The commands will confirm the Ubuntu Server that you are using is Ubuntu Server 14.04 LTS.
Optional: If you get information “No LSB modules are available ” after execute the command “lsb_release -a” . Fix this problem by installing “lsb_core” package:
sudo apt-get update
sudo apt-get install lsb-core
install lsb core ubuntu server 14.04
Now run again the command lsb_release -a to check for LSB modules. You should get information of LSB version like the following screenshot.
lsb_release a
checking lsb release
On this tutorial we also included video step by step upgrading ubuntu server 12.04 to ubuntu server 14.04. The following video created by LinuxScoop, original video can found here
Link Reference:
















Read More

0 comments:

Upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS



First things first: make sure that you are fully up-to-date. Double check by opening the Update Manager application from the dash and installing all updates listed.
When that’s done, open the Dash again and launch the Terminal application. When it opens click inside the window and type the following command carefully:
sudo update-manager -d
Hit the return/enter key and, if prompted, enter your user password.
The Update Manager application will open after a few seconds with a prompt to upgrade. Click this button to begin the process.
I tested this just now.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04 Codename: precise
Then:
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1,156 kB]
Fetched 1,156 kB in 0s (0 B/s)
authenticate 'trusty.tar.gz' against 'trusty.tar.gz.gpg' extracting 'trusty.tar.gz'

Also, while an LTS-to-LTS upgrade should preserve all your files it would be prudent to make a backup of any important documents, folders and photos before you begin. It’s rare for ‘direct upgrades’ to go wrong, but never say never.












Read More

0 comments:

Upgrade Guide UBUNTU 12.04 To 14.04 Trusty

Backups
Make sure you have full backups of everything on your server that is important to you. At the very least, you should generate full backups of all your Virtual Servers. You may also want to make a backup of everything in /etc.
Package Updates
Make sure your system is fully up to date by running these commands:
sudo apt-get update
sudo apt-get upgrade
Reset Dependency Flags
These packages are already installed, but the following command will tell apt not include them anytime "apt-get autoremove" is run:
apt-get install bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd webmin usermin webmin-virtual-server libcrypt-ssleay-perl webmin-virtual-server-theme webmin-virtualmin-dav webmin-virtualmin-svn webmin-virtualmin-awstats webmin-virtualmin-mailman webmin-virtualmin-htpasswd clamav-base clamav-daemon clamav clamav-data clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin usermin-virtual-server-theme procmail-wrapper php-pear php5 php5-cgi webmin-security-updates
Update Manager
Make sure you have the update manager core by running this command:
sudo apt-get install update-manager-core
Begin Upgrade
Run the following command to begin the upgrade process. Ubuntu suggests running this from the console, though it should also work from SSH:
do-release-upgrade -d
And then follow the on-screen instructions.
In general, if you are prompted about whether to replace a config file with a new one, or keep your existing one -- we would suggest keeping your existing config.
Coffee
Now is an excellent time to go get some coffee or another beverage of choice, while the packages are downloaded and installed :-)
Reboot
When the upgrade completes, it will prompt you to reboot your system. Perform the reboot, and when your system comes back online, there's just a few more things to change.
Change apt config
Edit /etc/apt/sources.list, and uncomment the Virtualmin repositories. Then change any references of "precise" in those repositories to "trusty".
Run this command, and make sure the new apt config works properly:
apt-get update
Apache Config
There were some significant changes made to Apache. You'll need to make the following updates to /etc/apache2/apache2.conf:
Comment out the following lines that appear in the apache2.conf:
Include httpd.conf
Include conf.d
LockFile ${APACHE_LOCK_DIR}/accept.lock
Re-enable Apache modules:
a2enmod suexec
a2enmod actions
Now enable some Apache modules:
a2enmod suexec
a2enmod rewrite
Then restart Apache:
service apache2 restart
Verify DNS Config
Edit /etc/resolv.conf, and verify that the nameserver line is configured to use 127.0.0.1 as a nameserver.
Test
That's it for configuring your updated system. Now it's time to test your services and websites!
Read More

0 comments:

This article will help you to upgrade Ubuntu 12.04 LTS to Ubuntu 14.04 LTS. Read more about Ubuntu 14.04 LTS.
Note: Before starting release upgrade on Ubuntu, We recommend to take backup of impotent data to other remote system or backup drive. We do not grantees that below steps will work for you properly. The commands use in this article has been taken from here.
To download Ubuntu 12.04 Trusty Tahr ISO images, Visit to http://releases.ubuntu.com/trusty/

Step 1: Install Ubuntu Core Update Mamanger

Generally update-manager-core was installed on system by default, but in case you do not have it, You can install it using following commands.
$ sudo apt-get update
$ sudo apt-get install update-manager-core

Step 2: Check Current Version and Available Upgrade

To check your current running version use lsb_release command.
$ lsb_release -a

LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:.....
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:   precise

Now check for new Ubuntu release available to update
$ sudo do-release-upgrade --check-dist-upgrade-only --devel-release

Checking for a new Ubuntu release
New release '14.04' available.
Run 'do-release-upgrade' to upgrade to it.

The above output showing that newer release 14.04 is available to upgrade

Step 3: Upgrade to Ubuntu 14.04 LTS

Lets execute following command to upgrade ubuntu release to Ubuntu 14.04 LTS (Trusty Tahr).
$ sudo do-release-upgrade --devel-release
The above command will take long time to execute depends on your system configuration and internet speed. This will also ask for confirmation to proceed. Using –devel-release will upgrade to development (Unstable) release





Read More

0 comments:

Thursday, 17 November 2016



If you are trying to connect with remote mysql database to perform remote management or connectivity with some web app to add data into the db , and sees the following error


Connection failed: Access denied for user ‘zaib’@’x.x.x.x’ (using password: YES)
OR
Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server

Then you need to grant access to the user from any hostname. This is how you add new privilege from mysql command line.

NOTE: Please beware that this is for just example purpose only , and you MUST take good security measures like Strong Password, and allow only specific IP address to access etc.


CREATE USER 'zaib'@'localhost' IDENTIFIED BY 'zaib1234';
 
GRANT ALL PRIVILEGES ON *.* TO 'zaib'@'localhost' WITH GRANT OPTION;
 
CREATE USER 'zaib'@'%' IDENTIFIED BY 'zaipassword';
 
GRANT ALL PRIVILEGES ON *.* TO 'zaib'@'%' WITH GRANT OPTION;
 
FLUSH PRIVILEGES;


Sample PHP page to test Remote Mysql connection

Now you can test it with sample php page. change the host name of remote mysql server, and the id , password we just created in above steps.


<?php
$servername = "remote.mysql.host.ip.or.name";
$username = "zaib";
$password = "zaibpass";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully. Hurraahhhhh/Alhamdolillah";
?>



Read More

0 comments:

Monday, 7 November 2016

Mikrotik hotspote login page Free Download

Green Hotpost login page have Packages, Services and Contact Us pages.

















Read More

0 comments:

Recent News