Monday, May 21, 2012

Squid Configuration - Part1

Apache Port Changing on Ubuntu

To change the default port on which Apache listens to on Ubuntu and to access the webpages over the same rename all port 80  to 999 as I have shown.

root@Bodhidarmar:/etc/apache2# grep 999 ports.conf
NameVirtualHost *:999
root@Bodhidarmar:/etc/apache2# grep 999 sites-available/default
less-than VirtualHost *:999 grt-than

Now access http://IP-address:999

Saturday, May 5, 2012

Making ISO file on Command Line

To make a ISO file on the command line is very simple.

bala@bala-lappi:~$ mkisofs -V PDF -J -R -o pdf.iso PDF/
I: -input-charset not specified, using utf-8 (detected in locale settings)
Total translation table size: 0
Total rockridge attributes bytes: 454
Total directory bytes: 670
Path table size(bytes): 10
Max brk space used 0
814 extents written (1 MB)

bala@bala-lappi:~$ ls -ltrh pdf.iso
-rw-r--r-- 1 bala bala 1.6M 2012-05-05 12:20 pdf.iso
bala@bala-lappi:~$ file pdf.iso
pdf.iso: # ISO 9660 CD-ROM filesystem data 'PDF                       

Now to record that to a disk on cmd link, -v for verbose    '
bala@bala-lappi:~$ cdrecord -v -eject pdf.iso