Вы находитесь на странице: 1из 11

Install Ubuntu MATE 15.

10

To try Ubuntu MATE 15.10, simply download the image that


matches your processor type (32bit or 64bit) from the link
below: (Ctrl + Click)
Download Ubuntu MATE 15.10

Recommended
Pentium III 750MHz
512 MB of RAM
8 GB of available space on

Core 2 Duo 1.6GHz


2 GB of RAM
16 GB of available space on

the hard disk


Video Adapter and monitor

the hard disk


3D capable Video Adapter and

with 1024 x 768 or higher

wide screen monitor with 1366

resolution
Bootable DVD Drive
Keyboard and Mouse
Sound Card and Speakers

x 768 or higher resolution


Bootable DVD Drive
Keyboard and Mouse
Sound Card and Speakers

Press F8 to modify the boot order of your system to boot from


CD/DVD first.

you can now reboot your system and follow the installation
Instructions below.

Once your system has booted, you will be greeted with a


welcome screen similar to the one below.

Welcome Screen : choose the option "Install Ubuntu", you can


specify the language to be used throughout your installation.

Preparing to Install Ubuntu MATE 15.10 : You should have at


least 6.6 GB ( Ubuntu 15.10, - 6.9 GB) of available drive
space, To continue with your installation, click on the
"Continue" button in the lower right hand corner.

Installation Type : Click on the "Something else" option, you


can create or resize partitions yourself or choose multiple
partitions for ubuntu.

For example you have 250 GB Hard disk, create partition


like below

100 GB

for root

/home

100 GB

for storage spcae

/boot

20 GB

for boot

/swap

20 GB

for swap memory

free space

10 GB

After partition disk, click on the "Erace Disk and install


Ubuntu" option and click "Install Now" button.

Where are you : specify your geographical location like


kolkatta.

Keyboard Layout : select your keyboard settings/layout. For


example I have chosen the keyboard layout "English (UK)".
Click "Continue" to carry on with the installation process.

Who are you : You must provide a name for your computer to be
identified on your network (hostname). It is advisable to
Select the option "require my password to login" as extra
security ( this is the default option). Once you have made
your choices, click "Continue".

Welcome to Ubuntu MATE : A slide show will display some of


the new features and software that are included within this
release of Ubuntu 15.10. No further action is required at
this stage of the installation process.

Installation Complete : your Ubuntu 15.10 installation is now


complete. You will now need to restart your computer to use
your new installation. Please remove any installation media
from your drives. Click "Restart Now".

Ubuntu MATE Login Screen : Once your system has started, you
should see a login screen. At this screen you must enter the
password for the user you created in the earlier steps.

Ubuntu MATE Desktop : Congratulations, you have successfully


installed Ubuntu MATE 15.10. You are now at the MATE desktop.

Install Boot Repair Tool & Compiler Software:

Press Ctrl+T to open terminal

/* Kernel Version Info */


uname -a

/* Boot-Repair */
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

/* Compiler software

*/

sudo apt-get install build-essential


sudo apt-get install libncurses5-dev libncursesw5-dev
gcc -v

/* Check the Modules */


cd /usr/src/linux-headers-4.2.0-16
sudo make menuconfig

/* Install SDK for c/c++*/


sudo apt-get install anjuta

/* Install for get Hardware Info*/


sudo apt-get install lshw-gtk

/* Install UBUNTU SDK IDE for C / C++ app development*/


sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-sdk

Install PIO-DIO : ( pio-d96 )


1. Linux Software Installation :
The PIO-D96 can be used in linux kernel 2.4.X and 2.6.X.
Note:
Ubuntu MATE 16.04 linux kernel 4.4.0.8 not supported.
Finally, Ubuntu MATE 15.10 linux kernel 4.2.0.16 supported.
More details refer,

(To Open Link : Ctrl + Click)

PIO-D96 Installation procedure


PIO-D96 Driver & Sample Code Download -

("Linux Driver" -

PIO/PISO Card Device Driver)


1.1. Linux Driver Installing Procedure

Download andd Copy the linux driver ixpio-0.20.4.tar.gz in


the directory \home\user\Downloads.

Decompress the tarball ixpio-0.20.4.tar.gz.

Type ./configure' to configure the package for your system.

Type `make' to compile the package.

Type `./ixpio.inst' to install the PIO/PISO driver module and


build the device file ixpioX in the device directory /dev
automatically.

Example:
/* Install Dio card */
cd /home/sara/Downloads/ixpio/
sudo ./configure
sudo make
sudo ./ixpio.inst

1.2. Linux Driver Uninstalling Procedure

Type `cd' to the directory containing the package's source


code.

Type `./ixpio.remove' to remove the PIO/PISO driver module.

Example:
/* Remove Dio card */
cd /home/sara/Downloads/ixpio/
sudo ./ixpio.remove

Install Driver for Libdc1394 Library Support for IEEE 1394 Cameras
:
Requirements :
Various libraries and modules required are:

Library: libdc13941.1.0

Supporting Library: libraw13941.2.0

Supporting Modules: ieee1394, raw1394, ohci1394, video1394

Linux Kernel: 2.6.10 or above

Prerequisite: Make sure that the kernel is compiled with IEEE1394


builtin support.

First Check these modules are installed -

ieee1394, raw1394,

ohci1394, video1394. To check use the below commands


/* Check the Modules */
cd /usr/src/linux-headers-4.2.0-16
sudo make menuconfig

The menu will come up. Select Device Drivers, The Device
Drivers menu will come up. Select IEEE1394 (Firewire)
Support, Mark the following as <M> in the menu that is shown:
a. OHCI1394 support
b. OHCI1394 Video Support
c. OHCI1394 DVI/O Support
d. RAW IEEE1394 I/O Support

