-
Continue reading →: Debootstrap – all steps
Installing Debian GNU/Linux from another Unix/Linux System This article will show how to install a Debian GNU/Linux on a existing Linux server which is up and running. A more detailed information about this stuff you will be able to get on http://www.debian.org/releases/stable/i386/apds03.html Following steps should be followed in order. Getting…
-
Continue reading →: x11vnc: a VNC server for real X displays
In localhost: localhost$ ssh <<remote_host_ip>> In remotehost: remotehost$ export DISPLAY=:0 remotehost$ x11vnc In localhost: localhost$ vinagre <<remote_host_ip>>
-
Continue reading →: Mini-tip about Django templates
Django templates priority order First, the TEMPLATE_DIRS dir setting in settings.py file of the project enviroment Secondly, templates dir into de apps. The last one is the propertly app which use this template In addition templates used by admin gui or any other Django core module can be overwritten in…
-
Continue reading →: Socat – Socket concatenator!
socat is a Multipurpose relay (“is a more complex variant of netcat. It is larger and more flexible and has more options that must be configured for a given task” – Wikipedia): http://www.dest-unreach.org/socat/ Get it here: socat-1.7.2.0.tar.gz Examples of use: socat – TCP4:www.domain.org:80 transfers data between STDIO (-) and a…
-
Continue reading →: Disabling a site-wide action on Django
If you need to disable a site-wide action you can call AdminSite.disable_action(). admin.site.disable_action(‘delete_selected’) (See: Django reference guide) … or , for a specific ModelAdmin.
-
Continue reading →: Automated multihosting with Nginx for PHP with FastCGI
Nginx configuration for this: if client request does not have x_forwarded_for, deny the request showing a 404 allow access site even if x_forwarded_for: http://www.public1.com and http://www.public2.com domains publicdir directory if “Host” header is a IP use /var/www/vhosts/ip as root dir if “Host” header is a domain use /var/www/vhosts/$domain as root…
-
Continue reading →: Paramiko example
I have the pleasure of presenting a tip from the past. Today from long time ago: Paramiko. import os import paramiko hostname=”vps.doc.com” username=”admin” password=”password” port=22 remotepath=”/tmp/test” ssh = paramiko.SSHClient() ssh.load_host_keys(os.path.expanduser(os.path.join(“~”, “.ssh”, “known_hosts”))) ssh.connect(hostname, port=port, username=str(username), password=str(password)) sftp = ssh.open_sftp() remote_file = sftp.file(remotepath, “r”) remote_file.set_pipelined(True) file_lines = remote_file.read() return file_lines file_lines…
-
Continue reading →: Tips about FFserver & FFmpeg
Today, I want to share one tip about ffmpeg and ffserver multimedia video tools and server. FFmpeg is a open source project that produces libraries and programs for handling multimedia data. FFserver is a HTTP and RTSP multimedia streaming server for live broadcasts. It can also time shift live broadcast.…
-
Continue reading →: Deux ex virtual machine
El siguiente texto no se trata de un alegato a favor de los sistemas de virtualización a nivel OS como OpenVZ y VServer y en contra de los sistemas de virtualización completa como Xen, VMware, VBox, KVM … No, no se trata de eso, si no de que, en principio, …
-
Continue reading →: I prefer OS-virtualization than full-virtualization
Since some time ago I’m clear about next question: ¿what advantages do you see to OS-virtualization (like OpenVz or VServer) solutions against Full-virtualizacion solutions like (KVM or Xen)? And, this is my official answer for this question: Performance. OS-virtualization have got a lower penalization than the other one with respect…



