Agus Priyadi and Mafia.Or.ID

blog all about (brains colocations)

Archive for the ‘Linux’ Category

Clear DNS lookup

Posted by mafiaid on 12 November 2007

To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000, Win 98):-

    - Start -> Run -> type cmd
    - in command prompt, type ipconfig /flushdns
    - Done! You Window DNS cache has just been flush.

To flush the DNS cache in Linux, restart the nscd daemon:-

    - To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
    - Once you run the command your linux DNS cache will flush.

To flush the DNS cache in Mac OS X:-

    - type lookupd -flushcache in your terminal to flush the DNS resolver cache.
      ex: bash-2.05a$ lookupd -flushcache
    - Once you run the command your DNS cache (in Mac OS X) will flush.

Posted in Linux, MacOS, oprekan | Tagged: , , , , , | Leave a Comment »

Burning or Writing DVDs Under Debian system

Posted by mafiaid on 6 November 2007

Copy Paste : http://www.debianhelp.co.uk/burningdvd.htm

If you want to burn DVD’s in debian you need
to install the “dvd+rw-tools”
package.



dvd+rw-tools makes it possible to burn DVD images
created by dvdauthor or mkisofs to DVD+R, DVD+RW,
DVD-R, and DVD-RW disks, replacing cdrecord-proDVD
in many cases.

The package contains:


* growisofs to burn DVD images or create a data DVD on the fly  
* dvd+rw-format to format a DVD+RW  
* dvd+rw-mediainfo to give details about DVD disks


and some programs to control the write speed and
obtain information from DVD-RAM.

the maximum writing speed depends on the hardware
capabilities and then on the firmware. Using an
unsupported media will most likely not give you the
highest speed printed on the labels or that capable
by the writer. As an example: my writer says 16.1x
is supported on my Fujifilm 8x DVD+R (8x rated)
where as only 8.1x is supported on Fujifilm 8x DVD-R
(8x rated).

Install
dvd+rw-tools package in debian

#apt-get install dvd+rw-tools

Using
growisofs


Initialize new DVD+RW media

#dvd+rw-format /dev/scd1

Write
contents of a directory(or file) to a newly
initialized DVD+RW

#growisofs -Z /dev/scd1 -R -J
/the/file/or/directory/to/burn

Write
more stuff to an initialized DVD+RW

#growisofs -M /dev/scd1 -R -J
/the/new/file/or/directory/to/burn

Write an
arbitrary pre-mastered image to a DVD+RW

You can write any data to the
disk with this command. But likely you will want to
stick to the old familiar iso9660.

#growisofs -Z /dev/scd1=image.iso

If you want to know more
options about growisofs check the man page.If you
want to check this man page click

here

Using
dvdrecord

It is also quite easy to use dvdrecord to burn an
existing iso image.Dvdrecord is simply a fork of
cdrecord that is designed to work with DVD media.

Copy DVD (DVD-R & DVD-RW)

#readcd dev=0,1,0 f=somefile

#dvdrecord speed=2 dev=0,1,0
-v somefile


Create DVD from directory (DVD-R & DVD-RW)

#mkisofs -r -J -o iso_image
directory/to/burn

#dvdrecord -v speed=2
dev=0,1,0 -v iso_image

If you want to know more
options about mkisofs check the man page.If you want
to check this man page click

here

GUI
tools to burn CD/DVD’s


http://www.k3b.org/



http://www.xcdroast.org/


Reference links



DVD+RW/+R/-R[W] for Linux

Another command

$ growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hda -R -J -pad “/my/directory/datas”

$ growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hda -R -J
-pad -graft-points “/dir1=/my/directory/datas1″
“/otherdir=/my/directory2/content”

$ growisofs -dvd-compat -input-charset=ISO-8859-1 -M /dev/hda -R -J -pad -graft-points “/morecontent=/my/new/dir”

growisofs -dvd-compat -Z /dev/hda=/path/to/image.iso

Posted in Debian, Linux, oprekan | Leave a Comment »