background preloader


Facebook Twitter » Rtorrent magic: Moving finished torrents based on labels. So… I’ve been using rtorrent as my main torrent client for a couple of years now. I have it running on my server and I’m usually adding torrents either by placing them in a watchdir or by adding them through a web interface (rutorrent, in case you’re wondering). One of the things I’ve always wanted was to have rtorrent handle multiple categories. I wanted games I downloaded to go into a “games” directory, comics into a “comics” directory, and so on. I’ve been looking for solutions for a few years now, and all I’ve found online are people in the same boat. So today I decided to spend a few hours experimenting… And this is the result. The Solution My way of doing this uses two lines of code in .rtorrent.rc: # Add new method to get finished dir system.method.insert = d.get_finished_dir,simple,"cat=[folder]/finished/,$d.get_custom1=" Torrents without labels will be placed in the base dir.

Torrents with labels corresponding to already existing folders will be moved to those folders. Sources. How To Configure vsftpd to Use SSL/TLS on an Ubuntu VPS. Introduction Warning: FTP is inherently insecure! Consider using SFTP instead of FTP. FTP, or file transfer protocol, was a popular way to transfer files between local and remote computers in the past. The protocol is inherently insecure, so its usage has fallen out of favor. If you still want to use FTP instead of a more secure alternative like SFTP, which uses the SSH protocol to implement file transfers, you can secure it somewhat by configuring FTP to use SSL. In this guide, we will configure vsftpd to use SSL certificates on an Ubuntu 12.04 VPS. Install vsftpd The vsftpd server is available in Ubuntu's default repositories.

Sudo apt-get install vsftpd We now have vsftpd on our server, but we still must configure it. Configure Basic vsftpd Functionality The default configuration file is at /etc/vsftpd.conf. Sudo nano /etc/vsftpd.conf Disable the ability for users to log in anonymously by finding the anonymous_enable parameter and changing it to read "NO": anonymous_enable=NO local_enable=YES. Git Push Fails - fatal: The remote end hung up unexpectedly - Stash Knowledge Base. Skip to end of metadataGo to start of metadata Symptoms When users try to run "git push" the following error message is shown: Cause The "Smart HTTP" protocol in Git uses "Transfer-Encoding: chunked" in POST requests when it contains packed objects greater than 1MB in size. Some proxy servers, like Nginx, do not support this transfer encoding by default, and the requests will be rejected before they get to Stash.

Because of this, the Stash logs will not show any extra information. Workaround When pushing a large amount of data (initial push of a big repository, change with very big file(s)) may require a higher http.postBuffer setting on your git client (not the server). Resolution Related Content Expand to see related content Related Content with Label 'large-files' Page: Page: Page: Page: Page: Related Content with Label 'git-push' Related Content with Label 'proxy' Page: Page: Page: Page: Page: Page: Page: Page: Page:

Play Windows Media files in Firefox with the Windows Media plugin. To play Windows Media in Firefox, you need the Windows Media Player browser plugin installed. There are two different versions: The original, which is usually included with Windows up until XP. The new version, specifically developed for Windows XP and above, which is only available by download. This article describes how to check for and install the Windows Media Player Firefox plugin.Many Windows XP users will have the old plugin already, but it is recommended that you install the new plugin, anyway. Note: Even if you already have Windows Media Player installed, you may still be missing the plugin required to play back Windows Media audio and video embedded in web pages. Windows Media Player used to be available for the Mac platform, but is no longer supported by Microsoft. Mplayer is a popular Linux media player that can play back Windows Media files.

To see if you already have the plugin installed: Go to the plugin download page on Interoperability Bridges. Windows Media test. Cómo reproducir archivos AVI en Firefox. Debido a la magnitud de los códecs disponibles, los archivos AVI pueden venir en una variedad de tipos. Aunque algunos de los más comunes como DIVX se suelen reproducir en un reproductor DIVX integrado, otros pueden descargarse automáticamente a tu computadora. Podrías haber notado que este problema se produce a veces en Mozilla Firefox cuando no lo hace en Microsoft Internet Explorer.

Siempre y cuando tengas el códec adecuado necesario para reproducir el archivo AVI, también se puede reproducir en Firefox con Windows Media Player. Esto es muy útil para grandes archivos AVI, ya que no tienes que esperar hasta que hayan terminado de descargarse para verlos. Logra esto modificando el archivo integrado de Firefox para reconocer y reproducir archivos AVI en Windows Media Player. Nivel de dificultad: Moderado 1 Cierra Mozilla Firefox. Consejos y advertencias Firefox debe estar cerrado al modificar el archivo Pluginreg. Más galerías de fotos. Missing Codecs in Firefox to Play Video in Gallery2 | Krunk4Ever! Update: Instead of doing all the work below, you should first try installing this plug-in: Windows Media Player Firefox Plugin Every once in awhile, I’ll hit a video on my gallery that requires me to download a codec, but telling it to download fails to find a codec that’ll work. If I copy and paste the URL into IE, the video plays fine. I started searching the Gallery forums.

