martes 27 de marzo de 2007
conosca su sistema
La información de un ordenador está almacenada en lo que se llaman archivos. Normalmente los archivos están formados por un nombre, un punto y una extensión (p.e. PROGRAMA.EXE). El nombre nos sirve para diferenciar unos archivos de otros y la extensión para atribuirle unas propiedades concretas. Estas propiedades asociadas o "tipo de archivo" vienen dadas por las letras que conforman la extensión. Normalmente su máximo son tres letras aunque existen algunas excepciones (.jpeg, .html, .java, etc.). Cada uno de estos pequeños grupos de caracteres está asociado a un tipo de archivo.
Pongamos por ejemplo un archivo llamado "DOCUMENTO.TXT", su nombre será DOCUMENTO y su extensión TXT. Esta extensión esta asociada con el tipo de archivos que contienen texto, por lo tanto podemos suponer que habrá algo escrito dentro. Nuestro sistema operativo (Windows en este caso) tendrá una lista de los programas con los que puede ser utilizado este archivo y si deseamos visualizarlo é ste será abierto con el NotePad o Bloc de Notas.
Sin embargo, probablemente nos ocurrirá el problema de que si exploramos un directorio o carpeta sólo veamos DOCUMENTO (sin el .TXT detrás). Se debe a que Windows oculta las extensiones de los archivos. Esto es algo peligroso por el hecho de que hay tipos de archivos que son potenciales contenedores de virus, y si no conocemos su extensión no lo sabremos. Para que Windows nos muestre las extensiones de todos los archivos iremos al Explorador de Windows y en el menú Herramientas accederemos a las opciones de carpeta. En la nueva ventana señalaremos la pestaña Ver y en la lista desmarcaremos la opción "Ocultar las extensiones de archivo para los tipos de archivo conocidos".
Ya que estamos en las opciones de carpeta, la siguiente pestaña "Tipos de Archivo" nos será muy útil. En ella se almacena la lista de diferentes extensiones que Windows reconoce y con que programa están asociadas. Desde ella podemos cambiar todas sus propiedades.
Marcando en la lista el tipo de archivo que nos interese y con el botón Cambiar podremos escoger que sea ejecutado por otro programa distinto. En las Opciones Avanzadas podremos seleccionar tambié n el icono con el que aparezca y las acciones posibles.
Tipos de archivo
Podemos dividir los archivos en dos grandes grupos. é stos son los ejecutables y los no ejecutables o archivos de datos. La diferencia fundamental entre ellos es que los primeros están creados para funcionar por si mismos y los segundos almacenan información que tendrá que ser utilizada con ayuda de algún programa.
De todos modos, la mayoría de los programas llevan otros archivos que resultan necesarios aparte del ejecutable. Estos archivos adjuntos que requieren los programas son necesarios para su buen funcionamiento, y aunque puedan tener formatos distintos no pueden ser separados de su programa original. O al menos si queremos que siga funcionando bien.
Dentro de los archivos de datos se pueden crear grupos, especialmente por la temática o clase de información que guarden. Así lo haremos en este tutorial. Separaremos los grupos en archivos de imágenes, de texto, de vídeo, comprimidos... y nombraremos algunos programas asociados.
Nomenclatura
Todos los formatos de archivo o extensiones están escritos en mayúscula en la columna de la izquierda. A su derecha y en la misma línea todos ellos poseen una explicación adjunta o bien los programas recomendados para su uso. Todas las extensiones más importantes y que requieren una explicación más completa están marcados con un asterisco (*) y ampliadas en la parte final de su categoría correspondiente.
Listado
Aquí tenemos la lista completa de tipos de archivos ordenados, tal y como se indicó anteriormente.
SISTEMA Estos son los archivos necesarios para el funcionamiento interno del Sistema Operativo así como de los diferentes programas que trabajan en é l. No esta recomendado moverlos, editarlos o variarlos de ningún modo porque pueden afectar al buen funcionamiento del sistema.
386 --> Controlador de dispositivo virtual
ACA --> Microsoft Agent Character
ACG --> Vista previa de Microsoft Agent
ACS --> Microsoft Agent Character
ACW --> Configuración del asistente de Accesibilidad
ANI --> Cursor animado
BAT --> Archivo por lotes MS-DOS
BFC --> Maletín
BKF --> Copia de seguridad de Windows
BLG --> Monitor del sistema
CAT --> Catálogo de seguridad
CER --> Certificado de seguridad
CFG --> Configuraciones
CHK --> Fragmentos de archivos recuperados
CHM --> Ayuda HTML compilado
CLP --> Clip de Portapapeles
CMD --> Secuencia de comandos de Windows NT
CNF --> Velocidad de marcado
COM --> Aplicación MS-DOS
CPL --> Extensión del Panel de control
CRL --> Lista de revocaciones de certificados
CRT --> Certificado de seguridad
CUR --> Cursor
DAT --> Base de Datos
DB --> Base de datos
DER --> Certificado de seguridad
DLL --> Librería, extensión de aplicación
DRV --> Controlador de dispositivo
DS --> TWAIN Data Source file
DSN --> Nombre del origen de datos
DUN --> Acceso telefónico de red
EXE --> Aplicación
FND --> Búsqueda guardada
FNG --> Grupo de fuentes
FOLDER --> Carpeta
FON --> Fuente
GRP --> Grupo de programas de Microsoft
HLP --> Ayuda
HT --> HyperTerminal
INF --> Información de instalación
INI --> Opciones de configuración
INS --> Configuración de comunicaciones de Internet
ISP --> Configuración de comunicaciones de Internet
JOB --> Objeto de tarea
KEY --> Entradas de registro
LNK --> Acceso directo
MSC --> Documento de la consola común de Microsoft
MSI --> Paquete de Windows Installer
MSP --> Revisión de Windows Installer
MSSTYLES --> Estilo visual de Windows
NFO --> MSInfo
OCX --> Control ActiveX
OTF --> Fuente OpenType
P7C --> Identificador digital
PFM --> Fuente Type 1
PIF --> Acceso directo a programa MS-DOS
PKO --> Objeto de seguridad de claves públicas
PMA --> Archivo del Monitor de sistema
PMC --> Archivo del Monitor de sistema
PML --> Archivo del Monitor de sistema
PMR --> Archivo del Monitor de sistema
PMW --> Archivo del Monitor de sistema
PNF --> Información de instalación precompilada
PSW --> Password Backup
QDS --> Directorio de consulta
RDP --> Conexión a Escritorio remoto
REG --> Entradas de registro
SCF --> Windows Explorer Command
SCR --> Protector de pantalla
SCT --> Windows Script Component
SHB --> Acceso directo a documento
SHS --> Recorte
SYS --> Archivo de sistema
THEME --> Tema de Windows
TMP --> Archivo temporal
TTC --> Fuente True Type
TTF --> Fuente TrueType
UDL --> Vínculos a datos
VXD --> Controlador de dispositivo virtual
WAB --> Libreta de direcciones
WMDB --> Biblioteca multimedia
WME --> Windows Media Encoder Session
WSC --> Windows Script Component
WSF --> Windows Script File
WSH --> Windows Script Host Settings File
ZAP --> Configuración de instalación de software
AUDIO
Los archivos de audio son todos los que contienen sonidos (no solo música). Las diferentes extensiones atienden al formato de compresión utilizado para convertir el sonido real en digital.
669 --> Winamp
AIF --> Winamp
AIFC --> Formato AIFF
AIFF --> Winamp
AMF --> Winamp
ASF --> Windows Media
AU --> Winamp
AUDIOCD --> AudioCD
CDA --> Winamp
CDDA --> AIFF Audio
FAR --> Winamp
IT --> Winamp
ITZ --> Winamp
LWV --> Microsoft Linguistically Enhanced Sound File
MID --> Winamp
MIDI --> Winamp
MIZ --> Winamp
MP1 --> Winamp
MP2 --> Winamp
MP3(*)--> Winamp
MTM --> Winamp
OGG(*)--> Winamp
OGM --> (Ogg)
OKT --> Winamp
RA --> Real Audio
RMI --> Winamp
SND --> Winamp
STM --> Winamp
STZ --> Winamp
ULT --> Winamp
VOC --> Winamp
WAV --> Winamp
WAX --> Acceso directo de audio de Windows Media
WM --> Windows Media
WMA --> Winamp
WMV --> Windows Media
XM --> Winamp
XMZ --> Winamp
(*)-- MP3: Hoy por hoy es el formato más extendido para la compresión de música en Internet. Su alta calidad lograda en su pequeño tamaño lo hace el favorito de la mayoría de los usuarios para comprimir su música y compartirla en red.
(*)-- OGG: Este formato es totalmente abierto y libre de patentes. Tan profesional y de calidad como cualquier otro pero con todos los valores del movimiento Open Source.
VíDEO
Los formatos de video no sólo continen imágenes sino tambié n el sonido que las acompaña. Es bastante habitual que al intentar visualizar un vídeo no podamos ver la imagen aunque sí oigamos el sonido. Esto es debido al formato de compresión utilizado en ellos que puede no ser reconocido por nuestro ordenador, por ello siempre se ha de tener actualizados los codecs de cada uno de los formatos.
ASF --> Windows Media
AVI(*)--> BSPlayer
BIK --> RAD Video Tools
DIV --> DivX Player
DIVX --> DivX Player
DVD --> PowerDVD
IVF --> Indeo
M1V --> (mpeg)
MOV(*) --> QuickTime
MOVIE --> (mov)
MP2V --> (mpeg)
MP4 --> (MPEG-4)
MPA --> (mpeg)
MPE --> (mpeg)
MPEG(*) --> (mpeg)
MPG --> (mpeg)
MPV2 --> (mpeg)
QT --> QuickTime
QTL --> QuickTime
RPM --> RealPlayer
SMK --> RAD Video Tools
WM --> Windows Media
WMV --> Windows Media
WOB --> PowerDVD
(*)-- AVI: El formato de video más extendido en Internet es el AVI. Calidad y tamaño son sus mayores valedores ante el público.
(*)-- MOV: Es el formato standard de video de Macintosh y es altamente utilizado en vídeos para reproducir en páginas web (trailers, publicidad...).
(*)-- MPEG: siglas de "Moving Pictures Experts Group" tambié n se encuentra como MPG
COMPRIMIDOS
Los formatos de compresión son de gran utilidad a la hora del almacenamiento de información ya que hacen que esta ocupe el menor espacio posible y que se puedan reunir muchos ficheros en uno sólo.
ACE --> WinACE
ARJ --> WinARJ
BZ --> IZarc / WinRAR
BZ2 --> IZarc / WinRAR
CAB --> CAB Station
GZ --> IZarc / WinRAR
HA --> IZarc / WinRAR
ISO --> WinRAR
LHA --> IZarc / WinRAR
LZH --> IZarc / WinRAR
R00 --> WinRAR
R01 --> WinRAR
R02 --> WinRAR
R03 --> WinRAR
R0... --> WinRAR
RAR(*) --> WinRAR
TAR --> IZarc / WinRAR
TBZ --> IZarc / WinRAR
TBZ2 --> WinRAR
TGZ --> IZarc / WinRAR
UU --> WinCode / WinRAR
UUE --> IZarc / WinRAR
XXE --> IZarc / WinRAR
ZIP(*) --> WinZIP
ZOO --> IZarc
(*)-- RAR: Formato de compresión muy efectivo, cuenta con uno de los mejores programas de compresión/descompresión que es capaz de soportar prácticamente todos los formatos no sólo el propio. Las extensiones R00, R01, R02... pertenecen tambié n a este formato cuando el comprimido se divide en varias partes.
(*)-- ZIP: El otro gran utilizado. Soportado por la amplia mayoria de los programas extractores por ser de los más extendidos es el más conocido para el público en general.
IMáGENES
Poco hay que decir de las imágenes y de sus formatos salvo que cada uno de ellos utiliza un mé todo de representación y que algunos ofrecen mayor calidad que otros. Tambié n cabe destacar que muchos programas de edición gráfica utilizan sus propios formatos de trabajo con imágenes.
AIS --> ACDSee Secuencias de imagen
BMP(*)--> XnView / ACDSee
BW --> XnView / ACDSee
CDR --> CorelDRAW Grafico
CDT --> CorelDRAW Grafico
CGM --> CorelDRAW Grafico
CMX --> CorelDRAW Exchange Graphic
CPT --> Corel PHOTO-PAINT
DCX --> XnView / ACDSee
DIB --> XnView / ACDSee
EMF --> XnView / ACDSee
GBR --> The Gimp
GIF(*) --> XnView / ACDSee
GIH --> The Gimp
ICO --> Icono
IFF --> XnView / ACDSee
ILBM --> XnView / ACDSee
JFIF --> XnView / ACDSee
JIF --> XnView / ACDSee
JPE --> XnView / ACDSee
JPEG(*)--> XnView / ACDSee
JPG --> XnView / ACDSee
KDC --> XnView / ACDSee
LBM --> XnView / ACDSee
MAC --> MacPaint
PAT --> The Gimp
PCD --> XnView / ACDSee
PCT --> PICT
PCX --> XnView / ACDSee
PIC --> XnView / ACDSee
PICT --> PICT
PNG --> XnView / ACDSee
PNTG --> MacPaint
PIX --> XnView / ACDSee
PSD --> Adobe Photoshop
PSP --> Paint Shop Pro
QTI --> QuickTime
QTIF --> QuickTime
RGB --> XnView / ACDSee
RGBA --> XnView / ACDSee
RIF --> Painter
RLE --> XnView / ACDSee
SGI --> XnView / ACDSee
TGA --> XnView / ACDSee
TIF --> XnView / ACDSee
TIFF --> XnView / ACDSee
WMF --> XnView / ACDSee
XCF --> The Gimp
(*)-- BMP: Extensión que nace del nombre de este formato BitMaP o Mapa de Bits, gran calidad pero tamaño excesivo no suele ser muy utilizado en Internet por su carga lenta.
(*)-- JPEG: Tambié n se le ve como JPE y sobre todo como JPG es uno de los más extendidos, por su compresión y calidad, en páginas webs para logotipos y cabeceras.
(*)-- GIF: Este formato cuenta con características que lo hacen ideal para el uso en páginas web, como es la posibilidad de darle un fondo trasparente o insertarle movimiento.
TEXTO
Dentro de los documentos de texto hemos de diferenciar entre el texto plano y el enriquecido. Es decir, entre los formatos que sencillamente guardan las letras (txt, log...) y los que podemos asignarles un tamaño, fuente, color, etc. (doc)
DIC --> Block de notas / WordPad
DOC(*)--> Microsoft Word
DIZ --> Block de notas / WordPad
DOCHTML --> HTML de Microsoft Word
EXC --> Block de notas / WordPad
IDX --> Block de notas / WordPad
LOG --> Block de notas / WordPad
PDF --> Adobe Acrobat
RTF --> Microsoft Word
SCP --> Block de notas / WordPad
TXT(*)--> Block de notas / WordPad
WRI --> Write
WTX --> Block de notas / WordPad
(*)-- DOC: Documentos de texto enriquecidos (posibilidad de asignarle formato a las letras) está especialmente extendido por ser el habitual de uno de los programas más utilizados el Microsoft Word.
(*)-- TXT: Formato de texto plano, habitual para registros.
IMAGENES DE CD
Para guardar en un archivo único lo incluido dentro de un CD se utilizan las llamadas "imágenes de disco", su nombre proviene de que son exactamente iguales a lo guardado en el disco, como una imagen reflejada en un espejo. Con ellas se pueden hacer múltiples copias idé nticas de un disco.
MDS --> Alcohol 120%
CCD --> Alcohol 120% / CloneCD
CUE --> Alcohol 120% / CDRWin (+.BIN)
ISO --> Alcohol 120% / Ahead Nero
BTW --> Alcohol 120%
CDI --> Alcohol 120%
IMG --> CloneCD (tambié n de diskette y dibujo)
AHEAD NERO
NRA --> Nero: CD audio
NRB --> Nero: CD-ROM arranque
NRE --> Nero: CD EXTRA
NRG --> Ahead Nero
NRH --> Nero: CD-ROM híbrido
NRI --> Nero: CD-ROM ISO
NRM --> Nero: CD mixto
NRU --> Nero: CD-ROM UDF
NRV --> Nero: CD supervídeo
CDC --> Nero CD Cover
VARIOS PROGRAMAS
La mayoría de los programas tienen formatos de archivo propios para utilizarlos en distintas funciones. Al ser bastante habituales algunos de ellos, detallamos los más importantes aquí.
OPENOFFICE
SDA --> Dibujo
SDC --> Hoja de cálculo
SDD --> Presentación
SDS --> Diagrama
SDW --> Texto
SFS --> Frame
SGL --> Documento maestro
SMD --> Mail Document
SMF --> Fórmula
STC --> Plantilla de hoja de cálculo
STD --> Plantilla de dibujo
STI --> Plantilla de presentación
STW --> Plantilla de texto
SXC --> Hoja de cálculo
SXD --> Dibujo
SXG --> Documento maestro
SXI --> Presentación
SXM --> Fórmula
SXW --> Texto
VOR --> Plantilla
QUICKTIME
QPX --> Player Plugin
QTP --> Preferences
QTS --> QuickTime
QTX --> Extension
QUP --> Update Package
POWERPOINT
POT --> Plantilla
POTHTML --> Plantilla HTML
PPA --> Complemento
PPS --> Presentación
PPT --> Presentación
PPTHTML --> Documento HTML
WORD
DOT --> Plantilla de Microsoft Word
DOTHTML --> Plantilla HTML de Microsoft Word
WBK --> Copia de seguridad de Microsoft Word
WIZ --> Asistente para Microsoft Word
EXCEL
CSV --> Archivo de valores separados por comas
DIF --> Formato de intercambio de datos
DQY --> Archivos de consulta ODBC
XLA --> Complemento
XLB --> Hoja de cálculo
XLC --> Gráfico
XLD --> Hoja de cuadros de diálogo
XLK --> Archivo de copia de seguridad
XLL --> Complemento XLL
XLM --> Macro
XLS --> Hoja de cálculo
XLSHTML --> Documento HTML
XLT --> Plantilla
XLTHTML --> Plantilla HTML
XLV --> Módulo VBA
XLW --> área de trabajo
MEDIA PLAYER
ASX --> Lista de reproducción de audio o vídeo
WMP --> Archivo del Reproductor
WMS --> Archivo de máscara
WMX --> Lista de reproducción de audio o vídeo
WMZ --> Paquete de máscaras
WPL --> Lista de reproducción
WVX --> Lista de reproducción de audio o vídeo
MSN MESSENGER
CTT --> Lista de contactos
YAHOO MESSENGER
YMG --> Messenger Class
YPS --> Messenger Class
INTERNET
ASP --> Active Server Pages
CSS --> Documento de hoja de estilos en cascada
HTA --> HTML Aplicacion
HTM --> HTML Documento
HTML --> HTML Documento
HTT --> Plantilla de hipertexto
JS --> JScript Script File
JSE --> JScript Encoded Script File
JSP --> Archivo JSP
MHT --> MHTML Documento
MHTML --> MHTML Documento
PHP --> Personal Home Page
SHTM --> Archivo SHTM
URL --> HTML Documento
XML --> HTML Documento
XSL --> Hoja de estilos XSL
EML --> Outlook / Eudora / The Bat
MBX --> Eudora Mailbox
MSG --> Mensaje E-mail
NWS --> News Mensaje
OTROS
BIN --> Binario
CLASS --> Java
C --> C
CPP --> C
JAVA --> Java
M3U --> Winamp playlist file
MAX --> 3D Studio Max
SPL --> Shockwave Flash Object
SWF --> Shockwave Flash Object
VBS --> Visual Basic Script
viernes 23 de marzo de 2007
UBUNTO
Table of Contents
- 1. Introduction
- 2. Initial install
- 3. Adding more software repositories
- 4. Installing applications
- 5. Installing and configuring SSH server
- 6. Configuring X
- 7. Installing VMware Workstation
- 8. Installing VMware Server
- 9. Installing VMware Player
- 10. DMA settings
- 11. Configuring firewall
- 12. Useful links
1. Introduction
This document and the installation helper script applies to Ubuntu 6.06.1 LTS (also known as Dapper Drake). The script also works in the newer Ubuntu 6.10 (Edgy Eft) and 7.04 (Feisty Fawn).
2. Initial install
Start by fetching the installation CD image from the Ubuntu download page. Personally I want to use the text-based installation so I used the "Alternate install CD" image. Make sure the MD5 checksum matches with the published value before burning the ISO file or the installation may fail. Reboot with the new installation CD and follow the instructions to install Ubuntu.
Before installing think few minutes how to divide the hard disk into multiple filesystems. In my opinion it's important to have a separate filesystem for /home so it's even possible to reinstall the whole system without moving your personal data to some temporary location before reinstall. I have two identical 250 GB SATA disks. See this page how I configured RAID-1 to have some protection agaist disk failures.
Most the following steps can be performed automatically by saving this install.sh script on your Desktop and running it inside a terminal (Applications > Accessories > Terminal). It is safe to run the script multiple times if you need to abort it at some point.
# sh ~/Desktop/install.sh
Currently the install.sh script does not install and/or configure the following applications so these must be done manually by following this document:
- applications using Wine
- firewall
- VMware Workstation
- VMware Server
3. Adding more software repositories
Login to the newly installed Ubuntu system and select Applications > Accessories > Terminal. Modify /etc/apt/sources.list and update your newly installed system. With these settings you have more applications available for download and install. Replace fi with your country code (fi = Finland, se = Sweden, ...) in the following example to access the closest national mirror.
# sudo gedit /etc/apt/sources.list
deb http://fi.archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper main restricted
## MAJOR BUG FIX UPDATES produced after the final release
deb http://fi.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-updates main restricted
## UBUNTU SECURITY UPDATES
deb http://fi.archive.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-security main restricted
## UNIVERSE AND MULTIVERSE REPOSITORY
deb http://fi.archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://fi.archive.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-security universe multiverse
## BACKPORTS REPOSITORY
deb http://fi.archive.ubuntu.com/ubuntu dapper-backports main restricted
deb http://fi.archive.ubuntu.com/ubuntu dapper-backports universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-backports main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-backports universe multiverse
## dapper-commercial by Canonical
deb http://archive.canonical.com/ubuntu dapper-commercial main
## WINE
deb http://wine.budgetdedicated.com/apt dapper main
deb-src http://wine.budgetdedicated.com/apt dapper main
## Finnish spelling checker for OpenOffice.org
deb http://www.lemi.fi/voikko/ubuntu dapper/
deb-src http://www.lemi.fi/voikko/ubuntu dapper/
Now launch System > Administration > Synaptic Package Manager. Type your password if prompted. Press the Reload button. You will see a warning about missing repositories, this okay during the first time. Press Mark All Upgrades and press Apply if it's enabled. You should now have the latest version of all packages. If the Apply button is not enabled it means you have nothing to upgrade, in other words you already have the latest versions installed.
4. Installing applications
Next install the following programs. The following commands should be executed on a terminal window (Applications > Accessories > Terminal).
## Some public keys
# cd /tmp
# wget http://www.lemi.fi/voikko/archive-key-1.asc
# sudo apt-key add archive-key-1.asc
#
# cd /tmp
# wget http://wine.budgetdedicated.com/apt/387EE263.gpg
# sudo apt-key add 387EE263.gpg
## Language support (fi = Finnish, se = Swedish, ...)
# sudo apt-get install language-pack-fi language-support-fi
# sudo apt-get install language-pack-gnome-fi
## Finnish spelling checker for OpenOffice.org
# sudo apt-get install openoffice.org-voikko
## Flash
# sudo apt-get install flashplugin-nonfree
## RealPlayer
# sudo apt-get install realplay
## Acroread
# sudo apt-get install acroread
# sudo apt-get install mozilla-acroread
# sudo apt-get install acroread-plugins
## Java
# sudo apt-get install sun-java5-jre sun-java5-fonts sun-java5-plugin
# sudo update-alternatives --set java /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
## Multimedia Codecs
# cd /tmp
# wget http://ftp.acc.umu.se/mirror/debian-multimedia/pool/main/w/w32codecs/w32codecs_20061022-0.0_i386.deb
# sudo dpkg -i w32codecs_20061022-0.0_i386.deb
#
# sudo apt-get install gstreamer0.10-plugins-base
# sudo apt-get install gstreamer0.10-plugins-good
# sudo apt-get install gstreamer0.10-plugins-ugly
# sudo apt-get install gstreamer0.10-plugins-ugly-multiverse
# sudo apt-get install gstreamer0.10-plugins-bad
# sudo apt-get install gstreamer0.10-plugins-bad-multiverse
# sudo apt-get install gstreamer0.10-pitfdll
# sudo apt-get install gstreamer0.10-gl
# sudo apt-get install gstreamer0.10-ffmpeg
# sudo apt-get install vorbis-tools
# sudo apt-get install lame
# sudo apt-get install sox
# sudo apt-get install ffmpeg
# sudo apt-get install mjpegtools
## DVD playback
# cd /tmp
# wget http://download.videolan.org/pub/libdvdcss/1.2.9/deb/libdvdcss2_1.2.9-1_i386.deb
# sudo dpkg -i libdvdcss2_1.2.9-1_i386.deb
#
# sudo apt-get install libdvdread3
# sudo apt-get install libdvdplay0
# sudo apt-get install libdvdnav4
# sudo apt-get install totem-xine
# sudo apt-get install libxine-extracodecs
# sudo apt-get install totem-xine-firefox-plugin
# sudo apt-get install vlc
# sudo apt-get install mplayer
## CD/DVD burning
# sudo apt-get install gnomebaker
# sudo apt-get install k3b
# sudo apt-get install k3b-i18n
#
# cd /tmp
# wget ftp://ftp4.usw.nero.com/nerolinux-2.1.0.3-x86.deb
# sudo apt-get install libgtk1.2
# sudo dpkg -i nerolinux-2.1.0.3-x86.deb
## Thunderbird
# sudo apt-get install mozilla-thunderbird
# sudo apt-get install mozilla-thunderbird-enigmail
## Wine
# sudo apt-get install wine msttcorefonts
## Compilers and manual pages
# sudo apt-get install build-essential manpages-dev
## Opera
# sudo apt-get install opera
## NFS, NIS and NTP
# sudo apt-get install nfs-common
# sudo apt-get install nis
# sudo apt-get install ntp
5. Installing and configuring SSH server
Next install and configure SSH server to allow only your normal users to login. If your system has usernames jane and john make sure /etc/ssh/sshd_config has these lines. Launch Applications > Accessories > Terminal. Modify the settings and restart the SSH server.
# sudo apt-get install openssh-server
# sudo gedit /etc/ssh/sshd_config
Protocol 2
...
PermitRootLogin no
...
AllowUsers jane john
# sudo /etc/init.d/ssh restart
6. Configuring X
If you have an NVIDIA graphics card (I have GeForce FX 5200) it might be a good idea to install the accelerated driver for X. Otherwise the screen might be the bottleneck when using graphics intensive applications like DVD players and games.
# sudo apt-get install nvidia-glx nvidia-kernel-common
# sudo nvidia-glx-config enable
For ATI cards, type the following commands:
# sudo apt-get install xorg-driver-fglrx
# sudo dpkg-reconfigure xserver-xorg
## Select the "fglrx" driver instead of "ati"
# sudo gedit /etc/X11/xorg.conf
## Make sure you have the following settings
Section "Device"
Identifier "ATI Graphics Adapter"
Driver fglrx"
Option "VideoOverlay" "on"
BusID "PCI:1:0:0"
EndSection
After reboot you can test that the accelerated driver is really used with the following command:
# glxinfo | grep -i direct
direct rendering: Yes
At work I also have NVIDIA GeForce FX 5200 (with one DVI and one VGA connector) and two 20" Dell 2007FP TFTs. As I write code during day time it's nice to have two monitors side by side forming a big desktop, one for writing code and compiling the code, and the other for debugging with DDD and network monitoring with wireshark. I got TwinView working with this xorg.conf file.
7. Installing VMware Workstation
VMware Workstation is a commercial virtualization software which enables you to run Windows on your Linux PC.
# sudo apt-get install build-essential linux-headers-`uname -r`
# tar xzf VMware-workstation-5.5.3-34685.tar.gz -C /tmp
# cd /tmp/vmware-distrib
# sudo ./vmware-install.pl
# sudo vmware-config.pl -c
Note for Ubuntu 6.10 users: apply the following patch or VMware Workstation will not start correctly.
# cd /tmp
# wget http://www.iki.fi/kuparine/comp/ubuntu/wrapper-gtk24.sh.diff
# cd /usr/lib/vmware/lib
# sudo patch < /tmp/wrapper-gtk24.sh.diff
8. Installing VMware Server
VMware Server is a free software which enables you to run Windows on your Linux PC. See a separate document how I installed VMware Server. Please note that unlike with VMware Player, you can create virtual machines with VMware Server.
9. Installing VMware Player
VMware Player is a free software which enables you to run Windows on your Linux PC. This needs an existing virtual machine which can be created with the non-free VMware Workstation, with the free QEMU and with the free VM Builder.
Note: VMware Workstation installs also the VMware Player so these steps are only needed if you don't have a VMware Workstation license.
# sudo apt-get install vmware-player
10. DMA settings
IDE hard disk and IDE CD-ROM
# sudo gedit /etc/hdparm.conf
# In this example /dev/hda is the hard disk
/dev/hda {
io32_support = 1
dma = on
}
# In this example /dev/hdc is the CD-ROM
/dev/hdc {
io32_support = 1
dma = on
}
# sudo /etc/init.d/hdparm restart
SATA hard disk and IDE CD-ROM
# sudo gedit /etc/hdparm.conf
# In this example /dev/hdc is the CD-ROM
/dev/hdc {
io32_support = 1
dma = on
}
# sudo /etc/init.d/hdparm restart
Test the DMA settings with
# sudo hdparm /dev/hdc
/dev/hdc:
IO_support = 1 (32-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument
11. Configuring firewall
Even though Ubuntu does not listen to any non-localhost ports by default I want to limit how my PC is visible to others. This is done by using the standard iptables firewall which is included in the Ubuntu installation. You could of course install Firestarter or GuardDog from the Synaptic package manager but I prefer a simple textfile-based solution.
Download this firewall script to your Desktop and modify it according to your network settings.
# gedit ~/Desktop/firewall
# sudo cp ~/Desktop/firewall /etc/init.d/firewall
# sudo chmod 755 /etc/init.d/firewall
# sudo ln -sf ../init.d/firewall /etc/rcS.d/S42firewall
# sudo /etc/rcS.d/S42firewall restart
UBUNTO
Table of Contents
- 1. Introduction
- 2. Initial install
- 3. Adding more software repositories
- 4. Installing applications
- 5. Installing and configuring SSH server
- 6. Configuring X
- 7. Installing VMware Workstation
- 8. Installing VMware Server
- 9. Installing VMware Player
- 10. DMA settings
- 11. Configuring firewall
- 12. Useful links
1. Introduction
This document and the installation helper script applies to Ubuntu 6.06.1 LTS (also known as Dapper Drake). The script also works in the newer Ubuntu 6.10 (Edgy Eft) and 7.04 (Feisty Fawn).
2. Initial install
Start by fetching the installation CD image from the Ubuntu download page. Personally I want to use the text-based installation so I used the "Alternate install CD" image. Make sure the MD5 checksum matches with the published value before burning the ISO file or the installation may fail. Reboot with the new installation CD and follow the instructions to install Ubuntu.
Before installing think few minutes how to divide the hard disk into multiple filesystems. In my opinion it's important to have a separate filesystem for /home so it's even possible to reinstall the whole system without moving your personal data to some temporary location before reinstall. I have two identical 250 GB SATA disks. See this page how I configured RAID-1 to have some protection agaist disk failures.
Most the following steps can be performed automatically by saving this install.sh script on your Desktop and running it inside a terminal (Applications > Accessories > Terminal). It is safe to run the script multiple times if you need to abort it at some point.
# sh ~/Desktop/install.sh
Currently the install.sh script does not install and/or configure the following applications so these must be done manually by following this document:
- applications using Wine
- firewall
- VMware Workstation
- VMware Server
3. Adding more software repositories
Login to the newly installed Ubuntu system and select Applications > Accessories > Terminal. Modify /etc/apt/sources.list and update your newly installed system. With these settings you have more applications available for download and install. Replace fi with your country code (fi = Finland, se = Sweden, ...) in the following example to access the closest national mirror.
# sudo gedit /etc/apt/sources.list
deb http://fi.archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper main restricted
## MAJOR BUG FIX UPDATES produced after the final release
deb http://fi.archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-updates main restricted
## UBUNTU SECURITY UPDATES
deb http://fi.archive.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-security main restricted
## UNIVERSE AND MULTIVERSE REPOSITORY
deb http://fi.archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://fi.archive.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-security universe multiverse
## BACKPORTS REPOSITORY
deb http://fi.archive.ubuntu.com/ubuntu dapper-backports main restricted
deb http://fi.archive.ubuntu.com/ubuntu dapper-backports universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-backports main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu dapper-backports universe multiverse
## dapper-commercial by Canonical
deb http://archive.canonical.com/ubuntu dapper-commercial main
## WINE
deb http://wine.budgetdedicated.com/apt dapper main
deb-src http://wine.budgetdedicated.com/apt dapper main
## Finnish spelling checker for OpenOffice.org
deb http://www.lemi.fi/voikko/ubuntu dapper/
deb-src http://www.lemi.fi/voikko/ubuntu dapper/
Now launch System > Administration > Synaptic Package Manager. Type your password if prompted. Press the Reload button. You will see a warning about missing repositories, this okay during the first time. Press Mark All Upgrades and press Apply if it's enabled. You should now have the latest version of all packages. If the Apply button is not enabled it means you have nothing to upgrade, in other words you already have the latest versions installed.
4. Installing applications
Next install the following programs. The following commands should be executed on a terminal window (Applications > Accessories > Terminal).
## Some public keys
# cd /tmp
# wget http://www.lemi.fi/voikko/archive-key-1.asc
# sudo apt-key add archive-key-1.asc
#
# cd /tmp
# wget http://wine.budgetdedicated.com/apt/387EE263.gpg
# sudo apt-key add 387EE263.gpg
## Language support (fi = Finnish, se = Swedish, ...)
# sudo apt-get install language-pack-fi language-support-fi
# sudo apt-get install language-pack-gnome-fi
## Finnish spelling checker for OpenOffice.org
# sudo apt-get install openoffice.org-voikko
## Flash
# sudo apt-get install flashplugin-nonfree
## RealPlayer
# sudo apt-get install realplay
## Acroread
# sudo apt-get install acroread
# sudo apt-get install mozilla-acroread
# sudo apt-get install acroread-plugins
## Java
# sudo apt-get install sun-java5-jre sun-java5-fonts sun-java5-plugin
# sudo update-alternatives --set java /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
## Multimedia Codecs
# cd /tmp
# wget http://ftp.acc.umu.se/mirror/debian-multimedia/pool/main/w/w32codecs/w32codecs_20061022-0.0_i386.deb
# sudo dpkg -i w32codecs_20061022-0.0_i386.deb
#
# sudo apt-get install gstreamer0.10-plugins-base
# sudo apt-get install gstreamer0.10-plugins-good
# sudo apt-get install gstreamer0.10-plugins-ugly
# sudo apt-get install gstreamer0.10-plugins-ugly-multiverse
# sudo apt-get install gstreamer0.10-plugins-bad
# sudo apt-get install gstreamer0.10-plugins-bad-multiverse
# sudo apt-get install gstreamer0.10-pitfdll
# sudo apt-get install gstreamer0.10-gl
# sudo apt-get install gstreamer0.10-ffmpeg
# sudo apt-get install vorbis-tools
# sudo apt-get install lame
# sudo apt-get install sox
# sudo apt-get install ffmpeg
# sudo apt-get install mjpegtools
## DVD playback
# cd /tmp
# wget http://download.videolan.org/pub/libdvdcss/1.2.9/deb/libdvdcss2_1.2.9-1_i386.deb
# sudo dpkg -i libdvdcss2_1.2.9-1_i386.deb
#
# sudo apt-get install libdvdread3
# sudo apt-get install libdvdplay0
# sudo apt-get install libdvdnav4
# sudo apt-get install totem-xine
# sudo apt-get install libxine-extracodecs
# sudo apt-get install totem-xine-firefox-plugin
# sudo apt-get install vlc
# sudo apt-get install mplayer
## CD/DVD burning
# sudo apt-get install gnomebaker
# sudo apt-get install k3b
# sudo apt-get install k3b-i18n
#
# cd /tmp
# wget ftp://ftp4.usw.nero.com/nerolinux-2.1.0.3-x86.deb
# sudo apt-get install libgtk1.2
# sudo dpkg -i nerolinux-2.1.0.3-x86.deb
## Thunderbird
# sudo apt-get install mozilla-thunderbird
# sudo apt-get install mozilla-thunderbird-enigmail
## Wine
# sudo apt-get install wine msttcorefonts
## Compilers and manual pages
# sudo apt-get install build-essential manpages-dev
## Opera
# sudo apt-get install opera
## NFS, NIS and NTP
# sudo apt-get install nfs-common
# sudo apt-get install nis
# sudo apt-get install ntp
5. Installing and configuring SSH server
Next install and configure SSH server to allow only your normal users to login. If your system has usernames jane and john make sure /etc/ssh/sshd_config has these lines. Launch Applications > Accessories > Terminal. Modify the settings and restart the SSH server.
# sudo apt-get install openssh-server
# sudo gedit /etc/ssh/sshd_config
Protocol 2
...
PermitRootLogin no
...
AllowUsers jane john
# sudo /etc/init.d/ssh restart
6. Configuring X
If you have an NVIDIA graphics card (I have GeForce FX 5200) it might be a good idea to install the accelerated driver for X. Otherwise the screen might be the bottleneck when using graphics intensive applications like DVD players and games.
# sudo apt-get install nvidia-glx nvidia-kernel-common
# sudo nvidia-glx-config enable
For ATI cards, type the following commands:
# sudo apt-get install xorg-driver-fglrx
# sudo dpkg-reconfigure xserver-xorg
## Select the "fglrx" driver instead of "ati"
# sudo gedit /etc/X11/xorg.conf
## Make sure you have the following settings
Section "Device"
Identifier "ATI Graphics Adapter"
Driver fglrx"
Option "VideoOverlay" "on"
BusID "PCI:1:0:0"
EndSection
After reboot you can test that the accelerated driver is really used with the following command:
# glxinfo | grep -i direct
direct rendering: Yes
At work I also have NVIDIA GeForce FX 5200 (with one DVI and one VGA connector) and two 20" Dell 2007FP TFTs. As I write code during day time it's nice to have two monitors side by side forming a big desktop, one for writing code and compiling the code, and the other for debugging with DDD and network monitoring with wireshark. I got TwinView working with this xorg.conf file.
7. Installing VMware Workstation
VMware Workstation is a commercial virtualization software which enables you to run Windows on your Linux PC.
# sudo apt-get install build-essential linux-headers-`uname -r`
# tar xzf VMware-workstation-5.5.3-34685.tar.gz -C /tmp
# cd /tmp/vmware-distrib
# sudo ./vmware-install.pl
# sudo vmware-config.pl -c
Note for Ubuntu 6.10 users: apply the following patch or VMware Workstation will not start correctly.
# cd /tmp
# wget http://www.iki.fi/kuparine/comp/ubuntu/wrapper-gtk24.sh.diff
# cd /usr/lib/vmware/lib
# sudo patch < /tmp/wrapper-gtk24.sh.diff
8. Installing VMware Server
VMware Server is a free software which enables you to run Windows on your Linux PC. See a separate document how I installed VMware Server. Please note that unlike with VMware Player, you can create virtual machines with VMware Server.
9. Installing VMware Player
VMware Player is a free software which enables you to run Windows on your Linux PC. This needs an existing virtual machine which can be created with the non-free VMware Workstation, with the free QEMU and with the free VM Builder.
Note: VMware Workstation installs also the VMware Player so these steps are only needed if you don't have a VMware Workstation license.
# sudo apt-get install vmware-player
10. DMA settings
IDE hard disk and IDE CD-ROM
# sudo gedit /etc/hdparm.conf
# In this example /dev/hda is the hard disk
/dev/hda {
io32_support = 1
dma = on
}
# In this example /dev/hdc is the CD-ROM
/dev/hdc {
io32_support = 1
dma = on
}
# sudo /etc/init.d/hdparm restart
SATA hard disk and IDE CD-ROM
# sudo gedit /etc/hdparm.conf
# In this example /dev/hdc is the CD-ROM
/dev/hdc {
io32_support = 1
dma = on
}
# sudo /etc/init.d/hdparm restart
Test the DMA settings with
# sudo hdparm /dev/hdc
/dev/hdc:
IO_support = 1 (32-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument
11. Configuring firewall
Even though Ubuntu does not listen to any non-localhost ports by default I want to limit how my PC is visible to others. This is done by using the standard iptables firewall which is included in the Ubuntu installation. You could of course install Firestarter or GuardDog from the Synaptic package manager but I prefer a simple textfile-based solution.
Download this firewall script to your Desktop and modify it according to your network settings.
# gedit ~/Desktop/firewall
# sudo cp ~/Desktop/firewall /etc/init.d/firewall
# sudo chmod 755 /etc/init.d/firewall
# sudo ln -sf ../init.d/firewall /etc/rcS.d/S42firewall
# sudo /etc/rcS.d/S42firewall restart