Thursday, January 5, 2012

Disable Root SSH Login on Linux


 #vi /etc/ssh/sshd_config

Find this section in the file, containing the line with “PermitRootLogin” in it.

    #LoginGraceTime 2m
    #PermitRootLogin no
    #StrictModes yes
    #MaxAuthTries 6

Make the line look like this to disable logging in through ssh as root.

    PermitRootLogin no

Then  restart the sshd service:

   # /etc/init.d/sshd restart

Wednesday, December 28, 2011

Quickly Open Network Connections in Windows 7

In Windows XP we can easily find network connections by right clicking on connection icon and select “open network connections“. But finding network connection in Windows 7 or Vista is bit different from XP. So lets see how we can easily open network connections from run or command line, also how to create shortcut to open network connections.

Open network connections from run in Windows 7 or Vista


Press Windows Key + R type ncpa.cpl in Run window and hit Enter

 


Create shortcut to open network connections in Windows 7 or Vista

Step-1

Right click on desktop, Click New and select Create Shortcut

Step-2

Type ncpa.cpl in the text field and press Next button

Step-3

Type the name of network connections shortcut and press Finish button

Step-4

Now double click on shortcut that you have created on desktop to open network connections

Monday, December 19, 2011

Ubuntu Shutdown Automatically

Looking for an easy way to shutdown Ubuntu automatically? If you need to shutdown Ubuntu at, for example, midnight everyday, you’ll have to schedule a task that will run at midnight to perform or carry-out such action. If you need help with that, then this brief tutorial will show you how to do it.This guide shows you how to schedule a task in Ubuntu to automatically shutdown at a specific time daily. This is a great way to make sure that your PC isn’t running at times when on one is using it.
Objectives:
  • Schedule tasks in Ubuntu to automatically shutdown
  • Enjoy!

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to install gnome-schedule.

sudo apt-get install gnome-schedule

radmin@radmin-desktop:~$ sudo apt-get install gnome-schedule

After installing, launch gnome-schedule and schedule tasks.

sudo gnome-schedule

radmin@radmin-desktop:~$ sudo gnome-schedule

Next, select ‘New –> Recurrent task’

Then enter the description and the command to shutdown Ubuntu. The command is:
/sbin/poweroff

Select ‘Advanced’ under Time  & Date, then enter the minute, hour, day, month and weekday you want to task to run, then click ‘Add’
The scheduled task above runs at midnight every day.

Friday, December 16, 2011

Mac OS X Theme for Ubuntu 10.10

To get the mac appearance on Ubuntu 10.10, you need to download and install the macbuntu-10.10(complete package for transforming the default look of gnome desktop into mac like look and appearance) theme.it is free and will take a couple of minutes.Just follow the steps -

step #1 : Download the Macbuntu-10.10 theme package(Link is given below)
Download Macbuntu-10.10 theme

step #2 : Install the Macbuntu Theme

First,Extract the theme and move on to that directory.Then open terminal ( hit CTRL+ALT+T ) and execute the ‘install.sh’ script(as a normal user i.e without sudo),that you get within the theme package(After Extraction).Just drag the install.sh,and drop it to terminal,then hit enter.

radmin@radmin-desktop:~$ '/home/radmin/Macbuntu-10.10/install.sh'



Then you will have to answer some simple questions during installation ,if you are not sure then select the default(hit Enter or answer y in y/n case).That’s All..you have installed the mac os x theme on Ubuntu 10.10.You may want to restart the system for optimal performance.(although it is not strictly required)