Barcode setup & barcode printing

Wanted to assign barcode to inventory product also wanted to print barcode from erpnext in barcode level printer.