Comandos en Andoid en coneccion ssh desde linux

ssh root@13.456.789.000 <<– la ip de tu telefono

Connection to 192.168.1.4 closed.
[user@localhost ~]$ ssh root@192.168.1.4
SSHDroid
Use 'root' as username
Default password is 'admin'
root@192.168.1.4's password: 
root@android:/data/data/berserker.android.apps.sshdroid/home # 

ahora hacemos un listado en esa carpeta

root@android:/data/data/berserker.android.apps.sshdroid/home # la -la 
drwx------    4 app_143  app_143       4096 Apr  1  2017 .
drwxr-x--x    9 app_143  app_143       4096 Nov  8  2016 ..
drwx------    2 app_143  app_143       8192 Nov  8  2016 .bin
drwx------    2 app_143  app_143       4096 Nov  8  2016 .ssh

Alli vemos que hay una carpeta .bin y vemos que hay alli

root@android:/data/data/berserker.android.apps.sshdroid/home # ls .bin/  

                                                                            
[                  comm               fdisk              iproute            mkpasswd           rdate              sha256sum          traceroute
[[                 cp                 fgconsole          iprule             mkswap             rdev               sha3sum            traceroute6
acpid              cpio               fgrep              iptunnel           modinfo            readlink           sha512sum          true
add-shell          crond              find               kbd_mode           modprobe           readprofile        showkey            tty
adjtimex           crontab            findfs             kill               more               realpath           slattach           ttysize
ar                 cryptpw            flock              killall            mountpoint         reboot             sleep              tunctl
arp                cttyhack           fold               killall5           mpstat             reformime          smemcap            udpsvd
ash                cut                free               less               mv                 remove-shell       softlimit          uname
awk                date               freeramdisk        ln                 nbd-client         renice             sort               uncompress
base64             dc                 fsync              loadfont           nc                 reset              split              unexpand
basename           dd                 ftpd               loadkmap           netstat            resize             start-stop-daemon  uniq
bash               deallocvt          ftpget             losetup            nice               rev                stat               unix2dos
beep               depmod             ftpput             lpd                nmeter             rm                 strings            unlzma
blkid              devmem             fuser              lpq                nohup              rmdir              stty               unlzop
blockdev           diff               getopt             lpr                od                 rmmod              sulogin            unxz
bootchartd         dirname            grep               ls                 openvt             rpm                sum                unzip
brctl              dmesg              groups             lsattr             patch              rpm2cpio           sv                 uptime
bunzip2            dnsd               gunzip             lsmod              pgrep              rtcwake            svlogd             usleep
bzcat              dnsdomainname      gzip               lsof               pidof              run-parts          switch_root        uudecode
bzip2              dos2unix           halt               lspci              ping               runsv              sync               uuencode
cal                du                 hd                 lsusb              ping6              runsvdir           sysctl             vconfig
cat                dumpkmap           hdparm             lzcat              pipe_progress      rx                 tac                vi
catv               echo               head               lzma               pivot_root         script             tail               vlock
chat               ed                 hexdump            lzop               pkill              scriptreplay       tar                volname
chattr             egrep              hostname           lzopcat            pmap               sed                tcpsvd             watch
chgrp              env                httpd              makedevs           popmaildir         sendmail           tee                wc
chmod              envdir             hwclock            makemime           poweroff           seq                telnet             wget
chown              envuidgid          id                 man                powertop           setconsole         telnetd            which
chpasswd           expand             insmod             md5sum             printenv           setfont            test               whoami
chpst              expr               install            mdev               printf             setkeycodes        tftp               whois
chroot             fakeidentd         ionice             mesg               ps                 setlogcons         tftpd              xargs
chrt               false              iostat             mkdir              pscan              setserial          time               xz
chvt               fbset              ip                 mkdosfs            pstree             setsid             timeout            xzcat
cksum              fbsplash           ipaddr             mkfifo             pwd                setuidgid          top                yes
clear              fdflush            ipcalc             mkfs.vfat          pwdx               sh                 touch              zcat
cmp                fdformat           iplink             mknod              raidautorun        sha1sum            tr

otra forma

130|root@android:/data/data/berserker.android.apps.sshdroid/home # find
.
./.ssh
./.ssh/known_hosts
./.bin
./.bin/[
./.bin/[[
./.bin/acpid
./.bin/add-shell
./.bin/adjtimex
./.bin/ar
./.bin/arp
./.bin/ash
./.bin/awk
./.bin/base64
./.bin/basename
./.bin/bash
./.bin/beep
./.bin/blkid
./.bin/blockdev
./.bin/bootchartd
./.bin/brctl
./.bin/bunzip2
./.bin/bzcat
./.bin/bzip2
./.bin/cal
./.bin/cat
./.bin/catv
./.bin/chat
./.bin/chattr
./.bin/chgrp
./.bin/chmod
./.bin/chown
./.bin/chpasswd
./.bin/chpst
./.bin/chroot
./.bin/chrt
./.bin/chvt
./.bin/cksum
./.bin/clear
./.bin/cmp
./.bin/comm
./.bin/cp
./.bin/cpio
./.bin/crond
./.bin/crontab
./.bin/cryptpw
./.bin/cttyhack
./.bin/cut
./.bin/date
./.bin/dc
./.bin/dd
./.bin/deallocvt
./.bin/depmod
./.bin/devmem
./.bin/diff
./.bin/dirname
./.bin/dmesg
./.bin/dnsd
./.bin/dnsdomainname
./.bin/dos2unix
./.bin/du
./.bin/dumpkmap
./.bin/echo
./.bin/ed
./.bin/egrep
./.bin/env
./.bin/envdir
./.bin/envuidgid
./.bin/expand
./.bin/expr
./.bin/fakeidentd
./.bin/false
./.bin/fbset
./.bin/fbsplash
./.bin/fdflush
./.bin/fdformat
./.bin/fdisk
./.bin/fgconsole
./.bin/fgrep
./.bin/find
./.bin/findfs
./.bin/flock
./.bin/fold
./.bin/free
./.bin/freeramdisk
./.bin/fsync
./.bin/ftpd
./.bin/ftpget
./.bin/ftpput
./.bin/fuser
./.bin/getopt
./.bin/grep
./.bin/groups
./.bin/gunzip
./.bin/gzip
./.bin/halt
./.bin/hd
./.bin/hdparm
./.bin/head
./.bin/hexdump
./.bin/hostname
./.bin/httpd
./.bin/hwclock
./.bin/id
./.bin/insmod
./.bin/install
./.bin/ionice
./.bin/iostat
./.bin/ip
./.bin/ipaddr
./.bin/ipcalc
./.bin/iplink
./.bin/iproute
./.bin/iprule
./.bin/iptunnel
./.bin/kbd_mode
./.bin/kill
./.bin/killall
./.bin/killall5
./.bin/less
./.bin/ln
./.bin/loadfont
./.bin/loadkmap
./.bin/losetup
./.bin/lpd
./.bin/lpq
./.bin/lpr
./.bin/ls
./.bin/lsattr
./.bin/lsmod
./.bin/lsof
./.bin/lspci
./.bin/lsusb
./.bin/lzcat
./.bin/lzma
./.bin/lzop
./.bin/lzopcat
./.bin/makedevs
./.bin/makemime
./.bin/man
./.bin/md5sum
./.bin/mdev
./.bin/mesg
./.bin/mkdir
./.bin/mkdosfs
./.bin/mkfifo
./.bin/mkfs.vfat
./.bin/mknod
./.bin/mkpasswd
./.bin/mkswap
./.bin/modinfo
./.bin/modprobe
./.bin/more
./.bin/mountpoint
./.bin/mpstat
./.bin/mv
./.bin/nbd-client
./.bin/nc
./.bin/netstat
./.bin/nice
./.bin/nmeter
./.bin/nohup
./.bin/od
./.bin/openvt
./.bin/patch
./.bin/pgrep
./.bin/pidof
./.bin/ping
./.bin/ping6
./.bin/pipe_progress
./.bin/pivot_root
./.bin/pkill
./.bin/pmap
./.bin/popmaildir
./.bin/poweroff
./.bin/powertop
./.bin/printenv
./.bin/printf
./.bin/ps
./.bin/pscan
./.bin/pstree
./.bin/pwd
./.bin/pwdx
./.bin/raidautorun
./.bin/rdate
./.bin/rdev
./.bin/readlink
./.bin/readprofile
./.bin/realpath
./.bin/reboot
./.bin/reformime
./.bin/remove-shell
./.bin/renice
./.bin/reset
./.bin/resize
./.bin/rev
./.bin/rm
./.bin/rmdir
./.bin/rmmod
./.bin/rpm
./.bin/rpm2cpio
./.bin/rtcwake
./.bin/run-parts
./.bin/runsv
./.bin/runsvdir
./.bin/rx
./.bin/script
./.bin/scriptreplay
./.bin/sed
./.bin/sendmail
./.bin/seq
./.bin/setconsole
./.bin/setfont
./.bin/setkeycodes
./.bin/setlogcons
./.bin/setserial
./.bin/setsid
./.bin/setuidgid
./.bin/sh
./.bin/sha1sum
./.bin/sha256sum
./.bin/sha3sum
./.bin/sha512sum
./.bin/showkey
./.bin/slattach
./.bin/sleep
./.bin/smemcap
./.bin/softlimit
./.bin/sort
./.bin/split
./.bin/start-stop-daemon
./.bin/stat
./.bin/strings
./.bin/stty
./.bin/sulogin
./.bin/sum
./.bin/sv
./.bin/svlogd
./.bin/switch_root
./.bin/sync
./.bin/sysctl
./.bin/tac
./.bin/tail
./.bin/tar
./.bin/tcpsvd
./.bin/tee
./.bin/telnet
./.bin/telnetd
./.bin/test
./.bin/tftp
./.bin/tftpd
./.bin/time
./.bin/timeout
./.bin/top
./.bin/touch
./.bin/tr
./.bin/traceroute
./.bin/traceroute6
./.bin/true
./.bin/tty
./.bin/ttysize
./.bin/tunctl
./.bin/udpsvd
./.bin/uname
./.bin/uncompress
./.bin/unexpand
./.bin/uniq
./.bin/unix2dos
./.bin/unlzma
./.bin/unlzop
./.bin/unxz
./.bin/vi
./.bin/unzip
./.bin/uptime
./.bin/usleep
./.bin/uudecode
./.bin/uuencode
./.bin/vconfig
./.bin/vlock
./.bin/volname
./.bin/watch
./.bin/wc
./.bin/wget
./.bin/which
./.bin/whoami
./.bin/whois
./.bin/xargs
./.bin/xz
./.bin/xzcat
./.bin/yes
./.bin/zcat

Como tener la documentación de KumbiaPHP en local?

Primero haces una copia de la documentacion en local, asumo que en tu compu los sitios web los creas en /var/www/html


cd /var/www/html
git clone https://github.com/KumbiaPHP/Documentation.git

ahora entras a la web

http://localhost/Documentation/

Alli te sale el siguiente error:



Warning: include(vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/Documentation/autoload.php on line 2

Warning: include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/Documentation/autoload.php on line 2

Fatal error: Class 'ParsedownExtra' not found in /var/www/html/Documentation/Markdown.php on line 2

Segun

Failed opening ‘vendor/autoload.php’

veo que debo lanzar composer asi que entro en la carpeta Documentation


cd /var/www/html/Documentation

Y alli lanzo composer para actualizar las librerias que necesitamos


composer update

y me dara algo como esto


[robinson@localhost Documentation]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
  - Installing erusev/parsedown (1.6.2): Downloading (100%)         
  - Installing erusev/parsedown-extra (dev-master 0db5cce): Cloning 0db5cce735 from cache
  - Installing mustangostang/spyc (dev-master 23c35ae): Cloning 23c35ae854 from cache
Writing lock file
Generating autoload files

ahora entro en la web

http://localhost/Documentation/

y ya no me da error,

Pero los enlaces no me funciona, segun veo en el código fuente de index.php si le paso como parametro el archivo que deseo ver talvez funcine, así que entro en

http://localhost/Documentation/?file=es/index.md

pasando como parametro /es/index.md

listo, me fuciona pero si continuo con los enlaces que estan alli me da error, haber si lo resuelvo despues, por el momento es todo

chao

Si quieres hacer un puente, inspirate en otros

Una frase muy popular entre los arquitectos lo cual se puede aplicar en todo los dominios, si quieres crear algo, mira a tu alrededor, y busca en el mundo algo que haga lo mismo o que sea algo similar, para que te de inspiración, este es el caso de muchos productos que han visto la luz y nadie discute su exito y la tecnología no escapa a esta regla.

Informate, lee, investiga mira la competencia, mira sus fortalezas y debilidades, asi podras comparar tu producto o servicio y tendras una idea global del inmpacto que tendra en el mercado.

Ponte en la piel de usuario al que vas a ofrecer este servicio o producto, y no olvides que ese usuario es poco paciente, poco tolerante, muy exigente y rencoroso, no recibiras comentarios positivos si todo va bien, y si no va bien simplemente a no los veras de vuelta.

Pero que pasa cuando estas en un desierto donde hay un solo oasis, seguramente ese oasis recibira todos los alagos del mundo pero no porque es el mejor o por que estamos contentos de sus servicios, no, no, es porque es el único donde podemos beber agua, alli esta la destresa del cuidador del oasis, de diferenciar porque vienen las visitas? por que les gusta el servicio o por que es el único.

Con mucho afecto para nic.ec

Cómo descargar videos de youtube desde el terminal

Instalación y uso

En Ubuntu, abrí un terminal y escribí:

sudo apt-get install youtube-dl

 

Para fedora

sudo dnf install youtube-dl

Para su utilización, simplemente escribí:

youtube-dl url_del_video
Por ejemplo:

youtube-dl https://www.youtube.com/watch?v=JOBSAjDDtGU

Vas a ver un resultado similar al siguiente:


Setting language
JOBSAjDDtGU: Downloading video webpage
JOBSAjDDtGU: Downloading video info webpage
JOBSAjDDtGU: Extracting video information
[.download.] Destination: JOBSAjDDtGU.mp4
[.download.] 100.0% of 31.01M at 923.68k/s ETA 00:00

Listo, el video se almacenará en la carpeta que ejecutamos el comando.