Create hotspot in Ubuntu 11.10

Recently I need to access my Internet from my blackberry device. I already using Connectify to run my windows machine as a wifi-hotspot, but due to some reason on my laptop windows was not working. So I thought I should find some alternative to create a wifi hotspot in Ubuntu.

Ubuntu 11.10 gives user easy way to turn their computer into hotspot. You can simply do it without installing any application.

To get started got to the Application > System Tools > System Settings > Network Setting > Wireless. You will see the following screen in your Computer.

Click on Use as Hotspot. You hotspot will be immediately create with the SSID name “UBUNTU”. If you want to change it go to configure

1st field is for assigning a name for a connection. 2nd field is for enabling security in hotspot connection. 3rd field is for assigning SSID as a unique name. 4th field is for cloning your MAC address.

To Configure wireless security, select different security mode of your desire and put your desired password.

That’s it. Your wifi hotspot is ready in Ubuntu.
If you are using any other software or method please let us know the same.

How to PXEBoot Clonezilla

Requirement
PXE Server
CloneZilla bootable iso / zip

Download & mount / extract clonezilla iso / zip.

Create folder on existing pxe server

mkdir -p /tftpboot/images/clone/

Copy vmlinuz, initrd & filesystem from clonezilla mount location

cp live/vmlinuz /tftpboot/images/clone/
cp live/initrd.img /tftpboot/images/clone/
cp live/filesystem.squashfs /tftpboot/images/clone/

Append following lines in /tftpboot/pxelinux.cfg/default

label Clonezilla Live
MENU LABEL Clonezilla Live
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash fetch=tftp://192.168.1.2/images/clone/filesystem.squashfs

Here 192.168.1.2 is pxe server

Above config will boot clonezilla using pxe & you’ll get prompt to choose lang, mount image source dir etc.

OR you can use following config to skip lang selection & mount option, however it will still prompt you to select image source but you can skip & continue as we have mentioned nfs server in following config.

label Clonezilla
MENU LABEL Clonezilla
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=tftp://192.168.1.2/images/clone/filesystem.squashfs ocs_prerun="mount -t nfs 192.168.1.2:/storage/clonezilla /home/partimag"

Here 192.168.1.2:/storage/clonezilla is clonezilla image location. You can also use other options like samba instead of nfs.

SOURCE@LINUXREADERS

Upgrading Fedora to the latest version

Fedora team have released next version of Fedora i.e Jules Verne Fedora 16. If you already have Fedora 15 installed on your machine, there is an easy way of upgrading your Linux distribution to the latest version Fedora 16.

Steps are as follows:

Update your Fedora 15 system

Run the following command to install any updates to your Fedora 15 distribution.

su -c 'yum update'

Install the ‘preupgrade’ tool
Preupgrade is a GUI tool that walks you through the upgrade process.

su -c 'yum install preupgrade'

Start the preupgrade tool
You can run the preupgrade tool by entering the command in the terminal or via the menu.

$ preupgrade

It will ask you for your root password before presenting you the GUI.

The preupgrade tool will prepare your Fedora 15 system for upgrade.

First you have to choose the version of Fedora you want to upgrade to from the available Fedora releases.

The preupgrade tool will then start downloading the release info; the installer images; determine which packages to download; and download the packages.

Be patient, it will take some time depending upon your internet connection speed.

Lastly it will prepare and test the upgrade.

Start the upgrade process
Once the preupgrade tool has finished doing its job, it will prompt you to reboot.

When you reboot back into Fedora, it will start the Anaconda installer and the upgrade process will start.

No user intervention is required at this stage as everything is done automatically by the Anaconda installer.

The installer will do the dependency check of packages and start upgrading your system.

Post upgrade configuration include installing the boot loader which is automatically installed in the Master Boot Record (MBR) of your machine.

Once the upgrade process is finished, you can log into your brand new Fedora 16 Linux system.

Angry Birds on Ubuntu

Angry Bird is one of the most popular game of Android platform. Tipsotricks have compiled a free version of Angry Birds exclusively for PC users. Same I have tried to run on ubuntu.


To install Angry Birds on Ubuntu you need to first install wine:

sudo apt-get install wine

After that download the installer from here

Once download completed right click on AngryBirdsInstaller_1.5.1.exe and select Open with Wine Windows Program Loader.

It will install on emulated C: drive on your machine.

To start Angry Birds, go Applications > Wine > Programs > Rovio > Angry Birds > Angry Birds

Now enjoy Angry birds on Ubuntu

Lock / Unlock Ubuntu Desktop using USB drive

Every time I strat my Ubuntu Desktop I used to plug in my USB device for data storage. While leaving the workplace I remove USB storage device but forgot to lock the desktop. Hence in the search of utility to lock / unlock desktop using USB device I found below script.

Firstly Install xscreensaver

apt-get install xscreensaver

Then run lsusb and locate your USB Device. In my case, it was the last Device i.e Bus 004 Device 002: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive

Create a file name autoUnlock in your home directory (Avoid using root user).

touch /home/vidyadhar/autoUnlock

Copy below lines in the /home/vidyadhar/autoUnlock

#!/bin/bash
# A simple shell to lock / unlock your Desktop
# Ubuntu
# ----------------------------------------------------------------------------
# Original Script by Echowrap http://echowarp.neomenlo.org
# Modified by Vidyadhar D S <http://www.techienote.com/>
# vidyadhards@gmail.com techienote.com@gmail.com
# ----------------------------------------------------------------------------
#Replace with the ID of your USB device
id="ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive"
 
#runs every 2 seconds
for ((i=0; i<=30; i++))
do
if [ -z "`lsusb | grep "$id"`" ]
then
 
    echo "Device is NOT plugged in"
 
    if [ -n "`DISPLAY=:0.0 gnome-screensaver-command --query | grep "is active"`" ]
    then
    if [ -e /tmp/autoUnlock.lock ]
    then
    #stop locking the screen
    rm /tmp/autoUnlock.lock
 
fi
 
elif [ -e /tmp/autoUnlock.lock ]
then
 
    DISPLAY=:0.0 notify-send -t 5000 âicon=dialog-info "Device Disconnected""Bye!"
 
    #lock the desktop
    DISPLAY=:0.0 gnome-screensaver-command --lock
 
    rm /tmp/autoUnlock.lock
 
fi
else
 
    echo "USB Plugged In"
    if [ ! -e /tmp/autoUnlock.lock ]
    then
    DISPLAY=:0.0 gnome-screensaver-command --deactivate
    DISPLAY=:0.0 notify-send -t 5000 --icon=dialog-info "Device Connected" "Welcome Back!"
    touch /tmp/autoUnlock.lock
 
    #Uncomment the 3 following lines if you would like your computer to remind you if you lock your screen without disconnecting the device
    echo "Don't forget your device!" > /tmp/usbReminder
    DISPLAY=:0 festival --tts /tmp/usbReminder
    rm /tmp/usbReminder
    fi
 
fi
sleep 2
done

Make it executable

chmod +x /home/vidyadhar/autoUnlock

Add a cron entry in user’s crontab

crontab -u vidyadhar -e
* * * * * bash /home/vidyadhar/autoUnlock & >/dev/null 2>&1

Restart the crontab

/etc/init.d/cron restart

Now remove your USB device, your desktop should be get lock now.

Page 3 of 5«12345»
rss twitter facbook

Categories

Archives