Browsing Linux

Identify Remote OS By IP Address In PHP

In the recent post, I gave the default TTL value of different devices. As you can see, when you ping a host you can roughly identify the operating system the remote server’s running. I saw a question on Stack Overflow about this. Sadly it was down voted and was removed later. I tested if it is possible and I found that it is possible. In this post, I will give a function that automatically pings the remote host and find out the possible Operating Systems the remote server is running.

[READ MORE]

Default TTL (Time To Live) Values of Different OS

TTL (Time To Live) is a timer value included in packets sent over networks that tells the recipient how long to hold or use the packet before discarding and expiring the data (packet). TTL values are different for different Operating Systems. So, you can determine the OS based on the TTL value. You can get the TTL value by pinging an address. Here is the output got by pinging "subinsb.com" on my system :

[READ MORE]

In My Name is Linux

As you know already, my full name is Subin Siby. What’s special about my name is that it’s connected to Linux. As you may have seen, executable files on a Linux system is in the directory /usr/bin, /usr/sbin and /sbin. If you look at it closely, you can see that sbin only misses the character u from my name. If you add "u" to the name, it’ll become /usr/subin. Creepy & Fun, right ?

[READ MORE]

Configure WordPress To Not Use FTP To Do Stuff

By default, if you want to install plugins or upgrade WordPress, you have to provide the FTP details. If you are running WordPress on localhost, you won’t have the FTP credentials. In this case you won’t be able to install plugins or upgrade WordPress. There is a way to configure WP to don’t use FTP, instead install directly using the Read/Write permission of folder. If WordPress can’t install anything without FTP, it needs another method – direct install.

[READ MORE]

How To Use FileZilla/SFTP To Update Site in OpenShift

In the recent post, I mentioned about OpenShift, a PaaS Service that offers Free Hosting. You can update your application using GIT. OpenShift also provides SSHing into your application. You may have heard of FTP protocol which allows you to transfer files through web. Most hosting companies use FTP protocol to update client apps. OpenShift unlike AppFog have FTP support, but in a different manner. It has SFTP support ie SSH File Transfer Protocol.

[READ MORE]

How To Change Your Country By Using Proxy in Ubuntu ?

There are certain restrictions on some sites such as Country Restriction. Mostly there are sites just for US citizens. For Example The most 99 cent domain offers from GoDaddy is only available to US citizens. They check the country by IP Address. I’m going to tell you how to Change your Country by changing the IP address using a PROXY. This is explained to work on Ubuntu, you can also use this method in Windows & Others but in a different way.

[READ MORE]

How To Use Hard Disk As RAM In Ubuntu Linux

I heard that it is possible to use a portion of hard disk as RAM in Windows. I wondered if this trick is available for Ubuntu, so I googled about it and couldn’t find anything related to it. But I found out an AskUbuntu answer of using USB sticks as RAM. I did the same trick on Hard Disk and it works !! This trick can be accomplished with the use of some small commands in Terminal.

[READ MORE]

Loading A Window Created Using GLADE in Python

If you have created a window using Glade and want to display this window on your Python program containing the event handlers of the Window, then you should follow this tutorial. This small code will load the Glade file and displays the window. Note : The Glade Project file format should be GtkBuilder. Now, let’s get down to the code. Create a Python file named window.py in the folder containing the glade file and put in the following contents :

[READ MORE]

Setting up Google DNS in Ubuntu

Google‘s DNS service is spreading rapidly. It’s time for you to use it. I used it and noticed some great speed changes even though my internet is just a dial up connection. Here is how to set up Google‘s DNS on your Ubuntu Linux. Open Network Settings (network-admin) by going to System - Preferences - Network Connections. Go to your default net connection and click on Edit button. You will get a window like below :

[READ MORE]

Program to Replace localhost links with website url

If you are working on a project and wants to upload the project to your site, then you have to manually replace all the localhost links with the site url. I created a small Python program that will replace localhost links with your WWW site url. Here is the Python code : #!/usr/bin/python import os indir = ‘/var/www/mysite‘ #!Folder of your localhost site. for root, dirs, filenames in os.walk(indir):  for f in filenames:

[READ MORE]

Donate

Donate

Subdomains

DemosLab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab