Professional Documents
Culture Documents
MEPIS
1) Click System Settings icon
2) Click Regional & Language
3) Click Keyboard Layout, choose the layout you want (eg. Arabic) and then click the arrow to add
to the list of active layouts
4) If you want to add lets say Arabic language to the Country/Region & Language, open Synaptic
Package Manager, download and install the package pertinent to the language you want to add,
in our example here the Arabic language package will be downloaded and installed (the kde4-
10n-ar package)
5) Click System Settings icon, then click Regional & Language, click the push button with Add
Language label and choose Artabic, then click Apply and you are done.
Linux & Windows talking & understanding each other (on a LAN):
Before getting 2 machines one having Linux OS and the other Windows on a LAN, lets first show how
Windows XP and 7 can see each other using a crossover Ethernet cable.
1) A unique workgroup name (we shall use WORKGROUP here) has to be set all machines on the
network (whether running Windows or Linux):
1-1) Windows XP: Click Start, then right click My Computer, select Properties, change
workgroup name. To WORKGROUP
1-2) Windows 7: Click Start, then right click Computer select properties, change settings and
assign the workgroup name.
2) In order to make the machines discoverable (seen by other machines on the network), the
security settings have to be adjusted accordingly
2-1) Windows 7: when you click Networks, a pop up frame will appear, when you click you
will get a drop down menu, choose Turn on network discovery, then click Make Network
Private.
2-2) Windows XP: open Control Panel, choose the Security Center icon, then click Window
Firewall, click the Exception tab, then mark File and folder sharing radio button, then OK and
you are done.
3) Now, in order to share files, you would have to do the following:
3-1) Windows XP: for example, right click Shared Documents, then choose Properties, click
Sharing tab, in the Network sharing and security sub-section click Network Wizard for the firsst
time, otherwise click Share this folder on the network.
3-2) Windows 7: right click the folder, select Properties then the Sharing tab and click Share. To
change the setting go to Network & Sharing center.
A couple of smb. Conf files (found in /etc/samba directory) the first was tried successfully on MEPIS
and the second on PCLOS:
[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
printer admin = root
[DEFAULT PRINTER]
comment = PRINTERNAME
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = root
[PUBLIC]
path = /HOME/PUBLIC
browseable = yes
read only = no
guest ok = yes
public = yes
create mode = 766
[home_directories]
path = /home/%U
read only = no
valid users = %U root
Windows XP:
1) Open Explorer (Windows)
2) From the menu, click Tools and choose Folder options
3) In the opened window, choose the View tab
4) Click the radio button Hidden files & folders
For MEPIS, the file could be something similar to the following (having the files on a flash memory
USB in folder named yyy):
<playlist>
<group title="group1">
<item url="file:///mnt/sdb1/yyy/file1.wmv"/>
<item url="file:///mnt/sdb1/yyy/file2.wmv"/>
<item url="file:///mnt/sdb1/yyy/file3.wmv"/>
<item url="file:///mnt/sdb1/yyy/file5.wmv"/>
<item url="file:///mnt/sdb1/yyy/file6.mpg"/>
<item url="file:///mnt/sdb1/yyy/file7.mpg"/>
<item url="file:///mnt/sdb1/yyy/file8.mpg"/>
<item url="file:///mnt/sdb1/yyy/file9.mpg"/>
<item url="file:///mnt/sdb1/yyy/file10.mpg"/>
<item url="file:///mnt/sdb1/yyy/file11.wmv"/>
</group>
</playlist>
For PCLOS, the file could be something similar to the following (having the files on a flash memory
USB in folder named yyy):
<playlist>
<item url="/media/KINGSTON/yyyy/file15.mpg"/>
<group title="group1">
<item url="/media/KINGSTON/yyy/file1.wmv"/>
<item url="/media/KINGSTON/yyy/file2.wmv"/>
<item url="/media/KINGSTON/yyy/file3.wmv"/>
<item url="/media/KINGSTON/yyy/file4.wmv"/>
<item url="/media/KINGSTON/yyy/file5.mpg"/>
<item url="/media/KINGSTON/yyy/file6.mpg"/>
<item url="/media/KINGSTON/yyy/file7.mpg"/>
</group>
</playlist>
B) Firebird:
1) Open the terminal (konsole), then log in as the superuser (eg. typing su and entering your
password when prompted to do so)
2) type gsec, when you get the prompt inside Firebird, type display to get a list of users.
3) Type help and you will get a list of acceptable commands for example adding a user with a
name and password plus other options, ….etc
C) Postgres:
1) Open the terminal (konsole), then log in as the superuser (eg. typing su and entering your
password when prompted to do so)
2) Type in su – postgres (respecting the spaces given)
3) type psql, now you are in the database, type help and you will get the essential help commands:
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
4) Under certain circumstances you migt have to type 1 of the following lines before step 3 above:
(this line starts the server)
postgres -D /var/lib/pgsql/data
or
pg_ctl -D /var/lib/pgsql/data -l logfile start
Building a playlist manually that later can be opened (loaded and played) by Totem, kmplayer or
RealPlayer:
1) Open a text editor blank document (eg. gedit, kwrite, or any other one).
2) Enter all the media files (videos) as shown in the example below:
[playlist]
NumberOfEntries=4
File1=movie1
File2=movie2
File3=movie3
File4=movie4
3) Save this file in the folder where the movie files are stored in,.and give it the name playlist.pls.
4) Later on, you can right-click the playlist and choose the program to open the play list with
ooo base – a database program that runs under Linux and can import structure (schema) and
data from Access (.mdb file extension) through gmdb2 0.6pre1 (GNOME MDB Viewer is a
graphical interface to MDB Tools. It lets you view and export data and schema from MDB files
produced by MS Access 97/2000/XP/2003)
Fig. 1
Fig. 2
Fig. 3
The first example, here, will cover the process to import a .mdb (Access database) into openoffice org
base program. Though, to achieve this objective, you have to download and install MDB tools and
GNOME MDB Viewer which is a graphical interface to MDB Tools. It lets you view and export data
and schema (structure) from MDB files (tables) produced by MS Access 97/2000/XP/200. You may use
the software package manager (eg. Synaptic) to search, download and install the above mentioned
packages. Having done that here is the procedure:
1) Open the terminal (konsole). Type in gmdb2, the progam will open, choose from the menu File,
click it and choose Open or click the Open icon, choose the database with the .mdb extension
that you would like to export its table (as text). Fig. 1 above.
2) Highlight the table you want to see its data, definition or to Export. Now, click Export, you will
get the window shown in fig.2 above. Click Browse and move to the folder where you want to
save the exported file to (eg. dicthk.txt).and click OK, then Export. Gmdb2 didd its job.
3) Now close the database and exit mdb2. Open openoffice org base program. The database
Wizard will open, Check Select Database, click Connect to an existing database (radio button),
choose Text from the pull-down list, then click Next. Fig. 4 below.
4) Now you are at Set up connection to text files, click browse and find the folder to which you
had saved the exported tables using gmdb2 in point (2) above (select the path to the Text files),
Fig. 5 below. Click Finish, then save the new database with the already saved text tables
(structure & data) under a name of your choice and the extension .ODF will be added
automatically, click Save.
5) Openoffice.org base database program will be opened with whatever tables you already save
using gmdb2, fig. 6 below.
6) Now you can add new tables, construct queries based on any table in the database file, build
screens (forms) to access the data in the tables (adding, modifying, deleting), prepare reports,
write procedures, ...etc.
Fig. 4
Fig. 5
Fig. 6
7) In base, when you want to build a screen (form), you may use any of these 2 ways: Create
Form in Design View or Use Wizard to Create Form. In our example here we shall use the
former method. Click forms to the left of you screen, the choose Create Form in Design View,
the form design window will open. From the tool bar (that has the controls) find the Label
co9ntrol and insert/size it on the form. Then either click the Form icon in the tool bar to the left
or right click the Label (control) and choose from the pop-up menu the Control item, click the
General tab and enter the name of the form, then click the Data tab and in the Content Type
field Query (you have the option to choose between Table, Query, SQL command) and the
query name or t able in the content field. Now dd the text Boxes to which the query or table
fields will be displayed.
8) If you want to change the format of the text displayed in the label control, then right-click the
label and choose Control from the pop-up menu, then in the General tab go to font and click the
square next to this field and proceed from there. If you want to make changes a form that you
have already created, right click it and choose Edit.
9) You can create Queries in one of 3 available options, namely, Create Query in Design View,
Use Wizard to create Query and Create Query in SQL View. In our explanation here we shall
use the first method.
10) Click Create Query in Design View, you will get a popp-up window listing all tables,
choose the table on which you want to run the query on, choose the table and click Add. Go to
the table below starting with the field, click the arrow and choose the field name from the table
you had chosen, then confirm the table having the field, then set the sort sequence (none,
ascending, descending) then save you query and you are done. You may now create a screen
(form) to display the query in it following the process given in (7) above.
Here is an example file including screens (forms), queries and imported table using the above
procedure: dicttech.odb file
Shown below are the macros used (using openoffice basic language), you will find them under Tools-->
Organize Macros-->OpenOffice.org Basic-->dicttech.odb-->Standard-->Module1:
Sub test1
oContexto = CreateUnoService("com.sun.star.sdb.DatabaseContext")
oFonte = oContexto.getRegisteredObject("dicttech")
oForms = oFonte.DatabaseDocument.FormDocuments
oAConnection = oFonte.getConnection("","")
End Sub
Sub test2
oContexto = CreateUnoService("com.sun.star.sdb.DatabaseContext")
oFonte = oContexto.getRegisteredObject("dicttech")
oForms = oFonte.DatabaseDocument.FormDocuments
oAConnection = oFonte.getConnection("","")
End Sub
Sub test3
oContexto = CreateUnoService("com.sun.star.sdb.DatabaseContext")
oFonte = oContexto.getRegisteredObject("dicttech")
oForms = oFonte.DatabaseDocument.FormDocuments
oAConnection = oFonte.getConnection("","")
End Sub
Sub test4
oContexto = CreateUnoService("com.sun.star.sdb.DatabaseContext")
oFonte = oContexto.getRegisteredObject("dicttech")
oForms = oFonte.DatabaseDocument.FormDocuments
oAConnection = oFonte.getConnection("","")
End Sub
Sub test5
oContexto = CreateUnoService("com.sun.star.sdb.DatabaseContext")
oFonte = oContexto.getRegisteredObject("dicttech")
oForms = oFonte.DatabaseDocument.FormDocuments
oAConnection = oFonte.getConnection("","")
End Sub
kexi – a database that runs under Linux and can import structure and data from Access (.mdb
file extension)