Monday, 22 June 2015

Installing SVN on Ubuntu 14.04

Used THIS site to install SVN on Ubuntu 14.04 x64:

How to setup SVN server on ubuntu 14.04

SVN (Subversion) is an opensource version control system. it is used to store previous changes of your project files like documentation, coding etc. also you can track and identify who made the particular changes in the project files . Here in this article we can see how to setup SVN server on ubuntu 14.04 .

Setup SVN server on ubuntu 14.04

Let’s start the installation .
Step 1 » Issue the below command to update the repositories.
sudo apt-get update
Step 2 » After updating repositories , Issue the below command to install SVN and apache webserver (To access SVN through http ) .
sudo apt-get install subversion apache2 libapache2-svn apache2-utils
Step 3 » Now create a directory and create a new repository in that directory ( Here i’m using testrepo as repository name ).
sudo mkdir -p /svn/repos/
sudo svnadmin create /svn/repos/testrepo

Step 4 » Now change ownership for the repository.
sudo chown -R www-data:www-data /svn/repos/testrepo
Step 5 » Create a file testrepo.conf in /etc/apache2/sites-available/ and add the below lines for creating apache virtual host.
SVNParentPath /svn/repos/ : Parent Directory without repository name.
AuthUserFile /etc/svnpasswd : File need to be created ( Step 8) for user details.
Step 6 » Issue the below command to enable the Site ( testrepo in the below command should match the file name created in the previous step )
sudo a2ensite testrepo
Step 7 » Now restart or reload apache service.
sudo service apache2 reload
Step 8 » Issue the command to create user for accessing repository and add the user details to /etc/svnpasswd file.
Use this command to create first user.
sudo htpasswd -cm /etc/svnpasswd user1
Use the same command without c option to create additional users.
sudo htpasswd -m /etc/svnpasswd user2
Step 9 » Now you can access http://yourip/svn/testrepo in your browser ( Eg http://10.0.1.15/svn/testrepo ) and you can see the page like below after successful authentication.
Setup svn server ubuntu 14.04
That’t it , your server is ready.
You could use svn clients such as Tortoisesvn on windows and Rapidsvn on ubuntu for commiting and updating repository.
good luck

Wednesday, 17 June 2015

Ubuntu 15.04 - Notebook instalation

I have been having loads of problems with my notebook hanging over the last 6 months and I have decided that I am going to replace Windows 8.1 with Ubuntu 15.04.

After a default installation I have installed the following software:

VirtualBox

Debian-based Linux distributions
Add the following line to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian vivid contrib
According to your distribution, replace 'vivid' by 'utopic', 'trusty', 'raring', 'quantal', 'precise', 'lucid', 'jessie', 'wheezy', or 'squeeze'.
(Up to version 3.2 the packages were located in the non-free section. Starting with version 4.0 they are located in the contrib section.)
The Oracle public key for apt-secure can be downloaded here. You can add this key with
sudo apt-key add oracle_vbox.asc
or combine downloading and registering:
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
The key fingerprint is
7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B 98AB 5139 Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded  here.)
To install VirtualBox, do
sudo apt-get update 
sudo apt-get install virtualbox-4.3
 

$ wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
$ sudo rm -rf google-chrome-stable_current_amd64.deb


Canonical Partners repository finally adds support for Ubuntu 15.04. Here’s how to enable the repository and install Skype 4.3 in Vivid Vervet
1. Enable Canonical Partners Repository:
The partner repository offer access to proprietary and closed-source software and are not enabled by default.
To enable it, launch Software & Updates from the Unity Dash, go to Other Software tab. Check the first two boxes which say “Canonical Partners” and “Canonical Partners(Source Code)”.
enable canonical partners
If for some reason, you don’t see them in the list, click Add button and add below lines one by one:
deb http://archive.canonical.com/ubuntu vivid partner
deb-src http://archive.canonical.com/ubuntu vivid partner
2. Install Skype
If you have Synaptic Package Manager installed (available in Software Center), you’re now able to search for and install skype after clicking reload in Synaptic.
If not, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the commands below one by one to refresh system cache and install skype.
sudo apt-get update

sudo apt-get install skype skype-bin
Once installed, launch Skype from the Dash/Menu and enjoy!

WINE

$ sudo add-apt-repository ppa:ubuntu-wine/ppa
$ sudo apt-get update
$ sudo apt-get install wine1.7 winetricks


Popcorn Time

sudo add-apt-repository ppa:webupd8team/popcorntime
sudo apt-get update
sudo apt-get install popcorn-time
 
 


 




Monday, 8 June 2015

Cacati Forgotten Admin password

Log into the server as root:

Log into mysql with the root user and password:

# mysql -uroot -u

Change to the cacti database:

mysql > USE cacti;

Change the password:

mysql > update user_auth set password=MD5('NEWPASSWORD') where username='admin';