jueves, 21 de septiembre de 2017

X11XRDP Debian

apt install x11xrdp

 dpkg-reconfigure xserver-xorg-legacy
(anybody)

 mcedit  /etc/xrdp/startwm.sh
at end

#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession
unset DBUS_SESSION_BUS_ADDRESS.
exec mate-session

si no  anda cambiar SUID a Xorg

miércoles, 20 de septiembre de 2017

netstat


puertos de  escucha tcp - mostar pid y nombre del programa

netstat -n -t -lpn

jueves, 8 de junio de 2017

Mini Servidor Web con soporte de "resume"

Mongoose
Servidor web para windows. Tiene 350k.
Atiende en el puerto 8080. No muestra index.
Funciona en linux con wine.

https://code.google.com/archive/p/mongoose/downloads

miércoles, 7 de junio de 2017

Java "abrir con" personalizado - Gnome3 / Debian 9 Stretch



vi ~/.local/share/applications/java.desktop


[Desktop Entry]
Encoding=UTF-8
Name=Oracle Java 8 Runtime
Comment=Oracle Java 8 Runtime
Exec=/usr/local/java/bin/java -jar %f
Terminal=false
Type=Application
Icon=oracle_java8
MimeType=application/x-java-archive;application/java-archive;application/x-jar;
NoDisplay=true

martes, 6 de junio de 2017

Argegar usuario a sudoers / Debian / Mint

agregar al final de /etc/sudoers

userX ALL=(ALL) ALL   #

martes, 30 de mayo de 2017

VirtualBox - Vmware - VirtualPC

Convertir discos

vboxmanage clonehd "FABIANBOX.VHDX" --format VHD "fabianbox.vhd"
vboxmanage clonehd FABIANBOX.VHDX fabianbox.vdi --format VDI

Cambiar HDUUID

VBoxManage internalcommands sethduuid fabianbox.vdi

Clonar Pc en caliente
Disk2vhd.exe


Restaurar imagenes a PC físia
DDRawCopy
EaseUS partition
Partition Saving - http://www.partition-saving.com


Errores al restaurar
Hypervisor was not running
"bcdedit /set hypervisorlaunchtype Auto"

domingo, 30 de abril de 2017

Autologin windows seven 7 / 10

1. Click Start, type netplwiz, and then press Enter. 2. In the User Accounts dialog box, click the account you want to automatically log on to.If it is available, clear the Users Must Enter A User Name And Password To Use This Computer check box. 3. Click OK. 4. In the Automatically Log On dialog box, enter the user’s password twice and click OK. - si cambiaste la password hay que tildar " Users Must Enter A User Name And Password", aplicar y luego destildar, aplicar.

jueves, 2 de marzo de 2017

josm update en windows (wget / powershell)

usando wget

wget-1.11.4-1-setup.exe


update.cmd

"C:\Program Files (x86)\GnuWin32\bin\wget.exe" "http://josm.openstreetmap.de/josm-latest.jar"
pause

alternativo (choco)
"C:\ProgramData\chocolatey\bin\wget.exe" --no-check-certificate "https://josm.openstreetmap.de/josm-latest.jar"



usando powershell

https://pastebin.com/hWK3fwRw

josm-update.ps1
Import-Module BitsTransfer
Start-BitsTransfer -source "http://josm.openstreetmap.de/josm-latest.jar"
sleep 5

josm-update.cmd
powershell -executionpolicy Bypass -file  josm-update.ps1
timeout 5

sábado, 25 de febrero de 2017

vm-start.cmd // archivo batch para cargar maquina virtual en vmplayer

vm-start.cmd

cd "C:\Program Files (x86)\VMware\VMware Player"
start vmplayer.exe "C:\Users\goku\Documents\Virtual Machines\Debian 8.x 64-bit\Debian 8.x 64-bit.vmx"

Autologin /logon en windows7 y 10

Configure a User Account to Log On Automatically on Windows 7
Requiring the user to enter credentials when his computer starts is an important part of Windows security. If a user account automatically logs on, anyone who has physical access to the computer can restart it and access the user’s files. Nonetheless, there are scenarios where a computer is physically secure and automatic logon might be desired. To configure a workgroup computer (you cannot perform these steps on a domain member) to automatically log on, follow these steps:
Follow Our Daily Tips
RSS | Twitter | Blog | Facebook

Tell Us Your Tips
Share your tips and tweaks.
1. Click Start, type netplwiz, and then press Enter.
2. In the User Accounts dialog box, click the account you want to automatically log on to.If it is available, clear the Users Must Enter A User Name And Password To Use This Computer check box.
3. Click OK.
4. In the Automatically Log On dialog box, enter the user’s password twice and click OK.

The next time you restart the computer, it will automatically log on with the local user account you selected. Configuring automatic logon stores the user’s password in the registry unencrypted, where someone might be able to retrieve it.

From the Microsoft Press book Windows 7 Resource Kit by Mitch Tulloch, Tony Northrup, Jerry Honeycutt, Ed Wilson, and the Windows 7 team.
Looking for More Tips?

For more tips on Windows 7 and other Microsoft technologies, visit the TechNet Magazine Tips library.

miércoles, 28 de diciembre de 2016

wav2mp3

#!/bin/bash
#
# wav2mp3
#
for i in *.wav; do
    lame -h -b 128 "$i" "${i%.wav}.mp3"
done

viernes, 21 de octubre de 2016

Alternativa al Teamviewer

Teamviewer en linux corre sobre wine y cada tanto se cuelga. Buscando alternativas descubrí  Chrome Remote Desktop. Hasta ahora las impresiones fueron todas buenas y es muy estable.

miércoles, 16 de marzo de 2016

Wifi inestable en telefono L7 P705G

Si tu wifi pierde conectividad en este telefono, no te gastes es cambiar de firmware o de buscar apps que reconecten la conexion. El problema es que este telefono tiene un modulo de wifi tan trucho, que no es compatibles con algunos access points. La única solución es probar otro access point. Cuanto mas viejo, parece que anda mejor.