Linux Archive

How to test VPS Speed and Performance?

wget -O - -o /dev/null | bash How to Test VPS Download and Upload Speed wget python --share How to Test VPS Disk I/O Performance dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync

How to Clone / Download / Mirror a Website using WGET

This is a quick and dirty way to clone, download or make a mirror of a website for offline reading. We only need WGET. It will download all images, CSS and Javascript files wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains --no-parent By default, wget also has an option to do mirroring.

How to Solve ORA-12162: TNS:net service name is incorrectly specified

This morning I try to import an Oracle dump file, but I got this error message: ORA-12162: TNS:net service name is incorrectly specified Some people says that there’s something wrong with the tnsnames.ora file. But I’ve checked it, and the file looks fine. After googling for a while, I found that this error message

Ubuntu 12.04 Can’t Login to Desktop unless using Guest Session

After re-installing my PC using Ubuntu 12.04, I always do sudo apt-get update and sudo apt-get upgrade, so my system is always up to date. But after I do this sudo reboot, I can’t login to my Ubuntu 12.04 desktop. Then I try to login to my PC using PuTTY from my Windows laptop.

How to Extract / Uncompress 7z Files on Ubuntu

I’d like to import a database dump file, but it’s compressed in 7zip format (7z). So I need to extract that 7z file using 7za. 7za is included in p7zip package. First we need to verify whether we have 7za installed or not. whereis 7za If you see something like: 7za: /usr/bin/7za /usr/share/man/man1/7za.1.gz It

How to Setup a VPS using Debian 6 Linux (32 Bit)

Why do I choose Debian? Well, beside it’s “pretty easy” to setup, I think Debian is more stable than the other linux distros. But why 32 Bit? Because I think 32 Bit OS is using less memory than the 64 Bit. VPS Minimum Security Settings What I do for the first time is add

How to Restart VNC Server Hourly using Crontab

Sometimes I need to restart my VNC server periodically, usually hourly. So I’m gonna need crontab. In some conditions, the killing process of VNC server may still leaves some files on the VNC folder or inside temp folder. So, before we start the VNC server again, we have to make sure that those files

How to Run VNC Server at Startup / Boot

I’ve installed VNC server on my computer (vps), so I can control it using GUI, not just a terminal console. The default setting is, each time we reboot our machine, we need to run it again manually. Therefore I want to make VNC server to run each time my machine starting-up / booting. Create

How to Export and Import Oracle Database using IMPDP and EXPDP in Linux

In this article, we’ll talk about step-by-step or how to export an Oracle database, then import into a different schema name. I’m using Linux the example. Prerequisites before Export and Import Process Make sure you have set variable ORACLE_HOME in your environment. Yours may be vary from mine. export ORACLE_HOME /u01/app/oracle/product/11.2.0/db_1 Create a directory

How to Install Nginx on Ubuntu 12.04

After struggling in Lighttpd, I’ve decided to uninstall Lighttpd, and change my web server to Nginx. Here’s how to install Nginx on Ubuntu 12.04. sudo apt-get install nginx Start the Nginx service: sudo service nginx start In some cases, you may need to reboot your system: sudo reboot Now, go to http://localhost/ from your