czwartek, 20 października 2016

composer update & composer suggests installing

composer update

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing zendframework/zend-stdlib (2.7.7)
    Downloading: 100%        

  - Installing zendframework/zend-hydrator (1.1.0)
    Downloading: 100%        

  - Installing container-interop/container-interop (1.1.0)
    Downloading: 100%        

  - Installing zendframework/zend-servicemanager (2.7.7)
    Downloading: 100%        

  - Installing psr/http-message (1.0.1)
    Downloading: 100%        

  - Installing zendframework/zend-diactoros (1.3.7)
    Downloading: 100%        

  - Installing zendframework/zend-validator (2.8.1)
    Downloading: 100%        

  - Installing zendframework/zend-escaper (2.5.2)
    Downloading: 100%        

  - Installing zendframework/zend-uri (2.5.2)
    Downloading: 100%        

  - Installing zendframework/zend-loader (2.5.1)
    Downloading: 100%        

  - Installing zendframework/zend-http (2.5.5)
    Downloading: 100%        

  - Installing zendframework/zend-psr7bridge (0.2.2)
    Downloading: 100%        

  - Installing zendframework/zend-filter (2.7.1)
    Downloading: 100%        

  - Installing zendframework/zend-inputfilter (2.7.3)
    Downloading: 100%        

  - Installing zendframework/zend-form (2.9.2)
    Downloading: 100%        

  - Installing zendframework/zend-eventmanager (2.6.3)
    Downloading: 100%        

  - Installing zendframework/zend-code (2.6.3)
    Downloading: 100%        

  - Installing zendframework/zend-di (2.6.1)
    Downloading: 100%        

  - Installing zendframework/zend-mvc (2.7.10)
    Downloading: 100%        

  - Installing psr/log (1.0.2)
    Downloading: 100%        

  - Installing symfony/debug (v3.1.5)
    Downloading: 100%        

  - Installing symfony/polyfill-mbstring (v1.2.0)
    Downloading: 100%        

  - Installing symfony/console (v3.1.5)
    Downloading: 100%        

  - Installing doctrine/cache (v1.6.0)
    Downloading: 100%        

  - Installing doctrine/lexer (v1.0.1)
    Downloading: 100%        

  - Installing doctrine/inflector (v1.1.0)
    Downloading: 100%        

  - Installing doctrine/collections (v1.3.0)
    Downloading: 100%        

  - Installing doctrine/annotations (v1.2.7)
    Downloading: 100%        

  - Installing doctrine/common (v2.6.1)
    Downloading: 100%        

  - Installing doctrine/instantiator (1.0.5)
    Downloading: 100%        

  - Installing doctrine/dbal (v2.5.5)
    Downloading: 100%        

  - Installing doctrine/orm (v2.5.5)
    Downloading: 100%        

  - Installing zendframework/zend-paginator (2.7.0)
    Downloading: 100%        

  - Installing zendframework/zend-cache (2.7.1)
    Downloading: 100%        

  - Installing zendframework/zend-json (2.6.1)
    Downloading: 100%        

  - Installing zendframework/zend-serializer (2.8.0)
    Downloading: 100%        

  - Installing zendframework/zend-math (2.7.0)
    Downloading: 100%        

  - Installing zendframework/zend-authentication (2.5.3)
    Downloading: 100%        

  - Installing doctrine/doctrine-module (0.10.1)
    Downloading: 100%        

  - Installing doctrine/doctrine-orm-module (0.9.2)
    Downloading: 100%        

  - Installing zendframework/zend-debug (2.5.1)
    Downloading: 100%        

  - Installing zendframework/zend-version (2.5.1)
    Downloading: 100%        

  - Installing zendframework/zend-developer-tools (0.0.2)
    Downloading: 100%        

  - Installing zendframework/zendxml (1.0.2)
    Downloading: 100%        

  - Installing zendframework/zend-server (2.7.0)
    Downloading: 100%        

  - Installing zendframework/zend-xmlrpc (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-view (2.8.1)
    Downloading: 100%        

  - Installing zendframework/zend-text (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-dom (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-console (2.6.0)
    Downloading: 100%        

  - Installing sebastian/version (1.0.6)
    Downloading: 100%        

  - Installing symfony/yaml (v3.1.5)
    Downloading: 100%        

  - Installing sebastian/resource-operations (1.0.0)
    Downloading: 100%        

  - Installing sebastian/recursion-context (1.0.2)
    Downloading: 100%        

  - Installing sebastian/object-enumerator (1.0.0)
    Downloading: 100%        

  - Installing sebastian/global-state (1.1.1)
    Downloading: 100%        

  - Installing sebastian/exporter (1.2.2)
    Downloading: 100%        

  - Installing sebastian/environment (1.3.8)
    Downloading: 100%        

  - Installing sebastian/diff (1.4.1)
    Downloading: 100%        

  - Installing sebastian/comparator (1.2.0)
    Downloading: 100%        

  - Installing phpunit/php-text-template (1.2.1)
    Downloading: 100%        

  - Installing phpunit/phpunit-mock-objects (3.4.0)
    Downloading: 100%        

  - Installing phpunit/php-timer (1.0.8)
    Downloading: 100%        

  - Installing phpunit/php-file-iterator (1.4.1)
    Downloading: 100%        

  - Installing sebastian/code-unit-reverse-lookup (1.0.0)
    Downloading: 100%        

  - Installing phpunit/php-token-stream (1.4.8)
    Downloading: 100%        

  - Installing phpunit/php-code-coverage (4.0.1)
    Downloading: 100%        

  - Installing webmozart/assert (1.1.0)
    Downloading: 100%        

  - Installing phpdocumentor/reflection-common (1.0)
    Downloading: 100%        

  - Installing phpdocumentor/type-resolver (0.2)
    Downloading: 100%        

  - Installing phpdocumentor/reflection-docblock (3.1.1)
    Downloading: 100%        

  - Installing phpspec/prophecy (v1.6.1)
    Downloading: 100%        

  - Installing myclabs/deep-copy (1.5.4)
    Downloading: 100%        

  - Installing phpunit/phpunit (5.6.1)
    Downloading: 100%        

  - Installing zendframework/zend-test (2.6.1)
    Downloading: 100%        

  - Installing zendframework/zend-tag (2.6.1)
    Downloading: 100%        

  - Installing zendframework/zend-soap (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-session (2.7.3)
    Downloading: 100%        

  - Installing zendframework/zend-progressbar (2.5.2)
    Downloading: 100%        

  - Installing zendframework/zend-permissions-rbac (2.5.1)
    Downloading: 100%        

  - Installing zendframework/zend-permissions-acl (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-navigation (2.8.1)
    Downloading: 100%        

  - Installing zendframework/zend-config (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-modulemanager (2.7.2)
    Downloading: 100%        

  - Installing zendframework/zend-mime (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-memory (2.5.2)
    Downloading: 100%        

  - Installing zendframework/zend-mail (2.7.1)
    Downloading: 100%        

  - Installing zendframework/zend-crypt (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-log (2.9.1)
    Downloading: 100%        

  - Installing zendframework/zend-i18n-resources (2.5.2)
    Downloading: 100%        

  - Installing zendframework/zend-i18n (2.7.3)
    Downloading: 100%        

  - Installing zendframework/zend-file (2.7.0)
    Downloading: 100%        

  - Installing zendframework/zend-feed (2.7.0)
    Downloading: 100%        

  - Installing zendframework/zend-db (2.8.2)
    Downloading: 100%        

  - Installing zendframework/zend-captcha (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zend-barcode (2.6.0)
    Downloading: 100%        

  - Installing zendframework/zendframework (2.5.3)
    Downloading: 100%        

    Skipped installation of bin bin/templatemap_generator.php for package zendframework/zendframework: name conflicts with an existing file
  - Installing guzzlehttp/psr7 (1.3.1)
    Downloading: 100%        

  - Installing guzzlehttp/promises (1.2.0)
    Downloading: 100%        

  - Installing guzzlehttp/guzzle (6.2.2)
    Downloading: 100%        

  - Installing phpseclib/phpseclib (2.0.4)
    Downloading: 100%        

  - Installing monolog/monolog (1.21.0)
    Downloading: 100%        

  - Installing firebase/php-jwt (v3.0.0)
    Downloading: 100%        

  - Installing google/apiclient-services (v0.7)
    Downloading: 100%        

  - Installing psr/cache (1.0.1)
    Downloading: 100%        

  - Installing google/auth (v0.10)
    Downloading: 100%        

  - Installing google/apiclient (v2.0.3)
    Downloading: 100%        

zendframework/zend-servicemanager suggests installing ocramius/proxy-manager (ProxyManager 0.5.* to handle lazy initialization of services)
zendframework/zend-form suggests installing zendframework/zendservice-recaptcha (in order to use the ReCaptcha form element)
zendframework/zend-mvc suggests installing zendframework/zend-servicemanager-di (^1.0.1, if using zend-servicemanager v3 and requiring the zend-di integration)
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/process ()
zendframework/zend-cache suggests installing ext-apc (APC or compatible extension, to use the APC storage adapter)
zendframework/zend-cache suggests installing ext-apcu (APCU >= 5.1.0, to use the APCu storage adapter)
zendframework/zend-cache suggests installing ext-memcache (Memcache >= 2.0.0 to use the Memcache storage adapter)
zendframework/zend-cache suggests installing ext-memcached (Memcached >= 1.0.0 to use the Memcached storage adapter)
zendframework/zend-cache suggests installing ext-mongo (Mongo, to use MongoDb storage adapter)
zendframework/zend-cache suggests installing ext-redis (Redis, to use Redis storage adapter)
zendframework/zend-cache suggests installing ext-wincache (WinCache, to use the WinCache storage adapter)
zendframework/zend-cache suggests installing ext-xcache (XCache, to use the XCache storage adapter)
zendframework/zend-cache suggests installing mongofill/mongofill (Alternative to ext-mongo - a pure PHP implementation designed as a drop in replacement)
zendframework/zend-math suggests installing ext-gmp (If using the gmp functionality)
zendframework/zend-math suggests installing ircmaxell/random-lib (Fallback random byte generator for Zend\Math\Rand if Mcrypt extensions is unavailable)
zendframework/zend-authentication suggests installing zendframework/zend-ldap (Zend\Ldap component)
doctrine/doctrine-module suggests installing doctrine/data-fixtures (Data Fixtures if you want to generate test data or bootstrap data for your deployments)
doctrine/doctrine-orm-module suggests installing doctrine/migrations (doctrine migrations if you want to keep your schema definitions versioned)
zendframework/zend-debug suggests installing ext/xdebug (XDebug, for better backtrace output)
zendframework/zend-developer-tools suggests installing bjyoungblood/bjy-profiler (Version: dev-master, allows the usage of the (Zend) Db collector.)
zendframework/zend-developer-tools suggests installing ocramius/ocra-service-manager (OcraServiceManager can help you track dependencies within your application.)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.4.0)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
zendframework/zend-session suggests installing mongodb/mongodb (If you want to use the MongoDB session save handler)
zendframework/zend-navigation suggests installing zendframework/zend-router (^3.0, to use router-based URI generation with Mvc pages)
zendframework/zend-crypt suggests installing ext-mcrypt (Required for most features of Zend\Crypt)
zendframework/zend-log suggests installing ext-mongo (mongo extension to use Mongo writer)
zendframework/zend-log suggests installing ext-mongodb (mongodb extension to use MongoDB writer)
zendframework/zend-i18n suggests installing ext-intl (Required for most features of Zend\I18n; included in default builds of PHP)
zendframework/zend-captcha suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha component)
zendframework/zend-barcode suggests installing zendframework/zendpdf (ZendPdf component)
zendframework/zendframework suggests installing zendframework/zend-ldap (zend-ldap component ^2.5, if you need LDAP features)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
google/apiclient suggests installing tedivm/stash (For caching certs and tokens (using Google_Client::setCache))
Writing lock file
Generating autoload files

środa, 12 października 2016

Virtualizacja usług i programów

Wypadało by wreszcie wyeksportować każdą usługę do systemu virtualizacji.

Zadowalającym efektem końcowym miała by być zapisanie stanu usług i ich kategorii i stworzenie dedykowanych maszyn virtualnych do tego celu.

poniedziałek, 12 września 2016

Error! Could not locate dkms . conf file. File: does not exist.

Konfigurowanie pakietu linux-image-3.16.0-4-amd64 (3.16.36-1+deb8u1) ...
/etc/kernel/postinst.d/dkms: Error! Could not locate dkms.conf file.
File: does not exist.
 This problem cause old version of virtualbox in /var/lib/dkms
remove virtualbox, clear dkms folder of old virtualbox folder than install virtualbox again
  sudo apt-get remove virtualbox  sudo rm -rf /var/lib/dkms/vboxhost  sudo apt-get install virtualbox
 Basically you should check the timestamps of any directories under /var/lib/dkms that start with either 'vbox' or 'virtual'. If they're fairly old (e.g. > 1 year) then there's a reasonable chance that they might be cruft left over from an old version of VirtualBox. Deciding whether to delete them or not is at your discretion.

sobota, 6 sierpnia 2016

Recovering Files from a Corrupt CD/DVD

sudo dd if=/dev/cdrom of=~/cdrom.iso status=progress
dd: błędna flaga stanu: „progress”
Napisz „dd --help” dla uzyskania informacji.
fuck
sudo dd if=/dev/cdrom of=~/cdrom.iso
dd: błąd czytania „/dev/cdrom”: Błąd wejścia/wyjścia
578816+0 przeczytanych recordów
578816+0 zapisanych recordów
skopiowane 296353792 bajty (296 MB), 36,4562 s, 8,1 MB/s 
now its well know its broken. 
Warning!! If you reverse the source and target, you can wipe out a lot of data. This feature has inspired the nickname "dd" Data Destroyer. Warning!! Caution should be observed when using dd to duplicate encrypted partitions.
sudo ddrescue -b 2048 -d -r 300 -v /dev/cdrom /iso.iso /ddrescure.log
without -e param, cause:
 GNU ddrescue 1.19
About to copy 3890 MBytes from /dev/cdrom to .
 Starting positions: infile = 0 B,  outfile = 0 B
    Copy block size:  32 sectors       Initial skip size: 32 sectors
Sector size: 2048 Bytes
Press Ctrl-C to interrupt
rescued:   439353 kB,  errsize:   1376 kB,  current rate:        0 B/s
   ipos:   450101 kB,   errors:      21,    average rate:     919 kB/s
   opos:   450101 kB, run time:    7.96 m,  successful read:       1 s ago
Copying non-tried blocks... Pass 1 (forwards)
Too many errors in input filei
In copy process, thinknk how leaning algorithm can fix errors in file. I copy windows from old cd-rom. MS have md5 sing somwhere. So positive results is know by md5 Teach alorithm to fill corupted blocks with learning algorithm. Oh, y English is so bad ;) so what. 

środa, 20 lipca 2016

bash-it

Bash-it is a collection of community Bash commands and scripts. (And a shameless ripoff of oh-my-zsh :smiley:) Includes autocompletion, themes, aliases, custom functions, a few stolen pieces from Steve Losh, and more. Bash-it provides a solid framework for using, developing and maintaining shell scripts and custom commands for your daily work. 


If you're using the Bourne Again Shell (Bash) on a regular basis and have been looking for an easy way on how to keep all of these nice little scripts and aliases under control, then Bash-it is for you!
Stop polluting your ~/bin directory and your .bashrc file, fork/clone Bash-it and start hacking away.

INSTAL

piątek, 15 lipca 2016

Google Earth under Debian

To avoid unnecessary time loos witch downloading and ruining google earth under Debian
cd ~;sudo apt-get install googleearth-package libfreeimage3 
sudo apt get install  libcurl3:i386 libraw10:amd64 libidn11:i386 librtmp1:i386 libssh2-1:i386
 cd ~; make-googleearth-package
 -----------------------------
Success!
You can now install the package with e.g:
sudo dpkg -i googleearth_6.0.3.2197+1.2.0-1_amd64.deb

~$ sudo make-googleearth-package 
Refusing to run as root; use --force to override


 linux debian install Googleearth-package as it says


sudo apt-get install googleearth-package
sudo aptitude install  libfreeimage3 libcurl3:i386 libidn11:i386 librtmp1:i386 libssh2-1:i386  

Narzędzie do automatycznej budowy pakietu Google Earth do Debiana

Google Earth jest przeglądarką naszej planety w 3D, która umożliwia interaktywną nawigację po zdjęciach satelitarnych, mapach, i tak dalej.
Oprogramowanie Google Earth jest dostępne do GNU/Linuksa ze strony internetowej producenta, lecz jest to niewolne oprogramowanie, nie nadające się do dystrybucji. Nie integruje się dobrze z systemem Debian.
To narzędzie pozwala budować własny pakiet Google Earth do Debiana. Samo opakowanie jest Wolnym Oprogramowaniem, ale program Google Earth jest regulowany przez posiadacza praw autorskich (Google), więc mogą istnieć ograniczenia co do dysponowania ostatecznym pakietem (tj. redystrybucji, itp.). Googleearth-package po prostu pomaga w tworzeniu pakietu - użytkownik jest odpowiedzialny za rozsądne korzystanie z ostatecznego pakietu.
NAME
       make-googleearth-package - builds a googleearth Debian package
SYNOPSIS
       make-googleearth-package [options]
DESCRIPTION
       Creates a Debian package from the Google Earth GNU/Linux installer.  By default, will look for the installer in the current directory.  If  not found it will be downloaded automatically.
OPTIONS
       --fullname name Use name as full name in Maintainer field
       --email email Use email as email address in Maintainer field
       --file file Use file instead of GoogleEarthLinux.bin
       --download Always try to download a new version
       --cleanup Delete the installer after building successfully
       --quiet Suppress all intermediate build output
       --force Attempt to build an unsupported version
                                4 October 2014     make-googleearth-package(1)

Google Earth under Debiana

To avoid unnecessary time loos witch downloading and ruining google earth under Debian
cd ~;sudo apt-get install googleearth-package libfreeimage3 
sudo apt get install  libcurl3:i386 libraw10:amd64 libidn11:i386 librtmp1:i386 libssh2-1:i386
 cd ~; make-googleearth-package
 -----------------------------
Success!
You can now install the package with e.g:
sudo dpkg -i googleearth_6.0.3.2197+1.2.0-1_amd64.deb

~$ sudo make-googleearth-package 
Refusing to run as root; use --force to override


 linux debian install Googleearth-package as it says


sudo apt-get install googleearth-package
sudo aptitude install  libfreeimage3 libcurl3:i386 libidn11:i386 librtmp1:i386 libssh2-1:i386  

Narzędzie do automatycznej budowy pakietu Google Earth do Debiana

Google Earth jest przeglądarką naszej planety w 3D, która umożliwia interaktywną nawigację po zdjęciach satelitarnych, mapach, i tak dalej.
Oprogramowanie Google Earth jest dostępne do GNU/Linuksa ze strony internetowej producenta, lecz jest to niewolne oprogramowanie, nie nadające się do dystrybucji. Nie integruje się dobrze z systemem Debian.
To narzędzie pozwala budować własny pakiet Google Earth do Debiana. Samo opakowanie jest Wolnym Oprogramowaniem, ale program Google Earth jest regulowany przez posiadacza praw autorskich (Google), więc mogą istnieć ograniczenia co do dysponowania ostatecznym pakietem (tj. redystrybucji, itp.). Googleearth-package po prostu pomaga w tworzeniu pakietu - użytkownik jest odpowiedzialny za rozsądne korzystanie z ostatecznego pakietu.
NAME
       make-googleearth-package - builds a googleearth Debian package
SYNOPSIS
       make-googleearth-package [options]
DESCRIPTION
       Creates a Debian package from the Google Earth GNU/Linux installer.  By default, will look for the installer in the current directory.  If  not found it will be downloaded automatically.
OPTIONS
       --fullname name Use name as full name in Maintainer field
       --email email Use email as email address in Maintainer field
       --file file Use file instead of GoogleEarthLinux.bin
       --download Always try to download a new version
       --cleanup Delete the installer after building successfully
       --quiet Suppress all intermediate build output
       --force Attempt to build an unsupported version
                                4 October 2014     make-googleearth-package(1)