Manualinux
Permission
is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.2 or any later version
published by
the Free Software Foundation. A copy of the license is included in the section entitled "GNU Free
Documentation License". Copyright (c) 2001-2010 Cristiano Macaluso E' garantito il permesso di copiare, distribuire e/o modificare questo
documento seguendo i termini della Licenza per Documentazione Libera GNU, Versione 1.2 o
ogni versione successiva pubblicata dalla Free Software Foundation. Una copia della licenza
??? acclusa in fondo al documento nella sezione intitolata "GNU Free
Documentation License".
GNU MANUALINUX 6.8
a)COMMANDS
b)UTILITY
c)PROGRAMS
d)KERNEL
e)NETWORKING
f)OTHER
GNU Free
Documentation License
DO YOU WANT ADD / MODIFY OTHER ARGUMENTS ??? WRITE ME !!!
COMMANDS
1a)COMMON COMMANDS TO MOVE FIRST STEPS ON LINUX
2a)DIFFERENT COMMANDS
3a)OCCUPATION DISK
4a)PROCESSES
5a)RAM
6a)MANIPULATE THE RIGHTS OF ACCESS
7a)MANIPULATE ACCESSES RIGHTS - ALTERNATIVE METHOD
8a)CHANGE THE PROPERTY OF A FILE
9a)CREATE AND ADD GROUPS AND USERS
10a)FORMAT A FLOPPY
11a)HOW CONTROL THE EFFICIENCY OF IDE DISKS
12a)INSTALLED HARDWARE
UTILITY
1b)GRAPHIC ENVIRONMENT
2b)FILE SEARCH
3b)ARCHIVE AND COMPRESS FILES
4b)MOUNT A FLOPPY
5b)MOUNT A CDROM
6b)MOUNT A WINDOWS PARTITION
7b)MOUNT A LINUX PARTITION
8b)DUPLICATE A FLOPPY
9b)INSTALL PROGRAMS
10b)SCANDISK ON LINUX
11b)FILES MANAGER
12b)PASSWORD ON LILO
13b)OPEN MORE CONSOLE AT THE SAME TIME CONTEMPORANEOUSLY
14b)PRINT
15b)RESCUE FLOPPY
16b)DELETE BOOTMANAGER ON MBR
17b)DISABLE OR ABLE THE CLASSIC SOUND BIP
18b)DISABLE CTRL-ALT-CANC FROM CONSOLE OR REMOTE
19b)START THE GRAPHIC WITHOUT INSERT LOGIN AND PASSWORD
20b)ENABLE THE WHEEL OF MOUSE on Xorg or XFree
21b)COPY PARTITIONS FROM HARD-DISK A TO HARD-DISK B
22b)START KDE OR GNOME INSIDE XTERM USING XNEST
23b)SETTING SINGLE KEYS OF KEYBOARD
24b)CREATE OR RECREATE DEVICES IN /DEV
25b)TURNOFF THE PC AUTOMATICALLY
26b)ITALIAN KEYBOARD UNDER SLACKWARE
27b)GRUB ON HARD-DISK IDE AND SCSI
28b)GRUB ON FLOPPY OF BOOT OR USB STICK
29b)USE .OGG VORBIS
30b)FIRST STEPS WITH SLACKWARE
31b)UPDATED FEDORA IN EASY WAY
32b)UTILITY FIREFOX AND THUNDERBIRD
33b)USING TV WITH A ATI RADEON 7200
34b)CONFIGURE GNOME
35b)ICONS ON DESKTOP WITH WINDOWMAKER
36b)AUTOMATE ONE OR MORE PROCEDURES WITH CRONTAB
37b)MOUNT PARTITION NTFS IN READ/WRITE
38b)INSTALL SLAX ON HARD-DISK AND ON USB STICK
39b)DAMN SMALL LINUX ON USB STICK
40b)PARTITIONING'S CONCEPT OF HARD-DISK WITH REFEREMENT TO GNU LINUX
41b)IMPROVE FONTS OF GNOME ON UBUNTU
42b)ADD OR CONFIGURE A PRINTER
43b)CONFIGURE SOUNDCARD
PROGRAMS
1c)VI AND EMACS HOW MODIFY TEXT FILES
2c)FAX WITH EFAX
3c)CREATE AND BURN CD AND DVD
4c)FAX WITH HYLAFAX
5c)MANAGE PACKETS ON DISTRIBUTIONS
6c)MANAGE LINUX WITH WEBMIN
7c)BURN MP3-->WAV-->MP3-->FILE AUDIO
8c)HOW USE THE BOARDS NVIDIA FOR 3D
9c)HOW INSTALL MULINUX
10c)CLUSTER LINUX WITH OPENMOSIX
11c)MINI WEBSERVER: BOA (ONLY 118K)
12c)INSTALL AND CONFIGURE ACROBAT INSIDE FIREFOX
13c)FIRST STEPS WITH DATABASE POSTGRESQL
14c)WATCH TV ON LINUX
15c)GUARDDOG HOW INSTALL IT, CONFIGURE IT AND USE IT
16c)CREATE A PROXY SERVER WITH SQUID
17c)PARTED DELETE CREATE AND REORGANIZE PARTITIONS
18c)INSTALL WINE
19c)DRUPAL
20c)INSTALL AND CONFIGURE PHPBB
21c)INSTALL AND USE XTRACEROUTE
22c)READ NEWSGROUP WITH SLRN AND SLRNPULL
23c)VIDEO EFFECTS WITH WEBCAM
24c)FIRST STEPS WITH DATABASE MYSQL
25c)INSTALL AND CONFIGURE PHP-NUKE
26c)MANAGE THE CELLPHONE NOKIA WITH GNOKII ON LINUX
27c)MTOOLS
28c)DATABASE WITH OPENOFFICE
29c)MPLAYER AND MENCODER RIP DVD
30c)FROM DIVX TO DVD
31c)ENABLE JAVA ON FIREFOX OR MOZILLA
32c)EMAILS WITH PINE
33c)SWARET INSTALL UPGRADE UNINSTALL PACKETS ON SLACKWARE
34c)GPG
35c)SQLITE
36c)P2P with aMule
37c)GTKAM AND DIGITAL CAMERA
38c)CONNECT LINUX WITH BLUETOOTH AND CELLPHONE
39c)EMAIL WITH MUTT FETCHMAIL AND POSTFIX
40c)NETGEAR MA111 USB STICK WIRELESS ADAPTER ON SLACKWARE
41c)VIDEO SURVEILLANCE WITH MOTION AND LINUX
42c)ANTIVIRUS GNU
43c)INSTALL INTERNET EXPLORER ON UBUNTU
44c)WORDPRESS FOR DUMMIES
KERNEL
1d)APPLY A PATCH ON KERNEL
2d)COMPILE THE KERNEL IN DEBIAN
3d)RECOMPILE THE KERNEL TO BURN WITH IDE DISKS
4d)HOW RECOMPILE THE KERNEL
5d)HOW RECOMPILE KERNEL 2.6
NET
1e)MOUNT A MINI-LAN BETWEEN 2 COMPUTERS ONLY WITH TEXT COMMANDS AND NOT
2e)CONNECTING ON INTERNET BY SCRIPT WITHOUT KPPP (two procedures)
3e)CONNECT TO INTERNET WITH WVDIAL
4e)CONNECT TO INTERNET WITH KPPP
5e)INTERNET
6e)TELNET AND FTP
7e)SHARE INTERNET CONNECTION (LINUX-LINUX-CLIENT)
8e)SHARE CONNECTION TO INTERNET (EASY WAY)
9e)CONNECT 2 COMPUTERS BY PARALLEL WIRE ON LPT1 (PLIP)
10e)START A X SESSION FROM REMOTE (from linux to linux)
11e)LAUNCH PROGRAMS FROM TELNET TO GRAPHIC SIDE
12e)LAUNCH APPLICATIONS FROM TELNET TO A GRAPHIC X &
13e)LAUNCH APPLICATIONS ON CLIENT BUT THAT WORKS ON SERVER
14e)IPCHAINS AND FIREWALL
15e)ADSL WITH MODEM ETHERNET ON LINUX
16e)MAPPING OF ACCESS POINTS
17e)LINUX DEBIAN FIRST STEPS WITH THE NET
18e)SHARE PRINTER ON LINUX SUCH AS PRINTSERVER SAMBA CUPS
19e)NFS SHARING TO EXCHANGE FILES IN A LAN WITH LINUX COMPUTERS
20e)DISCOVER THE INTRUDERS
21e)SAFETY FROM ROOTKITS BACKDOORS AND LOCAL EXPLOITS
22e)WIRELESS CARD ON A LAPTOP WITH ARCHLINUX
23e)MAIL SERVER WITH POSTFIX AND TPOP3D ON ARCHLINUX
24e)WEBSITE WIKI WITH PMWIKI
25e)IPTABLES
26e)SURF ON INTERNET WITH GPRS ON LINUX
27e)CONFIGURE SSH
OTHER
1f)HOW INSTALL LINUX ON COMPUTER WITH PROCESSOR 386 WITH 2 MEGA OF RAM??
2f)HOW CREATE OWN MINIDISTRO ON 2 FLOPPY-DISK
3f)INSTALL UNIX MINIX 2.0.3
4f)PROGRAMS GPL LINUX <--> WINDOWS
+++++++++++++++++++++++COMMANDS+++++++++++++++++++++++++++
1a)COMMON COMMANDS TO MOVE FIRST STEPS ON
LINUX
This is valid for all commands:
1 - The given commands can be rewritten on the command-line and
easily pushing the directions keys.
2 - Through the "history" command it's possible to see the given
commands, if after it's inserted the number, it shows the last n.
commands given.
(es. history 14 ;shows
last 14 commands)
3 - Often giving the commands, text files are created. To exiting
from them, you need to press "q" or, in case you want to stop the
process because the execution of the command creates nonsensical
characters or doesn't accepted other input from keyboard, you need to
press "Ctrl+c".
4 - Often, commands given, provide a series of dates that pass the
visualization of screen, showing only a side of them. In order to
obviate this phenomenon, you can use an option "| more" or "| less" adding
at the end of the command (ls -la | more) or after the name of file:
(cat filename | more)
5 -moreover, after having used some
procedures, you need to know that pushing the key "Enter", continue the
visualization for row and pushing key "Space" continue for page.
THROUGH DIRECTORY
cd = cd (alone) return into homedir (~ o $HOME)
cd .. = move to the previous directory (which
depends)
cd / = return to the root directory from any point we are
ls = shows the contained of a directory horizontally
ls | more = shows the contained x page and
vertically
(through
enter continues ahead with a single line x time)
(through space continues x page)
ls -l = the options -l shows many details.
ls -la = the option -a shows the directory preceded from a dot ( this
is the command advised)
cp -av = copy full directories
es. starting (/usr) destination (/mnt/where_you_want)
cp -r = to copy directory
mkdir = to create a directory
rmdir = to remove a directory
rm -r = to delete the dir/sub_dir and what there is inside
rm -r -f = to delete the dir/sub_dir and what there is inside without
ask confirm
pwd = to know in which directory you are
tree namedir = shows the directories depended from which
indicated
reset = if xterm doesn't respond to the given commands, the reset
command ublock it.
THROUGH FILE
cp = to copy file
rm = to delete file
mv = to move/rename file
mv name newname = it renames the file (es. mv cri.txt cro.txt)
mv filename /dirname = move file into indicated directory
(es. mv cri.txt /usr)
cat filename = shows inside of a file
touch filename = to create an empty file immediately
wc = to show the statistics on a text file
split = to divide a file in more sides
diff = to find the difference of text inside 2 files (ex. diff 1.txt 2.txt)
UPDATE HOUR AND DATE
hwclock --set --date='12/30/2007 18:55:01'
date -s '12/30/2007 18:55:01'
OBTAIN A LIST OF USERS AND GROUPS
for i in `cat /etc/passwd | cut -d: -f1` ; do id $i ; done
Block a linux user type: passwd -l user_name
Unlock a linux user type: passwd -u user_name
FOR THE SYSTEM
lsmod = shows modules charged on kernel
shutdown -r now = to reboot the system
reboot
= like over
shutdown -h now = to close the system
halt
= like over
halt
-p
= shut and turnoff the system
exit = to close the console
startx = start the execution of graphic server
ctrl+alt+backspace = restart in graphic mode, to
bringing back to starting login
ctrl+alt+F1 =
opens a console not emulated
ctrl+alt+F7 =
easily passes on the screen 0 if there is a server X activated.
Doesn't close the console from which arrives.
HELP AND INFORMATIONS
- commands
command name --help = shows the syntax of the command (a generic help)
man command name = shows an explanation in details
(enter ; advancing for line - space : for page - q ; exiting and
returning to the command row)
info command name = idem
- installed file
makewhatis = create a database with the informations that concern the
installed files (without showing anything), later with a command " apropos filetype " is given back a list of what that concern
the type of file (es. apropos edit).
- rpm packets
rpm -qa |more = shows the list of packets rpm installed
- X server
*To know which Xserver you are using, go to /etc/X11 and give the
command ls -al, look at where the liks point to --> last file shows
the used X server *
-kernel
uname -a = to know the kernel version
- system and kernel
du -h =
quantity of space used into directory and sub_directory in kb and mb in
kb e mb.
top = shows the processes in use from cpu (to stop Ctrl+c)
ps aux = shows programs and demons running with their pid
pidof program name/demon (for ex. pidof kdm)
df = shows partitions mounted
free (-t; x the totals -m; x megabytes)
If linux doesn't see all the ram that you have (for ex. 128M), then ad
this row into file /etc/lilo.conf between (default and keytable)
append = "mem=128M"
Save the file and digit lilo, reboot the system and just
returned in linux digit "free".
uname = shows the informations about system
uname -m = type of pc
uname -n = name of pc inside the net
uname -r = release of operating system (kernel version)
uname -v = version of operating system
uname -a = general summary of the options over written
FLOPPY AND CDROOM
mount -t filesystemtype /dev/fd0 directory = mounts formatted
floppy on type x into a directory (vfat for windows; msdos for msdos-dos; hfs for
mac)
eject /dev/device =
eject the cdrom or the burner (ex. ejecets (ex. eject
/dev/hdc
or eject /dev/scd1)
OTHER COMMANDS TO SHOW FILES AND CLARIFICATIONS
Beyond the command "cat" there are other commands, often more useful,
to show inside a file.
more filename = for files of big dimensions
or
less filename
Ex.
Digit:
more /dev/hda = will be showed the map of partitions
less /dev/hda = will be showed to add the option -f
less -f /dev/hda = this is the case where anything can be understood
(press "q")
cat /dev/hda = this is the case where you need to stop the process
(Ctrl+c)
THE JOLLY CHARACTER "*"
* = means all
if introduced near a word, it
makes reference at word and which have added characters
ex. pippo* = pippo pippo1
pippociao pippopluto pippo..............
You need to have attention when you use it to
delete a file or directory, because a wrong command like:
"rm pippo * "; delete file
pippo and also all files inside that directory. Better to control with:
ls -a pippo* before to
delete something; in this way, it will be possible to control what will
be deleted.
THE COMMAND CAT
(clarifications)
Can be used to create text file :
cat > filename
digit the text
ctrl+d = to close the file
cat filename = to look inside the file
Can be used to assemble again files divided or unit different files:
ex.
cat file1.txt file2.txt file3.txt > ris.txt
IL COMMAND CP
(clarifications)
Can be used also to transfer an existing file in a file that is created
in that moment
cp existingfile filecreatednow
The same thing become for the directory
cp -r existingdir dircreatednow
THE LINKS
ln name linkname = to create physicist links
ln -s name linkname
= to create symbolic links
2a)DIFFERENT COMMANDS
pushd (Says in what directory you were first)
popd (Return into directory where you were first)
cd - (like up)
3a)OCCUPATION
DISK
du -h (to show the quantity in kbyte and mbyte)
4a)PROCESSES
& (to put at the end of the command) to execute a command in background and it will give this result:
[3] 32566 Where 3 is the number of the process while 32566 is the ID of the process.
&& (to insert it between 2 commands, the second command will start only when the first one will be finished, for example dir && top).
bg (starts the command in background, the syntax is: bg number_id_command).
fg (starts the process with high priority, the syntax is: fg number_id_command).
nohup (executes a command also if it has gone out from the session or
it has been lost the connection, the syntax is: nohup dir &),
at the end it will create a file called nohup.out with inside the
result of the command.
ps -ax = to see the processes in memory.
kill = to kill a process (with kill -l you see the signals to kill.
kill -9 (n???process) = to force the died of the process.
killall = kill all processes)
5a)RAM
To see the ram, write:
free
To get informations about used ram, write
top
Control the side high at left on the screen.
6a)MANIPULATE THE RIGHTS
OF ACCESS
If
I'm the owner of a file or directory, then, I can decide its features,
I mean, the rights access. The command to do it is chmod
(change modes). Its syntax is:
chmod who action what filename
where:
parameter who can be u (user) g (groups) o (others) a (all)
parameter action can be + (add) - (remove)
parameter what can be r (read) w (write) x (execute)
the field namefile ??? file or directory object of changing.
(*) all show at the same time 3 kinds of user.
We can see now some practice examples. We guess to want add access,
read and written to all directories.
drwx------ verdi users 512 pippo
The easy way is:
chmod a+rwx pippo
that is at words "add (+) to all (a) read (r) write (w) and access (x)
at file pippo " (instead is a directory because there is d).
The result is:
drwxrwxrwx verdi users 512 pippo
Other example. We guess that we want file
-r-------- verdi users 4096 paperino
readable from all and writable only from owner :
chmod a+r paperino
chmod u+w paperino
And the result is:
-rw-r--r-- verdi users 4096 paperino
Other example. We guess to have file
-rw-rw-rw- rossi superuser 1234 pluto
If we execute:
chmod o-rw pluto
instead to obtain:
-rw-rw---- rossi superuser 1234 pluto
we have the message:
Permission denied
This because I (verdi) am searching to modify the attributes of a file
that is not mine (it is of rossi).
7a)MANIPULATE ACCESSES RIGHTS - ALTERNATIVE METHOD
A method more fast to assign the attributes to a file is based on this
thought. We suppose to attribute numerics values to possible
permissions:
Read =
4 (r)
Write =
2 (w)
Execution =
1 (x)
(Remember that for a directory, x means access). In this way, executing easy sums:
0 = No permission
-
1 =
Execution
x
2 = Write
w
3 = Execution + Write
wx
4 = Read
r
5 = Execution + Read
rx
6 = Write + Read
rw
7 = Execution + Write + Read rwx
If we put near 3 codes to access user / groups / others
we obtain the numbers of 3 numbers, everyone of them indicate the permissions of every type of users in synthetic way.
For example:
rwxrwxrwx 777
rw-rw-rw- 666
r--r--r-- 444
rwx------ 700
rw-r--r-- 644
and go ahead.... Therefore it's possible to include only in one way all accesses of every single type of user.
Exist then the alternative syntax of chmod
chmod codice
filename
Example. The second example on first syntax of chmod wanted to transform:
-r-------- verdi users 4096 paperino
in file:
-rw-r--r-- verdi users 4096 paperino
and needed of 2 consecutive chmod, the first to assign a+r and the
second to assign u+w. With alternative syntax of chmod is possible to
do this in only one way, using:
chmod a+r,u+w paperino -#-#-#-(attention at comma)-#-#-#-
or in a easy way:
chmod 644 paperino
8a)CHANGE THE PROPERTY OF
A FILE
If I am owner of a file and I would "gift" it to someone, that is
someone will become new owner, exist the command chown (change owner).
His syntax is:
chown newowner.newgroup file
We see some examples. Guess that rossi, after have deposited in my
directory the file:
-rw-rw-rw- rossi superuser 1234 pluto
want that this file become of my propriety. It will have to
execute:
chown verdi.users pluto
The result will be:
-rw-rw-rw- verdi users 1234 pluto
9a)CREATE AND ADD GROUPS
AND USERS
Make all like root user.
For ex. create a group called supporto:
groupadd supporto
For ex. create an user and insert him in a supporto group
useradd user -c (comment) -d (home directory) -g (group)
useradd cristian -c
ordinato -d /reparto -g supporto
Now we need to insert a password:
passwd cristian
It is possible also to use:
adduser (complete of all, also of password).
Will be suggested the default parameters, are possibles of modifies.
Modify the group to which user belongs:
usermod -gname_group cristian
Insert the user in other groups:
usermode -Ggroup1 group2 group3 cristian
To delete user and group write:
groupdel supporto
userdel cristian (using userdel -r will be deleted all files and the directory of the user)
10a)FORMAT A FLOPPY
How to format:
fdformat /dev/fd0H1440 this format
drive A: to 1440 kb
fdformat /dev/fd1h1200 this format
drive B: to 1.2 Mb
fdformat /dev/fd0H720
this format drive A: to 720 kb
To search damaged blocks:
badblocks /dev/fd0H1440
How format a floppy from msdos or windows:
fdformat /dev/fd0H1440 && mkfs -t msdos /dev/fd0
fdformat /dev/fd0H1440 && mkfs -t vfat /dev/fd0
11a)HOW CONTROL THE EFFICIENCY OF IDE DISKS
Thanks to Riccardo Pelizzi (r.pelizzi@virgilio.it)
Control the efficiency of own ide disks.
note: these options can damage your ide disks.
If you the device ide (that can be a hard-disk, a cd-rom or a dvd) and
your mother board are almost new, your disk supports the transfer mode
to 32-bit, the mode ultra-DMA and irq unmasking.
The kernel is very conservative under this point of view (because
activing these options on boards or on devices that don't support them,
you risk to break them, and if your distro has not configured well your
disk, then we will do it with the command hdparm.
-Understand at what device correspond each disk. Using the command:
hdparm -i /dev/hdX
where X is for device that you'll have to control. Usually are a, b, c, d.
One of first voices of output will be the model of your device, so you will can understandw what IDE device
are you interrogating.
-We control that the support of our chipset is active. It won't
possible to interact with disks without having the support of own
chipset integrated on kernel or charged as module.
For example having a chipset Via and having compiled the driver like module, first of other operation, you need to write "modprobe
via82cxxx".
-Control that the state of our disks. The command:
hdparm /dev/hdX
will give an output similar at this:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9964/255/63, sectors =
160086528, start = 0
This is output of a disk that should be already configured well. Unic
important operation, but that cannot be seen from this men??? is
the udma mode. With the former command you can see that the dma mode is
activated, but not what mode is actived.
About this, we will think at the end.
-Configure our device.
Start giving the command:
hdparm -t /dev/hdX
and sign your transfer rate. If IO_Support is equal at 0, active it with the command:
hdparm -c1 /dev/hdX.
Some combinations of mother boards /devices require the parameter
c3.This option should alone double the transfer rate of your devices.
Unmskirq is needed to mantein the operating system "responsive"
(ready!!).
while you are reading from device, useful overall for cd/dvd. You can active it with:
hdparm -u1 /dev/hdX
And now we pass to more interesting side: the dma modality. Give the command:
hdparm -t /dev/hdX
after every operation.
Every operation should hide your transfer rate. If it's not like this,
you should return to the former option, because the current is not
supported. Start with:
hdparm -d1 /dev/hdX
This option doesn't give necessary to a high level of performances, if
it has not been actived a dma modality valid: let go to set it.
This is the table of parameters to give to hdparm (stolen from nice peoples of intel):
(ATA/33) -X66
(ATA/66) -X68
(ATA/100) -X69
For example to active the modality ATA/66, give the command:
hdparm -X68 /dev/hdX
There is a last option to set, a little more dangeorous of the others: multicount. Give the command:
hdparm -i /dev/hdX
and read the voice max_multicount. It will be the value to set like:
hdparm -mY /dev/hdX
Obviously this option is not to set for cd/dvd that has only 1
little-head, the laser. At this point you should have a transfer rate
at least of 40MB for second with a disk ATA/66. Confront it with you
had before of every operation. Enjoy and stay quiet by the result
:-)
NOTE: These options are not permanent, so you will have to put all your
commands in a script and execute it at start putting the name of the
file at the end of:
/etc/rc.d/rc.local
12a)INSTALLED HARDWARE
Write followed commands like user root:
lspci
dmesg
cat /proc/cpuinfo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++UTILITY+++++++++++++++++++++++++++++++++
1b)GRAPHIC ENVIRONMENT
To start the Xgraphic write (twm) and if you want to start it
automatically write on file .xinitrc (into your home directory) the
written twm and in file .profile o .bash_profile (startx).
Instead to write twm it's possible write also mwm, 4dwm, afterstep, fvwm95, fvwm, gnome-session ecc.. (/etc/X11).
2b)FILE SEARCH
- find (directory-file) es. find / -name cri.txt (/
search in all file system -name followed from name of file)
- find /root -size 990k ( find a file of dimension 990k into directory /root)
- locate file (es. locate cri.txt) a fast way to find a file (before give the command update and later the command locate).
- which cri.txt in different precondition directories ( which cri.txt /usr /tmp/root)
* grep search a word inside a document (es. grep "casa" *.txt )
3b)ARCHIVE AND COMPRESS FILES
EXTENSION
COMPRESS
DECOMPRESS
Z
compress cri.txt
uncompress cri.Z
zip
zip cri.txt cri.zip
unzip
cri.zip
gz
gzip cri.txt
gunzip cri.gz
bzip2
bzip2 cri.txt
bunzip2 -d cri.bz2
tar.gz
tar zcvf cri.tar.gz</dir/files>
tar zxvf cri.tar.gz
lzh
lha a cri.lzh</dir/files>
lha x cri.lzh
rar
rar a cri.rar</dir/files>
unrar x cri.rar
zoo
zoo -add cri.zoo</dir/files>
zoo -extract cri.zoo
4b)MOUNT A FLOPPY
To mount a floppy the command is:
mount -t ext2 /dev/fd0 /mnt/floppy ( name directory that you must to create with command mkdir )
If instead of ext2 (linux) write msdos , you can use floppy that are ok also in dos/windows systems.
umount -t ext2 /dev/fd0 To unmount.
5b)MOUNT A CDROM
to mount a cdrom the command is:
mount -t iso9660 /dev/hdc /mnt/cdrom (name dir that you have to create with mkdir)
To control that cdrom is hdc o hdd o scd0 o scd1 (if SCSI) and remember to create a directory named cdrom.
6b)MOUNT A WINDOWS PARTITION
To mount a windows partition the command is:
mount -t vfat /dev/hda1 /mnt/win ( name directory that you have to create with mkdir)
Control that windows partition is on hda1 (in my case) and remember to create a directory named win (at your discretion).
To mount a Windows NT partition the command is:
mount -t ntfs /dev/nt_partition /mnt/winnt
7b)MOUNT
A LINUX PARTITION
To mount a linux partition the command is:
mount
-t ext2 /dev/hda5 /mnt/linux1 (name directory that you have to create
with mkdir)
-t is the type of filesystem, for example (ext2, ext3,
reiserfs, etc....)
mount -w -n -o remount / mount file system in write mode
mount -r -n -o remount / mount file system in read-only mode
8b)DUPLICATE A FLOPPY
cat /dev/fd0H1440 > myfloppy
After which, it's needed to insert the destination floppy and execute:
cat myfloppy > /dev/fd0H1440
9b)INSTALL PROGRAMS (First of all read file Install or Readme file)
If file has extension .tar.gz or .tgz uncompact first with:
(tar zxvf program.tar.gz) or (tar xvf program.tgz)
cd program (enter in new directory just created)
./configure
make
make install
10b)SCANDISK ON LINUX
df (to control on what partition is installed linux)
badblocks /dev/hda1 (if linux is installed on /dev/hda1)
fsck -a / (to repair automatically the file system without asking questions)
ATTENTION is adviced to not using (-a) on file-system non-ext2
fsck /dev/<device> must to be unmounted or mounted in read-only
reiserfsck –check /dev/sda1 (It checks without repairing file-system).
reiserfsck –rebuild-sb /dev/sda1 (It rebuilds the blocks of damaged partition).
reiserfsck –scan-whole-partition –rebuild-tree /dev/sda1
(It checks all partition and rebuilds the file-system tree of whole
file-system)
11b)FILES MANAGER
An easy file-manager to use is (mc)
You have only to write this command (mc) to access to commands that are
on the high side of keyboard pressing F9 key. Indeed you can find
it to enter in telnet ed ftp.
12b)PASSWORD ON LILO (ATTENTION DANGEROUS COMMAND!!!)
Enter on file /etc/lilo.conf and insert this row:
password = "password that you want"
13b)OPEN MORE CONSOLE AT THE SAME TIME CONTEMPORANEOUSLY
Pressing contemporaneously keys (Ctrl+Alt) and F1 key it's opening a
pure unix window where to insert user and the password, at this point
it's possible using this screen while you are already using
another program. At
this point press keys Ctrl+Alt+F2 e so on.
To return at the X server <ctrl>+<alt>+<F7>
To use 2 X server on the same machine (havy) you have to:
ctrl+alt+F2 to pass at the second console, do the login and digit:
startx -- :1
The first X-server was and continue staying on ctrl+alt+F7 the second is on
ctrl+alt+F8. The busy display from first is "0" while that busy from second is "1". To consider it in case
you have to forward of connection X.
14b)PRINT
lpstat -tp (info on configured printers)
lpr (to print a file ex. lpr /root/cri)
lpr -p /root/cri (if the text has lines much long and go out from edges of the page)
lpq (to control the state of the printing and id during the stamps)
lprm number_id_tail_of_printing ( to drop the command of printing) ex.(lprm 28)
lprm - delete outright all printing tails to delete all printing required
lprm -P printername (delete the jobs of a specified printer)
/usr/bin/disable printername (disable the printer)
/usr/bin/enable printername (enable the printer)
enscript (convert the text in a files PostScript)
enscript -r (to print across)
enscript -r -2 (to print 2 pages on a single leaf)
enscript -n 3 (to print for ex. 3 copies)
enscript -a <start page> <end page> to print an alone break of pages.
15b)RESCUE FLOPPY
Giving for discounted having ricompiled the kernel and having created file /boot/bzImage go in this directory and write:
(cp bzImage /dev/fd0)
On RedHat write:
mkbootdisk --device /dev/fd0 2.2.4.5 (it's the number version of
/boot/vmlinuz)
16b)DELETE BOOTMANAGER ON MBR
From linux give the command:
lilo -U
Make a msdos help floppy and write:
fdisk /mbr
If you have Windows2000, write:
fixmbr
ATTENTION TO USE THIS COMMAND BECAUSE CAN DELETE THE TABLES OF FAT AND NTFS PARTITION OF WINDOWS.
dd if=/dev/zero of=/dev/yourdisk bs=512 count=1
To restore a lost partition or damaged (maybe because from an analysis
with fdisk gives "unlocated tables", use the programs TestDisk & PhotoRec availables under linux or windows or other operating systems.
17b)DISABLE OR ABLE THE CLASSIC SOUND BIP
To disable enter into file /etc/inputrc or into file ./inputrc and write:
set bell-style none
To able enter into file /etc/inputrc or into file ./inputrc and write:
set bell-style visible
To listen the sound write:
echo -e "\007"
To high the sound from line command:
aumix -L path/.aumixrc
18b)DISABLE CTRL-ALT-CANC FROM CONSOLE OR REMOTE
Enter into file /etc/inittab and disable with a # ahead the row:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
19b)START THE GRAPHIC WITHOUT INSERT LOGIN AND PASSWORD
Exist 2 methods, you have to try and adapt at your distro.
1)
This thing has been tryied on redhat 7.1
-Modify the file /etc/sysconfig/desktop
Insert the name of desktop that will start, es. fvwm2
Modify the file /etc/X11/xinit/Xclients replacing the name of predefined desktop (GNOME) with fvwm2.
Modify the file /etc/X11/xinit/xinitrc.d/xinput replacing the name of desktop predefined (GNOME) with fvwm2.
Create the file .xinitrc inside the directory of the user or root and write inside:
fvwm2
Modify the file /etc/rc.d/rc.local inserting on the first row (or replacing the first row) with:
#!/bin/bash
After this row write the path of file .xinitrc and after the written startx, resuming:
#!/bin/bash
cd /root & startx
or
cd /root & startx fvwm2
At this point reboot pc and see the result.
2)
Inserting a user with the home and the group of belongings. Modify the file /etc/profile inserting these dates:
HOME="/username"
export HOME
Save the file.
Enter in /etc/inittab disabling from row Run gettys until the end putting a # in front of all the rows.
Over the row Run getty insert another row:
1:12345:wait:/bin/bash -login
Save the file and reboot. At start enter such as user withou insert username and password.
If inside /home/user we insert a file .xinitrc where we write graphic
desktop to start for example fvwm2. It's possible to copy the file
/etc/X11/fvwm2/system.fvwm2rc inside /home/user and rename it in .fvwm2rc
Inside file .bash_profile at the end write startx, so will start the
graphic automatically. Rebooting the pc we will enter such as user and
automatically will start the X chosen.
20b)ENABLE THE WHEEL OF MOUSE on Xorg or XFree
Enter inside file /etc/X11/xorg.conf or /etc/X11/XF86Config
Configure the voice mouse such as follows:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux" ##or "/dev/mouse"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
21b)COPY PARTITIONS FROM HARD-DISK A TO HARD-DISK B
Create a rescue-floppy of linux from your distro that you have installed, it
will be used to install lilo if pc will not start.
Insert into pc new hard-disk (b) and start the pc from the first hard-disk
(a). Delete all dates from on b:
fdisk /dev/hdb (If you have an error Impossible open /dev/hdb it means that
hard-disk is not recognized). Try with hdc, hdd, etc .
We continue assuming that (b), the second hard-disk, has been recognized.
Delete other present partitions in (b).
Fdisk /dev/hdb
Command (m to call the guide):
Press d and after the number of partition (from 1 to 4)
Example
d Enter
1 Enter
d Enter
2 Enter
d Enter
3 Enter
d Enter
4 Enter
w (to save and exit from fdisk)
q (to exit without save)
Say that now disk b is empty, we can check with cfdisk /dev/hdb. Now, show
the partitions in /dev/hda (first disk) and the dimensions in megabyte
(write them aside in a paper).
Create the empty partitions in disk b with:
Create the partition linux ext2
cfdisk /dev/hdb
New
Primary (Move with keys arrows)
Dimensions: Insert the dimensions in mb, an advise, if possible grow them of
5 mb, that is
Start
Startable
Type (you can choice the type of file-system)
Create the partition swap
New
Logic
Dimensions: Insert the dimensions in mb, I advise if possible to grow of 5
mega.
End
Type (you can choice the type of file-system, that is swap)
Write (Write and save the empty partitions)
Until now we have deleted the partitions on disk b and we have created them
empty to the same dimension (almost).
Now as last thing we copy the partitions from hard-disk a to hard-disk b.
dd if=/dev/hda1 of=/dev/hdb1 (partition linux)
Wait until you won't have new line of command (depend from how much is big
the partition), after that write:
dd if=/dev/hda5 of=/dev/hdb5 (partition swap)
At the end, stop the system with the command halt, turn off the pc and move
the hard-disk a and insert the hard-disk b so that becomes first disk (move
the little-tongue on hard-disk).
If you see lilo and pressing Enter the pc stop on kernel-panic, insert the
rescue floppy and at lilo write_
linux root=/dev/hda1 (we say where is file-system of linux).
Once the system is started, configure /etc/lilo.conf so the s.o. start lilo
correctly. If lilo doesn't work, restart the pc. If it doesn't work yet,
restart the pc always with rescue-floppy and modify the first line of
/etc/lilo.conf in:
boot=/dev/hda1
or in
boot=/dev/hda
save and write lilo, restart the pc.
If at start with hard-disk b you see fsck (like scandisk) that correct
automatically the errors don't worry, if instead it asks you the root
password, it means that installation is not gone well.
I advise to repeat the installation. If you arrive at login and write top
(Enter) it's possible that partition swap is not active, surely at start
there have been errors instead of usuals ok. To active you need only to give
once:
mkswap -c /dev/hda5
swapon /dev/hda5
If you write again "top" the partition swap will be active forever, also
at
next reboot.
22b)START KDE OR GNOME INSIDE XTERM USING XNEST
Install the program Xnest, start the graphic interface chosen and from here
open xterm. Inside it write:
Xnest :1 (you can choice also 2 or 3 etc .)
It will appear a black window.
Open a second xterm and start:
xterm -display : 1 ( the same of Xnest)
If you control inside the black window there is a xterm opened and empty.
Doesn't remain that open a graphic interface wished writing inside at
example:
startkde
startgnome
Now it will open only in the black window the graphic interface chosed.
If you have a problem with authorization of xterm to not be executed it's
because misses the cookie of xauth.
If the error is this:
Xnest: client 1 rejected from local host
Xlib: connection to ":1.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: :1
Write this in a file, execute it and start it (obviously it adapts it):
#!/bin/sh
MCOOKIE=$(mcookie)
xauth add $(hostname)/unix$1 . $MCOOKIE
xauth add localhost/unix$1 . $MCOOKIE
Xnest "$@"
xauth remove $(hostname)/unix$1 localhost/unix$1
exit 0
23b)SETTING SINGLE KEYS OF KEYBOARD
Modify the keyboard on console, but before copy the file:
cd /lib/kbd/keymaps/i386/qwerty/
or
cd /usr/lib/kbd/keymaps/i386/qwerty/
cp it.kmap.gz it.kmaoriginale.gz
gunzip it.kmap.gz
vi it.kmap.gz
Example modifying the key (Caps_lock) I'll write the letter e.
Modify the row from:
keycode 58 = Caps_Lock
to
keycode 58 = e
Exit and save the file pressing Esc:wq!
Zip again the file with:
gzip -9 it.kmap
Restart the pc, when you will press the key Caps_lock instead to jump on
space will appear the letter e.
24b)CREATE OR RECREATE DEVICES IN /DEV
Login as root user
How recreate /dev/fd0:
1 possibility:
cd /dev
/MAKEDEV fd0
2 possibility:
mknod -m 660 /dev/fd0 b 2 0
followed from:
chgrp floppy /dev/fd0
I believe that it's ok also for other devices.
25b)TURNOFF THE PC AUTOMATICALLY
1??? method)
If you have Slackware (like in my case) and you don't want to recompile the
kernel, go in /etc/rc.d/rc.modules and pull out the wicket to
/sbin/modprobe/apm
Obviously you have to reboot the pc to charge the module at boot first to
give the command:
halt
2??? method)
Who would have recompiled the kernel 2.2.x you need only to able the module
APM and the pc will turnoff automatically. Instead who had recompiled the
kernel 2.4.x go in General Setup able with y the Advanced Power Management
BIOS support that Use real mode APM BIOS call to power off. Recompile the
kernel (like it's written on first points) and open with vi the file
/etc/lilo.conf.
For your recompiled distro will have to appear a screen like this, you need
only to add last row like that:
image=/boot/bzImage
label="Mandriva"
root=/dev/hda5
read-only
append="apm=power-off"
Save the file, write lilo and reboot the pc. When you will write halt the pc
will turnoff automatically, ' stopping' first the hard-disks and after
turning-off itself.
26b)ITALIAN KEYBOARD UNDER SLACKWARE
If you have started Kde, remember to install also with installpkg:
kde-i18n-it-3.X.X-noarch-1.tgz (depend from the version of Kde that you
have installed)
koffice-i18n-it-X.X.X-noarch-1.tgz (depend from the version of Kde that you
have installed)
Go to Control Center of Kde, Regional and Easy Access, Layout of keyboard,
click on able Layout of keyboard and choice:
Keyboard Model --> Choice keyboard 105-key
First Layout Italian
Politic of changing --> Global
Click on Apply.
Go to Language and state/region, under National Setting chosing:
State Italy
Language Italian
Under Money like value delete EUR and write the symbol of euro with
AltGr e
Click on Apply, after on File and at the end on Exit.
Remember to set in xf86config (xorg86config) the keyboard at 105 keys and
Italian nationality (40). Now we can see the graphic shell, from now make a
copy of all files that we will modify. Modify the file /etc/X11/XF86Config
and changing into the section Core keyboard's InputDevice section the row
from:
Option "XkbLayout" "de"
to
Option "XkbLayout" "it"
Enter into file /etc/profile and add:
LC_ALL=it_IT@euro
LANG=it_IT@euro
Copy the file /usr/share/kbd/keymaps/i386/qwerty/it.map.gz in a directory
and scompact it like that (make a backyp of files that we will go to
modify):
gunzip it.map.gz
Editing after with vi go at point 18 and modify it such as it's written
(attention at tabulations):
keycode 18 = e E currency
alt keycode 18 = Meta_currency
For safe I'll write also the spaces:
between keycode and 18 there are 2
between 18 and = there is 1
between = and e there is 1
between e and E there are 9
between E and currency there are 7
between il lato and alt there are 8
between l'alt and keycode there are 5
between keycode and 18 there are 2
between 18 and = there is 1
between = and Meta_currency there is 1
Save and exit from the file, zip it and replace it with that already
exist:
gzip it.map.gz
cp -f it.map.gz /usr/share/kbd/keymaps/i386/qwerty/it.map.gz
Creat the empty file /etc/rc.d/rc.font write inside it:
setfont -v /usr/share/kbd/consolefonts/lat9w-14.psfu.gz
Give the permissions 770 and execute it at start of computer.
Reboot the pc and your shell will have the symble of euro.
27b)GRUB ON HARD-DISK IDE AND SCSI
This point is shared in 3 sections:
- Install grub manually and working/acknowledgment of partitions
- Use grub (2 with disks eide and 1 with disks scsi)
- Improve to apply to grub (use password and start other operating systems)
- Install grub manually and working/acknowledgment of partitions
Installation of grub in few easy steps. Firstly create a floppy/usb
stick/cd/dvd of rescue of linux, so in case of emergency you can always
start the operating system.
uninstall lilo with:
lilo -U
Like user root install manually grub like that (into actual distributions is already installed):
tar zxvf grub-0.94.tar.gz
cd grub-0.94/
/configure && make && make install
cd /usr/local/share/grub/i386-pc/
mkdir /boot/grub
cp -f * /boot/grub/
Control that the following files are in /boot/grub (otherwise move them in this directory):
e2fs_stage1_5
fat_stage1_5
ffs_stage1_5
minix_stage1_5
reiserfs_stage1_5
vstafs_stage1_5
stage1
stage2
Grub suggests the partitions differently from Linux: a couple of
numbers between parenthesis, with numbers that start from zero. To do
an example:
/dev/hda --> (hd0) (primary hard-disk)
/dev/hdb --> (hd1) (second hard-disk)
/dev/hda1 --> (hd0,0) (primary partition, in my case there is WindowsMe)
/dev/hda5 --> (hd0,4) (second partition, in my case there is Mandriva)
/dev/hdb2 --> (hd1,1) (primary partition, in my case there is Debian)
and ahead, the concept should be clear.
My pc is partitioned like that:
hda1 WindowsMe that under grub becomes (hd0,0)
hda5 Mandrake that under grub becomes (hd0,4)
hdb2 Debian that under grub becomes (hd1,1)
- Use grub (2 with disks eide and 1 with disks scsi)
Ahead 3 methods to use grub (the first and second with disks eide, the third with disks scsi).
1??? Method install/use grub with disk eide
Go in /boot/grub/ and rename the file menu.lst in menuold.lst
Create a new one menu.lst and write how followed (always second my configuration):
default 0
color white/blue #(white are the writtens, blue is background)
timeout 5
title Mandriva
kernel (hd0,4)/boot/bzImage root=/dev/hda5 apm=power-off
title Slackware
kernel (hd1,0)/boot/vmlinuz root=/dev/hdb1 hdc=ide-scsi hdd=ide-scsi
title WindowsMe
root (hd0,0)
makeactive
chainloader +1
Save file and inside shell (ex. in xterm) write:
grub-install /dev/hda (grub is installed in boot-manager)
If on first row will appear how much follows, installation is finished:
Installation finished. No error reported.
Reboot pc and you will see your new boot-manager.
2??? Method install/use grub with a disk eide
Now we create file /etc/grub.config inserting following dates modifying them, here is present my configuration:
default 0 #(says what voice will has to start)
color black/red (color written black with underground red). To change at own pleasure.
timeout 5 #(time of wait)
title Mandriva #(first operating system that starts)
kernel (hd0,4)/boot/bzImage root=/dev/hda5
title Debian #(second operating system that starts)
kernel (hd1,1)/boot/vmlinuz-2.2.20 root=/dev/hdb2
title WindowsMe #(third operating system that starts)
chainloader (hd0,0)+1 #(has to start the first sector of disk)
Save file and go in /boot/grub and digit grub and will appear:
grub>
"The operation beneath has been done from Mandriva (hd0,4), if the
thing has been done from Debian I would have had write (hd1,1).
(hd9) has be fix because grub is installed on mbr, if has been put on primary partition it had to be written (hd0,0)".
Now write:
install (hd0,4)/boot/grub/stage1 (hd0) (hd0,4)/boot/grub/stage2 p (hd0,4)
/etc/grub.config #(Write from install to grub.config all in a row)
If all has gone well at the end will appear only the written grub, to save and exit write quit.
Reboot the pc and will appear new boot-loader, to choice the operating
system use the arrows on keyboard. The operating system that will start
of default is Mandriva (the first in the list), instead about windows
and the
row beneath (chainloader etc....) I can only say that like that start regularly.
3??? Method install/use grub with disks scsi
Thanks to Giamma for the contribution.
Here I have installed Grub on my hdd, the version that I've used is: 0.9.3
To install Grub on disk hd0 after having installed grub, I've created a
directory /boot/grub and there I've copied all files that I found
inside /usr/local/share/grub/i386 and I've added also the file menu.lst
before created like beneath hence from directory /boot/grub I've digit:
grub
root (hd0,0) #should recognize the file system of disk hd0
setup (hd0) #seach file stage1 and stage2 and its install itself
quit
To start windows with grub that is found on hdd SCSI (and if present also disks EIDE on the same pc):
modify menu.lst like below (this title must be the last):
title windows
rootnoverify (hd1,0) 1
makeactive (1)
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)
boot
# explanation about above:
# rootnoverify (hd1,0) 1
#for now the disk SCSI is not hd0 but that after the last disk EIDE
#(in my case is the secodn, hence hd1)
#(1 final says to grub to use the bios scsi fot that disk instead the bios of the mother-board)
# map (hd0) (hd1)
# map (hd1) (hd0)
#(these two rows map change the disk scsi doing become it the first disk (hence c:)
All this because grub assigns always to EIDE the first disk (c:)
If you want to foresee also a reboot from windows it will be better put
another title like below (the disks have already been changed first
with the start):
title reboot winsoz
rootnoverify (hd0,0)
makeactive (1)
chainloader +1
boot
#(however I haven't tried this)
-Improves to apply to grub (use password and start other operating systems)
If you want a password to boot, in file menu.lst under timeout write:
password prova (choice the password that you want)
Under every written tile insert the written:
lock
Depend which operating system you want become not accessible. Write later on xterm:
grub-install /dev/hda
Reboot the pc. At boot if you choice a s.o. you will have an error:
Error 32: Must be authenticated
You must press the letter pc on keyboard and write the password
inserted in /etc/boot/menu.lst. Choice now which operating system to
start moving with the arrows and after pressing Enter.
If you have other operating systems (like Minix, Netbsd, Openbsd,
Freedos), you need to add the following rows on file menu.lst (taking
present in which partition are installed), these are only an example,
hence you will have to modify the side after the written "root":
title Minix
root (hd0,2)
chainloader +1
title Netbsd
root (hd0,3)
chainloader +1
title Freedos
root (hd0,4)
makeactive
chainloader +1
title Openbsd
root (hd0,5)
chainloader +1
Following the first method, in case you make the modifies it is not
necessary write always grub-install /dev/hda because grub acquires
automatically the modifies done on the contrary of lilo.
28b)GRUB ON FLOPPY OF BOOT OR USB STICK
ATTENTION
why grub on usb-stick, at contrary of floppy, will want a different map into file menu.lst, such as written below.
First of all install grub under linux like root user:
On Archlinux write:
pacman -S grub
pacman -S grub-gfx (with splashimage enabled)
Or download the source and recompile.
tar zxvf grub-x.xx.tar.gz
cd grub-x.xx/
/configure && make && make install
cd /usr/local/share/grub/i386-pc/
mkdir /boot/grub
cp -f * /boot/grub/
You can create immagine.xpm.gz modifying an existing image, it permits to have that image at start of grub on boot:
convert
-geometry 640x480 -colors 14 image.jpg image.xpm && gzip
image.xpm && cp -f image.xpm.gz /boot/grub
Do you want a crypted password on grub, without the possibility to edit the menu on boot, if not inserting the password ???
Open a shell and write:
grub md5crypt
Insert the password and will be given back the crypted password. Now in menu.lst insert:
password -md5 :$........... (the crypted password).
-FLOPPY (we can start both Linux end Windows).
Take a floppy, format it with file-system msdos (so it will be possible
modify the file menu.lst both dos/windows end linux) and mount it:
fdformat /dev/fd0
mkfs.msdos /dev/fd0
mount -t msdos /dev/fd0 /mnt/floppy/
mkdir -p /mnt/floppy/boot/grub
cp /boot/grub/stage* /mnt/floppy/boot/grub
cp /boot/grub/fat_stage1_5 /mnt/floppy/boot/grub
Open another shell and write:
grub
root (fd0)
setup (fd0)
quit
Now copy, modify and create ex-novo a file menu.lst where inside there
are instructions to start a s.o. on reboot. If you have done something
wrong don't worry, grub on boot permit from command-line to modify file
menu.lst and to start the s.o. chosed, once time started you will have to modify the file menu.lst by hand.
This is my file menu.lst:
default 0
color red/black
timeout 10
splashimage=(hd0,1)/boot/grub/image.xpm.gz #(if you want an image when grub starts)
#password provadiboot
title Slackware
#lock
kernel (hd0,1)/boot/bzImage root=/dev/hda2 apm=power-off
title Slackware originale
#lock
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 hdc=ide-scsi hdd=ide-scsi
apm=power-off
title WindowsMe
#lock
root (hd0,0)
makeactive
chainloader +1
title Minix
root (hd0,2)
chainloader +1
title Netbsd
root (hd0,3)
chainloader +1
title Freedos
root (hd0,4)
makeactive
chainloader +1
title Openbsd
root (hd1,5)
chainloader +1
Modify my file second your need, or create a new file.
Save file in /mnt/floppy/boot/grub/menu.lst and unmount the floppy:
umount /mnt/floppy
Reboot the pc with floppy inserted.
-USB STICK (ATTENTION at new map of file menu.lst).
Insert the usb stick and write:
cfdisk /dev/sda (choice Bootable, Tye --> 0B W95 FAT32) ,
write the modifies and exit pull out the stick and insert it again
(from now /dev/sda will be hd1 that our usb stick).
mkfs.vfat /dev/sda1
pull out the usb stick and insert it again
mkdir /mnt/usb
cd /mnt/
mount -t vfat /dev/sda1 usb/
mkdir -p /mnt/usb/boot/grub
cp -f /boot/grub/* /mnt/usb/boot/grub
Open a shell and write:
grub
root (hd1,0) (press Start will appear a row --->
Filesystem type is reiserfs, partition type 0x83 setup (hd1) will
have to appear differents written, last is done (otherwise repeat all
from the start)
quit
File device.map into directory grub will be made from these rows, sda is the usb-stick:
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda
Edit file menu.lst will be made like that:
timeout 5
default 0
color light-blue/red light-cyan/green
splashimage=(hd1,1)/boot/grub/image.xpm.gz #(if you want an image when grub starts)
password the_password_that_you_want
title Arch Recompiled
lock #enable the password
root (hd1,1) #also if linux is on hard-disk hd0, because we found on usb stick, insert hd1
kernel /boot/bzImage root=/dev/hda2
initrd /boot/initrd26.img
title WinXP
lock
map (hd0) (hd1) # only for Windows I remap hard-disk,
inverting it
map (hd1) (hd0) # like above
root
(hd1,0)
#Windows will be on hd1 and not on hd0,
that is
hard-disk
rootnoverify (hd1,0) #I don't able any controll
makeactive
chainloader +1
title ArchLinux
root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/hda2 ro hdb=ide-scsi
initrd /boot/initrd26-full.img
title Minix
root (hd1,2)
chainloader +1
title Netbsd
root (hd1,3)
chainloader +1
title Freedos
root (hd1,4)
makeactive
chainloader +1
title Openbsd
root (hd1,5)
chainloader +1
If you have written something of wrong or you don't have inserted a
s.o. to start, you can choice to do it from command line. When will
appear the screen semi-graphic of grub you have the possibility to
modify the row that start the s.o. or insert a new line. Es. If you
choice the s.o. Slackware, press the key e (it's edit), after again e,
modify the row for ex. pulling out "apm=power-off", press the key Esc
and after the letter b of boot. Now the s.o. will reboot Slackware but
without the row power-off. Pressing the letter c you will enter on the
command line, with letter o you will edit a new row, etc ....
The benefits of grub are a lot, one of them is to modify by hand the
row that start the s.o., the other is that that has no problems to
manage different giga, has no problems of 10240 cylinder (thing that
has lilo), if you have more s.o. on differentes disks I've seen that
lilo gave me big problems, with grub I've resolved all.
29b)USE .OGG VORBIS
-Convert a file .ogg in a file .wav (for informations man oggdec)
oggdec file.ogg
-Convert a file .wav in .ogg (for informations man oggdec)
oggenc file.wav
-Convert a file .mp3 in .ogg
mpg321 file.mp3 -w raw
oggenc -n file.mp3 raw -o newfile.ogg
-To have informations on a file .ogg
ogginfo -v file.ogg
-Listening a file .ogg use xmms or from command line:
ogg123 file.ogg
or
ogg123 -d alsa09 file.ogg
30b)FIRST STEPS WITH SLACKWARE
-How configure the graphic ?? Enter into shell like root user and start
xf86config (or xorg86config), in this example I'll set my graphic
card Nvidia GeForce2 with resolution of 800x600:
Enter
(Protocol Number) 4 Enter
Do you want to enable Emulate3Buttons? n Enter
Mouse device: /dev/psaux Enter
Enter a number to choose the keyboard. 4 Enter
Enter a number to choose the country. 40 Enter
Enter
n Enter
Enter
Enter
Enter your choice (1-11): 6 Enter
Enter your choice: 3 Enter
Enter an identifier for your monitor definition: Enter
Do you want to look at the card database? y Enter
349 NVIDIA GeForce GeForce (Write 349 Enter)
Press enter to continue, or ctrl-c to abort. Enter
Enter your choice: 8 Enter
Enter an identifier for your video card definition: Enter
Enter your choice: 3 Enter
Which modes? 3 Enter
Do you want a virtual screen that is larger than the physical screen? n
Enter
Enter your choice: 4 Enter
Enter a number to choose the default depth. 5 Enter
Shall I write it to /etc/X11/XF86Config? y Enter
-Enable NumLock on Kde and under the bash.
Under Kde click on:
Settings
Control Center
Peripherics
Keyboard
Numlock (Click on Access)
Under bash (ctrl-alt F6) insert this row at the end of file
/etc/rc.d/rc.keymap:
INITTY=/dev/tty[1-6]
for tty in $INITTY; do
setleds -D +num < $tty
done
-Doesn't start the graphic ??
Go to /etc/inittab and modify the following string like that:
id:4:initdefault:
-Ho configure the printer (4 Methods):
1???)Uninstall lpr and use cups with WebAdmin with parallel printer
Go into directory /usr/bin and write "ls -l lp*" and you can see that you will see many lp*;
Do these liks (if they already exist or are not valid, delete them and recreate again):
To delete them write:
cd /usr/bin
rm lp lpstat lpr lprm lpq
To rewrite them:
ln -s lp-cups lp
ln -s lpstat-cups lpstat
ln -s lpr-cups lpr
ln -s lprm-cups lprm
ln -s lpq-cups lpq
At this point control that /etc/rc.d/rc.cups is executable
(-rwxr-xr-x), if it is not, give "chmod 755 rc.cups", and after "/etc/rc.d/rc.cups start"
Go on /etc/rc.d/rc.local and comment with a # ahead the following row (if it's present):
#/usr/sbin/lpd
Go in /etc/rc.d/rc.M and comment these rows (able only cups and no more lpd):
# Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
# Start CUPS:
/etc/rc.d/rc.cups start
#elif [ -x /etc/rc.d/rc.lprng ]; then
# # Start LPRng (lpd):
# . /etc/rc.d/rc.lprng start
fi
If /etc/rc.d/rc.cups is executable, control to have apache activated, open a browser and write:
http://localhost:631/
Click on Administration and Add Printer, on name insert the name of the
printer (ex. hp610c), go with a new page of the browser
on http://www.linuxprinting.org/ or
http://www.freestandards.org/en/OpenPrinting and after on
Printers, select the brand and the model of your printer, click later
on download PPD and
download the file in /usr/share/cups/model/
Click on continue, choice on Device for ex. (Parallel Port #1), again
on continue, on Make select the brand HP, on Model select the model of
the printer and at the end on continue.
2???)Uninstall lpr and use cups Kde-Peripherics-Printers with usb printer
Go into directory /usr/bin and write "ls -l lp*" and you can see that you will see many lp*;
Do these liks (if they already exist or are not valid, delete them and recreate again):
To delete them write:
cd /usr/bin
rm lp lpstat lpr lprm lpq
To rewrite them:
ln -s lp-cups lp
ln -s lpstat-cups lpstat
ln -s lpr-cups lpr
ln -s lprm-cups lprm
ln -s lpq-cups lpq
At this point control that /etc/rc.d/rc.cups is
executable (-rwxr-xr-x), if it is not, give "chmod 755 rc.cups",
and after "/etc/rc.d/rc.cups start"
Go on /etc/rc.d/rc.local and comment with a # ahead the following row
(if it's present):
#/usr/sbin/lpd
Go in /etc/rc.d/rc.M and comment these rows (able only cups and no more lpd):
# Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
# Start CUPS:
/etc/rc.d/rc.cups start
#elif [ -x /etc/rc.d/rc.lprng ]; then
# # Start LPRng (lpd):
# . /etc/rc.d/rc.lprng start
fi
If /etc/rc.d/cups is executable, on KDE go on Peripherics, printers, above
click with right-key of the mouse on AddPrinter, local Printer
(parallel, serial, USB), Next, select USB Printer #1 (3550) if usb like
in my case, click on other, and select file *.PPD of your printer
downloaded and
saved before from http://www.linuxprinting.org/ or
http://www.freestandards.org/en/OpenPrinting , after on Next,
Impostations, Next, Next, Next, Next, insert the name of the printer
and after on end.
3???)Use lpr and apsfilter
Once is installed the program apsfilter go in /usr/share/apsfilter and write ./SETUP and configure the printer.
4???)Print with OpenOffice with cups, Kde-Peripherics-Printers- OpenOffice Managements Printers
If you don't try to print with OpenOffice, follow what is written:
Uninstall the packet lp (execute like user root, pkgtool, go on remove and pull out in packet lpd-.......)
Go into directory /usr/bin and write "ls -l lp*" and you can see that you will see many lp*;
Do these liks (if they already exist or are not valid, delete them and recreate again):
To delete them write:
cd /usr/bin
rm lp lpstat lpr lprm lpq
To rewrite them:
ln -s lp-cups lp
ln -s lpstat-cups lpstat
ln -s lpr-cups lpr
ln -s lprm-cups lprm
ln -s lpq-cups lpq
At this point control that /etc/rc.d/rc.cups is
executable (-rwxr-xr-x), if it is not, give "chmod 755 rc.cups",
and after "/etc/rc.d/rc.cups start"
Go here:
http://www.linuxprinting.org/ or http://www.freestandards.org/en/OpenPrinting , download the PPD file
(depend from the model of you printer) and save it in /usr/share/cups/model/
If /etc/rc.d/rc.cups is executable, on KDE go on Peripherics, printers,
above click with right key of mouse on Add Printer, local printer
(parallel, serial, USB), Next, select USB Printer #1 (3550) if usb like
in my case,
click on other and select file *.PPD of your printer downloaded and saved from http://www.linuxprinting.org/ or
http://www.freestandards.org/en/OpenPrinting, after go on Next, Settings, Next, Next, Next, Next, insert the name of the printer
and after click on end.
From Kde go on OpenOffice Management Printers, remove the printer (if
present a generic), click on NewPrinter, Add Printer, Import,
Browser and go on directory /usr/share/cups/model/, select file PPD
saved before, click on OK, reselect you printer on the list, Next,
write lpr and at the end Finish. Select the printer and click on
Properties and here set the parameters of the printer.
On select command choice lpr and not cups (this is valid only for OpenOffice).
Good print.
-Doesn't start the printer driver??:
Go in /etc/rc.d/rc.local and insert the following string:
/usr/sbin/lpd
and eventually if you use cups like driver of printer:
cd /etc/rc.d/
chmod 755 rc.cups
/rc.cups restart
-Every time you login or start xterm you can see different writtens ??
chmod a-x /etc/profile.d/bsd*
-Configure adsl
Start the program adsl-setup and configure with few parameters required. To start the connection write:
adsl-start
To stop it write:
adsl-stop
-How install a file .rpm on slackware:
rpm -i --nodeps --force file.rpm
-How convert file .rpm in .tgz and .tar.gz
rpm2tgz file.rpm
rpm2targz file.rpm
-Install, upgrade, uninstall file .tgz on slackware
Beyond sware it's possible use the program (already automatically installed):
pkgtool
Or use the commands like below:
installpkg file.tgz (To install a packet)
removepkg file.tgz (To uninstall a packet)
upgradepkg file.tgz (To update a packet)
makepkg (create a packet compatible for slackware)
explodepkg (unzip the packet into following directory)
-Able all console (ctrl-alt-Fx)
Edit file /etc/inittab and insert the number 4 like that:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
When you have done the modify reboot the computer.
-Able the server telnet:
Uncomment the row relative at telnet in /etc/inetd.conf:
# Telnet server:
#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
and after give the command:
killall -HUP inetd
-Able the reboot and halt at users:
Install sudo-1.6.7p5-i486-1ok.tgz
Insert these rows into file /etc/sudoers (eventually rename it):
utente ALL=(root) NOPASSWD: /sbin/poweroff
utente ALL=(root) NOPASSWD: /sbin/reboot
Substitute "utente" with the name of the user that you want that can give halt or reboot and write on xterm:
sudo /sbin/poweroff
sudo /sbin/reboot
-Configure server Proftpd
Enter into directory /etc/ and modify file inetd.conf
Find 2 following rows and able the second:
# File Transfer Protocol (FTP) server:
ftp stream tcp
nowait root /usr/sbin/tcpd proftpd
Save and exit from this file and enter into file /etc/proftpd.conf:
Able or insert the following rows:
ServerName
"ProFTPD Default Installation"
ServerType
standalone
ServerType
inetd
DefaultServer on
RootLogin
on (only if you want accept login like
user
root).
Save file and reboot slackware.
-Install server vsftpd
Delete server proftpd con:
removepkg proftpd
Install vsftp con:
installpkg vsftp*.tgz
Go in /etc and configure file vsftpd.conf
Add:
listen=YES
local_enable=YES
write_enable=YES
chroot_list_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
Choice after the wished options.
Create the directory empty:
mkdir /usr/share/empty
touch /etc/vsftpd.chroot_list
At the end write:
vsftpd &
If you want the server ftp start at reboot, insert the string in:
/etc/rc.d/rc.local
31b)UPDATED FEDORA IN EASY WAY
Thanks to Gianni Giusti (giannigiusti@tiscali.it).
I searched on Internet better web-sites that contained packets of fedora
(also more weirds). Between them I selected repository fastest. Afterward
I've installed the program Synaptic that is a graphic interface to apt-get.
The result: now I've a program of installation programs (Synaptic) that
download also the machine for coffee :-) Other that windows ... try it to
believe.
If you want to configure apt-get and synaptic with the list of repository
that I'm using, you have to go ahead in this way (long but easily).
1)download and install the packet apt:
http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/1/apt/apt-0.5.15cnc3-0.1
fr.i386.rpm
2)Go under /etc/apt/
3)Edit file sources.list and past the text below, deleting what already
exist:
# List of available apt repositories available from ayo.freshrpms.net.
# This file should contain an uncommented default suitable for your system.
# See http://ayo.freshrpms.net/ for a list of other repositories and
mirrors.
# $Id: sources.list.i386,v 1.3 2003/11/26 10:07:55 dude Exp $
# Fedora Linux 1
rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
#rpm http://ayo.freshrpms.net fedora/linux/1/i386 tupdates
#rpm http://ayo.freshrpms.net fedora/linux/1/i386 extras alternatives
#rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
#rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 tupdates
#rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 extras alternatives
### Dag Apt Repository for Red Hat Fedora Core 1 (rhfc1)
rpm http://apt.sw.be redhat/fc1/en/i386 dag
#newrpms.sunsite.dk
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms
rpm-src http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms
rpm http://rpm.livna.org/ fedora/1/i386 stable unstable testing
rpm-src http://rpm.livna.org/ fedora/1/i386 stable unstable testing
rpm http://dries.studentenweb.org apt/fedora/fc1/i386 dries
rpm-src http://dries.studentenweb.org apt/fedora/fc1/i386 dries
4) Go on terminal and stand on directory /tmp/
5) Exec the following commands:
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
wget http://rpm.livna.org/RPM-LIVNA-GPG-KEY
wget http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
wget http://freshrpms.net/packages/builds/apt/RPM-GPG-KEY.freshrpms
6) Execute the command (always under /tmp/):
rpm --import RPM-GPG-KEY.dag.txt
rpm --import RPM-LIVNA-GPG-KEY
rpm --import gpg-pubkey-newrpms.txt
rpm --import RPM-GPG-KEY.freshrpms
7) Now execute the command (always from terminal):
apt-get update -- in this way will be downloaded the list of packets
available and the dependences
8) Now write the command:
apt-get install synaptic In this way we are installing program Synaptic
9) Now go on first menu (red hat), go on menu "system tools"
and start the application "Synaptic..."
10) The keys that you see in front of you are:
"Update list" -> Update the list available on-line of packets
downloaded
"Upgrade system" -> update old packets
"Execute" -> Install and uninstall the packets you have selected On
the
left is present a panel where you can insert the packet to install. The
program shows you the packet, and says if it is already installed, the
version, the version present on-line, etc...
Now you have only to select and decide (by keys on left), if install it or
uninstall it, etc ...
32b)UTILITY FIREFOX AND THUNDERBIRD
-Java on
Firefox
Download java for linux and unzip for ex.
in:
/usr/local/
so you will have the
directory:
/usr/local/j2re1.4.2_05/
Install Firefox or Mozilla
for ex. in:
/usr/local/
so you will have the
directory:
/usr/local/Firefox/
Now copy the link in a file
inside the directory plugin of Firefox.
In my case I've done this
command:
ln -s
/usr/local/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
/usr/local/Firefox/plugins/
-Install
plugin macromedia flash and fonts on Firefox.
The installation has
been done on Slackware 9.1
Download the plugin of macromedia flash
from
here:
http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=Sh
ockwaveFlash
The
version is:
install_flash_player_6_linux.tar.gz
Unzip it with
(tar zxvf install_flash_player_6_linux.tar.gz)
We install fonts
urw.
Download file urw-fonts-1.0.7pre22.tar.bz2 (or next version)
from web-site:
ftp://ftp.izmiran.rssi.ru/pub/fonts/urw/
Unzip
this file like that:
cp urw-fonts-1.0.7pre22.tar.bz2
/usr/X11/lib/fonts/Type1/
cd /usr/X11/lib/fonts/Type1/
bunzip
urw-fonts-1.0.7pre22.tar.bz2
tar xvf urw-fonts-1.0.7pre22.tar
(over-write files that already exists)
fc-cache
We install
fonts TrueType from Windows.
cd /usr/X11/lib/fonts/TTF/
mkdir
msttf
Mount the partition of windows and we copy fonts on
linux.
cp -f /mnt/windows/fonts/ari*.ttf msttf/
fc-cache
msttf
We install also the fonts Times New Roman.
cp -f
/mnt/windows/fonts/times*.ttf msttf/
fc-cache msttf
Now we
enter into directory install_flash_player_6_linux just created
and
write:
/flashplayer-installer
Press 3 times Enter, digit
the directory of browser, for ex.
/usr/local/Firefox/
Lastly
press key y and after key n
The installation is over, close the
browser if opened and re-open it.
-Open Firefox from
Thunderbird
Go into directory Thunderbird of own home page (where
is file called
bookmarks.html), for ex:
/home/.thunderbird/Default
User/ue0y72hv.slt/
or
/home/.thunderbird/default.wbu/
Enter
into directory *efault* (it will be surely different from mine)
and
see if exist the file user.js, if doesn't exist create it and
insert the
following string at
start:
user_pref("network.protocol-handler.app.http",
"/usr/local/Firefox/firefox");
Modify
it, second where is executable file Firefox. Close Thunderbird,
if
opened, re-open it, if now you click on link, Firefox will be
opened.
-Open link in differentes tab from Thunderbird in
Firefox? (Thanks to
Leone2000)
It's a problem, but after hours
of "googleggiamenti" I've prepared this:
Put in
~/.thunderbird/<profile-directory>/user.js (if doesn't exist,
create
it):
user_pref("network.protocol-handler.app.http",
"/usr/local/bin/firefox-start");
user_pref("network.protocol-handler.app.https",
"/usr/local/bin/firefox-start");
user_pref("network.protocol-handler.app.ftp",
"/usr/local/bin/firefox-start");
Afterward
create in /usr/local/bin the script firefox-start that
contain:
#!/bin/bash
### the syntax -remote doesn't work if
Thunderbird is already opened!
###/usr/local/firefox/firefox
-remote
"OpenURL($1,new-tab)"
/usr/local/firefox/mozilla-xremote-client
OpenURL\($1,new-tab\)
if [ $? -gt 0 ];
then
/usr/local/firefox/firefox $1
fi
-Send email from
Firefox, opening mail-manager.
Create file user.js into
directory:
/yourhome/.mozilla/firefox/default..../
Insert
inside the
written:
user_pref("network.protocol-handler.app.mailto",
"/usr/local/Thunderbird/thunderbird");
Salve
file, close the browser and the mail-administrator (in this
case
Thunderbird), re-open only Firefox and click on an email
link.
-Able Updates and upgrades for Firefox.
Edit -->
Preferences --> WebFeatures --> Click on written:
Allow web
sites to install the software and click on Allowed Sites.
Insert
these 2
links:
update.mozilla.org
http://www.mozilla.org
Click on
Allow.
Click on OK, after again on OK, File --> Quit.
Re-open
Firefox, if high on right of the browser there is a white
arrow
inside a red circle, click on it and install the official
patch of Firefox.
33b)USING TV WITH A ATI RADEON 7200
Thanks to: Leonardo Lorenzetti aka Leone2000 (leone2000 (at) inwind.it)
Preamble:
I've thought to write this post to help, who like me, have a ATI Radeon 7200 and want use the exit TV on Linux.
I've searched a lot on Internet and I've seen that is not possible with
ATI before series 9000 for many legal problems at macrovision & c.
Well, I tried and I've done it and now I explain how
Start:
-Required
I'm using it on Slackware 9.1 with kernel and Xfree86 of default,
therefore respectively 2.4.22 for the kernel and 4.3.0 for Xfree86
-What we need.
Firstly download drivers ati radeon of project gatos, I've downloaded
ati-4.3.0-14.i386.tar.gz but sincerely I believe that it's not so
necessary because drivers already present in Xfree86 4.3.0, for me,
should be correct,
however you find them here:
http://sourceforge.net/project/showfiles.php?group_id=12629
After we need a program called atitvout you can download here:
http://www.stud.uni-hamburg.de/users/lennart/projects/atitvout/atitvout-0.4.tar.gz
-Start
Be sure that when X starts, it is configured with driver radeon. Da console start atitivout auto pal
it's important that you do it with wire connected on tv and that tv is opened. Done this you'll see an error:
"VBE call failed.
Maybe this command is not supported by your graphics adapter?
Did your parameters (if you specified some) really make sense?
Please try all other available commands before complaining!"
Don't consider it !!
Now, you go on file of configuration /etc/X11/XF86Config and into
section Device, change the Driver from radeon to vesa and furthermore
add the following rows:
Option "TVOut" "1"
Option "TVStandard" "PAL-B"
The final result must be like this:
Section "Device"
Identifier "Ati Radeon 7200"
Driver "vesa"
#Driver "radeon"
Option "TVOut" "1"
Option "TVStandard" "PAL-B"
VideoRam 65536
EndSection
-Ok, we've done
At this point you have to reboot X with Ctrl+Alt+BS will do the
magic . you will see the output on monitor and on tv
.. while I'm writing, I'm watching a funny Gigi Proietti in
"Febbre Da Cavallo" ahahahhah!!!!
34b)CONFIGURE GNOME
-Configure gdm to have Reboot and Halt:
From root open xterm and write:
gdmsetup
go on Security
select show menu Action:
if you want other options click also on 2 options below. Under General
you can do also the login automatically for a user, etc...
The configuration file of gdm is in /etc/X11/gdm /gdm.conf the interested rows for shutdown and reboot are:
RebootCommand=/sbin/shutdown -r now;/usr/sbin/shutdown -r now
HaltCommand=/usr/bin/poweroff;/sbin/poweroff;/sbin/shutdown -h now; /usr/sbin/shutdown -h now
-Reduce the icons and open them only with one click of the mouse under gnome:
Desktop Preferences, Management File, Preferences seen link icon.
-List of opened windows on instruments crossbar:
Right key on bar, Add panel, utility, windows lists.
35b)ICONS ON DESKTOP WITH WINDOWMAKER
Thanks to Gianfranco Bertozzi member of ACROS
Lug Versilia Lucca Massa-Carrara. email: gbertozzi@tiscali.it
A problem of many users of windowmaker is that they can't put icons on desktop (peripherals and programs) like happens in KDE or in gnome. This little how-to resolve this missing.
Download ad install filemanager rox
You can find it on: http://rox.sourceforge.net
When you have installed it, in X, start it from xterm (or another program) with the command:
rox -p=Default
Will appear on desktop the icon Home. drag it on Dock (the column where
are the applications, for who doesn't know) and set the options so it
will appear at start of wmaker. Right click on icon dock, after
'settings', click
on 'start when windowmaker is started'. In this way, when wmaker will
start, rox will appear under shape of icon on desktop and with relative
big square on dock.
Rox hasn't own icon for dock, so you will have to create one that you like.
I've put /usr/X11R6/include/X11/pixmaps/fileman.xpm
At this point open the window Home clicking on relative icon, and put
the mouse within the window. Surfing between file, you can drag some
file (of
peripherals, of application, of
date) on desktop and what will remain there. Rox supports the drag
& drop between more windows, the possibility to drag a file on icon
of relative
application and positioning icons on desktop (whose beauty can be
regulate on first menu, that is compare click in with right button of
mouse on window of filemanager, 'desktop', 'dimension of the grid').
You can also create a waste basket (trash): you can create a little batch with:
#move file in a directory without delete them
mv $1 /path_per_mytrash/
or more destructive:
#delete file without possibility to recover
rm $1
and putting it on desktop. A icon for the trash is:
/usr/X11R6/include/X11pixmaps/trash_empty.xpm
To automatize the opening of default of some file, you have to click
with right bottom of mouse on icon, ope menu at voice 'Impost action'
and insert the command of shell (or the call to xterm with 'xterm -e
commandname') followed from "$1" that is the parameter of the same
file. If you click on
'Only for type.....' the application will be called only for files with
the same extension. If instead we want apply it to all file of that
type (for example 'text of all types'), you will have to click
on the option.
Note: if you work with Dos or Win partitions, or files have bit
executable activated, won't be possible assign an application in this
way. In that
case we have two possibilities: (a) from first menu (like before)
choice 'Options - Types' and click on bottom 'Ignore bit executable for
known extensions'. This works on many cases. (b) If Rox didn't know the
extension (for example: OpenOffice use extensions "sx.." instead "sd.."
like before,
and in my Rox it doesn't know them), then you have to click on 'Show rules
transferring from name to type', edit the file:
/usr/local/share/Choices/MIME-info/gnome-vfs.mime
and insert new extensions. If application already exists (search it
before insert it newly!) it's sufficient add new extensions, share from
one space.
This string add 'sxw' to 'sdw' of StarOffice already present:
application/x-staroffice-words
ext: sdw sxw
Close all, reboot rox and you are ok !
Hint: read help, the is good enough. Right click on a window, option
'Window - shows help' or press F1 from inside Rox. The Manual.html' is what you need.
36b)AUTOMATE ONE OR MORE PROCEDURES WITH CRONTAB
crontab -e Edit file crontab or creates new one if already doesn't exist
crontab -l Shows file crontab
crontab -r Remove file crontab
crontab -v Show last time crontab has been edited
minutes hours day month year (command to execute)
30
18
*
*
* ls -al
Between numbers leave only 1 space.
Crontab edited for that user, will exec a command only for that user, to exception of command root.
To edit the file is like you were inside editor vi (see point 1c)
Example:
If at 21:15 of day January 19 2006 you want that linux exec a command:
15 21 19 12 2006 dir
For major detailes write:
man crontab
37b)MOUNT PARTITION NTFS IN READ/WRITE
Thanks to Gianni (nick Name KIO).
New procedure regards distributions Fedora 5, Slackware 11, Suse 10.2, Debian testing/sid, Mandriva 2007 and Gentoo (sabayon).
Old procedure regards distributions such as Fedora, Slackware and Debian etch.
- NEW PROCEDURE:
* On Fedora 5
Go on website http://fuse.sourceforge.net, download the pkg
fuse-2.5.3.tar.gz and I unzip it:
tar xvzf fuse-2.5.3.tar.gz
I install it:
cd fuse-2.5.3
/configure && make && make install
after go on website
http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-download.html
download the pkg and I unzip it:
tar xvzf ntfs-3g-20070920-BETA.tgz
Install it:
cd /home/kio/ntfs-3g-20070920-BETA
/configure && make && make install
mount the partition ntfs in read/write
#mount -t ntfs-3g /dev/hda1 /mnt/win
and bingooooooooooooooo!
unmount it:
umount /mnt/win
And if I didn't want install the sources but the rpm so it would be more easy to remove them ?? What I have
to do ?
I download rpm of ckechinstall searching it from
http://rpmfind.net/linux/RPM/ but I could use yum
rpm -ivh checkinstall-1.6.0-3.fc3.rf.i386.rpm
after
I reenter inside 2 directories where I've downloaded both tar.gz and I give:
cd /home/kio/ntfs-3g-20070920-BETA
/configure && make && checkinstall
IMPORTANT:to mounting automatically at startup you need insert in /etc/fstab
the following statement:
/dev/hda1 /mnt/win ntfs-3g rw,user 0 0
and the partition is mounted in read/write for all
Disadvantages complained: nobody- avoid use in environment of production or
in partitions containing sensible dates !
* PS1=On the guide by Moreno in which the problem is reversed, from Windows
we write inside Ext3 linux partitions, the guide is here:
http://www.mandrakeitalia.org/modules/wfsection/article.php?articleid=191
* PS2= A analogous guide for the distro slackware is available here
http://www.slacky.it/wikislack/index.php title=Scrivere_su_filesystem_NTFS
* PS3= Sure what the repos of livna activated now is truly so easy add to
Fedora-6 the support to NTFS using:
yum -y install ntfs-3g
and it does all itself, after you can go on such as indicated above !
* On Slackware 11 and derived how we proceed ???
I follow my guide http://xoomer.alice.it/lucky341/NTFS.html
the pkg fuse installed is 2.5.3 , I've only to upgrade it - I go on website
http://fuse.sourceforge.net
and I download new version fuse-2.6.0.tar.gz:
tar xvzf fuse-2.6.0.tar.gz
cd fuse-2.6.0
/configure && make && checkinstall
after:
upgradepkg fuse-2.6.0-i386-1.tgz
after from website http://www.ntfs-3g.org/index.html I download the last
version of drive ntfs-3g that I install it with method above seen:
installpkg ntfs-3g-0.20061115-BETA-i386-1.tgz
after:
mount -t ntfs-3g /dev/sda1 /mnt/win
but I've a rough error:
fuse:no such device
while the module exists and is charged - what I have to do ???
on google I don't find anything, then I return back removing the pkg
ntfs-3g-0.20061115-BETA-i386-1.tgz
I search the previous driver on internet, I found it on
http://gentoo.netnitco.net/distfiles that is not more available on
http://xoomer.alice.it/lucky341/ntfs-3g-20070920-BETA.tgz
ntfs-3g-20070920-BETA.tgz
usual job:
tar xvzf ntfs-3g-20070920-BETA.tgz
cd ntfs-3g-20070920-BETA
/configure && make && checkinstall
installpkg ntfs-3g-20070920-BETA-i386-1.tgz
mount -t ntfs-3g /dev/sda1 /mnt/win
and bingooooooooooooooooooo!!!!!!!!!!!!!!!
IMPORTANT:mounting automatically at startup you need to insert in /etc/fstab
the following statement
#/dev/sda1 /mnt/win ntfs-3g rw,user 0 0
and the partition is mounted in read/write for all
To unmount the partition:
#umount /mnt/win
* On Suse 10.2?
I follow my guide:
http://xoomer.alice.it/lucky341/NTFS.html
I install checkinstall:
smart install checkinstall
I go on website http://fuse.sourceforge.net and I download the pkg
fuse-2.6.1.tar.gz I download it:
tar xvzf fuse-2.6.1.tar.gz
and I install it:
cd fuse-2.6.1
/configure && make && checkinstall
rpm -i fuse-2.6.1-1.i386.rpm
rpm -ivh /usr/src/packages/RPMS/i386/fuse-2.6.1-1.i386.rpm
linux-suse:/home/kio/fuse-2.6.1 # modprobe fuse
after I go on website
http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-download.html and I download the
pkg and I unzip it:
tar xvzf ntfs-3g-20070102-BETA.tgz
I install it:
cd /home/kio/ntfs-3g-20070102-BETA
/configure && make && checkinstall
You will have this message:
Done. The new package has been saved to
/usr/src/packages/RPMS/i386/ntfs-3g-0.20070102-BETA-1.i386.rpm
You can install it in your system anytime using:
rpm -i ntfs-3g-0.20070102-BETA-1.i386.rpm
rpm -ivh /usr/src/packages/RPMS/i386/ntfs-3g-0.20070102-BETA-1.i386.rpm
I try to mount::
mkdir /mnt/win
mount -t ntfs-3g /dev/hda1 /mnt/win
/sbin/mount.ntfs-3g: error while loading shared libraries: libntfs-3g.so.0:
cannot open shared object file: No such file or directory
I restart computer, remount it but I have a rough error:
fusermount: 'fuseblk' support missing; try the kernel module from fuse-2.6.0
or later
Failed to create FUSE mount point.
Retry to create FUSE mount point ...
fusermount: 'fuseblk' support missing; try the kernel module from fuse-2.6.0
or later
Failed to create FUSE mount point.
umount /dev/hda1
while the module exists and is charged, what I've to do ??
see also:
http://forum.ntfs-3g.org/viewtopic.php?t=14
then I return back and I remove the pkg ntfs-3g-20070102-BETA-i386-1.rpm
I search a previous driver that works on internet I found it on su
http://gentoo.netnitco.net/distfiles/ that is ntfs-3g-20070920-BETA.tgz
that is not more available on
http://xoomer.alice.it/lucky341/ntfs-3g-20070920-BETA.tgz
same job, I restart::
mkdir /mnt/win
mount -t ntfs-3g /dev/hda1 /mnt/win and bingoooooooooooooooo!!!!!!!!!!!!
IMPORTANT:mounting automatically at startup you need to insert in /etc/fstab
the following statemant
#/dev/sda1 /mnt/win ntfs-3g rw,user 0 0
and the partition is mounted in read/write for all
To unmount the partition:
#umount /mnt/win
* On Debian testing/sid????????????????
on debian it's easy fuse is already installed by fuse util
then:
apt-get install ntfs-3g
mount -t ntfs-3g /dev/hda1 /mnt/win
IMPORTANT:mounting automatically at startup you need to insert in /etc/fstab
the following statemant
#/dev/sda1 /mnt/win ntfs-3g rw,user 0 0
and the partition is mounted in read/write for all
To unmount the partition:
#umount /mnt/win
* On Mandriva -2007 ?
rpm -qa fuse
smart install fuse
smart install ntfs-3g
mkdir /mnt/win
mount -t ntfs-3g /dev/hda1 /mnt/win
umount /dev/hda1
mount -t ntfs-3g /dev/hda1 /mnt/win
modprobe fuse
mount -t ntfs-3g /dev/hda1 /mnt/win
I restart but the module is not charged then I add in /etc/modprobe.preload
***********
# /etc/modprobe.preload: kernel modules to load at boot time.
fuse
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules
*************
after I have seen /etc/fstab to mounting automatically at boot of partition
for all
/dev/hda1 /mnt/win ntfs-3g umask=0,rw,users 0 0
and bingooooooooooo!!!!!
* On Gentoo(sabayon) ??
I go on website http://fuse.sourceforge.net and I download the pkg
fuse-2.6.1.tar.gz and I unzip it:
tar xvzf fuse-2.6.1.tar.gz
and I install it:
cd fuse-2.6.1
/configure && make && make install
after I go on website
http://mlf.linux.rulez.org/mlf/ezaz/ntfs-3g-download.html
I download the pkg and I unzip it:
tar xvzf ntfs-3g-20070102-BETA.tgz I install it:
cd /home/kio/ntfs-3g-20070102-BETA
/configure && make && cmake install
even though later I saw that the driver ntfs3g, is presents in portage (and
trying to install it I had an error)
reboot
mkdir /mnt/win
mount -t ntfs-3g /dev/sda1 /mnt/win
IMPORTANT:mounting automatically at startup you need to insert in /etc/fstab
the following statemant
#/dev/sda1 /mnt/win ntfs-3g rw,user 0 0
and the partition is mounted in read/write for all
To unmount the partition:
#umount /mnt/win
- OLD PROCEDURE:
Thanks to Scrimieri about packet-programs called ntfsprogs that give a
series of instruments to access on filesystem such as NTFS, I've
mounted fast and easily on Fedora the partition Windows Ntfs in
read/write, using FUSE, a new project to use filesystem in userspace,
how ??
* On Fedora:
I've been on web-site:
http://www.linux-ntfs.org/content/view/19/37/
and I've downloades and installed the pkg:
ntfsprogs-1.12.1-1.i586.rpm
ntfsprogs-devel-1.12.1-1.i586.rpm
ntfsprogs-fuse-1.12.1-1.i586.rpm
ntfsprogs-gnomevfs-1.12.1-1.i586.rpm
Later with yum, because a problem of dependences, I've installed:
fuse-2.4.2-2.fc4.i386.rpm
fuse-libs-2.4.2-2.fc4.i386.rpm
at that point
ntfsmount /dev/hda1 /mnt/win
and bingooooo! I've created/deleted file inside filesystem ntfs of windows !!!!!!!!!!!
* On Slackware?
with an old trick I used rpm over-indicated, but the pkg more important is
not exportable on slacky, that is:
fuse-2.4.2-2.fc4.i386.rpm Doesn't work !
MAKEDEV FUSE :fails! Therefore what to do ?? I've been on web-site
http://fuse.sourceforge.net/ and downloaded the tar.gz
tar xvzf fuse-2.4.2.tar.gz
cd fuse-2.4.2
/configure && make && make install
I had already put files pkg inside directory /home/kio/ntfs
therefore
cd /home/kio/ntfs
rpm -ivh *.rpm --nodeps
and bingooooooooo!
LATER
ntfsmount /dev/hda1 /mnt/win
and go!!!! :
full mounted read/write!
I believe that this is the final solution: easily, smart and sure !
TRY TO BELIEVE !
-if we don't want use rpm we can convert them in tgz with tool rpm2tgz!
And on debian etch? Go ahead such as in Slackware!
38b)INSTALL SLAX ON HARD-DISK AND ON USB STICK
Thanks to Antonio Mori moore2@inwind.it to having written the first side
(INSTALL SLAX ON HARD-DISK)
-INSTALL SLAX ON HARD-DISK
Procedure to install the distribution live based on slackware Slax.
http://www.slax.org
I preface that this distro is difference from slackware because it
mounts new kernel 2.6.16 and new kde 3.5.3, moreover you can install
inside it many programs used in office, network, security that you will
find in side
modules in the official web-site. Install these modules ie easily, one time downloaded them you have only to
click above them and these will be installed alone.
This is the procedure to install slax on hd.
1) insert cd of slax on computer and reboot
2) Once time distro is started in live modality (start also kde with startx) open a shell
3) From shell digit cfdisk ( partitioning tool)
4) Create a partition of 200 mb ( like minimum ) or of 1 gb and beyond like maximum ( better solution ).
5) I preface that the swap is optional but if you create it, it's better.
6) Once created two partitions, one for root and the other for swap, partitioning them with the following commands from shell:
mkfs.ext2/dev/hdx for root ( hdx is the name of partition )
mkfswap /dev/hdx2 for swap ( hdx is the name of partition )
7)download the script to install it on hd from here
http://www.slax.org/forum/viewtopic.php?t=13296
Copy the script into root and start with ./namescript (I've called it slaxinstall)
9)Once time started, it will ask you the name of your partition where you will want to install it ex. mnt/hda1 etc.
10)At this point the distro will be installed on your hd at the end of
the process digit liloconf and in modality expert install lilo where
you want on mbr or on a floppy.
Enjoy a lot, I sure you that it is a light and stable with all essential.
- INSTALL SLAX ON USB STICK
You have to work like user root
Insert the usb stick and choising the correct device write:
cfdisk /dev/sda (choice Bootable, Tye --> 0B W95 FAT32) , write the modifies and exit
pull out the stick and insert it again (from now and after /dev/sda will be hd1 that is our usb stick)
mkfs.vfat /dev/sda1
pull out the usb stick and insert it again
mkdir /mnt/usb
mount -t vfat /dev/sda1 /mnt/usb/
Download iso version 6.0.7 (last version available in this moment) of slax from web-site:
http://www.slax.org
mkdir /slax
mount
-o loop slax-6.0.7.iso /slax/ (if you have error, you need to
anable the loop on kernel or write modprobe loop and repeat the command)
cp -fra /slax/* /mnt/usb/
This last version already has a script to install the bootloader in Linux and in Windows:
cd /mnt/usb/boot/
./bootinst.sh (or exec bootinst.bat on Windows)
cd / && umount /mnt/usb/ (unomunt the device usb so you can use it immediately)
If
you want use your preferred bootlader such as lilo or grub (if you
choice grub you can start also other operating systems beyond Slax),
that is it will have at least a double function.
- If you want having LILO like boot loader:
cp vmlinuz /mnt/usb/
cp initrd.gz /mnt/usb/
cd ..
mv isolinux.cfg syslinux.cfg
Edit new file syslinux.cft and delete "boot/" near at initrd.gz and vmlinuz, don't delete the other boot/ present
Save and exit from file syslinux.cfg
cd /
umount /mnt/usb
syslinux -s /dev/sda1
Reboot the usb stick and set the bios, so you will can boot from this.
- If you want having GRUB inside the usb-stick (so you will start other operating systems)
mkdir -p /mnt/usb/boot/grub
cp -f /boot/grub/* /mnt/usb/boot/grub
grub
root (hd1,0)
setup (hd1) will show different writtens
quit
File device.map inside directory grub will have these rows, sda is the usb stick:
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda
File menu.lst inside usb stick will have be composed from:
timeout 5
default 0
color light-blue/red light-cyan/green
title Archlinux
root (hd1,1)
kernel /boot/bzImage root=/dev/hda2
initrd /boot/initrd26.img
title WinXP
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
rootnoverify (hd1,0)
makeactive
chainloader +1
title SlaxUsb
root (hd0,0)
kernel /boot/vmlinuz max_loop=255 init=linuxrc load_ramdisk=1
prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw
initrd=/boot/initrd.gz
Save the file and unmount the usb stick:
cd /mnt
umount usb
Reboot the usb stick and set the bios, so you will can boot from this.
39b)DAMN SMALL LINUX ON USB STICK
Thanks to Antonio Mori moore2@inwind.it :
The procedure of damn small linux, a distro based on debian of 50 mb
with many fundamental programs that you find inside big distros.
This is the procedure of installation in few steps, anyone can do it.
1) Copy iso of damn small linux after having downloaded from official web-site on a cdrom
2) Insert you usb stick in your pc, you need only a pen of 128 mb
3) Insert cd with the isd of damn small linux into computer and start it on boot from cdrom
4) On desktop of damn small linux click in a empty point with right bottom of mouse
5) Apps>>Tools>>Install to USB pen drive>>For USB-HDD Pendrive
at this point, it will be required the name device stick, digit sda at
the second question type of card etc... Leave empty and pass beyond
with Enter
At required of keyboard digit it and voil??? the procedure is done
after some minutes, you'll have the damn small linux on usb stick.
Easy no ???
Try tro believe, it's more difficult to explain that do it.
To start it from usb stick, you need only to boot from your computer is set on pen-hdd
40b)PARTITIONING'S CONCEPT OF HARD-DISK WITH REFEREMENT TO GNU LINUX
Thanks to author Stefano Pardini http://www.viareggiolinux.org
Linux User Group: ACROS http://www.lug-acros.org
Preface:
This guide is firstly dedicated to users that arrive from Windows's
world and has been written to user can understand the concept of
partitioning of hard-disk. This guide has been written to pure
informative purpose, the operations written are only examples and they
must be considered like them, so they don't have to be applied in
reality ! The partitioning is an operation much delicate, in case of
necessity ask to an expert. In any case the author will can be consider
responsable for the practice application and/or professional of
examples below written.
What are partitions and because partitioning an hard-disk:
The space available on hard-disk can be shared in partitions which one
function how if it was one hard-disk. The partitions can be considered
like the portions of a hard-disk independent between them and each
provided of own file system. The partitioning can be exec for different
purposes (for ex you could create a partition destined only to dates),
in our case we'll analyze the creation of space on hard-disk so we will
can install Gnu/Linux. Proceed with order and wee how it's possible
share in partitions and how many we can create. One hard-disk contains
a table of partitions with 4 voices. Each voice of table can be a
primary partition or an extended partition, whose, nevertheless, can
exist of them only one. An hard-disk can contain until 4 primary
partitions or 3 primary partitions and 1 extended. The difference
between primary partitions and extended is that the firsts can contain
an operating system while the seconds, no. The limit of 4 partitions on
hard-disk was passed time ago with the creation of extended partitions
that can be destined to other shares of available space in drive
(volumes) logics. These shares later must be identified. DOS for
example, use identification with letters of alphabet. The limit of this
method is that letters are only 26 (whose first 2, "a" and "b"
are reserved to floppy). On scsi disks an extended partition can be
fill until to 15 logic partitions, into hard-disk (e)ide can exist
until 63. A particular of Linux is that can be installed on a primary
partition and/or on logic
partition. Linux identify in a different way the other logics volumes created inside a extended partition.
What is MBR, dimensions, sectors, tracks, cylinders and cylinders's
unity First to proceed it's opportune a minimum hint on master boot
record and on physical structure of a hard-disk. The informations about
partitioning of a hard-disk are on first sector, that is the first
sector of first track of first surface of hard-disk. This sector is
called master boot sector (MBR) and it's the sector that BIOS of mother
board reads and starts when the computer is opened. The master boot
record contains a little program that read that table of partitions,
controls which partition is active (that is which is marked as
startable) and reads the first sector of that partition, that is the
boot sector (sector of start). The boot sector contains a little
program that read the first side of operating system contained in that
partition (always that is startable) and starts it. The dimensions of
partitions are marked in unity of cylinders. Every partition has a
cylinder at begin and a final cylinder, that determine the dimension.
When you create a partition, you need to know only the cylinder at
start. To do an example and to clear the structure of a hard-disk, I
show you the output of fdisk done on hdd on my notebook (fdisk is a
program to partition the hard-disk much diffused and known):
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start
End
Blocks
Id System
/dev/hda1 *
1 1516 12177238+
7 HPFS/NTFS
/dev/hda2
1517 4864
26892810 f W95
Ext'd (LBA)
/dev/hda5
1517 1909
3156741 7
HPFS/NTFS
/dev/hda6
1910 1978
554211 82
Linux swap / Solaris
/dev/hda7
1979 3000 8209183+
83 Linux
/dev/hda8
3001 3891 7156926
83 Linux
/dev/hda9
3892 4864 7815591
83 Linux
You can see my hard-disk is a hdd of 40.0 GB, has 255 heads, 63
sectors/tracks, 4864 cylinders. The dimension calculated in unity of
cylinders is of 16065 * 512 = 8225280 bytes. The first partition of
disk starts at first cylinder and finish at cylinder 1516 and it's
primary partition on that is installed a file system NTFS, the second
partition is an extended partition that start al cylinder 1517 and
finish at cylinder 4864. Inside the extended partition there are logics
volumes, clearly identifiable. As you can see the logic volumes have
different file system, second their destination. It's clearly visible
that first logic volume starts at cylinder 1517 and finish at cylinder
1909 and also here it's has been installed a file system NTFS. The
following volumes are assigned to
Linux.
Ho create the space for Linux and the choice of file system We will
analyze the case of creation of space on hard-disk in a computer with
only one hard-disk and a single primary partition where is the
operating system Windows. When you want install Linux on a hard-disk
where already exists an operating system (the common case is Windows),
will be necessary reduce the actual partition to create a new one in
the future. This operation is much mild, it's advice having a backup of
own dates before to proceed, so you will can restore in case something
wrong will happen (for ex. partitions broken). There are many programs
to reduce, create and remove partitions, if you are not expert, I
advice to use a program user friendly that has an help-guide well
realized and incomprehension. The choice is not easy and the advice is
that to read up well with the help of Internet first to decide what is
the better solution. If you prefer, you can use a commercial program.
Some Linux distributions have own partitioning-tool with graphic, and
is a good idea using that is given from the system, in case this does
something of special that other programs don't do. They have other
using-guides, but can be result difficult for users that begin now.
Often these software, try to create without problem the needed
partitions at installation, in case they don't find space "not
assigned". Having free space means to reduce that exists, leaving the
space "not assigned". Now we do an example the clear better this
concept.
We suppose having a hdd of 80 GB whose are busy 10 (attention I've
written "busy" and I've not written "not assigned"). The other 70GB
will can be quietly used to continue to work with actual operating
system as much as to install a new operating system, this because Linux
can survive without problems with Windows. Continuing work with Windows
will be necessary leave it some space for installation of other
programs and for own dates. We suppose hence to reduce (with a
partitioning program) our partition from 80GB to 40GB leaving 40GB of
space "not assigned". With this operation will have two things:
1)We will have 40GB of space not assigned to create new partitions for Linux
2)We will leave to Windows 40GB of space whose 10GB are already busy and 30GB are free to used them to work without problems.
At this point you could already proceed with installation of our
distribution Linux (for example, Mandriva, Suse, Ubuntu). If we want
start the tool of partitioning of one of these partitions
automatically, we can
consider our work over, because this tools try to create automatically
the partitions when they find space "not assigned" on disk, such as we
told before. In case we want to partition manually, we will proceed to
determinate the choices of partitioning second our needs and
preferences. Who want to delve the argument of manually choice it's
important read the following chapter on choice of file system and on
representation of
partitions in Linux. After that, we will see how create into space "not
assigned" of 40GB an extended partition that will contain in its turn
three logic partitions for installation of Linux, whose one partition
of swap, one
root and one home for all users and their dates.
Devices and file system seen from GNU/Linux:
Representation of partitions in GNU/Linux
About hard-disk (e)ide, the readers cdrom-dvd and burners, they are represented like that:
Primary Master: /dev/hda
Primary Slave: /dev/hdb
Secondary Master: /dev/hdc
Secondary Slave: /dev/hdd
Floppy Disk is represented such as: /dev/fd0
Disks SCSI: /dev/sdx ('x'=letter from a to p, for example /dev/sda)
Also disks Sata are identified with: /dev/sdx.
If you have a hard-disk type (e)ide will be /dev/hda and the first
primary partition will represented such as /dev/hda1, for the other
partitions will have values from 1 to 4, while if the partition is
logic will be used values
from 5. If you have a hard-disk ype Sata will be /dev/sda and the first
primary partition will be represented such as /dev/sda1, for the other
partitions will be used values from 1 to 4, while if the partition is
logic
will be used values from 5.
Types of file system
Now a brief description of file systems more famous and used:
FAT and NTFS
The file system fat and ntfs belong to systems Microsoft and are used for installation of their operating systems.
EXT2
Ext2 was born at start of Linux and comes from Extended File System.
This file system has been implemented on April 1992 and integrated in
Linux 0.96c. Later the Extended File System has been modified more
times and such as Ext3 has been for years more named file system of
Linux. With arrive of journaling File system and the quickly which they
exec a rescue, Ext2 lost its importance. Despite today some prefer work
with this file system for its incredible stability;
Ext3
Ext3 has been developed from Stephen Tweedie and it is based instead on
Ext2. Both file system are almost equals between them. Their first
difference is that Ext3 supports the journaling. Ext3 offers an easy
upgrade
and extremely reliable from Ext2. The other advantages are reliables
and performances. Based on solid base of Ext2, Ext3 has become during
the time a file system acclaimed. The reliable and the stability are
conjugated
with the advantages of a journaling file system;
ReiserFS
ReiserFS was born from Hans Reiser and from equipe of developers Namesys, it is a valid alternative to Ext2.
Its major point of strong are better manage of memory of hard-disk,
better accessibility to hard-disk and fast rescue after a crash of the
system. In Reiserfs dates come organized in a tree-structure. The
tree-structure
contributes to use better the memory of hard-disk, in fact little files
can be memorized on the same bloc, instead to be memorized somewhere
else and to have to manage the punter on the effective localization.
Because Reiserfs supports the journaling in case of crash of the
system, the use of journal reduces times of verifying also in case of
big file system in few seconds;
JFS
JFS, the Journaling File System, has been developed from IBM for AIX.
In the summer of 2000 went out the first beta version of JF for Linux.
The version 1.0 has been released on 2001. JFS has been used in server
environment with an high quickly of transferring of dates (throughput).
Been a file system at 64 bit, JFS supports big files and partitions
(LFS that is Large File Support), feature that qualify it for server
environment;
XFS
XFS was born at start of years '90 like journaling file system at 64
bit to high performances, it is comparable at modern journaling file
systems. XFS is used for file of a certain dimension and has good
performances on
hardware high-end.
Appendix
Journaling
The journaling is a technology used from many modern file system to
preserve the integrity of dates from falls of electric-tension.
Journaling is a technology that becomes from database-world. I advice
you to delve for your knowledge the concept of journaling, you will
fine on Internet different sources on this matter. Try with a
search-engine on Internet.
Manual partitioning of hard-disk
Told this we return on our hard-disk and we see how we can create
manually the partitions needed to install a system Linux on our
hard-disk. We told that reducing our primary partition from 80 GB to 40
GB, we will have 40 GB of space "not assigned" to create in it the
partitions. That is, if you remember well, at start I've written that
Linux can be installed also in a logic partition, the first thing to do
will be to create an extended partition, that inside it will contain
later the logic partitions. Once time created the extended partition we
will create inside it three logic partitions, a partition of swap (the
swap is used from kernel to broaden the available memory and not to
memorize some files), a root partition and at the end a home for all
users and dates. We say that in 40 GB, a good choice could be to act in
this way:
1) reserver to swap, the double of dimensions of you ram;
2) create a root partition of 10 GB;
3) dedicate the rest of space to home for users and for dates;
The choice of number and type of partitions, as well as of their
dimensions, depend from many factors and often from own personal
tastes. If you have chosen a software for Windows to reorganize-create
you partitions for Linux, you reduce the primary partition of your
hard-disk, later create the extended partition and the logic
partitions, at the end reboot so the modifies will be effectives and
after proceed with the installation of your
new operating system GNU/Linux. During installation you will have to
indicate to Linux to use the partitions that you had created
previously. If instead you want manually partitioning with a
partitioning-tool of you
distribution that you have chosen to try, read well the relative
documentation. The manually partitioning would assume a certain
knowledge of different types of file system and their methods of
creation, as well as of
mounting of file system, to start without know what you are doing is
warmly not advised, if you have not the bases to exec quietly these
operations, it's better leave to do all in automatic, limiting itself to
free some space "not assigned". In alternative you can contact a Linux User Group to ask help, surely you
will find someone available to give you a hand and useful advices.
Appendix
Advices save-dates for all new users and not .....
If you want try Linux in all quietly remember that you can always do
it, rebooting your computer with a LiveCD, if you want install Linux on
your computer, entrust yourselves to an expert and don't proceed
without before
having done a backup of your dates !
Enjoy with GNU/Linux...
41b)IMPROVE FONTS OF GNOME ON UBUNTU
Who has a monitor LCD, I've found a tutorial on how improve the read of
fonts of Gnome on Ubuntu, I summarize it here (open a shell and write
sudo -i followed from you password):
1) Insert into file sources.list the following repository:
deb http://www.elisanet.fi/mlind/ubuntu edgy fonts
deb-src http://www.elisanet.fi/mlind/ubuntu edgy fonts
2) certify them with:
gpg --keyserver pgp.mit.edu --recv-key D0AFFF5E937215FF
gpg -a --export D0AFFF5E937215FF | sudo apt-key add -
3) write "apt-get update"
4) download the packets libcairo2 e libxft2
5) give a good:
sudo "dpkg-reconfigure fontconfig-config"
and answer like that to the questions:
1) Native;
2) Always;
3) No
if you haven't fontconfig-config download it with:
apt-get install fontconfig-config
6) At the end on our Home create the following file like that:
gedit ~/.fonts.conf
Attention that contain these following strings:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintfull</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>
Reboot GNOME and you will see better improvements.
42b)ADD OR CONFIGURE A PRINTER
Distro usually have already installed cups, in case do it (depend from
you distro, in Archlinux you have to install the packet: pacman -S cups
and later insert the written cups in /etc/rc.conf between demos to
start at boot
of operating system. You can also start it by hand, or insert the
command into file rc.local (it's like an autoexec for Linux), otherwise
control what you have to do because the distro are different like so
the configuration.
Once time install and started, you have to configure the printer or
directly from cups or using the tool printers from Kde. Connect to
internet and on browser write http://www.linuxprinting.org/ or
http://www.freestandards.org/en/OpenPrinting after click on
Printer Listings, select the brand and the model of your printer, click
later on download PPD and download the file in /usr/share/cups/model/
Login as user root:
You have 2 methods to configure the printer, using the browser with cups, or using the tool of Kde.
1) From Cups
http://localhost:631/
Click on Administration and Add Printer, on name insert the name of
printer, (es. hp610c), choice on Device (the port where is attached the
wire-printer), yet on continue, on (Or Provide a PPD File:) select file
ppdf in /usr/share/cups/model/HP-DeskJet_610C-hpijs.ppd and at the end
click on (Add Printer). Click on Printers and configure manually the printer (print format, color o white and black, etc ....)
2) From Kde
Click on Settings, Printers, and after on window "Configure", control
that is selected the daemon of print CUPS and at the end click on Add
Printers, click on Next, select for example "Local Printer", select the port whose
is attached the printer, after on Next, click above on Other and select
the file .ppd that you have downloaded previously, after on Next. At
this point you can decide if configure already the printer or later,
click on Next and give the name to the printer and click on End.
43b)CONFIGURE SOUNDCARD
By now all actual distributions have drivers alas already installed, in case follows the instructions.
To install drivers alsa (alsa-lib alsa-oss alsa-utils alsaplayer alsa-plugins) under Archlinux we should write the command:
pacman -S alsa-lib alsa-oss alsa-utils alsaplayer alsa-plugins
If you use another distribution, you have to use the correct command of
installation, for example under Debian we should use apt-get, under
OpenSuse we should use yast, etc......
Now hit the command:
alsamixer
and setting the levels of audio output (press the key Esc to exit).
Save the settings writing the command:
alsactl store
If values have not been saved after reboot, restart alsamixer and
setting the values, save newly with the command "alsactl store" and
insert this last command in file rc.local. Reboot linux, now should be
all ok.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++PROGRAMS+++++++++++++++++++++++++++
1c)VI AND EMACS HOW MODIFY TEXT FILES
VI
vi filename = to create or open (if already exist) a file
Press in sequence the keys to make these operations:
key (i) to start to write and hence enter in text-modality.
key esc : w key Enter to save the file
key esc : w (file name) to save the file with name chosen
key esc : q key Enter to exit from vi
key esc : q! to exit without save
-Search a word o row in a file:
Press Esc:/word_to_search
To search the same word press the letter n on keyboard.
-Copy an entire row:
Press Esc, go on the row and write 2 times y, place yourself where you want to past the text selected and press key p
-Copy 2 or more rows
Press Esc, place yourself on the row and write y1, place yourself where you want past the text selected and press key p
If the rows are 3 write y2, if the rows are 4 press y3 etc .....
-Copy the first word of a row near the cursor
Press Esc, place yourself on the row and write yw, place yourself where you want past the text selected and press key p
-Copy the first 3 words in a row near the cursor
Press Esc, place yourselft on the row and write y2w, place yourself where you want pass the text selected and press key p
-Move to a specific row, for example the 5???
Press Esc:5 Enter
or
Press Esc5 Enter
-Delete the current row
Press Esc dd
-Cut the current row and past it
Press Esc dd placeyourself where you want past the text selected and press
key p
-Delete next 4 rows
Press Esc d3
-Cut next 3 rows and past them
Press Esc d3 place yourself where you want past the text selected and press
key p
-Delete the current word
Press Esc dw
-Cut the current word and past it
Press Esc dw place yourself where you want past the text selected and press
key p
-Deleted next 3 words
Press d3w
-Cut next 3 words and past them
Press Esc d3 place yourself where you want past the text selected and press
key p
-Substitute a word with another word (windows with linux)
Press Esc:%s/windows/linux
or
Press Esc:%s/windows/linux/gc
% searc in all document
s is the command of substitution
g says to search every occurrence of the expression to replace
c asks confirm before of substitution
-How insert the braces {} ?
Use the keys AltGr-7 and AltGr-0 (zero)
EMACS
-To save the file modified press CTRL+x+CTRL+s
-To save the file modified with another name press CTRL+x+CTRL+w <file name>
-To exit from file press CTRL+x+CTRL+c
-How move the cursor
Press keys with the arrows on keyboard or
ctrl f moves the cursor ahead
ctrl b moves the cursor back
ctrl n moves the cursor to next line
ctrl p moves the cursor to previous line
-Other commands
ctrl k delete the line where is the cursor
ctrl y permit to return back to the previous operations
ctrl g stop what are you doing
ctrl j moves toward below the text beneath after the cursor
ctrl s permit to search of the text (write below the word to search)
Esc info
Esc x (press later 2 times the bar on keyboard)
-How insert the braces {} ?
Use keys AltGr-7 e AltGr-0 (zero)
2c)FAX WITH EFAX
To send and receive fax you can use efax, you can find it in all
distro, or download it from Internet, in this moment the version is:
efax-0.9.tar.gz
Unzip the file and write:
make
make install
You need only to modify the script /etc/fax.conf or /usr/bin/fax going to modify these rows.
DEV=modem or ttyS1 or cua0 (I have the modem on com1)
FROM=123456789 (write the number of telephone)
NAME=Panther (name sender)
PAGE=a4
PRTYPE=ps
PRCMD=lpr (or lp0, the command with which usually you print)
DIALPREFIX=T (T to tones, P to impulses)
TELCVT='sed -e s/+39// -e s/+/00/' (insert this row)
INIT="-iZ -i&FX3E&D2S7=120 -i&C0"
Save the file and reboot the computer.
Now it's possible send and receive fax
Send a fax:
fax send n.telephone filetosend (to send an attachment)
Ex: fax send 061234567 /root/prova.txt
Receive a fax:
efax -d /dev/ttyS1 -w -is0=1 2>&1 >>fax.log (to receive fax)
[ /dev/ttyS1 is com1 and 1 is the number of rings before of the receive
(will be created file 001 002 into the same directory)]
To show a fax:
Use OpenOffice to show the files *.001 *.002
fax view (to show the fax sent)
Graphic program to manage efax.
On Slackware 9.1 install the following packets, you need only to go on
http://www.linuxpackages.net/ and on search insert for ex.(gtkmm,
libgtkg, libsigc)
efax-gtk-2.2.6-i686-1.tgz
gtkmm-2.2.8-i686-1.tgz
libgtkglextmm-1.0.1-i686-1bux.tgz
libsigcplusplus-1.2.5-i686-1bux.tgz
Launch the program executing:
efax-gtk
3c)CREATE AND BURN CD AND DVD
CD
With kernel 2.4 doing cdrecord -scanbus, my cdrom (scd0) is 0,0,0 and my burner ((scd1)) is 0,1,0
With kernel 2.6 doing cdrecord -scanbus, my cdrom (sr0) is 0,0,0 and my burner (sr1) is 1,0,0
Ahead some examples are with kernel 2.4. If you are a generic user and you want to have adapted permissions, write:
chmod u+s /usr/bin/cdrecord
If you want burner a certain speedly you need only to insert near cdrecord the following line:
-speed=4 if you want to burn at 4x
If doesn't work:
-speed=4
use
--speed=4
Doesn't inserting this string, you will burn at max fastly possible.
-Get traces audio from cd to put them in a directory. Insert cd and move inside /mnt/cdrom and give:
cdda2wav -D0,0,0 -t 1 -B -x
(eventually change the number 1 with number of trace from which we desire get the file .wav)
or
cdparanoia -B
-Burn audio traces.
You can burn almost 780-790 mega of files .wav with a cd from 700 mega.
kernel 2.4
cdrecord -v -dev=0,1,0 -overburn -eject -audio audio*.wav
kernel 2.6
cdrecord -v -dev=1,0,0 -overburn -eject -audio audio*.wav
or
cdrecord -v -dev=/dev/sr1 -overburn -eject -audio audio*.wav
-Create an image ISO
mkisofs -v -D -J -R -T -o image.iso /directory with files you want to burn.
It's possible to control the file image.iso if has been created correctly, writing:
mkdir /mnt/prova
mount -t iso9660 -o ro,loop=/dev/loop0 image.iso /mnt/prova
umount /mnt/prova
-Burn image ISO
kernel 2.4
cdrecord -v dev=0,1,0 -overburn -eject -data image.iso
kernel 2.6
cdrecord -v dev=1,0,0 -overburn -eject -data image.iso
or
cdrecord -v dev=/dev/sr1 -overburn -eject -data image.iso
-Cd bootable we will create iso of OpenBsd and we'll burn it.
The important thing is select file of start the usually would be into
floppy, in our case is floppy39.fs, therefore with this method we can
download full distributions linux downloading also the image of floppy
with which the cd will auto-boot.
(we assume that files have been downloaded from
http://ftp.sunet.se/pub/OpenBSD/3.9/i386/ and that they are into
directory /scarico/openbsd/, move already inside in this directory
directory)
mkhybrid -b floppy39.fs -c boot.catalog -l -J -L -r -o openbsd39.iso *
kernel 2.4
cdrecord -v dev=0,1,0 -eject -data openbsd39.iso
kernel 2.6
cdrecord -v dev=1,0,0 -eject -data openbsd39.iso
or
cdrecord -v dev=/dev/sr1 -eject -data openbsd39.iso
-Burn different times (remember to put always a subdirectory)
Create the first session of a cd multi-session
mkisofs -R -r -J -D -l -T -v -o /1/2/isoimage.raw
/directorywherearefiles && cdrecord -v dev=0,1,0 -multi
/1/2/isoimage.raw
Create second session.
cdrecord -msinfo dev=1,0 (you will get numbers like 0,11702 that is the first trace from sector 0 to sector 11702)
mkisofs -o isoimage_2.raw -R -C 0,11702 -M /dev/scd1
/directwherearefiles && cdrecord -v -speed=4 dev=1,0 -eject
-multi isoimage_2.raw
For next sessions you need only to change numbers that require the option -C using option msinfo of cdrecord
-Clean a cd rewritable
kernel 2.4
cdrecord -eject dev=1,0 blank=fast ( I've the burner 0,1,0 )
kernel 2.6
cdrecord -eject dev=1,0,0 blank=fast ( I've the burner 1,0,0 )
or
cdrecord -eject dev=/dev/sr1 blank=fast ( I've the burner 1,0,0 )
The option fast is more fast while option all is more slow but complete.
-Burn image ISO (for example a distribution in size ISO)
kernel 2.4
cdrecord -v dev=1,0 -overburn -eject mandriva.iso
kernel 2.6
cdrecord -v dev=1,0,0 -overburn -eject mandriva.iso
or
cdrecord -v dev=/dev/sr1 -overburn -eject mandriva.iso
-Copy on the fly from cd to cd (only dates)
kernel 2.4
cdrecord -v dev=1,0 -overburn -eject -isosize /dev/scd0
kernel 2.6
cdrecord -v dev=1,0,0 -overburn -eject -isosize /dev/sr1
or
cdrecord -v dev=/dev/sr1 -overburn -eject -isosize /dev/sr1
-Copy on the fly from cd to cd (only audio) write all on the same line
kernel 2.4
cdrdao copy --driver generic-mmc --on-the-fly --device 0,1,0 --eject
--overburn --source-device 0,0,0 --source-driver generic-mmc --fast-toc
--paranoia-mode 0
kernel 2.6
cdrdao copy --driver generic-mmc --on-the-fly --device 1,0,0 --eject --overburn -source-device 0,0,0 --source-driver
generic-mmc --fast-toc --paranoia-mode 0
or
cdrdao copy --driver generic-mmc --on-the-fly --device /dev/sr1 --eject --overburn -source-device /dev/sr0 --source-driver
generic-mmc --fast-toc --paranoia-mode 0
-Copy a distribution Linux
mkisofs -a -l -J -R -T -v -b path/ImageStart -c
path/FileCatalogue
path=<directory where you have copied the files>/<directory file start>
DVD
You need to install dvd+rw-tools
Create an image ISO:
mkisofs -r -o /image.iso /directory/
Write image ISO on dvd:
growisofs -Z /dev/dvd=/image.iso
Add dates on the same dvd:
growisofs -M /dev/dvd /tmp/myfile.1
Delete dvd:
dvd+rw-format -force /dev/dvd (fast)
dvd+rw-format -force=full /dev/dvd (full)
Diplay the information about dvd:
dvd+rw-mediainfo /dev/dvd
-Copy a dvd (text way). NOT DEFINITIVE.
Download and install streamdvd and streamanalyze from here:
http://www.badabum.de/streamdvd.html
Install also the program dvdauthor and growisofs. Once time installed them go in /usr/local/bin/ and copy 2 files in /usr/bin/
Insert the dvd into reader dvd and write:
streamanalyze -i /dev/scd0 -t 1 -s -s 0xe0,0x80 mkdir /film
Put the audio and the subtitles in english and italian.
dvdauthor -a en,it -s en,it -o /film -f 'streamdvd -i /dev/scd0 -f 1.192 -t 1-s0xe0,0x80|'
dvdauthor -T -o /film
Insert dvd to burn and write:
growisofs -dvd-compat -Z /dev/scd1 -J -dvd-video -V TitleFilm /film
-Ripping dvd
(Prefix n01: ripping of dvd, that is to reverse audio and video
of dvd on one or more cd/file, can be a form of pirate if done to get
money of sell them; we don't want enter in merit "etic" of this thing,
do ripping only
of dvd you are owner and however, the copy must be done on for personal
purpose. My limit is only to say what is possible to do, I don't want,
with this, encourage some type of pirate.
Prefix n02: I've not rip many dvd in my
life, hence these informations could be not completeor not working for
someone, apologize me and eventually tell me (leone2000 at inwind.it)
all the modify that you have done to improve this document, thanks !
;-))
The ripping of dvd with mencoder (the other program of the suite of
mplayer) is an operation relatively easy and immediate but the program
has at disposition many options that, opportunely used, can do the
difference for your ripping; therefore first ripping a dvd I advice to
read, quietly, the manual (man mencoder) and to search all possible
documentation on Internet.
Can be useful this page gotten from html in line:
http://www.mplayerhq.hu/DOCS/HTML/it/encoding.html
We'll create file movie.avi that is a file that contain all our film
(???Ronin???, regularly bought in France ;-) ) and it's compressed with
format DivX 4.
FASE 1: Extraction of trace audio
Also with mencoder we can get the traces audio that we are interested in:
the program create a file called obligatorily frameno.avi that will
contain only the trace audio eventually chosen by parameter -aid
(otherwise it taks first available)
mencoder dvd://1 -dvd-device /dev/hdd -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi -aid 128
mencoder dvd://1 -dvd-device /dev/sr0 -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi -aid 128
(with kernel 2.6 recompiled).
(where -oac specify the driver audio to use (lame), -o is the file of output).
At the end of this operation we control what says mencoder with its output about at bitrate to code
video to use:
Recommended video bitrate for 650MB CD: 650
Recommended video bitrate for 700MB CD: 710
Recommended video bitrate for 800MB CD: 831
Recommended video bitrate for 2 x 650MB CD: 1431
Recommended video bitrate for 2 x 700MB CD: 1551
Recommended video bitrate for 2 x 800MB CD: 1791
We assume to do only 1 cd of 700MB therefore we will use ???710???.
MIDDLE FASE: pull out area of crop
In the major side of film in 16/9 we have black bands above and below
the image (called area of crop), to save space on disk it's convenient
to pull out those bands therefore we find area of crop:
mplayer dvd://1 -vf cropdetect -dvd-device /dev/hdd
or
mplayer dvd://1 -vf cropdetect -dvd-device /dev/sr0 (with kernel 2.6 recompiled).
on console from which we have launched this command, while slides the film, we will have of output continue such as:
crop area: X: 0..718 Y: 76..502 (-vop crop=718:426:0:76)9% 3.1% 31 0 0%
crop area: X: 0..718 Y: 76..502 (-vop crop=718:426:0:76)9% 3.1% 31 0 0%
crop area: X: 0..718 Y: 76..502 (-vop crop=718:426:0:76)9% 3.1% 31 0 0%
From these rows we deduce which is area of crop and at this point
control again (almost) what is correct taking the value ???crop=...???
from output whose above:
mplayer --vf crop=718:426:0:76 dvd://1 -dvd-device /dev/hdd
or
mplayer --vf crop=718:426:0:76 dvd://1 -dvd-device /dev/sr0 (with kernel 2.6 recompiled).
At this point we need to take the dimensions of video and reorganize to
maintain the proportions (having intention to pull out the area of
crop):
mplayer dvd://1 -dvd-device /dev/hdd
or
mplayer dvd://1 -dvd-device /dev/sr0 (with kernel 2.6 recompiled).
In the output of this program (visible in console) you can find a row such as this:
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9780.0 kbps (1222.5 kbyte/s)
720x576 is the size of our image, from this we have to pull out the
area of crop given from format 16/9 therefore we multiply the
resolution vertical for 16/9 therefore: 576 * 9 / 16 = 324 that will
give our new resolution:
720 X 324.
At this point we can proceed to encode video that is will be fast:
FASE 2 (vpass=1): the command (all on a row !) for the first step will be:
mencoder dvd://1 -alang it,en -dvd-device /dev/hdd -oac copy -ovc lavc
-lavcopts vcodec=mpeg4:vpass=1:vbitrate=710 -vop
scale=720:324,crop=720:426:0:76 -o movie.avi
or
mencoder dvd://1 -alang it,en -dvd-device /dev/sr0 -oac copy -ovc lavc
-lavcopts vcodec=mpeg4:vpass=1:vbitrate=710 -vop
scale=720:324,crop=720:426:0:76 -o movie.avi (with kernel
2.6 ricompiled).
#With alang you will decide the language of file avi, you can add also -slang it,en (subtitles in Italian or English).
FASE 3 (vpass=2): the command (all on one row!) for the second step will be:
mencoder dvd://1 -alang it,en -dvd-device /dev/hdd -oac copy -ovc lavc
-lavcopts vcodec=mpeg4:vpass=2:vbitrate=710 -vop
scale=720:324,crop=720:426:0:76 -o movie.avi
or
mencoder dvd://1 -alang it,en -dvd-device /dev/sr0 -oac copy -ovc lavc
-lavcopts vcodec=mpeg4:vpass=2:vbitrate=710 -vop
scale=720:324,crop=720:426:0:76 -o movie.avi (with kernel 2.6
ricompiled).
#With alang you will decide the language of file avi, you can add also
-slang it,en (subtitles in Italian or English). The file created
(movie.avi) will contain the dvd and audio, will be possible see it
again with Mplayer or it will can be burned also such as videocd, at
second that the program of burning permit it.
4c)FAX WITH HYLAFAX
Download hylafax (in this moment the current version is hylafax-4.1.7.tar.gz), such as root user unzip it and install it:
tar zxvf hylafax-4.1.7.tar.gz
/configure && make && make install
All files will be copied here:
/var/spool/hylafax/
Turn-on the modem.
Once installed like root user start from xterm:
faxsetup and once completed, launched:
faxaddmodem
Will be required some informations, you will can change them later
going to modify files that you find in /var/spool/hylafax/etc, overall
files config and config.ttySx
My file config is composed like that:
LogFacility: daemon
CountryCode: 039
AreaCode: 0583
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules
ServerTracing: 1
My file config.ttyS1 is composed at least at start like that:
CountryCode: 039
AreaCode: 0583
FAXNumber: 12345678 # I've changed my number of telephone.
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules
ServerTracing: 1
SessionTracing: 11
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 3
SpeakerVolume: on
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "NothingSetup"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
Perfect, now you have only to write at the end of file /etc/inittab the following string:
mo:35:respawn:/usr/local/sbin/faxgetty /dev/ttyS1 # I've my modem on com2 and hence ttyS1
If you want able all clients of your lan and send fax modify the file:
/var/spool/hylafax/etc/hosts.hfaxd
writing how is following:
localhost
192.168.1 #I have the computer with ip 192.168.1.1 and hence the lan of belonging will be how I've written.
Now is possible send fax writing:
hylafax start && faxmodem ttyS1
You can insert this string at the end of file
/etc/rc.d/rc.local so, it will be sent at restart of
computer without doing write the row every time.
To send a fax write:
sendfax -n -d telephonenumber file
If you want use a graphic client on linux, download gnu.hylafax (works on java), or pyla1.0.7.tgz
(works on python) or for computers with Windows Operating System download Whfc or winflex.
About pyla, you need to unzip it (tar zxvf pyla1.0.7.tgz) and to launch it, write:
python /yourhome/pyla/pyla.py
5c)MANAGE PACKETS ON DISTRIBUTIONS
-ARCHLINUX
File of sources: /etc/pacman.conf
Update sources: pacman -Sy
Update the system: pacman -Su
Update sources and system: pacman -Syu
Clean up all packets in cache: pacman -Scc
pacman -A packet.tar.gz (install a new packet)
pacman -U packet.tar.gz (update a packet)
pacman -R packet (remove a packet)
pacman -Q (list packets installed)
pacman -Q packet (controll if it's installed a packet)
pacman -Qi packet (informations about a specified packet)
makepkg PKGBUILD && pacman -A file.pkg.tar.gz
-DEBIAN WITH .DEB
(thanks to Leonardo Lorenzetti of Lug Acros).
File of sources: /etc/apt/sources.list
Update sources: apt-get update
Update packets: apt-get upgrade
or
apt-get dist-upgrade (more "powerful")
Install a packet: apt-get install <name>
Remove a packet: apt-get remove <name>
Search a packet: apt-cache search <what you want> (after apt-get update)
See what is a packet: apt-cache show <name>
Install dpkg -i nameofpacket.deb
Remove the packet dpkg -r nameofpacket.deb
Purge dpkg -P nameofpacket.deb
(Purge means remove file about the packet.deb).
-SLACKWARE CON .TGZ
installpkg file.tgz (install packet.tgz)
removepkg file.tgz (uninstall packet.tgz)
upgradepkg file.tgz (upgrade packet.tgz)
makepkg
file
(create a packet Slackware compatible)
rpm2tgz file.rpm (create packet.tgz from a file.rpm)
rpm2targz file.rpm (create packet .tar.gz from a file .rpm)
explodepkg
file
(extract the contained of packet inside current
directory)
pkgtool is the program used by default on Slackware to manage the packets.
To resolve the dependences is possible to install and use programs such as swaret and slackpkg.
-REDHAT, FEDORA .RPM
Install rpm -ivh nameofpacket.i386.rpm
Uninstall rpm -e nameofpacket
Update rpm -Fvh nameofpacket.i386.rpm
-OPENSUSE
To install/uninstall/update the software use yast or yast2
-MANDRIVA
To install/uninstall/update the software use graphic program rpmdrake, to uninstall it use rpmdrake-remove
From shell instead it's possible use urpmi to install software, urpme to uninstall software.
-VALID FOR ALL DISTRIBUTIONS LINUX
If you have a packet .tar.gz and you want install it, the classic
method is to unzip it and install it (I remember to read always the
file README or INSTALL inside the directory just created after
unzipping of file).
tar zxvf file.tar.gz (unzipping)
cd
file
(enter inside directory)
/configure
make
make install (to install the packet)
make
clean
(clean the directory from files temporary)
make uninstall (to uninstall the packet)
6c)MANAGE LINUX WITH WEBMIN
This has been done under Archlinux.
Install webmin, apache and openssl like that:
pacman -S webmin
pacman -S apache
pacman -S openssl
You have to launch 2 server:
cd /etc/rc.d
/httpd start
/webmin start
Open a browser and enter on webmin with root user writing:
https://localhost:10000/
You will find in front of different possibilities which the manage of
system, of services, of net, of hardware, of groups with their users,
of a cluster, etc......
All the options will present some "sub-screens" with many options, this because it's possible manage in detail all the system.
Following the description of first voices:
* Under the voice "Server" will be possible manage a server email,
mysql, apache, fetchmail, postgresql, samba, ssh, proxy, ftp,etc..
* Under the voice "Hardware" will be possible manage a cd, manage the printer, grub, partitioning hard-disk, manage the raid.
* Under the voice "System" will be possible change the passwords, make
a backup of filesystem, manage the cron, manage files of log and of
users.
7c)BURN MP3-->WAV-->MP3-->FILE AUDIO
-Convert from mp3 to wav:
mpg123 file.mp3 -w newfile.wav
-Convert from wav to mp3
(install the program lame http://lame.sourceforge.net/)
lame -h -b 128 newfile.wav file.mp3
-Create an audio cd starting from mp3:
Create a script:
#!/bin/sh
for I in *.mp3
do
mpg123 --cdr - "$I" > "$I.cdr";
done
Give it all permissions and exec it.
-Create an audio cd starting from wav:
Create a script:
#!/bin/sh
for I in *.mp3
do
mpg123 --cdr - "$I" | cdrecord -audio -pad -nofi -
done
cdrecord -fix
Give it all permissions and exec it.
8c)HOW USE THE BOARDS NVIDIA FOR 3D
Who has new slackware file to modify is: /etc/X11/XF86Config
-Who has an old distro.
Download from website http://www.nvidia.it o http://www.nvidia.com 2
files that at this moment are NVIDIA_kernel-1.0-2802.tar.gz and
NVIDIA_GLX-1.0-2802.tar.gz and write:
tar zxvf NVIDIA_kernel-1.0-2802.tar.gz
tar zxvf NVIDIA_GLX-1.0-2802.tar.gz
Once time unzipped it, enter in both directories and write:
make && make install
Enter in file /etc/rc.d/rc.local and at the end of file write:
/sbin/modprobe NVdriver
continue below ........
-Who has a distro with kernel 2.4
Who is using distro like Mandriva download from website http://www.nvidia.com file for linux (available in this moment):
NVIDIA-Linux-x86-1.0-5328-pkg1.run
and install it from text modality (Ctrl-Alt-F1 or F6):
ps ax
delete the pid with the graphic (X:0, kdm, /usr/X11R6/bin/X ecc..)
chmod 770 NVIDIA-Linux-x86-1.0-5328-pkg1.run
sh NVIDIA-Linux-x86-1.0-5328-pkg1.run
If you have an error delete file /tmp/.X0-lock and try again.
Who has recompiled the kernel have not selected the option Frame-buffer support inside Console drivers.
continue below .........
-Who has a distro with kernel 2.6
Who is using kernel 2.6 download from website
http://www.sh.nu/download/nvidia/
file (available in this moment):
NVIDIA-Linux-x86-1.0-5328-pkg0.run
and install it from text modality (Ctrl-Alt-F1 or F6):
ps ax
delete the pid with the graphic (X:0, kdm, /usr/X11R6/bin/X ecc..)
sh NVIDIA-Linux-x86-1.0-5328-pkg0.run
If you have error delete file /tmp/.X0-lock and try again.
Who has recompiled the kernel, probably I'm not sure if Frame-buffer support inside Console drivers has to be selected.
continue below .........
One time installed the driver/s contain with these options.
Enter in file /etc/X11/XF86config-4 (if there is not enter in file XF86config) and substitute the row:
driver "nv"
with
driver "nvidia"
Insert the rows:
Load "glx"
Load "dri"
and disable
Load "dbe"
Save and reboot, write startx, if you will see the Nvidia's logo you are ok.
If you see problems at reboot, go on ctrl-alt-F6, log-in and modify the
file /etc/X11/XF86Config-4, insert again nv instead of nvidia.
Reboot the pc. Little problem, one time installed new driver NVIDIA,
I've seen a problem at reboot of xawtv (program to watch tv), the
screen is black and I had the following error:
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
I resolved writing the correct device:
xawtv -c /dev/video0
or also using another program, tvtime. Meanwhile, enjoy with game tuxrace.
9c)HOW INSTALL MULINUX
Put all packets inside a directory (es. mu), unzip the file
dostools.zip, copy inside the directory just (c:\mu\dostools) file
mulinux-13r0 (or the version that you want), launch file unpack
and the file mulinux-13r0 will be unzipped inside. If instead you want
create the floppy of installation launch file makefi and press enter.
Return inside directory c:\mu and unzip file mulinux-13r0.zip (if you
receive a question answer yes), inside of
directory copy on it all files unzipped downloaded from website mulinux
included the same file mulinux-13r0.zip and the file dostools.zip. Now
or you reboot the pc with the floppy inserted just created, or go in
pure modality msdos (press key F8 when starts windows and choice the
last option (prompt of commands in provisional modality) or also use
rescue floppy of win98. If you use floppy you will meet the menu, if
instead you use dos
enter in c:\mu\dostools (cd mu\dostools) and launch file boot, in this
way you'll go at the same menu of floppy that I just talked about. At
menu that appears there will be 4 options:
1)Install mulinux only on more floppy (depends from how many file zipped have been put in c:\mu\mulinu13r0
2)Install mulinux only on hard-disk inside msdos (it will create a directory c:\linux automatically)
3)You'll return in text modality
4)Pc will reboot
Choose n0 2.
Will appear the partition/s of you hard-disk, you will have to install
mulinux where is installed windows, es. /dev/hda1 (you will have to
write or press Enter to confirm)
Now the program asks where are files downloaded from website and you need to write:
/mu/mulinu~/ and press Enter. Do the wave with alt126 (on Italian keyboard).
Now the program will create the directory c:\linux and at the end will
ask to reboot the computer, press 0 and press again Enter.
Return in pure msdos, go in c:\linux (cd linux) and launch file linux.
At the question of swap choice no and at the other choice yes,
after that start the true installation.
10c)CLUSTER LINUX WITH OPENMOSIX
Who is using Mandrake 9.0 (now Mandriva) is available the patch openMosix-2.4.19-7.gz for kernel 2.4.19.
Use the source of the kernel already present on cd of installation or
download and copy the kernel linux-2.4.19.tar.gz, go in /usr/src and
unzip the kernel downloaded:
tar zxvf linux-2.4.19.tar.gz
or
tar xvf linux-2.4.19.tar
Transfer file openMosix-2.4.19-7.gz in /usr/src and enter into directory (linux or linux-2.4.19) just created and write:
zcat ../openMosix-2.4.19-7.gz | patch -p1
make mrproper
make menuconfig
Compile kernel and select inside OpenMosix (the first above), select
the options that you are interested in. For the other settings of
kernel select the peripherals of your pc, choice what you are
interested in (audio board,
burner, ethernet board, scanner ecc....).
Save and at this point write:
make dep && make clean && make bzImage && make modules && make modules_install
cp System.map /boot (rewrite file already present)
cd arch/i386/boot
df
rdev -R bzImage l /dev/hda5 (control with df the partition linux)
cp bzImage /boot
Control again that lilo or grub boot file /boot/bzImage, example:
image=/boot/bzImage
label=Linux
root=/dev/hda5
read-only
1)Enter in file /etc/inittab and insert the string:
/bin/mosrun -h
inside of file insert the string only in these rows and like in this example:
# System initialization.(Omit the first row that for me is si::sysinit:/etc/rc.d/rc.sysinit)
l0:0:wait:/etc/rc.d/rc 0
that will become:
l0:0:wait:/bin/mosrun -h /etc/rc.d/rc 0
make the same thing also for the other rows until number 6 (the last)
# Things to run in every runlevel.
ud::once:/sbin/update
that will become
ud::once:/bin/mosrun -h /sbin/update
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
that will become
ca::ctrlaltdel:/bin/mosrun -h /sbin/shutdown -t3 -r now
Save and exit from file.
2)Create file /etc/mosix.map and write inside:
1 [IP first computer] [number computers]
1 192.168.1.1 2 (I've two computers in my bedroom)
This file have to be the same for all computers in cluster and the
address suggest the first computer-server that is the cluster and to
which all are leaned. I explain better, from "first computer" that you
use through the
program mosmon (inside the tools of openmosix is possible to see also the other computers in cluster).
3)Copy the file here below written where you want (ex. inside directory
that you will create "mkdir /omosix"), rename it in openmosix and
launch it at boot, you have only put a link at the end of file
/etc/rc.d/rc.local, ex:
cd /omosix && ./openmosix start
Give a chmod 777 to file /omosix/openmosix
####---------------------------Copy from here ----------------------------#####
#! /bin/sh
#chkconfig:2345 95 5
#daemon openmosix
stop_mosix() {
echo 0 > /proc/hpc/admin/mospe
rm -f /var/lock/subsys/openmosix
}
start_mosix() {
OVERHEADS=/etc/overheads
MFSCOSTS=/etc/mfscosts
if [ -s $OVERHEADS -a -f /proc/hpc/admin/overheads ]; then
/bin/grep -v ^# $OVERHEADS > /proc/hpc/admin/overheads
fi
if [ -s $MFSCOSTS -a -f /proc/hpc/admin/mfscosts ];
then /bin/grep -v ^# $MFSCOSTS > /proc/hpc/admin/mfscosts
fi
a1=
[ -s /etc/mospe ] && a1=-p 'cat /etc/mospe'
a2=
[ -s /etc/mosgates ] && a2=-g 'cat /etc/mosgates'
/sbin/setpe -W $a1 $a2 -f /etc/mosix.map
cat /proc/hpc/admin/speed > /proc/hpc/admin/sspeed
touch /var/lock/subsys/openmosix
}
alarm() {
t=$2
while :
do
case $t in 0) break ;; esac
sleep 1
t=$(($t-1))
done
kill -1 $1
exit 0
}
#See how we were called
case $1 in
start )
echo Initializing openmosix
if [ ! -f /etc/mosix.map ]
then
echo You have no mosix configuration
-please edit yours now:
echo -n Editor to use [q to quit] - [vi] :-
trap echo Timed-Out ; exit 1 1
alarm $$ 120 &
killer=$!
read editor
kill $killer
trap
case $editor in [qQ]) exit
;;
*) editor=/usr/bin/vi
[ -f $editor ] || editor=/bin/vi
;;
esac
echo #MOSIX CONFIGURATION > /etc/mosix.map
echo #====================>> /etc/mosix.map
echo # >> /etc/mosix.map
echo # Each line should contain 3 fields, mapping IP address to mosix node
numbers: >>
/etc/mosix.map
echo # 1) first MOSIX node number in range. >> /etc/mosix.map
echo # 2) IP address of the above node (or node-name from /etc/hosts). >>
/etc/mosix.map
echo # 3) number of nodes in this range. >> /etc/mosix.map
echo # >> /etc/mosix.map
echo # MOSIX-# IP number-of-nodes >> /etc/mosix.map
echo # ============================ >> /etc/mosix.map
$editor /etc/mosix.map
echo
while :
do
echo If this node s standard IP address is not part
echo of the table that you just edited, because MOSIX
echo uses a different or separate network,
echo you need to type this node s MOSIX-number now.
echo
/bin/echo -n Otherwise please press only <Enter> :-
read me
case $me in *) /bin/rm -f /etc/mospe ; break ;;
[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-6][0-9][0-9][0-9][0-9])
echo $me > /etc/mospe ; break ;;
*) echo Improper MOSIX number please try again: ;;
esac
done
fi
start_mosix ;;
stop)
echo Stopping openmosix
stop_mosix ;;
status)
/sbin/setpe -r ;;
restart|reload)
echo Restarting openMosix
stop_mosix
start_mosix ;;
*)
echo Usage: openmosix{start|stop|status|restart|reload}
exit 1
esac
exit 0
####---------------------------Copy until here----------------------------#####
To stop /omosix/openmosix write:
cd /omosix && ./openmosix stop
or restart it:
cd /omosix && ./openmosix restart
4)Download file openmosix-tools-0.2.2.tar.gz or file
openMosixUserland-0.2.0.tar.gz (adviced), unzip them with (tar zxvf) in
a directory and install them (follow the file INSTALL inside). You will
have to configure the file named configure and suggest where is the
patch of
openmosix, delete the written and substitute it with this:
# Here is an OpenMosix kernel
OPENMOSIX = /usr/src/linux-2.4.19
Exit and save file and install it with:
make all
If you have error then try with this row, omitting mos:
OPENMOSIX = /usr/src/linux-2.4.19
One time installed them, reboot the computer and launch them from
graphic (write only mos in xterm and will appear all programs that
start for mox).
Now you have to manage the cluster just created.
11c)MINI WEBSERVER BOA (ONLY 118K)
Go on website http://www.boa.org/ , download boa-0.94.12.tar.gz and unzip
it, go in boa-0.94.12/src and write like user root:
/configure && make
Copy file boad in /usr/sbin and write:
boa -c /usr/local/boa &
If you have errors, create the directory boa, copy inside it file boa.conf and rewrite the command like that:
mkdir /usr/local/boa && cp boa-0.94.12/boa.conf /usr/local/boa && boa -c /usr/local/boa &
In again you have an error, then create file access_log in /var/log :
mkdir /var/log/boa && touch /var/log/boa/access_log
Eventually configure file /usr/local/boa/boa.conf
One time done the modifies to file boa.conf kill and restart boa (see below)
Insert a file ex. index.html in /var/www/, the file of example will contain the following rows:
<html>
prova
</html>
If on a browser write the address of net of your computer, or localhost
or also 127.0.0.1 ,so, your mini webserver is activated. If you want
stop boa, give a:
ps aux (Will appear a screen with the number of pid of boa)
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
nobody 4672 0.0 0.2 1720 800 pts/3 S 00:49 0:00 boa -c /usr/local/boa/
kill the process number:
kill 4672
To restart boad write only:
boa -c /usr/local/boa & (Read the settings of boa.conf)
12c)INSTALL AND CONFIGURE ACROBAT INSIDE FIREFOX
Download from website of Adobe the last version of Acrobat Reader
AdobeReader_enu-7.0.9-1.i386.tar.gz and like user root unzip it:
tar zxvf AdobeReader_enu-7.0.9-1.i386.tar.gz
Install it like that:
cd AdobeReader
./INSTALL (press Enter)
The text will ask the directory of installation (leave that proposed
pressing again the key Enter or write a new directory). If the
directory doesn't exist press the key y to create it automatically from
program of installation. Now copy the file executable in /usr/bin and
the plugin of acrobat inside directory plugins of the browser (in my
case /usr/local/Firefox/).
cd /usr/local/Adobe/Acrobat7.0/bin/ && cp -f acroread /usr/bin/
cd /usr/local/Adobe/Acrobat7.0/Browser/intellinux/
cp -f nppdf.so /usr/local/Firefox/plugins/
13c)FIRST STEPS WITH DATABASE POSTGRESQL
Download the last version of postgres, in my case postgresql-7.4.tar.gz and download it like user root:
tar zxvf postgresql-7.4.tar.gz
cd postgresql-7.4
/configure
gmake
gmake install
adduser postgres (like home directory choice /home/postgres, if possible don't insert the password and do it later)
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data &
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile
2>&1 & (Launch postgresql, press Enter, to kill it write ps
aux)
or
pg_ctl -D /home/postgres/postgres start & (Start postgresql, press Enter, to kill it write ps aux)
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
createuser pippo (The user postgres can create other sub-users for ex. pippo)
createdb prova (Create database prova)
psql prova (I enter inside database prova)
create table tabella2(numerazione int, cognome text, nome varchar(20), anni int); (Create the table tabella2)
-----------Example on how autoincrement a number------------
create sequence numerazione;
create table tabella2 (numerazione int4 not null default
nextval('numerazione'), cognome text,
nome varchar(20), anni int);
create unique indexnumerazione_id_key on tabella2 (numerazione);
Now we write an example:
insert into tabella2 (cognome, nome, anni) values ('Rossi', 'Alessio', 18);
insert into tabella2 (cognome, nome, anni) values ('Bianchi', 'Riccardo',
48);
select * from tabella2;
-----------End example----------------------------------
\d (Select all tables)
\d nometabella (list of tables)
insert into tabella2 (numerazione, cognome, nome, anni) values ('1', 'rossi', 'mario', 18);
(Insert dates inside tabella2, remember the sign ').
select * from tabella2; (select dates from tabella2)
select * from tabella2 where cognome='rossi'; (select all the rossi)
truncate tabelladiprova; (delete the contains of a table)
drop table tabella2; (Delete tabella2 and therefore all dates in this contained)
update tabella2 set nome='andrea' where nome='mario'; (Modify and
updates the name from mario to andrea in column called nome of tabella2)
delete from tabella2 where nome='andrea'; (Delete all row of table
tabella2 that contain the value specified (andrea) in column specified
(nome))
\h (shows the commands)
\? (shows the list of commands)
\q (exit from database)
Under Windows 9x-ME-2000 with cygwin
Postgresql is a database opensource (not like mysql that is at payment
in case is used to gain with it), you can use it on linux (installed by
default) or under windows.
I'll explain how install postgresql under windows:
Donwload file setup of cygwin from http://www.cygwin.com/setup.exe
Launch it and choice Install from Internet
c:\cygwin (where install it)
Install For: All Users (settings)
Default Text File Type: DOS (settings)
Choice Next
C:\WINDOWS\Desktop (Where save files)
Direct Connection
Choice a server available (ex. http://mirrors.kernel.org)
Click on + of Database, go to the end and click the last voice skip in
the same row of postgresql. Giving one-two click you see the versions,
choice the last (in my case 7.3.4-2), click on voice n/a, it will
become a little
square with a cross under the voice "Bin" that is binary. Click after
on cygipc and do become it binary. Click Next and wait to download all,
are almost 14 mega. You'll have at disposition a free compiler c for
windows
and the database postgresql.
At the end downloading, will come installed all, you won't have to do
anything, only click on ok at the end.If you control, now you have the
directory c:\cygwin full of 51 mega of files (16 mega are zipped and
unzipped).
If you want install cygwin + postgres on another pc, you will have only
to launch setup.exe, choice "Install from local directory",
choice the directory of destination (ex. c:\cygwin) and after Local
Package Directory that is the directory of almost 16 mega that you have
downloaded before (control and eventually select postgres e cygipc).
We pass to configure (you have only to launch commands). Start file
c:\cygwin\cygwin.bat and wait the at the end appears the symble "$"
Always inside the same windows cygwin opened write:
ipc-daemon2 & (write always this command before starting the server Postgresql or to initialize the database).
Now write:
initdb -D /usr/local/pgsql/data -W -E LATIN1 (will create a cluster
into directory /usr/local/pgsql/data, will become required a password
of administrator)
Start postgres with this command:
ipc-daemon2 & initdb -D /usr/share/postgresql/data
pg_ctl start -D /usr/share/postgresql/data/
Will appear:
postmaster successfully started
Open another prompt cygwin.bat and write:
pg_ctl stop -D /usr/share/postgresql/data/
Open file:
c:\cygwin\usr\share\postgresql\data\postgresql.conf
and modify the row:
#tcpip_socket = false
in
tcpip_socket = true
Restart postgresql like that:
pg_ctl start -D /usr/share/postgresql/data/
On Windows to connect from remote modify the file:
c:\cygwin\usr\share\postgresql\data\pg_hba.conf
At the end of file insert a row like that:
host prova User_Name 192.168.100.101 255.255.255.0 trust
When you will use the program pgadmin the parameters will be these:
Server 192.168.100.101
Porta 5432 (fix
SSL Disabled
Database new prova
Name User Name_User
Trusted left it empty
Password (Insert the password of system of Windows)
-To manage Postgresql in Local or from Remote go on website http://www.pgadmin.org/pgadmin3/index.php
and download the version for Windows 9xMe or that for 2000Xp and start
it putting on it the name of user of pc, for ex. Panther and without
password.
Errors:
-Su Windows 9x-Me:
If you have error delete the file:
/usr/local/pgsql/data/postmaster.pid
and restart /usr/bin/postmaster -D /usr/local/pgsql/data &
On Windows 2000
If appears a pop-up "Impossible find the library to dynamic link cygpcre-0.dll in specified path"
Copy file c:\cygwin\bin\cygpcre.dll in other directory and rename it in
cygpcre-0.dll and after copy again the file renamed in c:\cygwin\bin.
14c)WATCH TV ON LINUX
-Xawtv
My video card used is WIN TV GO of Hauppauge with chip 878A. However I
believe that with this chip this procedure works on all distro,
recompiling the kernel. Mandriva knows it like a card with
chip (Brook...), whereby after the installation will appear an icon on
desktop. Now we see how to recognize it recompiling the kernel 2.4.19.
See the options above how ricompile the rest of kernel to adapt it to
own computer. What is interesting are these options, whose you add y or
asterisk depend how you
recompile it (make mrproper e poi date make xconfig oppure make menuconfig)
Character Devices, I2C support, I2C support e I2C bit banging interfaces.
Multimedia devices, Video for linux, V4L information in proc
filesystem, I2C on parallel port, BT848 Video for linux, SAA5249
Teletext processor. Console drivers, VGA text consoles.
Sound, Sound Card Support, BT878 audio dma, TV card (bt 848) mixer support. Give now:
make dep && make clean && make bzImage && make
modules && make modules_install && cp -f System /boot
&& cd arch/i386/boot && rdev -R bzImage
l /dev/hdx && cp -f bzImage /boot && lilo.
Obviously configure lile to read bzImage at start instead of vmlinuz.
reboot computer and that is done. The programs to use to see the tv are
xawtv or zapping (you can have them almost on all distro).
Zapping is complete of teletex while xawtv no, how to remedy:
-How install xawtv vers. 3.93 and alevt 1.6.1
Download xawtv "http://linux.bytesex.org/xawtv/"; from here:
http://dl.bytesex.org/releases/xawtv/
Install zvbi 0.2.8 from http://sourceforge.net/projects/zapping/
bunzip zvbi-0.2.8.tar.bz2
tar xvf zvbi-0.2.8.tar
cd zvbi-0.2.8
/configure && make && make install
Later install xawtv with option:
tar zxvf xawtv-3.93.tar.gz
cd xawtv-3.93
make clean && ./configure --enable-zvbi && make && make install
At this point reboot computer. To search the tv start from prompt of shell "scantv":
scantv -C /dev/v4l/vbi0 -o /root/.xawtv
Little problem, one time installed new driver NVIDIA, I've seen a
problem at start of xawtv (program to see the tv), practically it
doesn't see itself, the screen is black and I've the following error:
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*"
to
type FontStruct
I've resolved writing the correct device:
xawtv -c /dev/video0
or also using another program, tvtime
If you see the screen black, click with key left of mouse on xawtv and
control the settings, regulate them and insert them in file .xawtv:
This is the start of file with my configuration:
[global]
freqtab = italy
[defaults]
input = Television
norm = PAL
capture = grabdisplay
-Alevt, the Teletext
Download from website http://www.goron.de/~froese/alevt/
the last version available, (at moment 1.6.1). Download the file and install it:
tar zxvf alevt-1.6.1.tar.gz
cd alevt-1.6.1
make && make install
Start xawtv and move on channel wished, open a prompt from shell and write:
alevt -vbi /dev/v4l/vbi0
From keyboard write numbers 100 and press Enter, choice the number of page of teletext that you want to show.
-Tvtime
Install tvtime from http://tvtime.sourceforge.net/ or search the packet
for slackware on http://www.linuxpackages.net/ and install the file .tgz
Search the channels with:
tvtime-scanner
tvtime
15c)GUARDDOG HOW INSTALL IT, CONFIGURE IT AND USE IT
Preamble: This document represent only a little guide about
installation and configuration with Linux Mandriva, Guarddog is a
graphic firewall, that helps so much the configuration of Iptables, for
whose I advise to read the informations contained inside this document.
All the procedure of installation and configuration is under graphic
interface and it's destined to who know few the "Penguin".
Installation: This phase is very easy, you can download Guarddog from website:
http://www.simonzone.com/software/guarddog/ and to be installed itself
requires the presence of Iptables, thereby if you have not yet
installed, charge install software, take the cd of Mandriva and in few
time your system will have all necessary to gather Gaurddog.
Now from konqueror you have to click on file rpm of Guarddog and
automatically kpackage will arrange all. Now we can create a new icon
on desktop to have our firewall always available, hence right-click
--> Create
new --> link to application .. in tab "General" we can choice an
icon that you like more, between those available and in form we'll
write the name that we want to give to link, from tab "Exec" in form
"command:"
we put the path that will exec /usr/bin/guarddog', if we haven't the
particular requirements we can leave empty the other tabs. Now it's
ready, and and we have not neither written a row in shell, and Linux is
difficult ??
Configuration:We are ready to build our little wall to our system, lauch guarddog and get work.
I have to specify that here we talk about configuration adapted to a
generic user, but trying later we will need to adapt it to our specific
requirements, these are the bases to understand the mechanisms. Once
opened
the program we can see four tabs, start from first "Zone", here we
already find a division of default of guarddog, between local Ip
"Local" and external Ip "Internet". To start we can leave all like
that, but we have
to signal a important function about this section to materialize just
the have confidence, selecting "New Zone" we can create a specific
access to some protocols to known ip. We see it on details, once
selected "New Zone" we will can assign a name to zone, a comment and
with "New Address" insert the numeric ip or under form of Dns. Under
Connection we can decide if permit traffic from a Zone to another, to
understand the concept you can see the settings of default, if you
evidence the Internet Zone, you'll see ticked off the box Local, this
means that is permitted the trafic from Internet to Local, evidencing
instead the Local Zone we will find the contrary, creating new zones,
we will can establish if permit or less the trafic from one to other.
For now we limit ourselves to say that for our new Zone if we want use
a protocol we need to tick off the box Local to permit that itself can
pass from our computer to Internet.
But we can see an example, suppose that we want permit the protocol irc
only to server that hosts the chat of #tivedotonico, select "New
Zone" such as above, insert a name (irc Tvt) like a comment (ircity)
after select "New Address" and insert milano.ircity.org, under
connection tick off the box of local, after from tab "Protocol"
evidence our new Zone ables the protocol irc, now this protocol
will be possible only to our server irc.
It's very important to improve this technique and create new Zones
(especially for all those protocols accessible from external with more
risk) so the permit to tight always more the ring and they permit the
access to functions only who we know, in fact a port opened is a method
more common with which a "thief" can access to our computer, I've to
say that a common user is not a target attractive (better like that !).
Not only exist good hackers, but also people that by irc can give you
problems, and a firewall well configured can save us. But the argument
is wide and it doesn't regards only the "crackers", many Internet
services that spy us when we don't know ! Return to us and open the tab
"Protocol" here with the same principle that we have seen in previous
tab regarding the traffic from a Zone to another we can define to which
protocols permit the transit and instead which stop, we find the
protocols divided in categories and we need to choice which we use and
leave them disabled the other. With the creation of new Zones we will
improve the security of our system to try our firewall we can set
underlining the Internet Zone, under the category chat the customers
that we use (for ex. Icq, Irc, ecc), under Data Service we could have
need the protocols to manage the Database such as Mysql and Postgresql,
under File Transfer is necessary http (obviously) ftp and Gnutella if
you use it.
Under Game if you don't play games on-line on games reported you can't
select anything, under mail is necessary permit pop3 smtp, in some
cases imap but otherwise leave it excluded. The group media is
dedicated to who use the plugin RalMedia, under net able Dns and Ping,
the rest can be not useful,
such as all the group of Interactive Session that I advice you to leave
deactivated. Now we have almost established what can pass from Internet
to our computer, now selecting the Local Zone which services will be
accessible from external, here we need to have attention and active
only that is necessary, under Chat as we have done in Internet zone we
active the clients we use, under Mail, pop3 and smtp and under net
Ident/Auth, for the rest all blocked especially all the category
Interactive Session, if you don't want to have the computer with many
problems.
Passing to third tab "Logging" we establish the parameters for the file
of Log (where you will find written all the interventions of our
firewall, you can quietly leave all like that. In the last tab
"Advanced" we find the
useful box "Disable firewall" necessary when we will do wrong
things in configuration of our firewall and select the function "New
Protocol" that we will use that when we will have to use a protocol not
included in the list of second tab "Protocol". Coming down in detail
selecting "New Protocol" we will can assign a name select the type
(Type) in general TCP and thing more important the port, now returning
to second tab "Protocol" under "User Defined" we will find our protocol
to active or deactivate. Now doesn't remain that click on apply and try
to surf on Internet, chat, send/receive email and all that we want do
with our computer in net and continue constantly and to hone the
configuration of firewall, at the end every Linux user want search to
learn always more!
16c)CREATE A PROXY SERVER WITH SQUID
Enter with an editor in /etc/squid/squid.conf
At start of file in:
# TAG: http_port under the written "Default" write the ip address of computer that will be the proxy server, ex:
http_port 192.168.1.1:8080 (Will have to be set also into browsers of computers of clients)
# TAG: visible_hostname under the written "Default", in case of error on restart of demon
squid, write the name of hostname of computer that will be proxy server.
Open xterm and write on it (hostname), add the name of computer that appears, in my case:
Default
visible_hostname Panther
The tag visible_hostname, I repeat, it doesn't matter to put forcedly, only if appears error on restart of squid.
Search the following string "http_access deny all", there will be two
of them, choice which that is not commented from #. The string denies
the access to all computer clients, to permit them to surf, you need to
comment it with a # ahead. Save the file and restart squid like that:
cd /etc/rc.d/init.d && service squid restart (it's possible use also stop and start)
or
cd /etc/rc.d/init.d && ./squid restart (it's possible use also stop and start)
On Slackware I've written:
squid -z (It will create a directory of swap)
squid -NCd1 &
echo 1 > /proc/sys/net/ipv4/ip_forward & (we able the forward).
Like we have told now all computer clients that will want to surf, they
will have to set on own browser the proxy such as 192.168.1.1:8080 (in
my case) Squid however do other things:
If we want to surf with some clients and all others not, you need to write a row before of "http_access deny all" :
acl mio src 192.168.1.2 192.168.1.15 192.168.1.20 (access list of name mio with ip that we can surf with squid)
http_access allow mio (I permit that access list with name mio can surf)
http_access deny !mio (I deny the surf to all ip different (!) from mine)
#http_access deny all (It's possible to comment it, already exists the rule above that does all).
Save the file and for new settings give a:
service squid restart
If we want that clients surf in determines days and and a range of hours that we choose:
acl allowed_clients src 192.168.1.2 192.168.1.15 192.168.1.20
acl regular_days time MTWSS 00:00-00:50 (The letters are the start of days)
http_access allow allowed_clients regular_days (I say that clients surf in particular days)
http_access deny allowed_clients (For the other days, Thursday and Friday I deny the surfing)
Save the file and for new settings give a:
service squid restart
If we want that some clients surf in different hours of day:
acl hosts1 src 192.168.1.2
acl hosts2 src 192.168.1.15
acl hosts3 src 192.168.1.20
acl mattino time 08:00-12:00
acl pomeriggio time 12:01-19:00
acl sera time 19:01-07:59
http_access allow hosts1 mattino
http_access allow hosts1 pomeriggio
http_access allow hosts2 sera
http_access allow hosts3 pomeriggio
http_access deny all (able it)
Save the file and for new settings give a:
service squid restart
If we want deny the access to some websites that contain words about for ex.
sex.
acl allowed_clients src 192.168.1.0/255.255.255.0
acl banned_sites url_regex "/etc/banned.list"
http_access deny banned_sites
http_access allow allowed_clients
Create fine banned.list in /etc/ and write inside it:
bubs
ass
whores
sex
blowjob
Save the file and for new settings give a:
service squid restart
If now on browsers of clients we write in http://www.google.it the word:
"blowjob"
and we start the search, the browser will give an error:
The requested URL could not be retrieved
If we want to limit the number of connections to proxy, that is for ex.
We want that only 8 computers can connect to proxy server to surf:
Search this row in squid.conf # TAG: client_db on|off and able it like that:
#Default:
client_db on
acl mynet src 192.168.1.0/255.255.255.0 (all the lan)
acl numconn maxconn 8
http_access deny mynet numconn
If you want to able all the lan you need only to write
192.168.1.0/255.255.255.0, it doesn't matter to write all and 255 ip
addresses.
17c)PARTED DELETE CREATE AND REORGANIZE PARTITIONS
Install under linux the program from one of cd of distro or download the free program from website:
http://www.gnu.org/software/parted/parted.html. The program can be used
either inside linux that by 4 floppy in case of maintenance of
hard-disk, downloading the image partboot.img and partroot-1.6.6.gz (or
the version
more updated) from website:
http://ftp.gnu.org/gnu/parted/bootdisk/
Download partboot.img and copy it on the first floppy
dd if=/dev/fd0 of=partboot.img
Download partroot-1.6.6.gz (3 mega) and copy it on 3 floppy
dd if=partroot-1.6.6.gz of=/dev/fd0 bs=1440k count=1 skip=0
dd if=partroot-1.6.6.gz of=/dev/fd0 bs=1440k count=1 skip=1
dd if=partroot-1.6.6.gz of=/dev/fd0 bs=1440k count=1 skip=2
Restart the computer and insert the floppy of boot and later floppy of root, at prompt write:
parted /dev/hda (from hda to hdd depends on which hard-disk and partition we want act).
With show we see all commands, with help name-command we obtain the
different options and informations on commands, with print we obtain
the visualization semi-graphic of existing partitions.
(parted) print
Disk geometry for /dev/hdb: 0.000-9787,148 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
We create a partition with file-system fat32 of 1 giga from a empty disk:
mkpartfs primary fat32 0 1000.000
(I've created it primary, if I had to create it like logic, first I had
to create it extended and later logic using the same syntax). Write a
print to see the actual situation:
(parted) print
Disk geometry for /dev/hdb: 0.000-9787,148 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0,031 996,218 primary fat32
Now we increase it of 500 mega.
resize 1 996.218 1500.000
We give a print and see the change:
(parted) print
Disk geometry for /dev/hdb: 0.000-9787,148 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 996,218 1498,249 primary fat32
I create a linux partition with file-system ext2:
mkpartfs primary ext2 1498.250 2700.000
Write "print" to see the change:
(parted) print
Disk geometry for /dev/hdb: 0.000-9787,148 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 996,218 1498,249 primary fat32
2 1498,250 2698,417 primary ext2
Delete the first partition and give a print:
(parted) rm 1 (Attention at this command)
(parted) print
Disk geometry for /dev/hdb: 0.000-9787,148 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
2 1498,250 2698,417 primary ext2
Closing the program we will have a warning in case the creation of new
partitions (if we are inside linux) to update file /etc/fstab.
18c)INSTALL WINE
The installation can be done from a single user or from root user. That is following is the installation like root user:
Download wine, unzip and install it:
From user root:
tar zxvf Wine-20031212.tar.gz
cp -r wine-20031212/ /home/user
chmod -R 777 /home/user/wine-20031212/
su user
cd /home/user
cd wine-20031212/
/tools/wineinstall
During the installation will have required to write "yes", after the password of root and done other questions.
Return like root user
Move the directory .wine like that:
cp -r /home/pc1/c /root
chown root:root /root/c
cp -r /home/pc1/.wine /root/
chown root:root /root/.wine
Enter in file /root/.wine/config and set it. How is following has been taken
from my config file:
[Drive A]
"Path" = "/mnt/floppy"
"Type" = "floppy"
"Label" = "Floppy"
"Filesystem" = "win98"
"Serial" = "87654321"
"Device" = "/dev/fd0"
[Drive C]
"Path" = "/mnt/windows/"
"Type" = "hd"
"Label" = "MS-DOS"
"Filesystem" = "win98"
[Drive D]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "CD-Rom"
"Filesystem" = "win98"
[wine]
"Windows" = "c:\\windows"
"System" = "c:\\windows\\system"
"Temp" = "e:\\"
"Path" = "c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\"
"Profile" = "c:\\windows\\Profiles\\Administrator"
"GraphicsDriver" = "x11drv"
;"ShowDirSymlinks" = "1"
;"ShowDotFiles" = "1"
"ShellLinker" = "wineshelllink"
At moment I've started without errors these programs:
PowerPoint, OpenOffice, Acrobat Reader 5.0, Nero, EtrustAntivirus, 7Zip, Vim
per Windows e eMule Plus v1h.
These are some programs that I've installed however there are others to start.
19c)DRUPAL
All of this has been tried under Archlinux
Install php, mysql, apache and download drupal from website, that under Arch you should do like that:
pacman -S php
pacman -S mysql
pacman -S apache
Download drupal-4.7.2 from website http://www.drupal.org
Unzip drupal-4.7.2.tar.gz where you want and move files inside the drupal-4.7.0 inside the directory /home/http/html/
tar zxvf drupal-4.7.2.tar.gz
cd drupal-4.7.2
cp -f -r * /home/http/html/
MYSQL:
Avviare mysql cosi:
cd /etc/rc.d/ && ./mysqld start
mysql
grant all privileges on *.* to root identified by 'yourpassword';
quit
mysqladmin -u dba_user -p create drupal (dba_user will be root or another user)
mysql -u root -p
The following row has to be written on a only row::
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE
TEMPORARY TABLES, LOCK TABLES ON drupal.* TO 'root'@'localhost' IDENTIFIED
BY 'yourpassword';
FLUSH PRIVILEGES;
quit
mysql -u root -pyourpassword drupal < database/database.4.1.mysql
(write the path until to file database.4.1.mysql)
PHP:
cd /etc
Edit file php.ini
Not select 2 following rows:
extension=mysql.so
extension=mysqli.so
APACHE:
cd /etc/httpd/conf/
Edit httpd.conf
Able the following row:
LoadModule php5_module modules/libphp5.so
Says to Apache which is the directory of reference "DocumentRoot ":
DocumentRoot "/home/httpd/html"
Substitute the voice "None" with "All"
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
DRUPAL:
cd /home/http/html/sites/default/
vi settings.php
Modify the string:
$db_url = 'mysql://username:password@localhost/databasename';
like that:
$db_url = 'mysql://utente:tuapassword@localhost/drupal';
Start apache like that:
cd /etc/rc.d/
./httpd start
(If you have httpd: apr_sockaddr_info_get() modify the file hosts inserting
the hostname).
vi /etc/hosts
127.0.0.1 myhost.localdomain myhost
Open a browser and write:
http://localhost/
If you will see the main page of drupal, it's done. However control the errors of different services.
In case delete file .htaccess
20c)INSTALL AND CONFIGURE PHPBB
Fundamental features.
Forum and unlimited Post Interface with multiple languages
Public and private Forum Powerful search engine
System of private messages Modifiable Graphic Interface
In this example we will use the database mysql. Remember that server
mysql must be always active, active from linuxconf or from command line
(service mysql start), in windows for example you can start like that
(mysqld --standalone)
Also server web apache have to be always active (service httpd start).
Create the user and the password for database mysql, enter in mysql in one of both ways:
mysql
or
mysql -h 192.xxx.xxx.1 -uuser -ppassword
Create your user and password
grant all privileges on *.* to root@'%' identified by 'password';
Create an empty database:
create database nuke;
exit
For the first thing I remember that if you wish to install the forum,
it's needed activation of database MySQL, in case you have a solution
with Linux-Apache-Php. Phpbb supports different kinds of databases but
in this
little guide I'll talk about mysql :-)
Instructions installation phpBB:
1) After having downloaded the last version of phpBB from http://www.phpbb.com
phpBB-2.0.6 and unzip it.
mkdir /prova && cp phpbb-2.0.6.zip /prova && unzip /prova/phpbb-2.0.6.zip
2) Connect with ftp to own web-space and create a directory called "forum" ex. mkdir /var/www/htdocs/forum
3) Do the upload of all directories and files of program inside directory forum.
mv -r /prova/phpbb/* /var/www/htdocs/forum/
4)Open browser and with server web active, write this address:
http://www.nameyourwebsite.extension/forum/index.php
5)At this point you will see a screen of configuration of program
phpBB, please be careful because next steps will be more important.
Default board language: (select Italian language) (*)
(*) About Italian language I've downloaded a zip file (lang_italian.zip)
always from website http://www.phpbb.com.
Database Type: (select MySQL 3.x, in our case is il 3.23)
Choose your installation method: (leave install method)
Database Server Hostname / DSN: (digit localhost or the ip address of computer)
Your Database Name: (nuke)
Database Username: (root)
Database Password: (password of you database)
Prefix for tables in database: (leave phpbb_)
Admin Email Address: (put the e-mail yourname@yourwebsite.extension)
Domain Name: (if not inserted of default digit the name of you domain, in my case tivedotonico.it)
Server Port: (leave 80)
Script path: (leave /forum/)
Administrator Username: (insert the name you wish like administrator,
don't forget this date that will be necessary to access to control
panel)
Administrator Password: (insert a password, don't forget this date because it will be necessary to access to control panel)
Administrator Password [ Confirm ]: (confirm the password inserted before)
Click Start Install
Rename the directories "contrib" and "install" in "old_contrib" and "old_install" or delete them totally with their contained.
At this point to have online the forum phpBB from browser digit:
http://www.nameyourdomain.extension/forum/index.php
21c)INSTALL AND USE XTRACEROUTE
Xtraceroute is a program that shows graphically and geographically the well known instruction traceroute.
First of all search go on http://www.google.it and search the graphic
library gtkgl, download it in /root for example. Unzip it with tar xzvf
and inside the directory just created, digit:
./configure (Enter)
make (Enter)
make install (Enter)
Download always from http://www.google.it, the graphic library
gtkglarea, I advice you the version 1.2 and not 1.0, download it in
/root for example.
Unzip it with tar xzvf and inside the directory just created, digit:
./configure (Enter)
make (Enter)
make install (Enter)
From website http://www.dtek.chalmers.se/~d3august/xt/ download the file xtraceroute0.9.1 and copy it on /root
Unzip the file with tar zxvf filename.tar.gz
Go into directory just created, hence digit:
./configure (Enter)
make (Enter)
make install (Enter)
Now launch startx, make a link on desktop of /usr/local/bin/xtraceroute
(It'is the path of xtraceroute), so you can launch the application more
easily :-) Now you connect to Internet, launch xtraceroute and
will appear
a window where at center there is earth that you can turn with the punter of mouse how you want: it's the powerful of GTK :-)
Above there is a space where you can write some URL (without
http://www., try kernel.org) and you will see that travel will do our
packets :)
Below you will see all host of passage until to the final destination
you have choice. I've tried many addresses and some of them don't
permit they are under trace, however don't hesitate, xtraceroute is a
funny program! :)
22c)READ NEWSGROUP WITH SLRN AND SLRNPULL
slrn is a newsreader in text-modality that near to slrnpull can work
also offline. This little help assumes that you already have installed
two packets and that is possible the link in net, hence flies off all
info linked to installation and to Internet link. The steps to do are:
1)Create the directory where you want to work
Of default slrn works in /usr/local/lib/slrn and slrnpull in
/var/spool/slrnpull. The use of a subdir of /var/spool is
correct, because there, there are all the tails, however you can change
in some directory.
I've used /home/gberto/slrnpull to have the messages in my homedirectory;
2) Configure slrnpull
Copy file slrnpull.conf (you find it in packet of installation) into
directory chosen (HOME_DIR) and edit it. In this file you will have to
delete all examples that the author reports, maybe comment them
with '#',
and you will need insert the list of newsgroup we want follow. The syntax of the row is:
name_of_newsgroup number_articles_to_download days_of_validity
and for every newsgroup we want subscribe it will have to insert a row
(obviously not commented) so structured (the first row is commented and it will be as trace):
#Name_group Messages_to_download Validity
it.test 50 30
default 100 25
it.scienza.medicina 0 0
it.hobby.vino * 15
default 25 5
free.it.fisarmonica 10
The character '*' and the space ' ' identify the value of
default set into appropriate row (for example in this case the validity
of free.it.fisarmonica will be of 5 days) while '0' means 'all
messages' or 'without expiration' to second of the positioning. Every
time we subscribe a new newsgroup you need to edit the file
slrnpull.conf and add the necessary dates.
3) Create file authinfo
Only if own server requires an authorization. In first row insert the username and into second the password.
Save into HOME_DIR and close.
4) Download the messages
At this point you have download the messages of newsgroup subscribes with command:
slrnpull -d HOME_DIR -h name_of_newsserver
for ex. I've written:
slrnpull -d /home/gberto/slrnpull -h news.iol.it
with the connection to web already active. Clearly the time used
depends from line, from traffic, from how many newsgroup you have
subscribed and how many messages you have set for downloading. Have
time....
NB: in HOME_DIR slrnpull will create a tree that rebuild your newsgroup.
If for example, you have subscribed it.comp.os.linux.iniziare, you will
find created the path HOME_DIR/news/it/comp/os/linux/iniziare and in
this last directory will be contained the files of messages downloaded,
each identified from a number. You will find there also a file .minmax
and a .overview that however you don't care.
NNBB: Because the tree created belong to who create them, if you want
that they are accessible to all, you must change the relative
permissions. An easy way is to use the command umask.
5) Configuration of slrn (editing slrn.rc)
The installation of srlrn provide a file of example of configuration
called slrn.rc (you find it in the packet of installation).If you
decide to use this file, you must to copy into home directory of user
(for me
/home/gberto), rename it .slrnrc and at the end edit it. File is easy
to understand. The initial side set the newsserver, the username and
the password for different newsserver that you want use. Because you
need only if you work online (and we don't want this), we will work on
file with the same name, slrn.rc, but it is into directory (or inside
packet) of slrnpull. It's a little file, that set only what we need for
management of
news, leaving all the rest of default. The different lines will have to be fill in like that:
# Definition of directories
set spool_inn_root "dir_host" //ex. /var/spool
set spool_root "dir_of_news" //ex. /var/spool/news
set spool_nov_root "dir_of_news" //ex. /var/spool/news
set read active 1
set use slrnpull 1
set server object "spool"
# Definition of name user (in field From: will appear
# your_username@your.hostname
set hostname "your_hostname"
set username "your_username"
set realname "your_full_name"
You set the directories where will be files of different newsgroup, you say
to slrn to use slrnpull using a spool on disk and you define our name to use
into news.
6) Downloading of newsgroup available on server (you can jump this)
Can be useful having a list of all newsgroup available, this can be done with command:
slrn --nntp -h "MYNEWSSERVER" -a -f ALLNG -create
where obviously MYNEWSSERVER is you server news (for ex. "news.iol.it")
and
ALLNG is the name of file where you want the list of newsgroup. The
time of downloading can be long. Obtained the file, a command of type
cat ALLNG |grep ^it\\. |sort > ITNG
permit to filter those in Italian and to order them for a fast consultation.
7) Launch slrn
To see a different directory from default (that is /usr/local/lib/slrn)
you can or modify the header while you are compiling (slrnfeat.h) or
better to set the environment variables SLRN_LIB_DIR and NNTPSERVER
that slrn reads at moment to start itself. I've created a file batch
(goslrn) that exports these variables and exec slrn:
export HOME=/home/gberto
export NNTPSERVER=news.iol.it
export SLRN_LIB_DIR=/home/gberto/slrnpull
export SPOOL=/home/gberto/slrnpull
slrn
NB: At start probably you'll see an empty screen because you have not
subscribed the groups yet. Using the command <l> or <L> +
<*> + <INVIO> should appear the list of available newsgroup
(that are
those present into file slrnpull.conf) downloaded from slrnpull.
Digit 'S' when the cursor is on newsgroup that you want effectively see
(and not only download) to subscribe them (and 'U' to remove the
subscription);
at this point you can surf offline.
8) Updating of newsgroup and send messages
Because slrn uses a spool, often you need to start slrnpull to send
messages in spool (into directory HOME_DIR/out.going) and update the
newsgroups with new messages.
This can be done like that:
slrnpull -d NEWSDIR -h MYNEWSSERVER
where NEWSDIR is for us HOME_DIR (that is /home/gberto/slrnpull for me)
and MYNEWSSERVER is obviously the newsserver (for me news.iol.it).
I've copied it in another batch (./gonews).
9) Remove old messages
With command
slrnpull -d NEWSDIR --expire
you delete from spool the messages not more valid, according file of configuration on point (5).
10) Setting of killfile
slrn and slrnpull use a killfile to kill the messages not wished. File is called 'score' and you find it in:
'host_dir' for slrn and in 'news_directories' for slrnpull. The syntax is identical:
[Group of newsgroup to set]
Score: ###
Interested_field: value to estimate
and so on. The wildcards are admitted and so the regular expressions. Nb:
the squares are necessaries.
For example:
[*] //For all newsgroup
Score:: -9999 //I don't want see
From: spammatore //Who is called spammer
From: nome@hostname.it //a precise person
Subject: sex //Msg with 'sex' in subj
Subject: \c[a-c] //Msg with subj all upper case
[it.scienza.medicina] //On this specified newsgroup
Score: 999 //I'm interested on this argument
Subject: depression
Score: 999 //Evidence my post
From: gberto
Score: -999 //I don't care the prostate
Subject: prostate
and so on.
NB: see the use of double two-points '::' if there are more fields associated to a same score that indicate dates to process.
To use only one score file, you can create the file in a directory and a link in another.
11) CONCLUSIONS
At this point we are ready to work offline with the news. To save
money, at moment to update newsgroup you can connect on Internet, digit
the command of point 7 (that download new messages and send other
messages in spool, later close connection on Internet. At this point,
offline, with commands at point (7) you read the news offline and you
answer to messages that we care about.
At the end, you can connect on Internet again, start again slrnpull
with commands (to send our messages and we disconnect from Internet).
12) Others
Remember that slrnpull doesn't permit to download only the header and
select the bodies that we care, nut download all news messages. You
will need more time during the connection, but in general you need only
few seconds in more.
23c)VIDEO EFFECTS WITH WEBCAM
Who is using Mandriva can download the following packets:
NVrec-20020312.tar.gz or nvrec-20030316.tar.gz
nasm-0.98-1.i386.rpm
effectv-0.3.8.tar.gz
Nvrec or nvrec it install itself (read however the file README)
tar zxvf NVrec-20020312.tar.gz
or
tar zxvf nvrec-20030316.tar.gz
/bootstrap
/configure
make
make install.
nasm-0.98-1.i386.rpm installa itself like that:
rpm -i nasm-0.98-1.i386.rpm
effectv-0.3.8.tar.gz install itself like that:
tar zxvf effectv-0.3.8.tar.gz
/configure (you control that are not required other libraries, otherwise download them)
make
make install
If you have a webcam start this command from shell (control if you have the webcam (or the tv ??) on video0 or video1:
effectv -device /dev/video1 -norm pal -hardware -doublebuffer -size 320x240 -palette yuv420p
Now move with arrows above or below and good vision with many video effects.
24c)FIRST STEPS WITH DATABASE MYSQL
-Connect to a db mysql
mysql -h 192.168.1.1 -u root -pyourpassword #(-p and yourpassword must be attached)
-If you have the error 1045 (28000) like below written:
MySQL AB :: MySQL Forums :: PHP :: Re: Error 1045 (28000) specific
Follow how is written below:
mysqladmin -u root password 'yourpassword'
mysql -u root -pyourpassword
-Add a user.
mysql> grant all privileges on *.* to root identified by 'yourpassword';
Query OK, 0 rows affected (0.01 sec)
#yourpassword is the password
#root is user
-mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
-Create a database
create database mydatabase;
-Use a database
use mydatabase;
-Shows fields of database
show columns from mydatabase;
-Shows database presents
show databases;
-Shows the tables of a database
show tables from mydatabase;
-Describe table
describe pcag;
-Numbers rows of a table
select count(*) from name_table;
-Controls integrity table/s
check table name_table;
check tables first_table, second_table;
-Repair broken table/s.
check tables first_table, second_table;
REPAIR TABLES first_table, second_table USE_FRM;
check tables first_table, second_table;
-Delete a database (ATTENTION)
drop database mydatabase;
-Delete a column from a table (ATTENTION)
alter table pcag drop column namecolumn;
-Insert a column into database
alter table name_table add column id int not null primary key auto_increment;
-Create and insert the fields in a table
create table clients(id int not null primary key auto_increment,
Lastname varchar(20), Name text, bornday varchar(2), bornmonth
varchar(2));
-Insert dates into table
insert into clients(Lastname, Name, bornday, bornmonth) values('Rossi', 'Andrea', '02', '11');
insert into clients(Lastname, Name, bornday, bornmonth) values('Bianchi', 'Lucio', '05', '12');
-Update a field in a column
update clients set Lastname='Verdi' where Lastname='Bianchi';
or
update clients set bornday='06' where bornday='05';
-Shows all table clients
select * from clients;
-Shows only a row with the search
select * from clients where Name='Lucio';
-To delete an entire row
delete from clients where id=18;
-Delete all contained of a table
truncate table clients;
-Delete an entire row from a table
delete from clients where number='2200';
-Repair a table corrupted.
repair table nametable;
-To close server mysql
mysqladmin -u root -p shutdown;
-Create a couple of database with daemon mysql activated:
Teoric example (dump.sql you can call it how you want):
mysqldump -opt "nome_database" > dump.sql
Practical example:
mysqldump --opt dizionario > dump.sql
To restore all, you need to exec these commands:
Create firstly all database called dictionary:
create database dictionary;
How restore the database:
mysql dizionario < dump.sql
Start mysql how server.
Follow three procedures, choose what is better for you.
1???) Procedure
Like root user:
groupadd mysql
useradd -g mysql mysql
mysqld_safe --user=root &
mysql -uroot -pyourpassword
grant all privileges on *.* to root identified by 'yourpassword';
exit
mysql -h 192.168.1.1 -u root -pyourpassword
2???) Procedure
groupadd mysql
useradd -g mysql mysql
da root:
su mysql (I've not created it)
mysql_install_db
mysqld_safe &
mysql (and I'm entered in mysql)
3???) Procedure
groupadd mysql
useradd -g mysql mysql
-Like root user exec mysql_install_db ( /usr/bin)
-Change permissions to directories of tablespace of mysql (usually in /var/lib/mysql):
chown -R mysql.mysql /var/lib/mysql
-Launch mysqld with command mysqld_safe -D /var/lib/mysql &
-Change the root's password (mysqladmin -u root -p mypassword)
-Close mysql (ps -aux and after kill -9 on process)
-Restart and you'll see that it will be started perfectly at start of system.
25c)INSTALL AND CONFIGURE PHP-NUKE
Unzip PHP-Nuke-6.8.tar.gz in a directory. Remember to active always the
database mysql (service mysql start) and the server web apache (service
httpd start). Edit the file config.php and modify already the settings
like
that:
$dbhost = "192.168.1.1";
$dbuname = "root";
$dbpass = "friends";
$dbname = "phpnuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
Create a user and the password in a database mysql and create the database phpnuke:
mysql
grant all privileges on *.* to root@'%' identified by 'friends';
exit
mysql -h localhost -u root -pfriends
create database phpnuke;
exit
mysql phpnuke < /prova/php/php/sql/nuke.sql
Move the directories and files from phpnuke6.8/php/html in /var/www/htdocs/
(or where you have inserted your first page in apache). Move also the directory sql under /var/www/htdocs/
Open a browser and write http://vostra_lan/admin.php, doesn't remain that create the user administrator and configure the rest.
26c)MANAGE THE CELLPHONE NOKIA WITH GNOKII ON LINUX
This guide explains how use the cellphone nokia with a serial
wire to connect it to a port com of computer. It's always possible
configure the port irda in kernel and use gnokii both with port irda
and infrared.
Download from download-area of website http://www.gnokii.org/ the file
gnokii-0.5.10.tar.gz the last available at moment I'm writing this
document. Unzip it and install it like that (don't worry about messages
that you will
see):
tar zxvf gnokii-0.5.10.tar.gz
cd gnokii-0.5.10
/configure
gmake
make install
Control having some files libgnokii* in /usr/local/lib
Make a cat of file /etc/ld.so.conf and see if inside there is the row:
/usr/local/lib
At the end on shell write:
/sbin/ldconfig
cp gnokii-0.5.10/Docs/sample/gnokiirc /ownhome/.gnokiirc
Edit new file copied and insert or substitute with own dates, mine are:
port = /dev/ttyS0
model = 6210
connection = serial
TELEPHONE = 328xxxxxxx
Save file, connect the wire to port com and to the cellphone and start xgnokii (hold-on some second).
To know if the connection works, you need to click with right key of
mouse on image of gnokii and choice Contacts, after on File and on
"Read from phone" (or click on first image above on left). If you see
the list the
numbers of telephone, you are ok and you can use the program completely.
27c)MTOOLS
mdir a: ( list files present inside floppy)
mcopy a:prova.bat (copy file prova.bat from floppy to current directory)
mformat ( format with dos parameters)
mdel a:prova.bat (delete file prova.bat from floppy)
mdeltree (delete a directory and all its contained)
28c)DATABASE WITH OPENOFFICE
Here we will create an intern database like Access on computer.
Open Writer of OpenOffice, after on Tools and Data Sources. Click on
New Data Sources, insert a name of db (for example Videocassetta), type
of database dBase, now click on key near Data Source URL and choice an
empty directory where will be created the database (db thinks to create
an empty directory if you insert directly the name of directory), click
on key Apply to apply the modify done. Now click on Tables and after on
little square (New Table Designed), it will open a new window where we
will have to write the name of columns. Under Field Name we will write
the name (not more than 8 letters) some columns, and under Field Type
will will choose of every column the type (it will can be only text,
type integer that is only numbers, data type, or text but only of 20
letters, etc....).
The page presents itself divided in 2 sides, clicking on Field Type,
below you can specify the proprieties of every field. Hence this, at
moment, it's our database "textual", later we will build the graphic.
Field Name Field Type
Name Film Text [VARCHAR]
10 Actor Text [VARCHAR]
20 Actor Text [VARCHAR]
Year Prod. Text [VARCHAR]
Save the database clicking on File - Save or on button Save. It will be required the name of table, write "dbfilm".
Close the window clicking on X above on right and later on button Ok of
window used before. Press key F4 or clicking on View - Data Sources,
click on Videocassette, Tables, dbfilm.
We Implement of 3 rows the database, write:
Name Film 10Actor 20Actor
Year Prod.
L'attimo Fuggente Robin Williams Ethan Hawke 1976
Rocky Silvester Stallone Talia Shire
1978
Nuovo Cinema Paradiso Philippe Noiret Totr Cascio 1988
Every time that you go from one row to another, the db saved itself
automatically. Doesn't remain that create the graphic side. Click with
right key of mouse on dbfilm under Videocassette - Tables and choice
Form AutoPilot.
Now will appear a new window, under Data Source there will be written
Videocassette, under Tables or queries there will be written dbfilm,
move the names of columns on left clicking on button with the arrows
toward right. Click on Next, now choice the graphic in "Arrangement of
DB Fields", there are 5 types, clicking on one of these, it will change
the screen below. Choice the edge of boxes and the color of background.
Click on Create, it will appear a screen where it's asked to save the
file, choice for ex. the previous directory "Videocassette". Now we
have the screen with the first film. To save the db, once time modified
a
cell, to go in another screen of db, you need to insert the number
below on left. Hence, use the bar below to operate. To reopen the db,
you need to open OpenOffice, go on file-open and choice the file .sxw
Under Linux:
Connect on website http://www.unixodbc.org and download the file:
unixODBC-2.2.8.tar.gz
Unzip it and install it:
tar zxvf unixODBC-2.2.8.tar.gz
cd unixODBC-2.2.8
/configure
make
make install
Connect to website http://dev.mysql.com/downloads/connector/odbc/ and download the file:
MyODBC-3.51.06-pc-linux-gnu-i686.tar.gz
Unzip it and install it like that:
tar zxvf MyODBC-3.51.06-pc-linux-gnu-i686.tar.gz
cd MyODBC-3.51.06-pc-linux-gnu-i686
Read file INSTALL-BINARY, the informations are these:
cp libmyodbc3* /usr/lib/
cd /usr/local/
ln -s /usr/lib/libmyodbc3 libmyodbc3.so
#Modify file odbc.ini going to change only the row Driver:
#Driver = /usr/lib/libmyodbc.so
#cp odbc.ini /usr/local/etc/
export ODBCINI=/usr/local/etc/odbc.ini
export ODBCSYSINI=/usr/local/etc
Install qt3-unixODBC-3.3.3-24.i586.rpm:
rpm2tgz qt3-unixODBC-3.3.3-24.i586.rpm (on Slackware write this command and after:)
installpkg qt3-unixODBC-3.3.3-24.i586.tgz
Install unixODBC-gui-qt-2.2.10-1.i386.rpm
rpm2tgz unixODBC-gui-qt-2.2.10-1.i386.rpm
install unixODBC-gui-qt-2.2.10-1.i386.tgz
Launch ODBCconfig:
Drivers -->add-> Set how it follows:
Name: mysql
Driver: /usr/local/libmyodbc3.so
Setup: /usr/local/lib/libodbcmyS.so.1.0.0
UsageCount: 1
Con on V above on left.
Click on OK.
Active the server mysql and reactive ODBCconfig:
Go in UserDNS -> add --> Set how it follows:
Name: name database mysql that you care to see on OpenOffice.
Driver: mysql
Server: ip address of server mysql
Database: name database mysql that you want to query.
Click on V above on left.
Click on OK.
If you want add more databases to query, restart ODBCconfig and on UserDNS,
Add, Ok and insert the parameters like above, obviously adding another
database perhaps with another ip address for another server mysql.
Open OpenOffice, select Tools --> DataSources.
DatabaseType: mysql
Mysql: UseExisting MyODBC data source.
DataSource url: click on button near it and choice the databse that you
want. Under insert the user whose connect and the required password.
Click on button below, Apply, after above on Tables, insert the
password. If you have error on file odbcinst, don't worry, go on, click
on table at the end and click on button edit table (if you want modify
it). Click on OK, after on key F4 of keyboard (you will see the db how
is structured), instead
if you want build a graphic interface (like and better then Access),
click above on left on name of database, on tables, right key on
table's name and after on Form AutoPilot.
-On Windows:
OpenOffice can connect itself to othe databases, show the table/s in
text format (boxes like excel) and build inside it a graphic like
Access, how written above. All of this has been done on a computer with
Windows2000 that connect itself to a db mysql on linux. Download file
MyODBC-3.51.06.exe and install it. Open Writer of OpenOffice
after on Tools and DataSources. Click on New Data Sources, under
General insert a name of db, Database type, choice MySQL, click above
in MySQL, under "type of connection" choice
"Use existing MyODBC data source".Under the written General, choice
UserName to use to connect to database mysql and click on Password
required. Near at Data source URL, click on button with little point on
right, it will open a new screen.
Under "Chose a data source" choice myodbc3-test, click on button
Organize, it will open a new window and under the voice "DNS User"
select again myodbc3-test, click on button Configure. Write how follows
near the voices:
Data Source Name: myodbc3-test
Description: MySQL ODBC 3.51 TEST DSN
Host/ServerName: Ip address where is present the server mysql active
Database name: Name of database where you connect in
User: Utente mysql to use to connect in (see how create an user in paragraph dedicated to mysql)
Password: Password mysql to use to connect in (as above)
Port: 3306 (usually it that of default)
SQL command on connect: Leave empty the field
Click now on "Test Data Source" and if appears "Successful Connected", you have almost finished.
Click on button "OK" to close the three opened windows, click on
"Apply" and after above on "Tables", it will be required a password, so
insert the password of use