Archive for "Linux/Unix"

Sep
08
How to open multiple instances of gedit

In general, gedit opens new files in the same window adding a new tab to the workspace. To open a file in a separate instance or window of gedit is easy. Click to continue »

Share

Tags : , , ,

Sep
07
How to find or generate a SSH key on Linux system

To find or generate a SSH key on Linux system

  1. Check for existing SSH keys on your computer. Skip to Step 4 if you already have one and want to use that one.

    First, we will check for existing ssh keys:

    $ cd ~/.ssh

  2. Click to continue »

Share

Tags : , , , , ,

Sep
05
Gimp Image Editor not launching in KUbuntu – resolved

I recently had installed Gimp image editor in my KUbuntu through software management interface. After the installation was done i clicked the Gimp icon to launch it and the system did seem to try to load it but eventually it failed. However if i tried “gimp” command in “Konsole” it would load it (with a number of “failed” messages in the console window) but when i worked on a image for few seconds it would crash abruptly. Click to continue »

Share

Tags : , , , ,

Aug
15
Creating new virtual hosts in Ubuntu/Linux

In KUbuntu i wanted to make virtual host localhost.example.com working on my local machine what it worked like on Windows 7 earlier. I am posting the complete process here to help someone newbie like me in using KUbuntu operating system on my local machine. Click to continue »

Share

Tags : , ,

Aug
03
Adding php syntax highlight support to more extensions in gedit

Locate php.lang file and edit it

locate gtksourceview | grep /php.lang

Now i did
sudo gedit /usr/share/gtksourceview-2.0/language-specs/php.lang as location of my php.lang file was /usr/share/gtksourceview-2.0/language-specs/

In php.lang file look for <property name="globs">*.php;*.php3;*.php4;*.phtml</property> or similar and add more file extenstions separate with semicolon (;). I added *.ctp, *.tpl, *.module to make it look like <property name="globs">*.php;*.php3;*.php4;*.phtml;*.ctp;*.tpl;*.module;</property>. Save the file and restart gedit. Files with newly added extension should load syntax highlighting automatically.

Share

Tags : ,

Jun
06
How to create/configure an ftp account in EditPlus

To create an ftp account in EditPlus follow the steps listed below. Click to continue »

Share

Feb
10
phpMyAdmin PHP Code Injection Exploit attempt on my server

This morning, when i checked my Give Back India site’s access log i found some scripts/setup.php request attempts. In fact, not ‘some’ but hundreds of them. All requests were made targeting phpMyAdmin’ installations on my server. Here are a few of them: Click to continue »

Share

Tags : , , , , , , , ,

Dec
09
Setting up a catch-all email forwarder and parsing emails using php

In one of my ongoing projects i had to set up a “catch-all” email parsing script. Here’s how it came out to be.

What is catch-all?

In the context of emails, “catch-all” refers to a destination to which all incoming emails with in-correct email addresses are delivered or forwarded. As a destination, you can set either an email or a script on your server which captures such emails and save them in to your local database or files. Click to continue »

Share

Tags : , , , ,

Apr
17
Delete SVN files in Linux or Windows

Sometimes you checkout a recent API source code via some SVN client to your local system and thereafter want to remove SVN files from the directory structure. Here are the different ways to remove SVN files from your linux or windows directories: Click to continue »

Share

Tags : ,

Freelance Jobs