Category: Linux

Aug 11 2010

Add method to VFS in Minix.

Good Night,

First of all, what is VFS? VFS means Virtual File System. It is a layer that exists in a lot of OS and in Minix too, this layer takes care of the communication with the File System. It is a Master’s thesis in Computer Science from Balázs Gerófi and the name is “Design and implementation of the MINIX Virtual File system“.

Read more »

Aug 04 2010

Torrent Client in linux server with web access

Hello

Why to create a server with a torrent client with web access? I live with other people that uses torrent too. I had a computer running a server with other services, so I decided to add this client (transmission-daemon) with web access, in this way we don’t need to let computers on. Just this one. Everybody have web access to it and it is so simple to use.

But wich client to use? I searched a little bit and found that exists some famous ones as w3btorrent and torrentflux. but they need a web-server running like apache. And I don’t want to setup it too, because I don’t need it. So I choosed transmission the native torrent client in Ubuntu.

So, to install it in Ubuntu server you use:

$ sudo apt-get install transmission-daemon

Now you need to setup it, my configuration file was in /home/user/.config/transmission-daemon/settings.json

The options are a lot but it is easy to understand them.

Read more »

Aug 04 2010

How to split large file in smaller files using Linux

Hello,

To split a large file in several smaller files, you can use Split from Linux. How it works? Man split.

split –bytes=1m /path/large/file /path/output/file/prefix

You can replace the suffix of –bytes with many values as follow:
kB = 1000
K = 1024
MB = 1000 * 1000
M = 1024 * 1024
G = 1000 * 1000 * 1000
GB = 1024 * 1024 * 1024

Best Regards,
Matheus

Reference:

http://www.techiecorner.com/107/how-to-split-large-file-into-several-smaller-files-linux/

Jul 06 2010

Use Firefox 4.0 Beta in Ubuntu

Hello,

I was reading my feeds and saw that Firefox 4.0 Beta was available. I verified what happened and I discovered that Mozilla Foundation transformed the version 3.7pre6a in 4.0b1.

I used it and didn’t notice any big improvement. Here a screenshot from it.

firefox-4-beta

So how to use it?
Firefox 4.0 beta – Linux 32 Bits
Firefox 4.0 beta – Linux 64 Bits
Firefox 4.0 beta – others

After the download, close your firefox. Extract. Execute the file firefox. If you want to keep using it, you can create a shortcut to it.

Matheus

Aug 19 2009

Facial Recognition using Ubuntu.

Good Night,

I was reading about Facial Recognition and found pam-face-authentication. You must have this packages to use it:
Opencv 1.0.0 +
libpam (dev version)
libX11 (dev version)
Qt4.5 (dev version)

So I decided to try it. Let’s start.

Open CV – How to Install
This is a resume of what I did

1. Install the build-essential

$ sudo apt-get install build-essential

2. Access synaptic and search for “CMake”, Subversion, GTK+ 2.x, libpng, zlib, libjpeg, libtiff, libjasper, python 2.3+, swig. Don’t forget to install the -dev packages too

3. Install libavformat-dev

$ sudo apt-get install libavformat-dev

4. Download the opencv library

$ svn co https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary/tags/latest_tested_snapshot

5. Go to the download folder

$ cd latest_tested_snapshot/opencv

6. Create dir release

$ mkdir release

7. Access it

$ cd release

8. Use cmake (Don’t have sure if .. is necessary.)

\
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..

9. Make it

$ make

10. Install it

$ sudo make install

11.

$ sudo ldconfig -v

12.

$ cd bin

13. Verify if the dependencies works.

$ ./cxcoretest

Now go to Synpactic again and look for Libpam, libX11, Qt4.5 (don’t forget the -dev version)

How to install pam-face-authentication? Install PAM-FaCE-AUTH (reference)

1. Download pam-face-authentication (download the last version in my time I used 0.3)

$ wget http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz

2. Extract it.

$ tar -xf pam-face-authentication-0.3.tar.gz

