Some linix (mostly debian) stuff
Some of the things I frequently need:
My /etc/apt/sources.list file:
#
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official amd64 NETINST Binary-1 20090413-22:20]/ lenny main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official amd64 NETINST Binary-1 20090413-22:20]/ lenny main
deb http://ftp.iitm.ac.in/debian/ lenny main contrib non-free
deb-src http://ftp.iitm.ac.in/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb http://www.debian-multimedia.org lenny main contrib non-free
# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free main
===============================================================================================
Things I usually install on debian:
gvim glibc-doc glibc build-essential wavesurfer speech-tools speech-tools-doc tetex-bin tetex-extra latex-ucs latex-beamer pdfjam ispell gthumb
vim-gui-common vim-common vim-full exuberant-ctags rsync ssh
mplayer-skin-blue mozilla-mplayer audacious oss-compat tcsh
xserver-xorg xorg slim sysv-rc-conf xtrlock feh icewm
For minimal install:
less perl python tcsh linux-image-2.6.26-2-686-bigmem ntpdate pcituils sysvinit-utils psmisc strace ltrace emacs vim htop bc
================================================================================================
My ~/.gvimrc:
set tabstop=4
set autoindent
set smartindent
set showmatch
set ruler
set nu
syntax on
set backspace=2
set guioptions-=T
set nohls
set laststatus=2
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
"set textwidth=80
"set guifont=LMTypewriter9\ 16
"set guifont=Monaco\ 13
set guifont=Monospace\ 14
"set guifont=LiberationMono\ 13
"set guifont=Terminal\ 13
"set guifont=LucidaTypewriter\ 9
"set guifont=Courier\10\ Pitch\ 13
================================================================================================
My ~/.vimrc
set tabstop=4
set autoindent
set smartindent
set showmatch
set ruler
set nu
syntax on
set backspace=2
set nohls
My vim looks like this:
 |
vim running with the above .gvimrc and .vimrc |
================================================================================================
My ~/.Xresources file:
xterm*font: -*-fixed-medium-r-*-*-14-*-*-*-*-*-*-*
xterm*font1: -*-*-*-*-*-*-2-*-*-*-*-*-*-*
xterm*font2: -misc-fixed-*-r-normal-*-8-*-*-*-*-*-iso8859-*
xterm*font3: -b&h-lucidatypewriter-bold-*-*-*-12-*-*-*-*-*-*-*
xterm*font4: -*-screen-bold-r-normal-*-16-*-*-*-*-*-iso8859-*
xterm*font5: -*-lucidatypewriter-medium-*-*-*-18-*-*-*-*-*-*-*
xterm*font6: -*-lucidatypewriter-medium-*-*-*-20-*-*-*-*-*-*-*
xterm*font7: -dec-terminal-bold-r-normal-*-14-*-*-*-*-*-iso8859-*
XTerm*background: black
XTerm*foreground: gray
XTerm*pointerColor: red
XTerm*pointerColorBackground: black
XTerm*cursorColor: navy
XTerm*internalBorder: 3
XTerm*loginShell: true
XTerm*scrollBar: false
XTerm*scrollKey: true
XTerm*saveLines: 2000
XTerm*multiClickTime: 250
================================================================================================
My ~/.bashrc (portions of it)
# some more ls aliases
alias ll='ls -l'
alias la='ls -lrt'
#alias l='ls -CF'
#alias ls='ls -F --color=yes'
alias l='ls'
alias mv='mv -iv'
alias cp='cp -iv'
alias rm='rm -iv'
alias bc='bc -l'
# enable gvim with tabs
alias gvim='gvim -p'
================================================================================
/etc/fstab:
# allow mount usb for all
/dev/sdc1 /media/usb/ vfat rw,user,noauto 0 0
=================================================================================
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
# iitm hostel
iface eth0 inet dhcp
# donlab
#iface eth0 inet static
# address 10.6.21.216
# netmask 255.255.255.0
# network 10.6.21.0
# broadcast 10.6.21.255
# gateway 10.6.21.254
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 10.6.21.1
# dns-search iitm
=========================================================================
/etc/resolv.conf
domain iitm.ac.in
search iitm.ac.in
nameserver 10.91.2.11
nameserver 10.91.2.12
==============================================================================
pappu@kestrel:~$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
10.94.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.94.0.254 0.0.0.0 UG 0 0 0 eth0
===========================================================================
pappu@kestrel:~$ cat /root/changeIP.sh
ifconfig eth0 10.94.11.16
route add default gw 10.94.0.253
To change the default window manager
===========================
$ update-alternatives --config x-session-manager
Tool for transferring images from camera
gtkam
==========================================================