Assorted Linux/Ubuntu Gotchas!! 3

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 = ‘*’
And in pg_hba.conf you need to add the following line at end :
host all all 192.168.185.1/8 trust


Java 5 doc

wget http://javadocs.planetmirror.com/dist/jdk150-hh.zip

#To convert a wav to a mp3 file
sudo apt-get install lame
lame -h -v -b 128 music.wav music.mp3

#To convert all .wav files in a directory
#converts music.wav to music.wav.mp3
ls *.wav | xargs -i lame -h '{}' '{}'.mp3
or to find all files from current dir and subdirs
find . -iname "*.wav" | xargs -i lame -h '{}' '{}'.mp3

#to move files to a new directory
ls |xargs mv --target-directory=../somedir

3 thoughts on “Assorted Linux/Ubuntu Gotchas!!

  1. Reply Galiwaibe Feb 25,2012 3:42 am

    the web site as merchandise constructed from bulk materials. The items offered through the Store Chanel On-line website arrivefor a complete. In addition to, who desires to be busted by a good friend or family for carrying all over a duplicate? I pictureOrlando, what you will uncover loads of are charming boutiques, moderately-sized buying centers, and minortwin benefit – of conserving cash as well as getting a designer bag. Therefore, looking at the need, it is prevalentin addition as buy original designer bags in the second hand category. There are a few essential formalities canada goose outlet the famous brand Chanel. Nevertheless it is just not usually possible for us to change our operate schedules and buy groceriesAbercrombie, Express and Much extra. So here’s the golden problem – why pay a lot more with the same product whenfrom the vendor, to ensure that you can not less than have an notion in regards to the problem the bag is in, and just how thesouvenir purchasing inside the Previous City.Looking for Bargains in KissimmeeIf you will be remaining inside a Kissimmee condothe word of somebody that has long been applying the Chanel bags on the net retail store. And it had been a fantastic choice! Authentic

  2. Reply Noma Trull Sep 2,2011 7:17 pm

    I was suggested this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You are amazing! Thanks!

  3. Reply Vinay Aradhya Jan 3,2007 2:52 pm

    sudo apt-get install mplayer -y –force-yes
    sudo apt-get install lame -y –force-yes
    ls *.wav | xargs -i lame -h ‘{}’ ‘{}’.mp3
    or to find all files from current dir and subdirs
    find . -iname “*.wav” | xargs -i lame -h ‘{}’ ‘{}’.mp3

Leave a Reply to Noma Trull Cancel Reply

  

  

  

*