Archivo de la categoría: linux

pdp 11 simh raspberry

apt-get install simh unzip uv7swre.zip $ simh-pdp11 PDP-11 simulator V3.8-1 sim> set cpu 11/45 Disabling XQ sim> set tto 7b sim> attach rl unix_v7_rl.dsk sim> boot rl @boot New Boot, known devices are hp ht rk rl rp tm vt : rl(0,0)rl2unix mem = 177856 # mkdir /usr/dmr # chown dmr /usr/dmr # chgrp 3… Leer más »

Python script to convert DBF database file to CSV

First download dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=files Then install: sudo python setup.py install To convert DBF file to CSV: ./dbf2csv database.dbf #!/usr/bin/python import csv from dbfpy import dbf import os import sys filename = sys.argv[1] if filename.endswith(‘.dbf’): print «Converting %s to csv» % filename csv_fn = filename[:-4]+ «.csv» with open(csv_fn,’wb’) as csvfile: in_db = dbf.Dbf(filename) out_csv = csv.writer(csvfile)… Leer más »

quick create root CA and self signed for chrome 58+

create RootCA first cat createRootCa.sh #!/usr/bin/env bash mkdir /root/ca/ openssl genrsa -des3 -out /root/ca/rootCA.key 2048 openssl req -x509 -new -nodes -key /root/ca/rootCA.key -sha256 -days 7300 -out /root/ca/rootCA.pem Create server.csr.cnf [req] default_bits = 2048 prompt = no default_md = sha256 distinguished_name = req_distinguished_name [ req_distinguished_name ] # See <https://en.wikipedia.org/wiki/Certificate_signing_request>. countryName = MX stateOrProvinceName = MX localityName… Leer más »

php7 util extensions

apt-get install php7.0-gd php7.0-mysql php7.0-cli php7.0-cgi php-pear php7.0-mcrypt mcrypt imagemagick php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl memcached php-memcache php-imagick php-gettext php7.0-zip php7.0-mbstring memcached php7.0-soap

file permissions wordpress

For those who have their wordpress root folder under their home folder: ** Ubuntu/apache Add your user to www-data group: CREDIT Granting write permissions to www-data group You want to call usermod on your user. So that would be: sudo usermod -aG www-data yourUserName ** Assuming www-data group exists Check your user is in www-data… Leer más »

crear un sitio django – gunicorn – nginx – supervisord – centos 7 – selinux

1. crear virtualenv virtualenv misitio 2. activar virtualenv source /opt/virtualenvs/misitio/bin/activate 3. Instalar paquetes: pip install django==1.10 pip install psycopg2==2.7.3.1 pip install django-suit==0.2.25 pip install django_select2 pip install gunicorn pip install django_select2 4. Crear base inicial: python manage.py makemigrations python manage.py migrate 5. Crear usuario python manage.py createsuperuser SELINUX setenforce 1 semanage fcontext -a -t httpd_sys_content_t… Leer más »

How to Setup and Configure an OpenVPN Server on CentOS 6 – 7

How to Setup and Configure an OpenVPN Server on CentOS 6 (update centos 7) http://www.unixmen.com/setup-openvpn-server-client-centos-6-5/ Tagged In: CentOS, Miscellaneous, VPN Introduction This article will guide you through the setup and configuration of OpenVPN server on your CentOS 6 cloud server. We will also cover how to configure your Windows, OS X, or Linux client to… Leer más »