Press ESC to come out of the menu

Save the configuration

/* Install libdc1394-2.2.4 & Sample code*/


cd /home/sara/Downloads/libdc1394-2.2.4/
./configure
make -j8

sudo make install

/* Install libraw1394-2.1.1 */
cd /home/sara/Downloads/libraw1394-2.1.1/
./configure
make -j8
sudo make install

/* Install the modules */


modprobe ohci1394
modprobe video 1394
modprobe ieee1394
modprobe raw1394
lsmod
(To view that all the modules like ohci1394 and video1394

are now installed.)


Note : Error will occure like below, No issue.
mate@mate:~$ modprobe ieee1394
modprobe: FATAL: Module ieee1394 not found in directory
/lib/modules/4.4.0-22-generic
mate@mate:~$ modprobe raw1394
modprobe: FATAL: Module raw1394 not found in directory
/lib/modules/4.4.0-22-generic

/* Create proper 1394 devices */


cd /dev
sudo mknod raw1394 c 171 0
sudo chmod 666 /dev/raw1394
mkdir video1394
sudo mkdir video1394
cd video1394
sudo mknod 0 c 171 16
sudo mknod 1 c 171 17
sudo chmod 666 /dev/video1394/*
Note : An automating module startup: Every time the system is

restarted, the nodes are

destroyed and the modules are removed

automatically.

In order to make sure the installation is correct, connect


the camera to the IEEE1394 card (assuming that the IEEE1394
card is already installed on the system) and just run
testlibraw:
testlibraw
This tests for the presence of the host card, camera and other

related parameters. Below is a

typical output from testlibraw:

Successfully got handle.


current generation number: 17.
1 card(s) found.
nodes on bus: 2, card name: ohci1394

/* Installation of Coriander */
sudo apt-get install coriander

/* Run libdc 1394 camera */


coriander

Make Own Program

/* Run libdc 1394 camera Own Program */

./camera
Note : include "cam1394.h".
Camera.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>

//gettimeofday

#include <pthread.h>
#include <sched.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "cam1394.h"
#define handle_error_en(en, msg)\
do { errno = en; perror(msg); exit(EXIT_FAILURE); } while(0)
struct timeval start, finish;
double msec;
FILE* imagefile;
unsigned int width = 1024, height = 1, left = 0, top = 0;
uint32_t selected_mode = DC1394_VIDEO_MODE_FORMAT7_0; //
DC1394_VIDEO_MODE_FORMAT7_7;

- types.h

dc1394video_frame_t *frame=NULL;
dc1394camera_t *camera;
dc1394error_t err;
dc1394_t * d;
dc1394camera_list_t * list;
dc1394video_modes_t modes;
uint64_t

cur_ts = 0, prev_ts = 0;

uint32_t loop = 0, loopcnt = 0;


void process1()
{
d = dc1394_new ();
// Initialize libdc1394
if (!d)
return 1;
err=dc1394_camera_enumerate (d, &list);
// Find cameras
DC1394_ERR_RTN(err,"Failed to enumerate cameras");
if (list->num == 0)
{
// Verify that we have at least one camera
dc1394_log_error("No cameras found");
return 1;
}
camera = dc1394_camera_new (d, list->ids[0].guid);
// Work with first (detected) camera
if (!camera) {
dc1394_log_error("Failed to initialize camera with guid
%llx", list->ids[0].guid);
return 0;
}
dc1394_camera_free_list (list);
//Sets image size
err=dc1394_video_set_iso_speed(camera, DC1394_ISO_SPEED_400);
err=dc1394_video_set_mode(camera, selected_mode);
err=dc1394_format7_set_image_size(camera,
height);

selected_mode, width,

err=dc1394_capture_setup(camera, 4,

DC1394_CAPTURE_FLAGS_DEFAULT);

// Setup capture

while(1)
{
//frame = NULL;
err=dc1394_video_set_transmission(camera, DC1394_ON);
// Start transmission
//capture one frame
gettimeofday(&start, NULL);
err=dc1394_capture_dequeue(camera,
DC1394_CAPTURE_POLICY_WAIT, &frame); // Capture
DC1394_ERR_RTN(err,"Problem getting an image");
gettimeofday(&finish, NULL);
msec = time_diff(start,finish);
cur_ts = frame->timestamp;
//printf("\n|image_bytes = %d | loop = %d-%d | Micro_sec
= %0.0f | ts =

%"PRId64" |", frame->image_bytes, loopcnt,loop++,

msec, cur_ts - prev_ts);


printf("\n| Data Capture in Micro_sec = %0.0f ", msec);
prev_ts = cur_ts;
if(loop % 10000 == 0)
{
loop = 0;
loopcnt++;
}
err=dc1394_capture_enqueue(camera,
frame);

// Release the buffer

}
err=dc1394_video_set_transmission(camera, DC1394_OFF)
Stop transmission
err=dc1394_capture_stop(camera);
//Stop capture
dc1394_camera_free (camera);
// cleanup and exit
dc1394_free (d);

//

}
int main(int argc, char *argv[])
{
process1();
return 0;
}
Makefile
## Created by Anjuta
CC = gcc
CFLAGS = -g -Wall
OBJECTS = camera.o cam1394.o
INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib
LIBS = -ldc1394 -lpthread
all: camera
camera: $(OBJECTS)
$(CC) -o camera $(OBJECTS) $(LDFLAGS) $(LIBS)
.SUFFIXES:
.SUFFIXES:

.c .cc .C .cpp .o

.c.o :
$(CC) -o $@ -c $(CFLAGS) $< $(INCFLAGS)
count:
wc *.c *.cc *.C *.cpp *.h *.hpp
clean:
rm -f *.o
.PHONY: all
.PHONY: count
.PHONY: clean

Вам также может понравиться