Posts

How to deploying multiple Django blog sites on a single server

To deploy multiple Django blog sites on a single server using Gunicorn, you will need to follow these general steps: Set up your server with a Linux operating system and install necessary dependencies such as Python, Django, and Gunicorn. Create a new virtual environment for each Django blog site, and install the necessary packages for each site. Configure Gunicorn to run each Django site using a separate socket and process. This can typically be done by creating a separate Gunicorn service file for each site and specifying the correct socket and process settings. Configure your server's web server (such as Nginx) to proxy requests to the correct Gunicorn process based on the domain or subdomain being accessed. Start Gunicorn and the web server, and ensure that they are set to start automatically on system boot. Test that each site is accessible by visiting the appropriate domain or subdomain in a web browser. It's worth noting that this is a general overview of the process and...

Fake A Hollywood Hacker Screen in Linux Terminal

Image
How to install Hollywood hacking terminal in Linux The tool is quite aptly called Hollywood. Basically, it runs in Byobu, a text based Window Manager and it creates a random number of random sized split windows and runs a noisy text app in each of them. Byobu is an interesting tool developed by Dustin Kirkland of Ubuntu. More about it in some other article. Let’s focus on installing this tool. Ubuntu users can install Hollywood using this simple command: sudo apt install hollywood If the above command doesn’t work in your Ubuntu or other Ubuntu based Linux distributions such as Linux Mint, elementary OS, Zorin OS, Linux Lite etc, you may use the below PPA: sudo apt-add-repository ppa:hollywood/ppa sudo apt-get update sudo apt-get install byobu hollywood   You can also get the source code of Hollywood from its GitHub repository: Hollywood on GitHub Once installed, you can run it using the command below, no sudo required: hollywood As it runs Byobu first, ...

Install Asterisk from Source

After logging in to your Ubuntu Server as an user, issue following command to switch to root sudo su Now you are root, but you need to set password with command passwd Note that you still wont be able to ssh into your server as root, you would still need to ssh as user and then type su. Next step would be to install initial dependencies for asterisk apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev git subversion Now when we are root and dependencies are satisfied, we can move to /usr/src/ dir and download asterisk there cd /usr/src wget downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz Next we unpack it. tar zxvf asterisk-13-current.tar.gz Now we need to cd into the newly unpacked directory, but we don't really know what the directory is called. It starts with asterisk-13 and then there is minor version which is at the time of writing th...

How to install apt-fast on your Linux distribution

The following commands allow installation of apt-fast 1.8 on Ubuntu 14.04 and later versions. It works on Debian-based Linux distributions like Ubuntu and Linux Mint which itself is Ubuntu-based. sudo add-apt-repository ppa:saiarcot895/myppa sudo apt-get update sudo apt-get -y install apt-fast

odbcinst: SQLGetPrivateProfileString failed with

Image
odbcinst: SQLGetPrivateProfileString failed with . This is an error that I received while setting up Asterisk with MySQL. The error occurs when I type in the command: sudo odbcinst -q -d The reason for the error is 1 of 2 things. * To find your local path for odbcinst run the following from terminal: sudo odbcinst -j 1. You are missing environment profiles Run the following in terminal to check your environment profiles for ODBC: env | grep 'ODBC' You should see the following returned: LD_LIBRARY_PATH=/usr/local/unixODBC/lib:/usr/local/lib: ODBCSYSINI=/usr/local/etc ODBCINI=/usr/local/etc/odbc.ini If not then this is your first problem. You are missing the environment variables to unixODBC. To add the environment variables run the following in terminal (no sudo): export LD_LIBRARY_PATH=/usr/local/unixODBC/lib:/usr/local/lib: export ODBCSYSINI=/usr/local/etc export ODBCINI=/usr/local/etc/odbc.ini * Please note that the paths are where your odbc files sit. So ple...

Watch Fallout 4 mods running on Xbox One before they hit next week

Image
oft announced today Xbox One is getting mod support for Fallout 4 on May 31. Mods are community-built add-ons that can change various aspects of a game, and it’s a huge part of what makes playing on PC so interesting. One turns certain characters into Thomas the Tank Engine on the PC version of Fallout 4 (a mod replaced dragons with Thomas in The Elder Scrolls V: Skyrim). Now, some of that mod content is coming to consoles — although you probably won’t see anything featuring copyright-protected intellectual properties. I’m sorry, but you’ll probably still need a PC if you wish to romance Thomas the Tank Engine. Fallout 4 is one of the best-selling games in the $99.6 billion gaming industry, and Bethesda keeps players coming back with regular updates. The mods, however, are probably even more crucial to maintaining Fallout 4’s place on Steam’s most-played list, where it is usually in the top 10 with perennial hits like Civilization V, Ark: Survival Evolved, an...

Unblock Facebook in your country

Overview Update - Jan 5, 2016 - If you're already running a proxy, please update your NGINX config or PHP script This guide will explain how to set up your own Facebook proxy site. A proxy site will help users in countries where Facebook has been blocked. For most of the article we'll be using a web server called Nginx . NGINX is our recommended method since it is fast, requires few resources, and has many advanced reverse proxy features. It has been tested on Red Hat based and Debian based distributions but it works on pretty much all UNIX-based systems. Your server should not have anything else running on port 80 though, and of course it needs sufficient bandwidth. Don't use a precompiled binary from your distributions repos (e.g. apt-get install package) since it will not have the required modules. There are also two PHP scripts that proxy facebook that have been designed specifically for this and can be used on web hosting packages (i.e. do...