Commands, tricks & cautions that will be used here have been tested only on a Ubuntu 12.04 VPS. Though, most of the commands should work in other Unix like system without any change.
In this lesson we will see how should a newly launched/opened server be configured for basic security & proper accessibility. Usually you get an IP address & a root password for logging in as root, as soon as you open a new cloud/vps server from rackspace/digitalocean or some others like these.
1. Connecting to the remote system through/using SSH:
SSH(Secure Shell) is a protocol used to securely loggin in to a remote system & also ssh is the tool used in Linux that connect to the remote server over the SSH protocol.
The terminal will show a message and will prompt
Are you sure you want to continue connecting (yes/no)?
Type yes & press enter & then in next prompt enter your root password that was provided by that server provider while opening a VPS. So, now we are logged in to the remote system as root user.
2. Change your root user’s password:
You used the root password that was generated & provided by the server provider & the first thing is to change this password. Enter the following command on the terminal.
It will first ask the current root password & after entering the current password it will ask your desired new password twice for confirmation. Continue reading
Few days ago I found a nice post on the web about a trick for auto deploying sources/files to server from inside local development repository using shell script. I mean, you don’t need to log in into the server each time the code status is changed and pull the changes from a repository to make the server’s files updated. You can do all of these from inside the local repository by assigning several remotes to it & by using the Hook feature of git on the server end. I have just tried that out and made a screencast with some detail descriptions.
Following is a diagram of what I am going to show you detail on the video below it. Hope it might be helpful for some one who wants to watch a demo even before trying out few commands 🙂
Live Demo [watch in 720p at least]
Ubuntu gnome panels are nice enough to arrange shortcuts, menus, items on it. Even new panel can be added on gnome desktop‘s left, right or bottom side. But some times a panel can be customized or assembled roughly. Then you would like to reset all as its default sate. For that, open Terminal and run these following commands:
gconftool-2 --recursive-unset /apps/panel
It should be restored on its default settings!!!
This video shows how you can Compile and Run C/C++ program in Ubuntu. We assume that your Ubuntu has gcc/g++
compiler installed already. It has been recorded in Ubuntu 10.10
An easy way to use IE6 (I think its just for testing CSS issues with IE ) in Ubuntu/Linux are described bellow:
Step 1: Make sure Wine is already installed on your computer. If not then use this command on your terminal
sudo apt-get install wine
Step 2: Then the following
sh winetricks ie6
Final : To Run IE6