I found this thread: Combination Gallery 2/AVI/Firefox does not display video, and it appears a lot of people are hitting this issue: When adding an AVI file to my gallery it is recognized and ffmpeg creates a thumbnail for it. Before, I would just tell every video to use mime type: video/x-ms-wmv, however, Gallery2 supports a wider range of mime types, so I decided to let it do its own thing. It turns out, to fix this problem, you need to associate video/x-msvideo in Firefox.

To do this, open the following file in notepad: %APPDATA%\Mozilla\Firefox\pluginreg.dat. EiTheL Inside: Autenticación SSH mediante certificado. La idea es que podamos abrir sesiones ssh sin necesidad de introducir una contraseña. Así pues, lo que decidimos es crear un certificado y propagarlo en los nodos. De esta manera, como los nodos ya conocerán el certificado del maestro, abrirán la sesión sin preguntar por ninguna contraseña.

Crear certificado Creamos un certificado en el nodo0 para que nos podamos identificar mediante él en los otros nodos (nodo1, nodo2, etc). ssh-keygen -t rsa -b 2048 Veremos que en nuestra carpeta se ha creado una oculta llamada .ssh con el siguiente contenido: csi@nodo0:~/.ssh$ ls id_rsa known_hosts El archivo .pub es nuestra clave pública y es la que propagaremos en todos los nodos en los que queremos ser identificados sin necesidad de contraseña. Propagar certificado en los nodos Una vez tenemos nuestro certificado creado, lo que tenemos que hacer es propagarlo por los nodos. Ssh-copy-id -i csi@nodo1. Configuring NGINX in front of Tomcat or other Java application server | Java Developer Notes.

NGINX is an awesome software that functions as both web server and as a reverse proxy. Sometimes you may need to configure it in front of your tomcat or other application server. There are many reasons but here are some common ones: there are many types of attacks that NGINX can handle very well. This is why it is commonly put in front of Apache for PHP websites.NGINX has caching functionality that can speed up your website significantly. Perhaps 10, 100 or 1000 times may need to host multiple Java application in a single server and are accessed using different domains. I wish to expound on the last item on the list. Say for example you have 2 domains: and Based on the sample above, let’s assume we configured Tomcat to use port 8080 for wallet.war and 8081 for documents.war. Install nginx, and immediately stop the service apt-get install nginx service nginx stop Create the file /etc/nginx/sites-enabled/wallet.conf and place the following contents:

Apache Tomcat. The tomcat7-admin package contains two webapps that can be used to administer the Tomcat server using a web interface. You can install them by entering the following command in the terminal prompt: sudo apt-get install tomcat7-admin The first one is the manager webapp, which you can access by default at It is primarily used to get server status and restart webapps.

Access to the manager application is protected by default: you need to define a user with the role "manager-gui" in /etc/tomcat7/tomcat-users.xml before you can access it. The second one is the host-manager webapp, which you can access by default at Access to the host-manager application is also protected by default: you need to define a user with the role "admin-gui" in /etc/tomcat7/tomcat-users.xml before you can access it. For security reasons, the tomcat7 user cannot write to the /etc/tomcat7 directory by default. Install Apache Maven 3.2.1 in Ubuntu 14.04 - Sysads Gazette. Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. New Features Add option to exclude all transitive dependencies for a particular oneAllow wildcards in dependency exclusionsCommand line option to exclude modules from reactor Key Features Install Apache Maven Step 1: Remove older version sudo apt-get remove maven2 Step 2: Add following lines to sources.list sudo add-apt-repository "deb precise main" Step 3: Update Repository and Install sudo apt-get update sudo apt-get install maven3 Step 4: Add Symbolic Link sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn Step 5: Remove PPA from sources.list - Remove Repository via Software Center and update.

10 SCP Commands to Transfer Files/Folders in Linux. Linux administrator should be familiar with CLI environment. Since GUI mode in Linux servers is not a common to be installed. SSH may the most popular protocol to enable Linux administrator to manage the servers via remote in secure way. Built-in with SSH command there is SCP command. SCP is used to copy file(s) between servers in secure way. The below command will read as “copy source_file_name” into “destination_folder” at “destination_host” using “username account”. Basic syntax of SCP scp source_file_name username@destination_host:destination_folder There are much parameters in SCP command that you can use.

