RSS
 

Archive for the ‘Operating System’ Category

Recursively removing .svn folders

15 Sep

Some time I would like to unversion a working copy of my subversion project. I know there is a way to get it from svn commands but this how bash or terminal do it:
This a handy script to delete all .svn hidden directories

#!/bin/sh
echo "recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`
 
No Comments

Posted in Ubuntu

 

Ubuntu: installing Opencv from source step-by-step

25 Aug

To install OpenCV library in Ubuntu from source, I tried these steps. The code of OpenCV is not the last but the one which is in the Ubuntu repository. If you want to install the last version just download it from the official SVN in sourceforge.
[ad#Amazon Opencv]
You can install opencv anywhere but its best you put in the propoer place

1) Sign as root

sudo su

2) Go to

cd /usr/local/src

3) prepare your environment

apt-get install build-essential

4) prepare your environment

apt-get install dpkg-dev

5) Download opencv packages

apt-get source opencv

6) Go to extracted opencv folder

cd opencv-1.0

7) List all dependency package informed in

more /debian/control 

8) Install all dependency package informed in /debian/control by invoking

apt-get install [package-1] package-2] [packga-3] ... [package-n]

9) Also install other necessary package

apt-get install fakeroot ffmpeg quilt

10) Build package by invoking

dpkg-buildpackage -us -uc -rfakeroot

11) Go to samples folder

cd /samples/c

12) Build samples

make -f  Makefile.debian

13) Plug in your webcam and run the samples

./facedetect

14) See you face detected in monitor

 
No Comments

Posted in Ubuntu

 

Ubuntu: Install Opencv from source step-by-step

25 Aug

To install OpenCV library in Ubuntu from source, I tried these steps. The code of OpenCV is not the last but the one which is in the Ubuntu repository. If you want to install the last version just download it from the official SVN in sourceforge.
[ad#Amazon Opencv]
You can install opencv anywhere but its best you put in the propoer place

1) Sign as root

sudo su

2) Go to

cd /usr/local/src

3) prepare your environment

apt-get install build-essential

4) prepare your environment

apt-get install dpkg-dev

5) Download opencv packages

apt-get source opencv

6) Go to extracted opencv folder

cd opencv-1.0

7) List all dependency package informed in

more /debian/control 

8) Install all dependency package informed in /debian/control by invoking

apt-get install [package-1] package-2] [packga-3] ... [package-n]

9) Also install other necessary package

apt-get install fakeroot ffmpeg quilt

10) Build package by invoking

dpkg-buildpackage -us -uc -rfakeroot

11) Go to samples folder

cd /samples/c

12) Build samples

make -f  Makefile.debian

13) Plug in your webcam and run the samples

./facedetect

14) See you face detected in monitor

 
No Comments

Posted in Ubuntu

 

Ubuntu: Intel Graphics on X200 with intrepid

29 Jul

I installed ubuntu intrepid on my thinkpad x200. It is mostly working but the graphics were big enough to annoy me.
I tried many xorg.conf configuration and this on worked perfectly for me to fix the screen resolution to wxga.

Section “Device”
Identifier “Configured Video Device”
Driver “intel”
Option “monitor-HDMI-1″ “HDMI-1″
Option “monitor-HDMI-2″ “HDMI-2″
EndSection

Section “Monitor”
Identifier “Configured Monitor”
EndSection

Section “Monitor”
Identifier “HDMI-1″
Option “Ignore” “True”
EndSection

Section “Monitor”
Identifier “HDMI-2″
Option “Ignore” “True”
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Modes “1280×800″ “1024×768″
Virtual 2432 864
EndSubSection
EndSection

 
No Comments

Posted in Ubuntu

 

Ubuntu: Very good HowTo for everything

29 Jul

I found in Internet a good web page to install many useful thing for Ubuntu.
I paste it for my own reference and it may help othres.
Here is the page
—————–
Here is the summery

Initial setup

  1. Install Ubuntu
  2. Update and upgrade package sources
  3. Turn on the firewall
  4. Install the graphics driver

Multimedia

Internet & Networking

Filesystem

Scientific & Programming

Misc

 
No Comments

Posted in Ubuntu