Showing posts with label Linux Configuration. Show all posts
Showing posts with label Linux Configuration. Show all posts

Friday, November 11, 2011

my ~/.vimrc file

set hlsearch
set nu
set ignorecase
set expandtab
set shiftwidth=4
set softtabstop=4

if has ("autocmd")
    autocmd BufRead *.file set tw=150
    autocmd BufRead *.prvc set nobackup nowritebackup foldmethod=indent fdo=insert
    filetype plugin indent on
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif


For gVim, following options can be added to "_vimrc" file
at path: C:\Users\\_vimrc

set noswf

if has("gui_running")
    if has("gui_win32")
        set guifont=Fixedsys:h11
    endif
endif


# other options:
# gui_gtk2 / gui_macvim / gui_gtk3 / gui_win32
 



Sunday, March 27, 2011

xorg.conf of RHEL 5.0


# Xorg configuration created by pyxf86config
Section “ServerLayout”
Identifier “Default Layout”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Synatics” “CorePointer”
EndSection

Section “InputDevice”
Identifier “Keyboard0”
Driver “kbd”
Option “XkbModel” “pc105”
Option “XkbLayout” “us”
EndSection

Section “InputDevice”
Identifier “Synaptics”
Driver “synaptics”
Option “Device” “/dev/input/mice”
Option “Protocol” “auto-dev”
Option “Emulate3Buttons” “yes”
EndSection

Section “Device”
Identifier “Videocard0”
Driver “via”
EndSection

Section “Screen”
Identifier “Screen0”
Driver “Videocard0”
Monitor “Monitor0”
DefaultDepth 24

SubSection “Display”
Viewport 0 0
Depth 24
Modes “1024x768” “800x600”
EndSubSection
EndSection

Section “Monitor”
Identifier “Monitor0”
HorizSync 31.5 – 48.5
VertRefresh 59.0 – 75.0
EndSection
# ---- END ----

Wednesday, December 1, 2010

enable terminal color in Guake

In guake type:
$ echo $TERM
$ dumb

then,
vim ~/.bashrc
export TERM=xterm

The above mentioned problem occur in ubuntu 10.10

Monday, October 4, 2010

FTP service in Ubuntu

default path of FTP service in Ubuntu:
/etc/srv/ftp/

Conf file:
/etc/vsftpd.conf

Friday, March 13, 2009

To set default workspace in eclipse on linux

Following trick works on ubuntu

cd /use/lib/eclipse/configuration
sudo gedit config.ini
find 'osgi.instance.area.default' and set its value accordingly
save and close