Provide the detail information of SCP process using -v parameter Basic SCP command without parameter will copy the files in background. Pungki@mint ~/Documents $ scp -v Label.pdf mrarianto@202.x.x.x:. Sample Output Executing: program /usr/bin/ssh host 202.x.x.x, user mrarianto, command scp -v -t . Provide modification times, access times, and modes from original files. How to Install Oracle Java 7/8 (JDK and JRE) In Ubuntu 14.04, 13.10, 12.10, 12.04 and 10.04 Via PPA or Linux Mint 17 - Enqlu.

Ubuntu and Debian - Nginx Virtual Hosts. Now we have Nginx installed (whether via the package manager or from source) we are in a position to serve multiple domains using Virtual Hosts. Do note the layout used in this article is explained here — feel free to use the directories of your choice. Create the layout Let's create the basic layout for each domain. In your home directory create a 'public_html' folder: mkdir /home/demo/public_html Now for each domain you want to host (I use the examples of and create a folder with a standard set of sub-folders: mkdir -p /home/demo/public_html/{public,private,log,backup} and mkdir -p /home/demo/public_html/{public,private,log,backup} That will create the folders public, private, log and backup for each of our domains ( and index.html The content of the public folder is, naturally, up to you but for this example I am going to use a very simple html file so we can check the virtual hosts work.

So for each domain: Virtual Host. How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 14.04 LTS. Configura un servidor SSH en Ubuntu para acceder a tu equipo de forma remota. En este manual hablaremos sobre el SSH y cómo configurarlo para acceder remotamente a nuestro equipo con GNU/Linux, también podremos acceder a nuestros routers si tienen firmwares basados en Linux como Tomato RAF. ¿Qué es SSH? Las siglas corresponden a Secure SHell. Sirve para acceder a máquinas remotas, igual que hace telnet, pero de una forma segura ya que la conexión va cifrada. El transporte se hace mediante TCP, por tanto nos garantiza que las órdenes van a llegar a su destino (conectivo, fiable, orientado a conexión). Seguridad El cifrado de SSH proporciona autenticidad e integridad de los datos transmitidos por una red insegura como internet.

Utiliza llaves públicas para la autenticación en la máquina remota. SSH no sólo sirve para usar comandos en máquinas remotas, sino para transferencias de ficheros de forma segura ya sea por SCP o sFTP y servicios de escritorio remoto. Mirad 25 formas para sacarle partido al SSH Instalación Vamos a usar OpenSSH por tanto vamos a instalarlo: Creating a Chroot Jail for SSH Access | Allan Feid. I wanted to setup a way to allow SSH access to my machine but limit their abilities heavily. To do that I figured a chroot jail was the best way. In this example I'm using ArchLinux and OpenSSH 5.1p1. It should be a very similar process on any *nix operating system. Setup your test user The way I'm setting this up, is that all my chrooted users will be added to the sshusers group. So we must setup the group, then add the user. $ groupadd sshusers $ adduser -g sshusers user Setup the jail directories The next step is to setup all the directories needed.

. $ mkdir -p /var/jail/{dev,etc,lib,usr,bin} $ mkdir -p /var/jail/usr/bin $ chown root.root /var/jail You also need the /dev/null file: $ mknod -m 666 /var/jail/dev/null c 1 3 You need to fill up the etc directory with a few minimum files: $ cd /var/jail/etc $ cp /etc/ . $ cp /etc/ . $ cp /etc/nsswitch.conf . $ cp /etc/hosts . Once this is done you need to figure out what commands you want accessible by your limited users. SSH and SFTP Chroot Jail | 58bits. For a little while now I've wanted to be able to chroot both SFTP and SHH accounts on one of my multi-user VPSs.

SFTP on its own is not so difficult. OpenSSH 4.9p1 and above includes the ChrootDirectory directive. And an SFTP chroot is a little more forgiving in so far as it doesn't actually require any supporting system or userpsace services (a shell, ls, cp, etc.), which is why you often see ChrootDirectory accompanied with ForceCommand internal-sftp which will prevent SSH access altogether. What I'd like to do is create a restricted environment for both SSH and SFTP. I spent a little while looking at a very interesting project from Olivier Sessink called Jailkit. Jailkit has most of what I was looking for but, it has quite a few moving parts, including the need to replace a users shell with a special Jailkit shim that hands over to Jailkit.

It turns out that OpenSSH gets us most of the way there with the ChrootDirectory directive. Let's get Jailed! Step 1: Create your chroot directories. Chroot SFTP users with OpenSSH | Ubuntu Server Tutorials. Top 20 OpenSSH Server Best Security Practices - nixCraft. Ubuntu 12/13/14 Debian 7 Seedbox Guide/Script -rtorrent/rutorrent/autodl-irssi/vsftpd. The Seedbox From Scratch Script (Multi-user, quota, sabnzbd and Deluge)