A basic .vimrc configuration file for vim users

.vimrc is the configuration file for vim. Whenever executed, vi will read this file’s contents setting up a customized environment. In order to work, you have to save it in your home directory (~). It is important to notice that the commands should not include the initial colon (:). Here are some useful commands: syntax on syntax highlighing set number show line numbers set ruler show the cursor position all the time set ignorecase ignore case when searching set hlsearch highlight searches set tabstop=4 number of spaces of tab character set shiftwidth=4 number of spaces to (auto)indent set autoindent always set auto indenting on set smartindent smart indent set cindent cindent

Create a DNS zone file

by FreeBSD.orgAn example master zone file for example.org(existing within /etc/namedb/master/example.org) is as follows: $TTL 3600 ; 1 hour default TTL example.org. IN SOA ns1.example.org. admin.example.org. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 300 ; Negative Response TTL ) ; DNS Servers IN NS ns1.example.org. IN NS ns2.example.org. ; MX Records IN MX 10 mx.example.org. IN MX 20 mail.example.org. IN A ; Machine Names localhost IN A 127.

CentOS useful commands

To get your CentOS version type: cat /etc/redhat-release To update all your CentOS packages at once: yum update To install nslookup, dig and other network utilities: yum install bind-utils -y

Cómo agregar la fecha al nombre de un fichero en linux o mac

Agregar la fecha a un nombre de un fichero desde un script es muy útil, pues te permitirá generar nombres únicos para, por ejemplo, crear una lista de respaldos. Aquí os dejo un script muy sencillo que ejemplifica cómo hacerlo: #!/bin/sh dt=`date +%y%m%d` touch ./archivo-$dt Este es un programa muy sencillo el cual asigna a la variable “dt” el resultado de ejecutar el comando date +%y%m%d, el cual devuelve la fecha en formato año, mes y día.

Installing a PDF print server on Ubuntu Server

This article was originally written for Ubuntu 7, but we now know it works for Ubuntu 10 as well. Thanks Shooda! To start, install the CUPS service and CUPS-PDF files: sudo apt-get install cupsys sudo apt-get install cups-pdf Now configure CUPS to allow remote administration: sudo nano /etc/cups/cupsd.conf Modify the port where CUPS listens from: Listen localhost:631 to: Listen 631 Listen /var/run/cups/cups.sock Listen The 192.

Ubuntu 7.10 Released

Among others, this new release of Ubuntu features: 3D Screen effects enabled by default: This is soooo cool! Plus, right click on your desktop, select Change Desktop Background, select Visual Effects and click on Extra, now go move a Window. Themes, backgrounds, fonts, toolbars and visual effects have all been consolidated into a single form. Desktop search: Quick search all your files, web, email, etc. Pidgin: New name for the Gaim Internet Messenger, it features more icons 😉 and MSN icons are now shown for all your contacts.