241
Software / Re:Raspberry Pi 2 jako fotorámeček
« kdy: 14. 10. 2015, 16:21:03 »Kdysi jsem na routeru mel nejaky program, ktery ne stroji bez X dokazal zobrazit obrazkyTo bych si rad vyzkousel.
Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.
Kdysi jsem na routeru mel nejaky program, ktery ne stroji bez X dokazal zobrazit obrazkyTo bych si rad vyzkousel.
dvd+rw-format /dev/sr0
growisofs -speed=1 -Z /dev/sr0=DISC.udftruncate -s 25GB MYBLURAY-DISC.udf
mkudffs MYBLURAY-DISC.udf
mkudffs --vid="My Label" MYBLURAY-DISC.udf
sudo losetup -f MYBLURAY-DISC.udf
sudo mount /dev/loop0 /mnt/MYBLURAY-DISC
# ... naplneni daty ...
sudo umount /dev/loop0
sudo losetup -d /dev/loop0sudo growisofs -speed=1 -use-the-force-luke=spare:none -Z /dev/sr0=/home/martin/MYBLURAY-DISC.udf
Máš posledni firmware? Stíhá ti USB sběrnice? Co na to iostat? Máš na palidlo zvláštní USB port? Proč nicis média a nezkusis nejdříve simulaci? Nediv se že formátování projde když se neprenasi krom control commandu skoro žádná data. Zkusil si pálit na nejnizsi rychlosti? Ach joooooo... připadá mi ze palis poprvy.Firmware jsem zatim neresil - ve Win to fungovalo.
# /opt/schily/bin/cdrecord -v blank=fast dev=/dev/sr0
Cdrecord-ProDVD-ProBD-Clone 3.01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2015 Joerg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.9'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identifikation : 'BD-MLT UJ240AS '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-RW
Profile: BD-R sequential recording
Profile: BD-R random recording
Profile: BD-RE
Profile: BD-ROM
Profile: DVD-RAM
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-RW restricted overwrite
Profile: DVD-RW sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW (current)
Profile: CD-R
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1179648 = 1152 KB
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Reference speed: 2
Disk Is not unrestricted
Disk Is erasable
ATIP start of lead in: -11635 (97:26/65)
ATIP start of lead out: 112349 (24:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 0 (reserved val 5) 2T speed high: 0 (reserved val 12)
power mult factor: 7 5
recommended erase/write power: 3
A1 values: 02 7A B0
A2 values: 5C F8 36
Disk type: Phase change
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Capacity Blklen/Sparesz. Format-type Type
112349 2048 0x00 Unformated or Blank Media
112349 2048 0x00 Reserved (0)
112349 256 0x10 Reserved (0)
112349 256 0x12 Reserved (0)
resid: 60
Starting to write CD/DVD/BD 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: 0.005s (00:00:00.005)
# /opt/schily/bin/cdrecord -minfo
Cdrecord-ProDVD-ProBD-Clone 3.01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2015 Joerg Schilling
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=7,0,0.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identifikation : 'BD-MLT UJ240AS '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96P RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Mounted media class: CD
Mounted media type: CD-RW
Disk Is erasable
data type: standard
disk status: empty
session status: empty
BG format status: none
first track: 1
number of sessions: 1
first track in last sess: 1
last track in last sess: 1
Disk Is not unrestricted
Disk type: undefined
last start of lead in: -11635
last start of lead out: 112349
OPC table:
Track Sess Type Start Addr End Addr Size
==============================================
1 1 Blank 0 112346 112347
Next writable address: 0
Remaining writable size: 112347
# cdrecord -v -dao driveropts=burnfree speed=4 dev=/dev/sr0 /media/data/debian-update-8.2.0-i386-CD-1.iso
TOC Type: 1 = CD-ROM
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
Driveropts: 'burnfree'
SCSI buffer size: 64512
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identification : 'BD-MLT UJ240AS '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x000A (CD-RW)
Profile: 0x0041 (BD-R sequential recording)
Profile: 0x0042 (BD-R random recording)
Profile: 0x0043 (BD-RE)
Profile: 0x0040 (BD-ROM)
Profile: 0x0012 (DVD-RAM)
Profile: 0x002B (DVD+R/DL)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW) (current)
Profile: 0x0009 (CD-R)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1179648 = 1152 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size : 12582912 = 12288 KB
Track 01: data 138 MB
Total size: 159 MB (15:47.73) = 71080 sectors
Lout start: 159 MB (15:49/55) = 71080 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11635 (97:26/65)
ATIP start of lead out: 112349 (24:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 0 (reserved val 5) 2T speed high: 0 (reserved val 12)
power mult factor: 7 5
recommended erase/write power: 3
A1 values: 02 7A B0
A2 values: 5C F8 36
Disk type: Phase change
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 112349 Blocks current: 112349 Blocks remaining: 41269
resid: 60
Speed set to 706 KB/s
Starting to write CD/DVD at speed 4.0 in real SAO mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
resid: 60
resid: 60
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
Errno: 5 (Input/output error), write_g1 scsi sendcmd: no error
CDB: 2A 00 FF FF FF 6A 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 02 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x21 Qual 0x02 (invalid address for write) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 63488
cmd finished after 0.002s timeout 200s
write track pad data: error after 0 bytes
BFree: 1070 K BSize: 1152 K
Starting new track at sector: 0
Track 01: 0 of 138 MB written.Errno: 5 (Input/output error), write_g1 scsi sendcmd: no error
CDB: 2A 00 00 00 00 00 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 02 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x21 Qual 0x02 (invalid address for write) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 63488
cmd finished after 0.001s timeout 200s
write track data: error after 0 bytes
wodim: The current problem looks like a buffer underrun.
wodim: It looks like 'driveropts=burnfree' does not work for this drive.
wodim: Please report.
wodim: Make sure that you are root, enable DMA and check your HW/OS set up.
Writing time: 47.294s
Average write speed 21.8x.
Fixating...
Fixating time: 1.584s
wodim: fifo had 191 puts and 1 gets.
wodim: fifo was 0 times empty and 0 times full, min fill was 100%.
# /opt/schily/bin/cdrecord -minfo
Cdrecord-ProDVD-ProBD-Clone 3.01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2015 Joerg Schilling
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=7,0,0.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identifikation : 'BD-MLT UJ240AS '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96P RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Mounted media class: CD
Mounted media type: CD-RW
Disk Is erasable
data type: standard
disk status: complete
session status: complete
BG format status: none
first track: 1
number of sessions: 1
first track in last sess: 1
last track in last sess: 1
Disk Is not unrestricted
Disk type: CD-DA or CD-ROM
Disk id: 0xBD51E
last start of lead in: 716730
last start of lead out: 1166730
OPC table:
Track Sess Type Start Addr End Addr Size
==============================================
1 1 Data 0 71077 71078
Last session start address: 0
Last session leadout start address: 71078
sudo cdrecord -v -dao driveropts=burnfree speed=1 dev=/dev/sr0 DISC.udfOkamzite po zacatku doslo buffer underrun a dalsi medium pryc...$ /opt/schily/bin/cdrecord dev=/dev/sr0 -checkdrive
Cdrecord-ProDVD-ProBD-Clone 3.01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2015 Joerg Schilling
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.9'.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identifikation : 'BD-MLT UJ240AS '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
cdrecord: Cannot load media with this drive!
cdrecord: Try to load media by hand.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96P RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.# lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 17.1 Rebecca
Release: 17.1
Codename: rebecca
# uname -a
Linux martin 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
s tim fullhd videem sem nepochopil, to chces zaznamenavat lokalne plochu a pak testovat prenosem videa chovani ruzneho reseni vzdalenych ploch ?Puvodne jsem to tak myslel, ale asi to nepujde.nevim jak RDP ani jak ostatni servery VNC, ale x11vnc na server strane posila jen zmeny x11 obrazu, provadi cache oken, jakmile pustis fullhd video tak uz tohle vsechno padne a bude se prenaset full obraz
budu se opakovat, ale:
pouzivam VNC tunelovane pres SSH a pripojuju se na x11vnc ktere umi sdilet aktualni bezici session...
btw: neni to tvuj pripad, ale pripojuju se i na pc kde neni pripojen monitor, takze tam mi Xorg bezi na video driveru "dummy" ktery je pro to urcen (balik xserver-xorg-video-dummy)
~~~~~~~
tohle reseni je opravdu idealni, bezpecne a rychle, jediny duvod kdy bych pouzil jine je, pokud bych chtel samostatne vzdalene okna, nebo vytvaret oddelene session od te lokalni, pripadne chtel hrat remote hry/3d aplikace/fullhd videa a podobne...
prijde mi proste uchylne nepouzit nativni linux VNC reseni a ohejbat windouzoidni RDP, nebo sahat po uzavrenejch/placenejch reseni ktere maji tisice vlastnosti co nevyuziju, pokud potrebuju jedine... "vzdalene mirrorovat lokalni plochu"
RDP has 3 security levels between the RDP server and RDP client. Low, medium and high. Low is 40 bit, data from the client to server is encrypted, medium is 40 bit encryption both ways and high is 128 bit encryption both ways. Xrdp currently supports all 3 encryption levels via the xrdp.ini file. RSA key exchange is used with both client and server randoms to establish the RC4 keys before the client connect.
RDP uses RSA key encryption. RDP uses SHA1 and MD5 hash algorithms. RDP uses RC4 cypher algorithm.
The public key is sent to the client in the MCS data. The public key containers the exponent and modulus and a signature. Originally the details of how the signature was generated was a mystery. There is now a utility for creating a new rsakeys.ini file in xrdp.
Low, medium and high encryption levels. The xrdp.ini files provides a setting for the encryption level. It the crypt_level setting in the globals section. Valid setting are 'low,' 'medium,' and 'high.' Low is 40 bit client to server encryption. Medium is 40 bit two way encryption. High is 128 bit two way encryption.
RSA key generation. xrdp comes with a predefined RSA public and private key. To be completely secure, you should generate your own rsakeys.ini file. For information on how to do this, email me, Jay – jay.sorg@gmail.com.