Category Archives: Ubuntu

Boot Repair

Boot-Repair is a simple tool to repair frequent boot issues you may encounter in Ubuntu like when you can’t boot Ubuntu after installing Windows or another Linux distribution, or when you can’t boot Windows after installing Ubuntu, or when GRUB is not displayed anymore, some upgrade breaks GRUB, etc.

Boot-Repair lets you fix these issues with a simple click, which (generally reinstalls GRUB and) restores access to the operating systems you had installed before the issue.

Boot-Repair is a free software, licensed under GNU-GPL. Boot-Repair should be soon included in Ubuntu official repositories, until then use it at your own risks.

1. Boot to LiveCD
2. Connect to Internet
3. Open terminal
4. Give command below

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

5. Then give command below.

sudo apt-get install -y boot-repair && boot-repair

Automatic login using SSH credentials in Ubuntu.

Download first an installer called “expect”.
apt-get install expect

Create your own shell script. Below is an example on how you can connect to the ssh server automatically.

#!/usr/bin/expect -f
# Expect script to supply root/admin password for remote ssh server
# and execute command.
# This script needs three argument to(s) connect to remote server:
# password = Password of remote UNIX server, for root user.
# ipaddr = IP Addreess of remote UNIX server, no hostname
# scriptname = Path to remote script which will execute on remote server
# For example:
#  ./sshlogin.exp password who
# ------------------------------------------------------------------------
# Copyright (c) 2004 nixCraft project <>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit for more information.
# ----------------------------------------------------------------------
# set Variables
set password mypassword
set ipaddr
set timeout -1
# now connect to remote UNIX box (ipaddr) with given script to execute
spawn ssh choi@$ipaddr -p2002 -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no
match_max 100000
# Look for passwod prompt
expect "*?assword:*"
# Send password aka $password
send "$passwordr"

Execute your shell script.