Cygwin

From GanjaLinux

Jump to: navigation, search

http://www.cygwin.com/cygwin-ug-net/using-specialnames.html

Contents

Shell

bash

$ cat ~/.bash_profile
# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

export SHELL=/bin/bash
export PATH=/usr/X11R6/bin:$PATH

export PS1="$HOSTNAME:\w$ "

if [ -n ${DISPLAY} ]; then
    export DISPLAY=localhost:0.0
fi

if [ ! -n "${TERM}" ]; then
    TERM=cygwin
fi

alias ls="ls -F --color=auto"
alias la="ls -aF"
alias ll="ls -l"

Applications

cdrtools

creating iso
$ /opt/schily/bin/mkisofs -J -R -r -v -o /scratch/myaccountname.iso -V volume_name /directory/to/be/copied/
burning
$ /opt/schily/bin/cdrecord.exe -v dev=1,0,0 speed=4 blank=fast padsize=63s -pad -v -eject driveropts=burnfree -dao
Cdrecord-ProDVD-Clone 2.01.01a21 (i686-pc-cygwin) Copyright (C) 1995-2006 Jörg S
chilling
TOC Type: 1 = CD-ROM
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Using libscg transport code version 'schily-SPTI-scsi-wnt.c-1.46'
Driveropts: 'burnfree'
SCSI buffer size: 64512
atapi: -1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVD-RW GWA-4040N'
Revision       : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-RW
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-RW sequential overwrite
Profile: DVD-RW restricted overwrite
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW (current)
Profile: CD-R
Profile: CD-ROM
Feature: 'Profile List' (current) (persistent)
Feature: 'Core' (current) (persistent)
Feature: 'Morphing' (current) (persistent)
Feature: 'Removable Medium' (current) (persistent)
Feature: 'Write Protect'
Feature: 'Random Readable' (current)
Feature: 'Multi Read' (current)
Feature: 'CD Read' (current)
Feature: 'DVD Read'
Feature: 'Random Writable'
Feature: 'Incremental Streaming Writable' (current)
Feature: 'Formattable' (current)
Feature: 'Restricted Overwrite'
Feature: 'DVD+RW'
Feature: 'DVD+R'
Feature: 'Rigid Restricted Overwrite'
Feature: 'CD Track at Once' (current)
Feature: 'CD Mastering' (current)
Feature: 'DVD-R/-RW Write'
Feature: 'Power Management' (current) (persistent)
Feature: 'CD Audio analog play'
Feature: 'Time-out' (current) (persistent)
Feature: 'DVD-CSS'
Feature: 'Real Time Streaming'
Feature: 'Logical Unit Serial Number' (current) (persistent)    Serial: '06426>+
>80O0'
Feature: 'Disk Control Blocks'
Feature: 'DVD CPRM'
Drive current speed: 10
Drive default speed: 10
Drive max speed    : 10
Selected speed     : 4
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1308672 = 1278 KB
Drive pbuf size: 655360 = 640 KB
 01 00 00 01 00 00 00 00
 01 AA 01 01 00 00 00 00
Track 1 start -150
 01 00 A0 00 00 00 00 01 00 00 00 00
 01 00 A1 00 00 00 00 00 00 00 00 00
 01 00 A2 00 00 00 00 00 00 00 00 00
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 2
  Reference speed: 6
Disk Is not unrestricted
Disk Is erasable
  Disk sub type: High speed Rewritable (CAV) media (1)
  ATIP start of lead in:  -12900 (97:10/00)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low:  4 1T speed high: 10
  2T speed low:  4 2T speed high:  0 (reserved val  6)
  power mult factor: 1 5
  recommended erase/write power: 5
  A1 values: 24 1A D8
  A2 values: 26 B2 48
Disk type:    unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Manufacturer is unknown because of the orange forum embargo.
As the orange forum likes to get money for recent information,
it may be that this media does not use illegal manufacturer coding.

    Capacity  Blklen/Sparesz.  Type
      335921             2048  Formatted Media
      295232             2048  Reserved (0)
      295232               32  Reserved (0)
Starting to write CD/DVD at speed 4 in real BLANK mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Performing OPC...
Blanking PMA, TOC, pregap
Blanking time:   49.344s
verifying md5sum
$ md5sum /dev/scd0

netselect

  • status: Unported - this program has not been ported to cygwin.
$ wget http://alumnit.ca/~apenwarr/netselect/netselect-0.3.tar.gz
$ tar xvzf netselect-0.3.tar.gz
$ cd netselect
$ make
gcc -O2 -Wall -I. -g   -c -o netselect.o netselect.c
gcc -g -o netselect netselect.o
Info: resolving _optarg by linking to __imp__optarg (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
sudo chown root netselect && sudo chmod u+s netselect
/bin/sh: sudo: command not found
make: [netselect] Error 127 (ignored)
$ make install
install -d /usr/local/bin
#-install -d /usr/local/man/man8
install -s -o root -g root -m 4755 \
                netselect /usr/local/bin
install: invalid user `root'
make: *** [install] Error 1
  • ignore sudo and root errors (cygwin). FIXME
$ ./netselect.exe
Usage: netselect [-v] [-vv] [-t min_tries] [-m max_ttl] host [host...]
$ ./netselect.exe -vv slamd64.he.net nymphomatic.org ftp.scarlet.be mirror.vbfx.com anorien.warwick.ac.uk wahlfaelschung.de heanet.ie ditalinux.it slackware.pl darkstar.ist.utl.pt ftp.x86.sk xcp.kiev.ua
netselect: unknown host ditalinux.it
Running netselect to choose 1 out of 12 addresses.

slamd64.he.net                        9999 ms  30 hops    0% ok
nymphomatic.org                       9999 ms  30 hops    0% ok
ftp.scarlet.be                        9999 ms  30 hops    0% ok
mirror.vbfx.com                       9999 ms  30 hops    0% ok
anorien.warwick.ac.uk                 9999 ms  30 hops    0% ok
wahlfaelschung.de                     9999 ms  30 hops    0% ok
slackware.pl                          9999 ms  30 hops    0% ok
heanet.ie                             9999 ms  30 hops    0% ok
darkstar.ist.utl.pt                   9999 ms  30 hops    0% ok
ftp.x86.sk                            9999 ms  30 hops    0% ok
xcp.kiev.ua                           9999 ms  30 hops    0% ok
ditalinux.it                          9999 ms  30 hops    0% ok
Personal tools