Showing posts with label remove. Show all posts
Showing posts with label remove. Show all posts

Saturday, September 11, 2010

Removing MySQL from the Linux boot sequence

Do you want to speed up your boot time? maybe you are a software developer that doesn't require MySQL server to be up and running eveytime you turn on your laptop, and if you are running Kubuntu Lucid Lynx (10.4) like me, you probably already noticed that configuring the startup scripts via sysvrc conf doesn't work anymore.


You can read more about the change in this link, but the important thing right now is how to stop MySQL from loading next time you boot the computer:

  • cd /etc/init directory
  • sudo editor mysql.conf
  • At the beginning of the file add a comment to the "start on" line (actually two lines)
In the same folder you will find other services that may be stop in a similar way.
 

Monday, November 16, 2009

Remove svn folders recursively

Today I was about to zip and send some code folders to a co-worker, at that point what I needed was a simple feature to remove all svn related things from this folder and recursively through all subfolders, I still don't know isn't this included as a feature by kdesvn, eSvn, QSvn or RapidSVN.

I'm a Linux user so this will do the trick:

find . -name ".svn" -exec rm -rf {} \;
 
In case you are using Windows and probably Tortoise you can go this way:

Export the current copy and choose a different folder, it will copy the code there and it will remove all svn things. Beware that if you choose the same folder Tortoise will just remove things without copying anything.

Well I hope this helps ;)

Monday, August 17, 2009

Removing old Linux Kernels

After a couple of years using Linux as my main operative system I noticed that the size occupied in the hard was growing and growing with each upgrade, also my grub list was including more and more kernel options that I don't use anymore so I decided to remove old kernels to "clean" a bit my hard drive.

First you should check your current available kernel version with this command:

"uname -r"

You will get a reply similar to this one:

"2.6.27-9-generic"

Open "Synaptic" package manager and search for "linux-image" and after scrolling down you'll find options similar to this:

linux-image-2.6.24-21-generic
linux-image-2.6.22-14-generic

Remove kernel versions you are not using anymore, in my case I decided to keep the current one and the previous one just in case I need it.

Just make sure you don't remove the current version otherwise you'll have a long week ;)