Category: IT

Your VPS is likely to have no backups (which makes them cheaper). However, this doesn’t mean you shouldn’t have your own backup. If your provider allows you to have snapshots of your server, that might be helpful, but it will cause your server to be offline for a few seconds whenever you want a backup. If you aren’t using your VPS for a crowded site, this wouldn’t be much of a problem. But if you can’t have any downtime in anyway, then backing your VPS to Dropbox is a great way to have easy and automated backups. For this, we’ll need two things. (Some of the following commands assumes you are using Ubuntu/Debian. If you are using another linux distro, use another command to install the mentioned software.)

1. Dropbox Uploader script by Andrea Fabrizi. We’ll need to download it from here. The installation instructions are also on the website. The file will walk you through the setup. Simply run apt-get update. Then run apt-get install curl.

2. Use the following bash script. The script was originally written by Dave Hope. But I’m guessing it was written for an earlier version Dropbox Uploader and it required you to fill Dropbox login information. Since Dropbox Uploader does the authentication using an API key, you don’t really need that. With my limited knowledge of bash, I modified Dave Hope’s script into the following, it does the trick for me. Save the following as dropboxbackup.sh and do a chmod +x dropboxbackup.sh and put it in the same folder as Dropbox Uploader sh file. If you don’t have it already, installing an easy to use text editor might also be useful. Simply type apt-get install nano to have Nano installed.

#!/bin/bash
DROPBOX_DIR=""
BACKUP_SRC="/home /var/www /etc /root"
BACKUP_DST="/tmp"
# Stop editing here.
NOW=$(date +"%Y.%m.%d")
DESTFILE="$BACKUP_DST/$NOW.tgz"
 
# Backup files.
tar cfz "$DESTFILE" $BACKUP_SRC
./dropbox_uploader.sh upload "$DESTFILE" "$NOW.tgz"
 
rm -f "$DESTFILE"

3. After we arrange and config all the stuff, we should now test it. Simply run your dropboxbackup.sh and test if it works. If it successfully starts uploading your backup file, you can now set a cronjob to automate the process. Depending on how active you are on the site, you might want to change the frequency of the backup. Also think of the bandwidth you are going to use each time you take a backup. To easily create a cronjob, go to generateit.net and follow the instructions.

What about the database? Well, I take regular backups of my MySQL databases using things like WordPress plugins designed for this. But you can make changes to the script above by looking at Dave Hope’s script, or simply googling cronjob mysqldumb, etc. Good luck and let me know if this works for you!

Tags: , ,

My previous post on VPS was about why you should prefer a VPS. Now, I’ll focus on what you shuold first do on your VPS.

1. Choosing the OS
You should go with linux because well, it’s better, and it’s free. Probably almost all software that you would need on the web is developed for linux first. Then you need to decide on the linux distribution. You can simply google and ask google what you should choose. I don’t want to quote any other website in order not to have some blatant plagiarism. Unless you have the knowledge to prefer a particular distro, you might want to try Ubuntu. It’s probably the most frequently updated distro out there. Plus, because it is highly preferred by a lot of novice users, it’s highly likely that a problem you encounter is already answered a dozen times. You can simply google how you can do something and voila! Also, it uses the APT thingy (the apt-get command) which helps you easily install and uninstall software, look for updates and install them if necessary. No need to compile stuff on your server. Another popular option is CentOS. I’ve never personally used it, but years ago I used Redhat (CentOS is based on Redhat). It uses RPM (similar to APT) to install packages and so on.

Whatever OS you choose, you should be able to install it in seconds using the control panel your company provides you.

2. Securing the OS
There are a couple of things you should do after installing your OS. Let’s first connect to it using SSH. If you are on a Mac, you should already have the SSH client. If you are on Windows, download Putty. Then using the information the company sent you, connect to your server. You should use it as root@IPaddress. Then it’ll ask you for your password. Now, you are in.

a. Change the password: Typing passwd will help you change your password. Choose a proper password.
b. Add a new user: Typing adduser will help you add your new user. Choose a username which can’t be guessed. If your site is radiognome.com, a username like radiognome will be a really bad one. Make it different. Choose a proper password.
c. Disable root login on SSH: Why? Because root is the default admin user on linux. Every linux machine has a root account. So, they have your username, now they need your password. If you disable it, they not only need your password, but also the username. Google’ing “ssh root login disable” will give you the required info. How will you now login to your VPS? Well, you’ll now ssh to your server using newusername@IPaddress. After you login, type “su” (short of superuser), it’ll ask you for your root password, and boom. You are in as root.
d. Change SSH port. Google is your friend. Choose a port other than the default 22. This might prevent people from choosing you as a target after they run a a scan on a particular IP block. After you make these last two changes, you’ll need to restart your SSH daemon. On Ubuntu, you need to run service sshd restart .
e. Hide the version information from Apache and PHP. Google. This is good because noone will know what version of whatever you are running. So, if in time, your particular Apache version turns out to be vulnerable to some attack and you are not aware, you will still be vulnerable but at least noone will directly know you are until they actually try.
f. Disable FTP, telnet, etc daemons: Google. Telnet is SSH without any encryption. Same goes for FTP. Try SFTP or “FTP over SSH” (you should be able to connect using your login info and the SSH port). Or upload whatever you need to upload and disable them after you are done. You shouldn’t really need to upload a lot of files all the time if your server will function as a webserver primarily.

