In order to enable anonymous FTP connections to a particular directory while still supporting authentication for virtual users for their files via PAM isn't that difficult. Install VSFTPD if you haven't done so already by running the following command:

Adding these lines enables anonymous FTP to the specified directory where files can be read and downloaded only. Anonymous users cannot write, delete, change, or modify files because of the anon_mkdir_write_enable=NO and the anon_upload_enable=NO configuration lines. For your changes to take effect, restart vsftpd.

Geany is by far one of the best text editors I have come across that works on both Windows and Linux. It is also one of the most aesthetically pleasing editors to look at right out of the box. I do a lot of PHP scripting, and as such, it is nice to have a "beautifier" script that will automatically format my code for me so that it looks nice. Geany can also call the php executable and check your script syntax. You can achieve both of these features by installing both PHP for Windows and the PHP Beautifier PEAR addon.

Install PHP for Windows:

If you code your PHP scripts in Windows, you'll want to use syntax checking and the PHP_Beautifier script. To do so, you must install the PHP5 Windows package, which includes the main PHP binaries.

Now, select the code you want to format, right click on the selected text, and choose "Format" –> "Send Selection to" –> and pick "PHP Beautifier". The code should now be formatted using the options specified in the command line arguments above.

I tried and tried to get the CKEditor plugin for WordPress to initalize multiple comment textareas for a custom post type I had created using the pods WordPress plugin. No matter how hard I tried, I failed. Only the first instance would get initialized. I dug through the code and found where the instance was created, but even with the code in front of my eyes, I could not figure out how to adapt the messy PHP / Javascript mesh to do what I wanted.

Eventually, I came accross a great guide explaining how to use NicEdit, a simple WYSIWYG editor that can be used easily to replace the boring WordPress comment box with something more friendly for end users leaving comments.

Following this guide, I downloaded and uploaded the NicEdit files to a folder named "scripts" in my theme's directory (please adjust the path in the functions below if you want to use another directory or place the files elsewhere). I would recommend downloading the non-compressed version, as the code is easier to read and making changes is a lot easier. I inserted the following function into my WordPress theme's functions.php file:

By default, BIND9 is configured to allow recursive DNS queries. This allows others to use your DNS server to query other domains on your server's behalf. Unfortunately, recursive DNS queries can be used to amplify a UDP flood DDOS attack. As such, for a shared web hosting environment, it is best to disable recursive DNS queries. You can disable BIND9 recursion easily by running the following script:

Automating the installation of software via bash scripting on Linux can be difficult. However, in debian and its related distributions such as Ubuntu, you can simplify the installation of packages by using a few tools. One of these tools is called debconf-utils. If installation packages such as MySQL or PHPMyAdmin ask configuration questions, you can provide a default set of answers without being prompted. This is excellent for testing scripts or automating installation for users who may not know how to appropriately answer these questions.

Basically, with debconf-utils you can pre-answer these questions so that no prompts show up!

To install, run this command:

sudo apt-get install debconf-utils

To get a list of questions an installer might ask, first install the package on a test machine where you're writing the script normally. For example, let's install phpmyadmin:

sudo apt-get install phpmyadmin

Now, to retrieve a set of questions phpmyadmin may ask, you can run this command:

sudo debconf-get-selections | grep phpmyadmin

In your bash script, you can now pre-answer certain questions by including your preconfigured answer commands before installing the package. For example, when phpmyadmin installs, it asks for the MySQL root user password. You can skip this prompt and define what the MySQL root password should be by using this command in your script:

password defines the type and 1234 sets the password to 1234.
You can also suppress questions entirely by using the following command in front of your install command:

DEBIAN_FRONTEND=noninteractive sudo apt-get install phpmyadmin

Default configuration will be used during the installation of the phpmyadmin package, which means it may not work after being installed because some configuration options should be answered. So, use both combinations for various packages to fit your needs!

Wouldn't it be cool to dynamically style a website or webpage based on a user's favorite color? Thanks to several JQuery plugins, it is now possible to do so! The JQuery Color Picker plugin allows users to select a color based on a color pallete / color wheel similar to those found within photo editing software such as Adobe Photoshop or Corel PaintShop Pro. The JQuery Color Plugin can darken, lighten, add, multiply, subtract, find color hues, change rgb values, and manipulate colors in all sorts of ways you probably never imagined possible. The final piece to dynamically styling a page based on a user selected color is to save the picked color's value in a cookie using the JQuery-Cookie Plugin. When any page loads, you will need to use the document.ready JQuery function to read the cookie and restyle elements as necessary. If a cookie is not set, the default color can also be specified here.

Here's a screenshot of the JQuery Color Picker in action:

To load / use the color picker, place this function within the document.ready function:

Assign a DIV element the ID of "colorpicker" in your HTML file to activate the color picker. Don't change the "onShow" or "onHide" JQuery sub-functions of the ColorPicker. When a user chooses a color from the color picker, the color picker "onChange" function is called. This is where you need to define what should be done with the color the user has picked. In my example, I call the $.xcolor.lighten and $.xcolor.darken Color Plugin functions to generate a lighter and darker color. I use then use the color selected, a lighter variant of that color, and a darker variant of that color to style elements appropriately to keep text readable while offering a new color scheme. As you can see from the code above, I mainly change the css attributes of certain classes, which the elements have been assigned. What is changed is the backgroundColor and border-color of certain classes based on the three colors that were generated.

I hope this guide helps. The plugin websites did not provide all of the code needed for a working sample, but luckily, I did the combination work for you. Go ahead and use my source for anything! Please comment if you have questions.

If you want your Linux installation to look like the original theme used in Windows XP, you can do that! This guide will walk you through the process of easily making any MATE or GNOME2 Desktop Environment look like the Windows XP GUI. The Luna Theme can be downloaded here and installed using our simple installation script. If you already have MATE installed or are already running GNOME2, skip to the Luna Theme install instructions.

Install MATE on Ubuntu:

Run the below commands for your matching Ubuntu version in a terminal to install MATE. To find out which version of Ubuntu you're running, use this command:

Our version of the Luna theme has been converted and ported over to GTK3, so it should work with all newer flavors of Linux running MATE while still working on older Linux installs running GNOME2.To install the Luna Theme which will make Linux look like Windows XP, run the following commands. The theme files will be downloaded and saved in your Downloads directory.

Next, Right Click on the Desktop, and choose "Change Desktop Background". Click on the "Themes" tab. Select "Luna". Click on the "Background" tab. If you want the default XP wallpaper set as your background, click on the "Add" button. Select your "Pictures" folder. Select "luna_background.jpg". Click "Open". Click on "Close" to change it.

Now, MATE or GNOME2 looks like XP! Enjoy! This theme was copied from Ylmf OS 3.0.