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
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.
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/
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
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/
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.
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’
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:
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:
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:
-
Recientes
- Fedora 11 – MySQL configuration
- Alias en shell
- Flash in Fedora 10
- Memory Stick in Sony Vaio. Ubuntu Hardy.
- Sysvconfig
- Montar imagen ISO en Ubuntu
- Configuring MySQL for Linux
- Paso de parámetros a funciones en Java
- Navegador en modo texto.
- Colores en la salida del comando ls
- Cita
- Por qué el tamaño mínimo de un paquete Ethernet es 46 bytes
-
Enlaces
-
Archivos
- Noviembre de 2009 (1)
- Junio de 2009 (1)
- Diciembre de 2008 (1)
- Noviembre de 2008 (1)
- Septiembre de 2008 (1)
- Mayo de 2008 (2)
- Abril de 2008 (1)
- Marzo de 2008 (2)
- Enero de 2008 (5)
- Diciembre de 2007 (5)
- Junio de 2007 (1)
-
Categorías
-
RSS
Subscripciones RSS
RSS de los Comentarios