3. Go to extracted folder

$ cd pam-face-authentication-0.3

4. Create build

$ mkdir build

5. Go to folder

$ cd build

6. (Don’t have sure if .. is necessary.)

$ cmake -D CMAKE_INSTALL_DIR=/usr ..

7.

$ make

8.

$ sudo make install

Access Applications – Other – QtFacetrainer. Configure it. Go to Advanced and test it.

If you want to use it when somebody uses the “su” command. Edit “/etc/pam.d/su”

$ sudo vi /etc/pam.d/su

Add this line in the begin of the file

auth sufficient pam_face_authentication.so enableX

If you don't want a window showing the webcam remove the enableX

Matheus

Other reference

Aug 17 2009

Install Ubuntu 9.10 Alpha 4 from Pendrive

Hello,

Just to report how I installed Ubuntu 9.10 Alpha 4 using my Pendrive. First I download it from http://cdimage.ubuntu.com/releases/karmic/alpha-4/

After this I used the “System – Administration – USB Startup Disk Creator”, choosed the image that you want and press “Make Startup Disk”.

Than just boot from the PenDrive and install normally.

Matheus

Aug 16 2009

Install NVIDIA Graphic Card in Ubuntu

Good Night,

If you want to install NVIDIA proprietary driver. First of all see if you don’t have any other version installed. Using Ubuntu go to: System – Administration – Hardware Drivers. Disable it if you want.

To verify the newest version http://www.nvnews.net/vbulletin/showthread.php?t=122606

1. Download the version that you want to install.

2. Access console pressing ctrl+alt+f1 (Don’t do it know!)

3. $ cd /download/place/

4. Close the GDM (Gnome Desktop Manager) using: sudo /etc/init.d/gdm stop

5. Run the installer: $ sudo sh ./Nxxx.run (maybe you will need to use chmod +x Nxxx.run)

6. During the installation choose “Update xorg.conf automaticlly..

7. Reboot your system: sudo reboot

In the portuguese version this is almost a translation of http://ubuntuforums.org/showthread.php?t=990978

Matheus

Jul 06 2009

Serial Mouse with Scroll on Ubuntu 9.04

Hello,

Just changed my mouse to a Serial one, and the Scroll don’t work. So what to do?

Edit /etc/X11/xorg.conf and add this lines:

Section “InputDevice”
Identifier “Configured Mouse”
Driver “Mouse”
Option “CorePointer”
Option “Device” “/dev/ttyS0″
Option “Protocol” “IntelliMouse”
Option “ZAxisMapping” “4 5″
EndSection

Remember that your Protocol can be other, so verify it typing:

$ inputttach –help

Best Regards,
Matheus

Jul 04 2009

Install Apache2, PHP5, PHPmyAdmin, MySQL

Hello,

I will just show how to quickly install Apache 2, PHP5, MYSQL and PHPmyAdmin in Ubuntu.

Install apache2 with:

$ sudo apt-get install apache2

Install PHP5:

$ sudo apt-get install php5 php5-common php5-cli

Install MYSQL:

$ sudo apt-get install mysql-client mysql-server

(During the installation it will ask you password for root user of MySQL)

Install PHPMyAdmin:

$ sudo apt-get install phpmyadmin

(It will ask the MySQL password and of the PHPMyAdmin user)

Best Regards,
Matheus

Jun 15 2009

Update End Point, TunnelBroker

Hello,

If you want to UPDATE your tunnelbroker end point, you can use this: http://ipv4.tunnelbroker.net/ipv4_end.php

There are the format that you have to use. In /etc/rc.local file I add this line to get my IPADDRESS:

IP=`ifconfig eth0 | grep “inet addr” | cut -d : -f 2 | cut -d B -f 1 | sed ‘s/^ *//;s/ *$//’`

And after this one to update the ENDPOINT

wget https://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$IP&pass=senha&user_id=USERID&tunnel_id=TUNNELID

Best Regards,
Matheus