Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts
8/04/2012
Compiling GIT on Ubuntu
While configuring the new webserver for the company I work at, I noticed that the git version that can be installed with the package manager is way behind the current git version, so I decided I was going to compile it from source, and while I was at it, create a .deb file so I can easily install it on other servers as well without having to recompile.
Let's make sure we have everything installed and all dependencies are met so we can actually compile git.
Next download the source code by either downloading directly from http://github.com/git/ or if you have git installed you can also just:
Because I already have git installed, and I want to update it, I simply remove it first:
Now cd into the git directoy and do the following:
This will check all dependencies. Next let's install into /usr and not /usr/local, just like Ubuntu, and we want to have everything, incl. documentation, so we add all to the command, like so:
This will take a while, but once it is finished, I COULD simply install it like so:
but, that's not what I want. Instead, I want to create a .deb package.
First let's create a description file for our package:
Add the following in the file:
Now we're ready to create the .deb file
The -D tells it to create a .deb package, --install=no means we do not want to install it right away. (Btw. if you do not have checkinstall, simply run sudo apt-get checkinstall).
When asked to create a documentation directory, simply enter y. Next change the maintainer to your email, and make sure to change the Name (2) to git-core! Add the version like so 1:1.7.12:04.08.12, where 04.08.12 is the current date.
Having done all that, just hit ENTER and watch it build our deb package.
After that, all that's left is to actually install our package:
Btw. here's a useful link which also explains how to install git on Ubuntu: http://evgeny-goldin.com/blog/3-ways-install-git-linux-ubuntu/
2/09/2012
Restore file permissions
I didn't test it but it must work for owners and owner groups too. Something like:
1/16/2012
11/01/2010
Ubuntu - find current graphics card model
lspci | grep VGAMore detailed information can be found by running:
sudo lshw -C video
Labels:
Ubuntu
Subscribe to:
Posts (Atom)