Sunday, May 30, 2010
installing debian using local file server
1. Use get to copy ftp.debian.org/debian/lists/lend
Sunday, May 2, 2010
CREATING HD VIDEOS USING SONY CAMCORDER
Info #2 : The video output from the analog cables (component) is of the interlaced type (denoted by initial i. With resolution of ------
The video output from HDMI is non interlaced type (progressive scan denoted by initial p)
Camcorder send info in SD if the analog input is used, even if content is recorded in HD.
HD content is only delivered through HDMI.
Info# 3: Burning and playing HD content on DVD.
Camcorder records in MPEG4 AVC/H.264 AVCHD format. HD content can be burned by connecting external Sony DVD writer capable of AVCHD format .The connection between DVD writer and camcorder is via USB cable supplied with camcorder. Note that l DVD writers are not capable of playing HD content. HD content can only be played using a BD player. This method just enables creation of HD content on DVD media. Some DVD players may not eject such HD-DVD.
Info # 4: Recording modes, bit rate , avg file size and max duration possible:
S.No | Camcorder Format | Codec & bit rate | Max duration | Avg file size/hr |
1. | HD FH | AVC HD 16Mbps | 9 h 40 m | 8.27 GB |
2. | HD HQ | AVC HD 9Mbps | 19 h 40 m | 4 GB |
3. | HD SP | AVC HD 7Mbps | 24 h | 3.3 GB |
4. | HD LP | AVC HD 5Mbps | 32 h | 2.5 GB |
5. | SD HQ | MPG2 9Mbps | 19h 40m | 8.27 GB |
6. | SD SP | MPG2 6Mbps | 29h 10m | 2.8 GB |
7. | SD LP | MPG2 3Mbps | 56 h | 1.4 GB |
Info : Exporting video to computer
Use PMB to export movies and pics from camcorder . Its quite intuitive interface and can be done easily. Software is smart, and movies once imported to the computer are not imported again.
Info: Exporting video to hard disk
Only HD movies can be exported back to camcorder. Another reason for recording in HD J. Again, the PMB interface is intuitive and can be done easily.
Info: converting videos to wmv and mpg2
Can be done through PMB very easily.
Info: Playing the HD video on PC
Can be done through PMB .Splash player also plays the MPEG4 AVC/H.264 AVCHD created by sony camcorder fairly well. Splash player has fullscreen mode which is not there in the PMB interface.
Info: Burning HD DVD using Camcorder one touch button
Connect camcorder to computer using USB cable. Insert a DVD in the computer. Simply pressing the DISC BURN button on camcorder burns the HD video and photos to the DVD. But, the DVD so created can only be readable in blu ray players or Play Station3 not ordinary DVD players.
Info: Burning SD-DVD from HD content in the camcorder.
Use PMB software to create SD-DVD from the transferred HD content on computer.
Info: Playing HD disc on computer
HD DVD discs can be played using the AVCHD player included with PMB software.
DEBIAN ON SGI O2
INSTALLATION OF DEBIAN LINUX ON O2
O2 work station Technical Details
General information
The Silicon Graphics O2, introduced in 1996, is the successor to the Indy workstation. It comes in two flavours: the R5000/RM5271/RM7000 and the R10000/R12000. The former has space for two harddrives and the latter only for one, due to the size of the CPU heatsink. It is possible to put a R10000/R12000 into some R5k O2's by removing the metal separator between the mainboard and the harddrives, however, on some earlier models the separator is part of the chassis and cannot be removed short of cutting it out with a hacksaw.
The O2 was re-introduced with slight modifications as the O2+ in August 2001; the case colours were changed, a DVDROM came as standard, the serial port controller was improved, and the baseline CPU was replaced with the R7000/350MHz, though a recall of some early versions of this CPU is thought to have led to the O2's end of presence in the product line, afterwhich it was not replaced (the Fuel, released in January 2002, was not a replacement for O2; Fuel was intended purely to be a single-CPU mid-range system).
System architecture
The O2 features a proprietary high-bandwidth Unified Memory Architecture (UMA) that connects the various system components. A PCI bus is bridged onto the UMA with one slot available. It has a designer case and an internal modular construction. It has space for two SCSI drives mounted on special sleds (1 in the later R10000/R12000 models) and an optional video capture / sound cassette mounted on the far left side. Further information on the design and construction of the O2 can be found in SGI service manuals on Techpubs. Detailed breakdown pictures and an IRIX hinv dump can be found here.
O2: 32 bit or 64 bit
R5000 is a real 64bit processor. The O2 under IRIX ran as a 32bit, however under Linux, we use a 64bit kernel, but there is a catch: The IP32 PROM can't boot true 64bit kernels (hereby referred to as n64. So, we use a hack that's found in gcc/binutils called the o64 ABI, which is defined as the default 32bit ABI (o32) "extended" to 64bits. This builds an object file that looks like a 32bit file to the "file" utility, but really contains 64bit code.
CPU options
The O2 comes in two distinct CPU flavours; the low-end MIPS 180-350 MHz R5000/R7000 based units and the higher-end 150-400 MHz R10000/R12000 based units. The 200 MHz R5000 CPUs with 1 MB L2-cache are generally noticeably faster than the 180 MHz R5000s with only 512 KB L2-cache. Also of note is that there is no 300 Mhz R5000 CPU, the O2 will incorrectly report the RM5200 CPU as an R5000.
CPU Version: | Clock Speed: | 2nd Level Cache: |
R5000PC | 180 MHz | - |
R5000SC | 180 MHz | 512 KB |
R5000SC | 200 MHz | 1 MB |
R5200SC | 300 MHz | 1 MB |
RM7000A | 350 MHz | 256 KB (+1 MB tertiary) |
R10000SC | 150, 175, 195, 225, 250 MHz | 1 MB |
R12000SC | 270, 300 MHz | 1 MB |
R12000SC | 400 MHz | 2 MB |
< name="Memory_subsystem">Memory subsystem
The motherboard has 8 proprietary 278-pin (139 per side) slots on the motherboard, accepting 4 paired sets of memory, referred to and sold as kits. The individual SDRAM DIMM modules come in 16 MB, 32 MB, 64 MB, and 128 MB sizes. The banks must be filled in order, and larger modules should be put in first. The O2 is expandable to 1 GB using 4 2x128 MB kits.
Original SGI DIMMs are either single-sided (SS) with memory chips on only one side of the module or double-sided (DS), and come color-coded to assist you in identifying what is installed. 3rd party DIMMs may or may not follow these conventions. Knowing the current memory configuration is important as DIMMs must be installed according to a number of specific rules. These rules follow the table in this section.
Size | Color Code 1 | Color Code 2 | SS/DS | Type |
16 MB | Purple | - | SS | A |
32 MB | Yellow | - | DS | A |
64 MB | Green | White | SS | B |
128 MB | Silver | - | DS | A |
128 MB | Silver | White | DS | B |
- The DIMMs in slots 1 and 2 make up Bank A. DIMMs in slots 3 and 4 make up Bank B, and so on.
- A bank of two slots must have a DIMM in each slot or be empty (except for slots 1 and 2, Bank A, which must always be populated.)
- The two DIMMs in any bank must be of the same size and type.
- The largest size DIMMs must be in Bank A.
- DIMM banks must be filled sequentially, beginning with bank A.
- Equal or smaller size DIMMs must be in Bank B, and so on.
- Do not skip banks, or the memory will not be recognized.
To install high density (128 MB) DIMMs, PROM revision 4.4 or higher is required. With older PROM revisions maximum memory is 256 MB. For IRIX 6.3 there are patches to upgrade the PROM, for IRIX 6.5 PROM images come with the operating system and overlays CD sets.
Graphics subsystem
- The CRM chipset that SGI developed for the O2, shares OpenGL calculations between CPU and chip. Due to the unified memory architecture, framebuffer memory comes from main memory, and there is effectively an 'unlimited' amount of texture memory. Another useful feature is that any incoming video data from the Audio/Video option can be used directly as an OpenGL texture without having to perform a copy or move.
- ICE (Image Compression Engine -- a dedicated 64-bit R4000-based processor containing a 128-bit SIMD unit running at 66 MHz, which is used to accelerate various image and video operations)
- OpenGL 1.1 + ARB image extensions
O2 Video System
SGI offered 2 video options for the O2/O2+: the AV1 interface and the AV2 interface.
- The AV1 interface supports Composite and SVideo (Y/C) (both analog), and Digital I/O via the Camera/Digital Video port. The analog I/O jacks are for use with standard analog video equipment, supporting both PAL and NTSC video formats. There are a variety of controls available that allow the user or programmer to set various parameters used for the decoding and encoding of the video signals. The digital input of the AV1 is for use with the O2 Digital System Camera, or can be connected to an optional digital video input and output adapter to interface to standard SMPTE259M serial digital video devices.
- The AV2 interface supports two ITU-601 (CCIR-601) serial digital video
The Debian MIPS team recommends net booting approach.
Checking if dhcp and tftp services are running:
should return some entry in sbin directory named dhcp along with the process id.
If the service is not running:-
# /etc/init.d/dhcpd3-server restart
option tftp-server-name "192.168.2.104";
hardware ethernet 08:00:69:0E:94:CF;
> setenv netaddr 192.168.2.106
Issues encountered while netbooting (given in sequence as encountered):
(a) After giving bootp(), returns error, unable to find the boot file.
Based on your language, you are probably located in one of these
Choose a country, territory or area:
Configure the network... dhcp should work automagically based on the previous steps.
Please enter the hostname for this system.
The hostname is a single word that identifies your system to the
network. If you don't know what your hostname should be, consult your
network administrator. If you are setting up your own home network,
you can make something up here.
o2___________________________________________________________________
The domain name is the part of your Internet address to the right of
your host name. It is often something that ends in .com, .net, .edu,
or .org. If you are setting up a home network, you can make
something up, but make sure you use the same domain name on all your
somedomain.bogus_____________________________________________________
The goal is to find a mirror of the Debian archive that is close to
you on the network -- be aware that nearby countries, or even your
own, may not be the best choice.
Debian archive mirror country:
Please select a Debian archive mirror. You should use a mirror in
your country or region if you do not know which mirror has the best
Usually, ftp.<your country code>.debian.org is a good choice.
If you need to use a HTTP proxy to access the outside world, enter
the proxy information here. Otherwise, leave this blank.
The proxy information should be given in the standard form of
"http://[[user][:pass]@]host[:port]/"
HTTP proxy information (blank for none):
___________________________________________________________________
All relevant modules are compiled in. Select Yes to continue without loading modules.
No kernel modules were found. This probably is due to a mismatch
between the kernel used by this version of the installer and the
kernel version available in the archive.
If you're installing from a mirror, you can work around this problem
by choosing to install a different version of Debian. The install
will probably fail to work if you continue without kernel modules.
Continue the install without loading kernel modules?
Select No to continue. Note: You will only need to do this if you do not see this screen.
This partitioner doesn't have information about the default type of
+ the partition tables on your architecture. Please send an e-mail
message to debian-boot@lists.debian.org with information.
Please note that if the type of the partition table is unsupported by
libparted, then this partitioner will not work properly.
This is the main menu for the Debian installer.
Choose the next step in the install process:
Choose a mirror of the Debian archive #
Download installer components #
Configure and mount partitions #
Select the drive you want to partition.
Please choose one of the listed disks, to create partitions on it.
/dev/scsi/host0/bus0/target1/lun0/disc (SGI SEAGATE ST34572W/ 434
dd <space> if=/dev/zero <space> of=/dev/sda <space> count=1
will return : 1 + 0 records in, 1 + 0 records out
now, return to previous shell by pressing Alt + F1
Disk /dev/scsi/host0/bus0/target1/lun0/disc (SGI disk label): 141 heads, 62 sectors, 1016 cylinders
Units = cylinders of 8742 * 512 bytes
Pt# Device Info Start End Sectors Id System
1: /dev/scsi/host0/bus0/target1/lun0/part1 boot 18 985 8462256 83 Linux native
2: /dev/scsi/host0/bus0/target1/lun0/part2 swap 986 1015 262260 82 Linux swap
9: /dev/scsi/host0/bus0/target1/lun0/part3 0 17 157356 0 SGI volhdr
11: /dev/scsi/host0/bus0/target1/lun0/part4 0 1015 8881872 6 SGI volume
Expert command (m for help): g
Building a new SGI disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content will be unrecoverably lost.
Expert command (m for help): r
Disk /dev/scsi/host0/bus0/target1/lun0/disc (SGI disk label): 141 heads, 62 sectors, 1016 cylinders
Units = cylinders of 8742 * 512 bytes
Pt# Device Info Start End Sectors Id System
9: /dev/scsi/host0/bus0/target1/lun0/part1 0 4 43710 0 SGI volhdr
11: /dev/scsi/host0/bus0/target1/lun0/part2 0 1015 8881872 6 SGI volume
First cylinder (0-1015, default 0):
Last cylinder (0-1015, default 1015): 1
Disk /dev/scsi/host0/bus0/target1/lun0/disc (SGI disk label): 141 heads, 62 sectors, 1016 cylinders
Units = cylinders of 8742 * 512 bytes
Pt# Device Info Start End Sectors Id System
9: /dev/scsi/host0/bus0/target1/lun0/part1 0 1 17484 0 SGI volhdr
11: /dev/scsi/host0/bus0/target1/lun0/part2 0 1015 8881872 6 SGI volume
First cylinder (2-1015, default 2):
Last cylinder (2-1015, default 1015): 985
First cylinder (986-1015, default 986):
Last cylinder (986-1015, default 1015):
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)
Disk /dev/scsi/host0/bus0/target1/lun0/disc (SGI disk label): 141 heads, 62 sectors, 1016 cylinders
Units = cylinders of 8742 * 512 bytes
Pt# Device Info Start End Sectors Id System
1: /dev/scsi/host0/bus0/target1/lun0/part1 boot 2 985 8602128 83 Linux native
2: /dev/scsi/host0/bus0/target1/lun0/part2 swap 986 1015 262260 82 Linux swap
9: /dev/scsi/host0/bus0/target1/lun0/part3 0 1 17484 0 SGI volhdr
11: /dev/scsi/host0/bus0/target1/lun0/part4 0 1015 8881872 6 SGI volume
Please choose one of the listed disks, to create partitions on it.
/dev/scsi/host0/bus0/target1/lun0/disc (SGI SEAGATE ST34572W/ 434
These are the partitions that were detected in your system. Please
select a partition to configure. No actual changes will be made until
you select "Finish". If you select "Abort", no changes will be made.
The information shown is, in order: device name, size, file system,
SCSI1 (0,1,0) part. 1 4.0 GiB n/a
SCSI1 (0,1,0) part. 2 128 MiB n/a
This partition does not seem to have a file system. You can create a
file system or swap space on it.
Action on /dev/scsi/host0/bus0/target1/lun0/part1:
When a partition is mounted, it is available to the users of the
system. You always need a root ("/") partition, and it's often good
to have a separate partition for /home.
Mount point for /dev/scsi/host0/bus0/target1/lun0/part1:
These are the partitions that were detected in your system. Please
select a partition to configure. No actual changes will be made until
you select "Finish". If you select "Abort", no changes will be made.
The information shown is, in order: device name, size, file system,
SCSI1 (0,1,0) part. 1 4.0 GiB ext3 /
SCSI1 (0,1,0) part. 2 128 MiB n/a
This partition does not seem to have a file system. You can create a
file system or swap space on it.
Action on /dev/scsi/host0/bus0/target1/lun0/part2:
These are the partitions that were detected in your system. Please
select a partition to configure. No actual changes will be made until
you select "Finish". If you select "Abort", no changes will be made.
The information shown is, in order: device name, size, file system,
SCSI1 (0,1,0) part. 1 4.0 GiB ext3 /
SCSI1 (0,1,0) part. 2 128 MiB swap
Select Yes to create and mount the new filesystems.
File systems will be created and partitions mounted.
WARNING: This will destroy all data on the partitions you have
Ready to create file systems and mount partitions?
Since the partitions have already been mounted, you cannot do any
Do you want to unmount the partitions so you can make changes?
After partitioning, the base system should install over the network.
No boot loader has been installed, either because you chose not to or
because your specific architecture doesn't support a boot loader yet.
You will need to boot manually with the /vmlinux kernel on partition
/dev/sda1 and root=/dev/sda1 passed as kernel argument.
If you get the above message saying no boot loader was installed, select Go Back
Installation is complete, so it is time to boot into your new Debian
system. Make sure to remove the installation media (CD-ROM,
floppies), so that your system boots from the disk to which Debian
Install the bootloader manually. Select Excute a shell
This is the main menu for the Debian installer.
Choose the next step in the install process:
Configure and mount partitions #
Continue without boot loader #
After this message, you will be running "ash", a Bourne-shell clone.
The root filesystem is a RAM disk. The hard disk file systems are
mounted on "/target". The editor available to you is nano. It's very
small and easy to figure out. To get an idea of what Unix utilities
are available to you, use the "help" command.
Use the "exit" command to return to the installation menu.
BusyBox v1.00-pre10 (Debian 20040623-1) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
Filesystem 1k-blocks Used Available Use% Mounted on
tmpfs 102400 20736 81664 20% /
/dev/scsi/host0/bus0/target1/lun0/part1 4143076 253836 3678780 6% /target
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
sh-2.05b# apt-get install arcboot
The default /dev/sda should be fine.
Arcboot must be put into the volume header of a disk with a SGI
disklabel. Usually the volume header of /dev/sda is used. Please give
the device name of the disk you want to put arcboot onto.
/dev/sda_______________________________________________________________
Setting PROM variables for Arcboot
If this is the first Linux installation on this machine, or if the #
hard drives have been repartitioned, some variables need to be set in #
the PROM before the system is able to boot normally. #
At the end of this installation stage, the system will reboot. After #
this, enter the command monitor from the "Stop for Maintenance" #
option, and enter the following commands: #
setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8) #
setenv OSLoadPartition scsi(0)disk(1)rdisk(0)partition(0) #
You will only need to do this once. Afterwards, enter the "boot" #
command or reboot the system to proceed to the next Debian #
Otherwise, if you are having to install arcboot manually, continue on...
Selecting previously deselected package arcboot.
(Reading database ... 8492 files and directories currently installed.)
Unpacking arcboot (from .../arcboot_0.3.8.6_mips.deb) ...
Setting up arcboot (0.3.8.6) ...
Putting arcboot.ip32 into the volume header of /dev/sda...done.
Take a look at /etc/arcboot.conf and take note of the label= line.
sh-2.05b# cat /etc/arcboot.conf
Select Finish the installation
This is the main menu for the Debian installer.
Choose the next step in the install process:
Choose a mirror of the Debian archive #
Download installer components #
Configure and mount partitions #
Continue without boot loader #
Installation is complete, so it is time to boot into your new Debian
system. Make sure to remove the installation media (CD-ROM,
floppies), so that your system boots from the disk to which Debian
Running power-on diagnostics...
To perform system maintenance instead, press <Esc>
Command Monitor. Type "exit" to return to the menu.
> setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8)
> setenv OSLoadPartition scsi(0)disk(1)rdisk(0)partition(0)
# XF86Config-4 (XFree86 X Window System server configuration file)
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
Option "Emulate3Buttons" "false"
Option "Emulate3Buttons" "false"
Identifier "Generic Video Card"
Linux DEbian useful commands
The network manager in debian is the GUI based application for configuring networks.
To Stop Network Manager :-
nm-applet --sm -disable
To see the available interfaces
ifconfig
To make an interface up or down:-
ifconfig eth1 up/down
To configure network interface:-
nano /etc/network/interfaces
if you want to configure an interface as static:-
auto eth0
iface eth0 inet static
address <ip address>
netmask 255.255.255.0
gateway 10.205.15.1
broadcast 10.205.15.255
network 10.205.15.0
if you want to configure an interface as dhcp:-
auto eth0
iface eth0 inet dhcp
To restart networking from command line after editing interfaces file:-
/etc/init.d/networking restart
Configure Nameservers
Nano /etc/resolv.conf
To include proxy server information
#export http_proxy="10.205.3.101:8080"
#export ftp_proxy="10.205.3.101:8080"
To include proxy server information for apt to update packages
Create a new file called proxy
#nano /etc/apt/apt.conf.d/proxy
Type the following info in this file
Acquire::http::Proxy <space> "http://10.205.3.101:8080";
Save and close the file
To install ssh and SFTP services
Apt-get install ssh
Activate sftp in sshd-config
Nano /usr/lib/openssh/sftp-server
To install Apache
Apt-get install apache2
Default webroot of Apache is /var/www.
To change default webroot to some other path
Nano /etc/apache2/sites-available/default
And change /var/www to whatever path you wish
Setting up DHCP Server
Apt-get install dhcp3-server
After initial setup, the dhcp server may not turn on, then, edit the dhcpd.conf as shown below and uncomment the lines in this file as per your choice. Then, try starting the server
To configure DHCP server
Nano /etc/dhcp3/dhcpd.conf
To Start/Stop/Restart DHCP Server
#/etc/init.d/dhcp3-server start/stop/restart
Setting up TFTP server
#apt-get install tftpd-hpa
To configure TFTP boot file path (default /var/lib/tftpboot), we have to use the internet superserver configuration file inetd.conf, scroll down to the tftp entries
#nano /etc/inetd.conf
To switch on TFTP daemon, change the run daemon from "no" to "yes"
# nano /etc/default/tftpd-hpa
To Start/Stop/Restart TFTP Server
#/etc/init.d/tftpd-hpa start
To remove a package
#apt-get<space> remove <space> <package_name>
To remove a package along with all associated config files
#apt-get <space> --purge <space> remove <space> <package_name>
To Stop GNOME Display Manager (I.e., to unload X)
# update -rc.d <space> -f <space>gdm <space> remove
TO Load GDM on boot
# update -rc.d <space> -f <space>gdm <space> defaults
I made changes to some critical system files, but, upon reboot, system does not boot properly and gives Kernel Panic. How do I undo the changes?
- Remove the disk
- Insert it into a working system
- Mount the disk to a folder in the working system
- Chroot into the path as follows
# chroot /test /bin/bash
- CD <space> ~
- Then, undo changes to any files and save
Database Path for postgre sql is /var/lib/postgres/data
Connecting and External SCSI hard disk to workstation
- Zero fill the entire disk to remove SGI partition or any other partition
dd if=/dev/zero of=/dev/sdb count=1
- fdisk /dev/sdb (to partition hard drive)
- Create primary partition # 1
- Start cylinder=1 (default)
- Last cylinder=last cyl (default)
- Write changes to disk (w)
- Verify that the partition type is 83 (Linux) using p command
- The HDD would be visible as single partition /dev/sdb1
- Format an ext3 file system
# mke2fs <space> -j <space> /dev/sdb1
- Mount the disk
# mount /dev/sdb1 /test