background preloader

Linux

Facebook Twitter

Linux Add a Swap File – Howto. I need additional swap space to improve my Linux server/desktop system performance. How do I add a swap file to Linux system using command line options without creating a new partitions? In Linux, as in most other Unix-like operating systems, it is common to use a whole partition of a hard disk for swapping. However, with the 2.6 Linux kernel, swap files are just as fast as swap partitions, although I recommend using a swap partition. The administrative flexibility of swap files outweighs that of partitions; since modern high capacity hard drives can remap physical sectors, no partition is guaranteed to be contiguous. You can add swap file as a dedicated partition or use following instructions to create a swap file. Procedure To Add a Swap File Under Linux You need to use the dd command to create swap file. Step #1: Login as the Root User Open a terminal window (select Applications > Accessories > Terminal) or login to remote server using the ssh client.

Step #2: Create Storage File Where, Compressing files under Linux or UNIX cheat sheet. Sqlsurvey. How I Created My Own Cloud Using BitTorrent Sync, Raspberry Pi & Owncloud. I’ve had a Raspberry Pi lying around the house for a few months now. Every once in a while I’ll take it out and tinker around with it. When BitTorrent released the BitTorrent Sync Alpha a few weeks back, I decided to see what kind of options I had for using the program with my Raspberry Pi. BitTorrent Sync is awesome. If you don’t know about it, you can read all about it here. In a nutshell, it allows you to sync folders between machines using P2P. If you have a DIY attitude and aren’t afraid of a few terminal commands, then read on to learn about how I did it. First, you’ll need the following: A Raspberry PiUSB Keyboard for setupUSB Mouse for setupSD card (faster, the better)A thumb drive (I like using this for its low profile). Step 1: Setting up Raspbian Fire up your favorite torrent client and download the Raspbian “wheezy” image.

I won’t go in to full detail on how to write the images to the SD card. When that is done, plug the SD card into your RasPi and fire it up. Cd /home/pi . df -h. Install WordPress 3.9 using Apache in Debian, Ubuntu and Linux Mint. Writing an Apache or WordPress introduction will do no good due to the fact that both of them, combined together, are one of the most used Open Source platforms in Internet today, in fact Apache runs on 52 % world web servers and WordPress on one of every 6 websites – Apache with MYSQL and PHP providing the dynamic server gateway interface for WordPress Publishing Content Management.

This topic explains the steps needed to be processed in order to install WordPress 3.9 on top of LAMP, which stands for Linux-Apache-MySQL-Php-Perl-Python-PhpMyAdmin on Debian, Ubuntu and Linux Mint, with basic Apache Virtual Host configurations and MySQL database access through CLI or PhpMyAdmin Web Interface, but be aware that does not cover other important network service configurations, like an IP name mapping provided by DNS server and simply uses the rudimentary system hosts file for IP name transactions (DNS query). Step 1: Server Basic Configurations 1. 2. 3. 4. . $ sudo apt-get install phpmyadmin 5. 6. How to run your own e-mail server with your own domain, part 1. E-mail is old and complex.

It's the oldest still-recognizable component of the Internet, with its modern incarnation having coalesced out of several different decades-old messaging technologies including ARPANET node-to-node messaging in the early 1970s. And though it remains a cornerstone of the Internet—the original killer app, really—it's also extraordinarily hard to do right. We most often interact with e-mail servers through friendly Web-based front-ends or applications, but a tremendous amount of work goes into hiding the complexity that allows the whole system to work. E-mail functions in a poisoned and hostile environment, flooded by viruses and spam. From a normal person's perspective, e-mail seems like a solved problem: sign up for Internet access and your ISP gives you an e-mail address. I'll tell you why: because if it's in the cloud, it's not yours.

Because you must rely on others for your security. Well, to hell with that. This is hard and even a bit scary... VirtualHost Examples. This document attempts to answer the commonly-asked questions about setting up virtual hosts. These scenarios are those involving multiple web sites running on a single server, via name-based or IP-based virtual hosts. Running several name-based web sites on a single IP address. Your server has multiple hostnames that resolve to a single address, and you want to respond differently for www.example.com and www.example.org. Note Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those host names. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your web site.

You can put entries in your hosts file for local testing, but that will work only from the machine with those hosts entries. The asterisks match all addresses, so the main server serves no requests. The above configuration is what you will want to use in almost all name-based virtual hosting situations. Note: How To Set Up Apache Virtual Hosts on Debian 7. What the Red Means The lines that the user needs to enter or customize will be in red in this tutorial! The rest should mostly be copy-and-pastable. Virtual Hosts Virtual Hosts are used to run more than one domain off of a single IP address. Set Up The steps in this tutorial require the user to have root privileges. Additionally, you need to have apache already installed and running on your virtual server. Sudo apt-get install apache2 Step One— Create a New Directory First, it is necessary to create a directory where we will keep the new website’s information.

You will need to designate an actual DNS approved domain (or an IP address) to test that a virtual host is working. Sudo mkdir -p /var/www/example.com/public_html *If you want to use an unapproved domain name to test the process, you will find information on how to make it work on your local computer in Step Seven. Step Two—Grant Permissions sudo chown -R $USER:$USER /var/www/example.com/public_html sudo chmod -R 755 /var/www Save & Exit. Using Docker to host this WordPress blog | Intercity Blog.

We use a tool called Docker to host this blog on a DigitalOcean server. Docker allows you to run processes on your server that are included in a pre-built image. It runs these programs in a contained environment, with no danger of harming other processes and files. We used a pre-built WordPress image for Docker to install this blog. This image includes nginx, MySQL and automatically installs WordPress when started. So we could instantly start this blog, without having to manually install WordPress. Here is how that works: Installing Docker on a Digital Ocean server First, I created a machine at Digital Ocean and installed it with the standard Ubuntu 12.04.3 LTS x64 image.

Then, I installed Docker by following the instructions in the Docker documentation at : This installs the Docker software. Installing and running WordPress from a Docker image So, for this blog, I started the container with the following command: Apache redirect to another port. Debian Sources List Generator. Debian Sources List Generator. Criando HDs virtuais na memória RAM. Você deve saber que a velocidade de escrita / leitura na memória RAM é muito maior do que em dispositivos mecânicos, como o HD, ou mesmo memória flash (como a utilizada nos pen drives e discos de estado sólido - SSD).

Se seu computador tem muita memória RAM, não seria interessante usar parte dessa memória como se fosse um disco, uma partição, para realizar algumas tarefas especiais? Pense bem. Durante a gravação de CDs, muitas vezes a lenta velocidade atingida não é apenas devido à mídia ou à gravadora - e sim a um terceiro item que pode colocar altos gargalos, o HD. Gravar dados da memória RAM para um CD ou DVD é uma tarefa muito, muito mais rápida. Os programas de gravação normalmente gravam uma imagem temporária, salva no HD. Além dessa situação, algumas outras dariam uma boa folga ao HD.

A dica é, então, criar um disco virtual na memória RAM. No caso, o objetivo é criar uma ramdisk num sistema que você já tenha instalado - seja Windows ou Linux. No Linux Comentando os comandos: