Seit Hamburg

Alias en shell

A shell is a software that provides an interface to the user. There could be two kinds of shells, text or graphical. In either category, the purpose of the shell is to lauch a program.

We can create alias inside a shell to invoke those programs in a more efficient way.

To do that, we just edit the file .bashrc. For example, if we want to create an alias in ubuntu to update the system, we add the following line:

#Alias for updating the system

alias update = “sudo apt-get update”

To override all possible aliases, we just write a backslash and the command will be run as-is.

\ls

Junio 1, 2009 Publicado por backdoormann | linux | | Aún no hay comentarios

Flash in Fedora 10

Sencillo:

The YUM version simply installs the repository configuration files, after which you must install the Flash plugin separately.

To begin, refer to the Adobe site at http://get.adobe.com/flashplayer/. Select YUM for Linux to download, and confirm.

Then proceed with the instructions showed below:

su -c 'yum install flash-plugin nspluginwrapper.x86_64 \
    nspluginwrapper.i386 alsa-plugins-pulseaudio.i386 \
    libcurl.i386'

Yasta.

Diciembre 24, 2008 Publicado por backdoormann | linux | | Aún no hay comentarios

Memory Stick in Sony Vaio. Ubuntu Hardy.

svn co -r155 http://svn.berlios.de/svnroot/repos/tifmxx/trunk/driver/
cd driver/
wget http://www.sw83.de/misc/tifm_ms.patch
patch -p0 < tifm_ms.patch
make
sudo make install

http://swanseadivers.net/blog/tag/sony-vaio-ubuntu-hardy-linux/

Noviembre 29, 2008 Publicado por backdoormann | linux | | Aún no hay comentarios

Sysvconfig

A text menu based utility for configuring init script links. It provides extensive explanations at each step.

Some features supported by sysvconfig are:

- Enable or disable services.
- Edit init links.
- Restore from backup file if you make a mistake.
- Menu or command line interface.
- View all services, each with its status and a brief description.

Sysvconfig will install service command to start, stop, restart the service using service command use the following format:

sudo service apache2 restart

sudo service apache2 stop

Septiembre 7, 2008 Publicado por backdoormann | linux | | Aún no hay comentarios

Montar imagen ISO en Ubuntu

sudo mount -t iso9660 -o loop archivo.iso /directorio/de/montaje

Más: http://bronch.wordpress.com/2006/05/24/como-montar-archivos-iso-bin-mdf-y-nrg-en-linux/

Mayo 20, 2008 Publicado por backdoormann | linux | | Aún no hay comentarios

Navegador en modo texto.

Existe un navegador en modo texto que se llama links2. Para instalarlo en Ubuntu:

sudo aptitude install links2

Una vez que lo tenemos instalado, si queremos ver alguna página con este navegador hay que teclear en el terminal:

links2 www.google.es

Podremos acceder a un manual desde el programa. No tiene más complicación.

Marzo 22, 2008 Publicado por backdoormann | linux | | Aún no hay comentarios

Colores en la salida del comando ls

En la consola de Ubuntu no salen los colores al hacer listados de archivos con el comando ls. Para conseguirlo hay que editar el archivo /etc/bash.bashrc y añadir al final:

alias ls = ‘ls –color=auto’

Marzo 21, 2008 Publicado por backdoormann | linux | | Aún no hay comentarios

Ejecutar comandos desde vim

Una utilidad interesante de vim es ejecutar comandos del sistema desde la misma consola en la que estamos trabajando con él. En modo comando escribimos :!comando, por ejemplo, si escribimos :!ls nos mostrará un listado de archivos del directorio en el que nos encontramos. Esto te permite compilar programas o documentos mientras editas uno o más ficheros de código fuente, incluso puedes ejecutar una consola de sistema desde el editor, con el comando :sh.

Referencias:

http://www.gulic.org/node/78

Enero 3, 2008 Publicado por backdoormann | linux, vim | | Aún no hay comentarios

Reproducir DVD en Ubuntu

Objetivo: Reproducir DVD’s originales en Ubuntu.

Hay que utilizar Totem con las librerías xine en lugar de las gstreamer. Para ello, si tenemos instalado ya el totem con las gstreamer, lo desinstalamos:

sudo aptitude remove –purge totem totem-gstreamer

Posteriormente instalamos los códecs y el reproductor totem con las librerías xine:

sudo aptitude install libdvdnav4 libdvdplay0 libdvdread3 libdvdcss2

sudo aptitude install totem-xine

FIN.

Referencias:

http://www.ubuntu-es.org/index.php?q=node/59613

Diciembre 26, 2007 Publicado por backdoormann | linux, multimedia | , , , | 9 comentarios

Colores en vim

Objetivo: Conseguir un esquema de colores en el editor vim.

Hay que editar el fichero /etc/vim/vimrc y descomentar las siguientes líneas:

syntax on
set background=dark //Si el fondo de pantalla que tenemos es oscuro

FIN

Referencias:

http://www.ubuntu-es.org/index.php?q=node/57445

Diciembre 26, 2007 Publicado por backdoormann | linux, vim | , | Aún no hay comentarios