. Are you being paranoid? Not really, these should be standard with every linux open to the internet 24/7. You can never be too secure.

You know something I should have included in the list? Please put it in the comments to help out!

Tags: ,

VPS is short for virtual private server. It’s basically a virtual portion of a server that acts as a standalone computer. You share the RAM, the CPU, the drives and anything else with the other users – depending on how big a slice of a server you have. Typically, they run a linux distibution of your choice; though, they could also run Windows if you have specific needs. The slice of the server could be customizable depending on your provider. However, typically, you’d get 256 MB of RAM and up (512, 1 GB and so on) and access to CPU cores (0.5, 1, 2 etc). You’ll also find companies providing you with SSDs and unmetered bandwidth.

Now, let’s move onto why you should prefer a VPS:

1. Having full control over the server
On a VPS, you’ll have root access allowing you to do whatever (anything that the ToS allows you to do, that is) you want on the server. You can install anything or configure Apache in any way you want. You can host your own web site (WordPress, or anything else), have your own VPN server, and a TeamSpeak server.

2. Cost
A VPS is (I was also surprised) cheaper than a shared hosting. Of course, it all depends on your choice of hosting company (I used to use Hostgator and it cost me 10$ a month). The VPS I use costs 5$ a month. I can use any number of domains, subdomains and so on. The only limit is the technical limit of the VPS, which is much higher than any shared hosting. You can find even cheaper VPSs (like 2.5$ a month or 20$ a year) – it all depends on what you want to do with your server. If you only want to host one website, a server with 256 MB of RAM (usually 2-3$/mo) will be enough.

3. It’s much faster
After moving my site (along with others), setting up a VPN server, and installing some other stuff, I decided to have a stress test on my server. Even during the stress test, the server was able to respond quickly to my queries. It was still faster than my blog on the earlier shared hosting.

4. Because you can!
If you have some knowledge of linux or you are willing to learn, this is a great way to start. Not only you’ll hone your knowledge of the OS, but you’ll also learn a lot about how certain things on the web work. All you need to do is google whatever you need to do.

Why are they cheap?
VPS’s are cheap because they are self-managed. This means you’ll get no support for things you should be doing. You need help setting up LAMP (Apache, MySQL, PHP) and a WordPress on top? Well, they won’t help you with that. You’ll only get your questions answered when there is something wrong on their side. If you have no clue how to do what, this is the reason you should prefer something else.

Which VPS company to choose?
I started using Bandwagonhost after someone recommended it to me as an affordable and good company. I decided to try them (they have 30 day money-back guarantee). Then I found some better deals on the the web and decided to try another one. However, I found out that a cheap “unmetered bandwidth” is a dream that will never actually happen. The bandwidth on those sites are usually throttled, so unless you are paying what it should actually cost, you are probably getting a server with not-so-fast connection to the net.

Bandwagonhost recently switched to SSD and they mailed existing customers and asked if we wanted to switch to them – at the same price. They have a very easy to use admin area that lets you install whatever OS you want from images – in seconds. You can migrate to other datacenters (from EU to US, for instance), or you can take a snapshot (a backup) of your server at the click of a button. You can also remotely reboot or shutdown your server or use the shell on the client web area. Most of these are (except the snapshot as far as I know) are default on all providers. There are other companies like DigitalOcean which is also a highly preferred company. You can also browse Low End Box for VPS deals.

That’s all for now. Later, I’ll write about what to do (first) with your first VPS.

Tags: ,

I will be straightforward: We participate and actually create the content on Web 2.0 sites. In return, they give us web services. Or rather, they give us the services and we handle the rest. Looks like a bee hive in a bee farm, where the hive is there and you create the honey for people to enjoy, eh?

Two Turkish artists Burak Arikan and Engin Erdogan announced their new project at userlabor.org and their ULML – User Labor Markup Language based on XML, yesterday on May Day.

ULML Logo

The idea of User Labor is rooted in immaterial and affective labor concepts, where the labor produces or manipulates affects. Recently, User Labor has become particularly relevant on the Internet since user participation became a marketable product for web 2.0 services. What used to be immaterial is now very close to being material, because the affection can be measured on a per person basis.

Read the rest at userlabor.org. The following links to artist pages themselves might also be of interest:


IMDB BanAccording to Advocate Gokhan Ahi, who wrote on turk.internet.com, the huge movie database site IMDB has been banned by the Turkish Court. The story is, the former-singer-now-director Mahsun Kirmizigul’s movie has been on the internet for download for a while. The company that releases the DVD of the movie (I guess) Boyut Yayin Grubu recently applied to the court asking for a couple of sites that allow the movie to be downloaded. According to Webrazzi, the sites include torrentturk.com, frmdivx.com, divxcity.org, turkdivx.net and imdb.com.

