lunes, 20 de noviembre de 2017

Create Wifi Hotspot on Debian 9 Xfce (Funciona)

Create Wifi Hotspot on Debian 9 Xfce

Creating WiFi hotspot on Debian 9 Xfce is pretty easy for it comes with the Network Manager preinstalled. Follow the instructions below to create WiFi hotspot on Debian:
  • Right click on the Network Manager icon from the Xfce panel. You’d find Edit Connections at the end of the list. Click on it.
  • Click Add.
  • Select Wi-Fi from the drop-down list and click on Create.
  • A window will appear. You can change the connection name or keep it like that. That’s up to you.
  • Give any name to SSID. Your hotspot would be named after that name.
  • Mode would be Infrastructure.
  • Click on the drop-down button on the Device MAC address and select your wireless card.
  • Go to Wi-Fi Security tab. From there select WPA & WPA2 Personal as the Security type. Set a password.
  • Go to IPv4 Settings tab. Select Shared to other computers from the drop-down menu of the Method.
  • Click Save.
Now open the terminal window and execute the following command:
sudo mousepad /etc/NetworkManager/system-connections/name_of_the_wifi_hotspot
  • I’ve used Mousepad as the text editor for example purpose. You can use anything else as long else you use that name in the aforementioned command. Also, replace name_of_the_wifi_hotspot with the name you chose as the Connection Name.
  • A file would open in your text editor (in this case, Mousepad text editor). Find mode=infrastructure line and replace it with mode=ap
  • Now Save the file.
  • You might want to restart your system for the WiFi hotspot to work.
  • After a restart, your computer should be automatically connected to the WiFi hotspot you’ve just created. If not, then select Connect to Hidden Wi-Fi Network and select your hotspot from the drop-down list.

jueves, 21 de septiembre de 2017

Que instalar despues de Instalar debian 9 con xfce


En una instalación limpia colocar
vi /etc/apt/sources.list


######   Repositorios oficiales ##########
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free

# stretch-actualizaciones-seguridad
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-actualizaciones-sistema
deb http://mirrors.kernel.org/debian/ stretch-updates main contrib non-free
deb-src http://mirrors.kernel.org/debian/ stretch-updates main contrib non-free
deb http://mirrors.kernel.org/debian stretch-proposed-updates main contrib non-free
deb-src http://mirrors.kernel.org/debian stretch-proposed-updates main contrib non-free

#Dropbox
deb http://download.virtualbox.org/virtualbox/debian stretch contrib

apt-get install aptitude

vi /etc/default/grub
     modificar GRUB_TIMEOUT=0 //esta en 5
     update-grub2

 wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
 wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -


aptitude install kgpg blueman virtualbox-5.2 keepass2 dia pgadmin3 youtube-dl cups rhythmbox thunar-dropbox-plugin testdisk apache2 php7.0 php7.0-ldap  php7.0-pgsql postgresql-9.6 pdftk libmp3splt0 libmp3splt0-mp3 texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended texmaker anyremote ganyremote wmctrl dia pgadmin3 gedit unrar-free  unrar syslinux python-glade2 gedit unrar firmware-realtek gnome-calculator  ttf-mscorefonts-installer git brasero gparted ssh dnsutils audacity calibre g++ vim zim locate kid3 gimagereader glabels meld




para crear usb booteable
dpkg -i dpkg -i live-usb-install-2.5.11-all.deb

 
 gpasswd -a tu_usuario vboxusers

 cd /etc/udev/rules.d/
cp 60-vboxdrv.rules 60-vboxdrv.rules.original
  vi 60-vboxdrv.rules
   reboot





viernes, 20 de enero de 2017

Instalar yii1 en debian para trabajar con ldap y postgresql

Instalar

apt-get install apache2 php7.0 php7.0-ldap  php7.0-pgsql postgresql-9.6

Descargar

http://www.yiiframework.com/download/


Yii 1.1
yii-1.1.17.467ff50.tar.gz

Luego de descargado el yii, descomprimirlo y pasarlo a /var/www/ 

a la carpeta yii luego de descomprimirla darle permisos al usuario www-data

/var/www/ chown -R www-data:www-data yii/

con eso es suficiente para poder crear nuestro proyecto en yii
 

viernes, 18 de noviembre de 2016

Aplicaciones a instalar en Kali Linux


aptitude install remmina gimp brasero rhythmbox libreoffice keepassx dia pgadmin3 cryptkeeper virtualbox youtube-dl cups alacarte

Para instalar freemind
aptitude install libcommons-codec-java
dpkg -i freemind_0.8.1-2_all.deb  //Esta versión fue que me funciono


Descargar dropbox desde
https://www.dropbox.com/install-linux




instalar el .deb de la arquitectura de su computador

 desde consola escribir dropbox start -i



























































































viernes, 23 de septiembre de 2016

Resolver La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path

Siempre que inicio el servidor tomcat me aparece un mensaje como este:
INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path:...
Y nunca le dí importancia hasta hoy, por que tengo que utilizarlo en un proyecto bastante amplio que necesita cuidar el performance al máximo, en fin le he dedicado un rato para investigar a que se refiere esta libreria y esto fue lo que encontre:
The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets).
These features allows making Tomcat a general purpose webserver, will enable much better integration with other native web technologies, and overall make Java much more viable as a full fledged webserver platform rather than simply a backend focused technology.
Al parecer es una libreria que mejora la integración del servidor con el sistema, y el resultado es que tomcat deja de ser un contenedor de servlets y hace que java sea mucho mas viable para esta técnologia y no solo un lenguaje de back end. Una de las ventajas es que mejora la velocidad del tomcat busque algunos test y afirman que mejora en rendimiento =)… (¬¬ de haber sabido que algo así existía…  tengo que fijarme más en los mensajes del log).

Instalación

Linux
Ahorita tengo kubuntu 11.10 así que vamos a realizar la instalación:
Requisitos:
  • APR 1.2+ development headers (libapr1-dev package)
  • OpenSSL 0.9.7+ development headers (libssl-dev package)
  • JNI headers from Java compatible JDK 1.4+
  • GNU development environment (gcc, make)
Instalar las dependencias (ya tengo instalado el JDK 1.6).
sudo apt-get install gcc fakeroot libssl-dev libapr1 libapr1-dev build-essential
Ahora bajamos el código fuente “tomcat-native-1.1.22-src.tar.gz” desde aquí (yo tome la versión actual que es 1.1.22), lo descomprimes y después hay que compilar e instalar:
wget http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.22/source/tomcat-native-1.1.22-src.tar.gz
tar -xvf tomcat-native-1.1.22-src.tar.gz
cd tomcat-native-1.1.22-src/jni/native/
./configure --with-apr="/usr/bin" --with-java-home="/opt/jdk1.6.0_23_x64/" && make && sudo make install
Nota: Cambia la ruta hacia tu JDK
Al final te debe de salir esto:
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apr/lib If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'See operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Ahora incluimos la librería en el sistema (en algunas maquinas se genera de forma automática, si te marca que ya existe te saltas este paso)
sudo ln -s /usr/local/apr/lib/libtcnative-1.so libtcnative-1.so
Falta agregarlo al classpath del tomcat, editas el archivo setenv.sh y agregas la siguiente línea:
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
Ahora al iniciar el servidor aparecerá algo así:
INFO main org.apache.catalina.core.AprLifecycleListener - Loaded APR based Apache Tomcat Native library 1.1.22.
INFO main org.apache.catalina.core.AprLifecycleListener - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

Solventar problema de memoria en openkm

Hay que editar el siguiente archivo 
 
root@openkm:/var/www/openkm-6.3.1-community/tomcat/bin# vi setenv.sh
 
 JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx2048m -XX:+UseConcMarkSweepGC -Djava.awt.headless=true"
 
a
 
JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx2048m -XX:+UseConcMarkSweepGC -Djava.awt.headless=true"
 

miércoles, 14 de septiembre de 2016

Habilitando la conexión SSH para el usuario root en un servidor y verificar estatus del ssh

  1. Edite el archivo de configuración para SSH con el comando:

    vi /etc/ssh/sshd_config
  2. Ubique la linea que comienza con PermitRootLogin y cambie el valor no por yes. 
Comprobar el estado del servicio SSH e iniciar el servicio SSH si se detiene:
 sudo service ssh status 
En mi caso SSH se detuvo, pero después de iniciar el servicio:
 sudo service ssh start