Assorted Linux/Ubuntu Gotchas!!
To customise Vi Editor
copy /usr/share/vim/vimrc to ~/.vimrc
:syntax on for color highlighting
:set incsearch for incremental search in vi editor
to clear and redraw the screen ^L
To get network info
$netstat -lneap | grep tcp
5900 for vnc
21 for ftp
To mount Windows partitions (NTFS) on boot-up, and allow users read and write access
$sudo apt-get install ntfs-3g
$sudo vi /etc/fstab and add the following
/dev/hda5 /media/windows ntfs-3g defaults,locale=en_US.utf8 0 0
To mount network folder
//192.168.151.97/freeware /media/freesoft smbfs credentials=/root/.smbcredentials 0 0
To list all ips in a network
nmap -v -sP 192.168.185.1/24 | grep "appears to be up" | cut -d ' ' -f 2
Install FLash editor for linux
$wget http://www.sonsuzdongu.com/paketler/f4lm_0.1-1_i386.deb
$sudo dpkg -i f4lm_0.1-1_i386.deb
Postgresql
If you want to allow other(s) network system to access your
database, you need to make changes in two files : postgresql.conf and
pg_hba.conf.
in postgresql.conf file you need to specify IP address(es) to listen on,
with comma seperated. OR '*' for ALL.
listen_addresses = '*'
No comments:
Post a Comment