However, they have made a typo with imdb.com’s address, so they banned imbd.com, which is a parked domain that apparently tries to make money from advertisements when users type imdb.com’s address wrong. The ban, like the old ones on Youtube and WordPress, is DNS-bansed – which means it is easy to pass the ban by changing the DNS addresses.

The thing is, this court decision shows that neither the court nor the company that applied to get these sites banned know nothing about how things work on the internet. While the typo on the name IMDB is funny enough (I am leaving aside the fact that IMDB has nothing to do with piracy, and the fact that censorship is stupid in general), this also shows that no research, investigation and expert consultation had been done before the decision.


Micro-blogging (or tumble-logging) has become pretty popular thanks to platforms like Tumblr, Jaiku, Cromple and especially Twitter. Google’s acquisition of Jaiku is also a sign that blogging is switching to what’s called micro-blogging, where each post is like a status update of what you are doing or at least shorter posts than you see on traditional blogs. What makes these blogs popular is that you no longer have to worry about the look and spelling, and most importantly content of your posts. They are not to publish content, rather, they function as a way to be updated about what your friends are doing (Tumblr might be an exception to this).

Tumblr is a simplified (idiot-proof?) blogging system, which encourages you to post media along with your posts with an easy interface. Jaiku, Cromple and Twitter, on the other hand, work similar to each other. They allow you to view an ever-changing public timeline (meaning, what all other users are doing, which gets updated any second). Jaiku and Twitter also allow you to update your status with your mobile phones through text messaging.

As for WordPress;
» Read the rest of the entry..


Jimmy Wales - Wikipedia

US Ankara, Turkey Embassy held a teleconference with Jimmy WalesWikipedia and Wikia founder on Feburary, 19 2008. Students and instructors related to the subject from various universities in Ankara as well as professional people were invited to take part in the event. I and a couple more friends and instructors from my M.A. program were invited as well.

The conference started with Jimmy Wales’ speaking for about 30 minutes, talking about what Wikipedia is, how it works and the logic behind (mentioning what open-source and open-content are), how it is funded and other general information. One interesting thing he said about Wikipedia was that he called it a system where people can access “the sum of all human knowledge” freely. Personally, I have found this quite exaggerated. Then Wales talked about his ad-supported commercial project Wikia.

» Read the rest of the entry..


       
       
       
     

I have been making fun of this phenomenon for a while among friends. People, who advertise on various forums for making “Web 2.0 logos” cheered me up even more. For sure there is a new trend in design on the web but it is funny to see how people talk about Web 2.0 reduced to a matter of mere design. I am no designer nor I understand the meaning of colors or typography in designing pieces. However, this Web 2.0 color pallette have been taking my attention for a while. The Flickr Pink, Netvibes Green, Last.fm Red, Twitter Cyan, Digg Blue and many more… Comparing to these, WordPress administration panel did not really have this Web 2.0 effect. After seeing the latest not-yet-released WordPress 2.5 administration panel colors, I did a quick Google search to see if I can find anything written on this in general. Web is huge, and I wasn’t really surprised to find tons of several sites talking about these.

The following is from the beta WordPress 2.5 administration panel. Click the image to see in higher quality version.

» Read the rest of the entry..


It has been a while since Amazon Kindle was released.  For those who don’t know, it’s an ebook reader that can download ebooks from Amazon’s ebook store using GSM.

There were a couple of criticisms to Kindle, like it could not view PDF’s and other ebook formats (unlike Sony’s Reader) – but rumors say that it will soon support various formats for ebooks.  Recent hacking done by

Apparently, Kindle is running linux, and this will probably allow for hacked firmwares to appear – for more functionality. So, check Igor’s blog for more info to see the hidden features in Kindle.


From the official conference web site:

Sex 2.0What is Sex 2.0?

Sex 2.0 will focus on the intersection of social media, feminism, and sexuality. How is social media enabling people to learn, grow, and connect sexually? How is sexual expression tied to social activism? Does the concept of transparency online offer new opportunities or present new roadblocks — or both? These questions, and many more, will be addressed within a safe, welcoming, sex-positive space.

Respecting the confidentiality and protecting the identities of participants who wish to maintain a degree of anonymity will be a top priority at Sex 2.0.

When? April 12, 2008
Where? Spring4th Center, 728 Spring St., Atlanta, GA
» Map of nearby hotels
How much? $10

Note: We will be following the unconference model, which means everyone is a participant rather than a passive attendee. This is YOUR event!


mumblings on life, literature, computers, media, whining, university life, movies, poetry, music, internet, procrastination, technology, media, horror, gender, blogging, concerts, film studies, wordpress, sexuality, vegetarianism, ideology, i greatly dislike sugar in my coffee, and all other unnecessary crap you would otherwise ignore.