Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Tuesday, October 29, 2013

How to directly SSH to Windows Command prompt or Powershell prompt from remote Linux Machine

1)
Goto Windows System and Open freesshd and goto "SSH" tab and set "Command Shell" to C:\WINDOWS\system32\cmd.exe  to SSH to Command prompt from remote Linux Machine

2)Open freesshd and goto "SSH" tab and set "Command Shell" to C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe  to SSH to Powershell prompt from remote Linux Machine

Thursday, October 24, 2013

How to execute powershell command remotely from linux using Python

1)
Install freeSSHd on your Windows System
http://fosshelp.blogspot.in/2013/10/how-to-ssh-to-windows-from-linux-using.html

2)
Execute following Python script From Your Linux System
import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
print "\nConnecting"
ssh.connect('192.168.1.7', username='saju', password='saju')
print "\nConnected"
##Supported -OutputFormat Text, XML, none
cmd = "powershell -InputFormat none -OutputFormat TEXT Get-VMHost"
stdin, stdout, stderr = ssh.exec_command(cmd)
print stdout.readlines()



3)
Text Output


4)
XML OUTPUT


5)
Output from Powershell



How to SSH to Windows Machine from Linux Machine using freeSSHd




How to Install and Configure Android SDK in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Install Java
http://fosshelp.blogspot.com/2013/10/how-to-install-oracle-java-7-in-ubuntu.html

2)
Download the Android SDK or the ADT Bundle

http://developer.android.com/sdk/index.html#download
#wget http://dl.google.com/android/android-sdk_r22.2.1-linux.tgz

3)
Unzip it to wherever you want

#tar -xvzf android-sdk_r22.2.1-linux.tgz

4)
Install

#cd android-sdk-path
#./android

5)
Export commands

#sudo gedit ~/.bashrc
export PATH=$PATH:/path/to/tools
export PATH=$PATH:/path/to/platform-tools

6)
Run

#android avd

Get familiar with Powershell and Hyper-v


http://social.technet.microsoft.com/Forums/windowsserver/en-US/dabb3ff1-3d0f-4d86-b862-c28f3544f8fe/hyperv-wmi-powershell-examples

http://www.mediazone.nl/post/How-to-manage-a-Hyper-V-core-with-powershell-on-the-Hyper-V-machine.aspx

http://www.petri.co.il/powershell-hyper-v-windows-server-2012.htm

http://blogs.technet.com/b/matthts/archive/2012/02/27/using-native-powershell-cmdlets-with-hyper-v-in-windows-server-8.aspx


SCRIPT to get system information : Should provide most information for our Hyper-V Node.
http://gallery.technet.microsoft.com/scriptcenter/Windows-System-Inventory-616e2749

http://gallery.technet.microsoft.com/scriptcenter/Find-System-Hardware-b68938c8

Getting WMI Class names etc:
http://blogs.technet.com/b/heyscriptingguy/archive/2009/03/03/how-do-i-find-the-names-of-wmi-classes.aspx
http://www.howtogeek.com/138801/geek-school-using-powershell-to-get-computer-information/

How to Run PowerShell Commands on Remote Computers
http://www.howtogeek.com/117192/

Tuesday, October 22, 2013

Ubuntu 13.10 How to Disable Online Amazon Search

1)
Install Unity Tweak Tool
#sudo apt-get update
#sudo apt-get install unity-tweak-tool

2)
Open Unity Tweak Tool and disable "Search Online Sources"



Ubuntu 13.10 Netbeans Can`t initialize UI Running in headless mode [Solved]

1)
Remove OpenJDK
#sudo apt-get purge openjdk*

2)
Install Oracle Java JDK 7
http://fosshelp.blogspot.in/2013/10/how-to-install-oracle-java-7-in-ubuntu.html

3)
Install Netbeans
#sudo /bin/sh netbeans-7.4-php-linux.sh

How to Install and configure Latest NetBeans 7.4 on Ubuntu 15.04 14.10 14.04 13.04 12.04


1)
Download Netbeans

2)
Remove OpenJDK
#sudo apt-get purge openjdk*



3)
Install Oracle Java JDK 7
http://fosshelp.blogspot.in/2013/10/how-to-install-oracle-java-7-in-ubuntu.html

4)
Install Netbeans
#sudo /bin/sh netbeans-7.4-php-linux.sh

Sunday, October 20, 2013

How to access local django webserver from outside world

How to access local django webserver (python manage.py runserver) from outside world

1)
Start local webserver
#python mange.py runserver
Django version 1.5.1, using settings 'myapp.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

2)
In remote machine
http://ip-of-django-web-server:8000/

Trying to Install Xmir on Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Removing the system-compositor-testing PPA

Should you have been using the system-compositor-testing PPA you will have to remove the PPA and it's content from your system prior to installing XMir from archive.

$> sudo apt-get update
$> sudo apt-get install ppa-purge
$> sudo ppa-purge ppa:mir-team/system-compositor-testing
$> sudo rm /etc/apt/preferences.d/50-pin-mir.pref


Then, follow "Installing from Archive".

2)
Installing from Archive


Prior to landing Mir and related packages in the Ubuntu archive, we offered XMir via the system-compositor-testing ppa (ppa:mir-team/system-compositor-testing). As of August 9, 2013 XMir can be installed directly from archive via

$> sudo apt-get update
$> sudo apt-get dist-upgrade
$> sudo apt-get install unity-system-compositor
$> sudo restart lightdm




3)
Verifying that unity-system-compositor is running

You can check in 3 ways whether unity-system-compositor is running:

$> ps aux | grep unity-system-compositor
$> grep -i xmir /var/log/Xorg.0.log
$> ls -l /var/log/lightdm/unity-system-compositor.log


Ref Site: https://wiki.ubuntu.com/Mir/Installing

(WW) "xmir" is not to be loaded by default. Skipping [Fix?]

(WW) "xmir" is not to be loaded by default. Skipping



Saturday, October 19, 2013

How to Install Mir Ubuntu 13.10 Saucy Salamander Desktop

1)
Removing the system-compositor-testing PPA

Should you have been using the system-compositor-testing PPA you will have to remove the PPA and it's content from your system prior to installing XMir from archive.

$> sudo apt-get update
$> sudo apt-get install ppa-purge
$> sudo ppa-purge ppa:mir-team/system-compositor-testing
$> sudo rm /etc/apt/preferences.d/50-pin-mir.pref


Then, follow "Installing from Archive".

2)
Installing from Archive


Prior to landing Mir and related packages in the Ubuntu archive, we offered XMir via the system-compositor-testing ppa (ppa:mir-team/system-compositor-testing). As of August 9, 2013 XMir can be installed directly from archive via

$> sudo apt-get update
$> sudo apt-get dist-upgrade
$> sudo apt-get install unity-system-compositor
$> sudo restart lightdm




3)
Verifying that unity-system-compositor is running

You can check in 3 ways whether unity-system-compositor is running:

$> ps aux | grep unity-system-compositor
$> grep -i xmir /var/log/Xorg.0.log
$> ls -l /var/log/lightdm/unity-system-compositor.log


Ref Site: https://wiki.ubuntu.com/Mir/Installing

How to Install Ubuntu 13.10 Saucy Salamander in VMware

How to Install Ubuntu 13.10 Saucy Salamander in VMware



How to Install Ubuntu 13.10 Saucy Salamander

How to Install Ubuntu 13.10 Saucy Salamander



Friday, October 18, 2013

How To Install Valve STEAM Client on Ubuntu 15.04 14.10 14.04 13.04 12.04

How To Install Valve STEAM Game Client on Ubuntu 13.10 Saucy Salamander

1)
Update Repo (Optional)
#sudo apt-get update
#sudo apt-get upgrade

2)
Download Steam
#wget http://media.steampowered.com/client/installer/steam.deb



3)
Install Dependencies
#sudo apt-get install curl

4)
Install Steam
#sudo dpkg -i steam.deb

How to Install OpenJDK 7 in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Update Repo
#sudo apt-get update

2)
Install OpenJDK 7
#sudo apt-get install openjdk-7-jre-headless



3)
Check which JDK packages are installed
#sudo dpkg --list | grep -i jdk

4)
Install Plugin for Firefox
#sudo apt-get install icedtea-plugin

5)
Verify Firefox Plugin
http://www.java.com/en/download/testjava.jsp

How to Install Oracle Java JDK 6 in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Add Repo
#sudo add-apt-repository ppa:webupd8team/java

2)
Update Repo
#sudo apt-get update

3)
Install Oracle Java 6
#sudo apt-get install oracle-java6-installer

4)
To automatically set up the Java 6 environment variables
#sudo apt-get install oracle-java6-set-default

5)
Check Version
#java -version

6)
Remove Oracle Java 6
a)
Check which JDK packages are installed

#sudo dpkg --list | grep -i jdk

b)
Remove Oracle Java 6

#sudo apt-get purge oracle-java6-installer
OR
#sudo apt-get remove oracle-java6-installer

c)
Check that all JDK packages have been removed

#sudo dpkg --list | grep -i jdk

How to Remove Oracle Java JDK 7 Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Check which JDK packages are installed

#sudo dpkg --list | grep -i jdk

2)
Remove Oracle Java 7

#sudo apt-get purge oracle-java7-installer
OR
#sudo apt-get remove oracle-java7-installer

3)
Check that all JDK packages have been removed

#sudo dpkg --list | grep -i jdk

How to Remove Oracle Java JDK 8 Ubuntu 15.04 14.10 14.04 13.10

1)
Check which JDK packages are installed

#sudo dpkg --list | grep -i jdk



2)
Remove Oracle Java 8

#sudo apt-get purge oracle-java8-installer
OR
#sudo apt-get remove oracle-java8-installer

3)
Check that all JDK packages have been removed

#sudo dpkg --list | grep -i jdk

Thursday, October 17, 2013

How to Remove OpenJDK Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Check Version
#java -version

2)
First check the current setup before we uninstall Java
#sudo update-alternatives --display java
OR
#sudo update-alternatives --config java

3)
Check which JDK packages are installed
#sudo dpkg --list | grep -i jdk

#Remove Java
#sudo apt-get purge icedtea-* openjdk-*

Check that all JDK packages have been removed
#sudo dpkg --list | grep -i jdk

How to Install Oracle Java JDK 8 in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Add Repo
#sudo add-apt-repository ppa:webupd8team/java

2)
Update Repo
#sudo apt-get update

3)
Install Oracle Java 8
#sudo apt-get install oracle-java8-installer



4)
To automatically set up the Java 8 environment variables
#sudo apt-get install oracle-java8-set-default

5)
Check Version
#java -version

6)
Remove Oracle Java 8
a)
Check which JDK packages are installed

#sudo dpkg --list | grep -i jdk

b)
Remove Oracle Java 8

#sudo apt-get purge oracle-java8-installer
OR
#sudo apt-get remove oracle-java8-installer

c)
Check that all JDK packages have been removed

#sudo dpkg --list | grep -i jdk

How to Install Oracle Java JDK 7 in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Add Repo
#sudo add-apt-repository ppa:webupd8team/java

2)
Update Repo
#sudo apt-get update

3)
Install Oracle Java 7
#sudo apt-get install oracle-java7-installer

4)
To automatically set up the Java 7 environment variables
#sudo apt-get install oracle-java7-set-default

5)
Check Version
#java -version

6)
Remove Oracle Java 7
a)
Check which JDK packages are installed

#sudo dpkg --list | grep -i jdk

b)
Remove Oracle Java 7

#sudo apt-get purge oracle-java7-installer
OR
#sudo apt-get remove oracle-java7-installer

c)
Check that all JDK packages have been removed

#sudo dpkg --list | grep -i jdk

How To Install STEAM on Ubuntu 15.04 14.10 14.04 13.04 12.04

How To Install Stream Client on Ubuntu 13.10 Saucy Salamander

1)
Start the Ubuntu Software Center. Search for Steam and install it.



How to Install VLC Media Player in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Install VLC Using Ubuntu Software Center.
Start the Ubuntu Software Center. Search for VLC and install it.

OR

2)
Install Using Commands
a)
Add Repo
#sudo add-apt-repository ppa:videolan/stable-daily



b)
Update Repo
#sudo apt-get update

c)
Install VLC
#sudo apt-get install vlc

Thursday, October 10, 2013

How To Install Nemo File Manager In Ubuntu 13.10 Saucy Salamander

1)
Install the stable Nemo file manager
a)

#sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable

b)
#ls /etc/apt/sources.list.d
* Find the file gwendal-lebihan-dev-cinnamon-stable-saucy.list
#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/gwendal-lebihan-dev-cinnamon-stable-saucy.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
 
OR
#sudo apt-get update



c)
#sudo apt-get upgrade

d)
#sudo apt-get install nemo


2)
Install the latest Nemo file manager from GIT
a)

#sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-nightly

b)
#sudo apt-get update

c)
#sudo apt-get install nemo

VIM Editor How to Sort Numbers in Ascending and Descending Order

1)
Ascending
:sort n

2)
Descending
:sort! n



Tips
===
a)
u flag filters out duplicates while sorting
:sort nu

Python How to Find name of a thread

>>>
>>>
>>> import threading
>>>
>>> threading.currentThread().getName()
'MainThread'
>>>
>>>

Wednesday, October 9, 2013

How to Install Cinnamon Desktop in Ubuntu 13.10 Saucy Salamander

1)
Add repo

#sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable

2)
Update local repositories


#ls /etc/apt/sources.list.d
* Find the file gwendal-lebihan-dev-cinnamon-stable-saucy.list
#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/gwendal-lebihan-dev-cinnamon-stable-saucy.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update



3)
#sudo apt-get upgrade
4)
Install cinnamon

#sudo apt-get install cinnamon

How to Install XBMC in Ubuntu 13.10 Saucy Salamander

1)
Add repo

#sudo add-apt-repository ppa:team-xbmc

2)
Update local repositories

#ls /etc/apt/sources.list.d
* Find the file team-xbmc-ppa-saucy.list
#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/team-xbmc-ppa-saucy.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update



3)
Install xfce

#sudo apt-get install xbmc

Tuesday, October 8, 2013

MacOS-X Aqua Theme for Ubuntu 13.10 (Saucy Salamander) Xfce

1)
Download MacOS-X Aqua Theme
http://xfce-look.org/content/show.php/MacOS-X+Aqua+Theme?content=13548

2)
Login to Ubuntu with Xfce Session

3)
Create a directory named .themes under your home folder
#mkdir ~/.themes



4)
Extract downloaded theme into ~/.themes

5)
Goto "Applications Manu" ==> "Settings" ==> "Appearance"
* Select Style

How to Install XFCE in Ubuntu 13.10 Saucy Salamander

1)
Add repo

#sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10

2)
Update local repositories

#ls /etc/apt/sources.list.d
* Find the file xubuntu-dev-xfce-4_10-saucy.list
#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/xubuntu-dev-xfce-4_10-saucy.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update



3)
Install xfce

#sudo apt-get install xfce4

4)
To remove xfce

#sudo apt-get install ppa-purge
#sudo ppa-purge ppa:xubuntu-dev/xfce-4.10

How to VIM import the result of a command into the current file

1)
vim myfile.txt

2)
!!ls -l
!!svn log -l 5
!!cat anotherfile.txt

3) OR
:r !ls -l
:r !svn log -l 5
:r !cat anotherfile.txt

How to Install Teamviewer in Ubuntu 13.10 Saucy Salamander

1)
Update

#sudo apt-get update

2)
Upgrade

#sudo apt-get upgrade

3)
Install Teamviewer

Download (32-Bit / Multiarch) teamviewer_linux.deb
#sudo dpkg -i teamviewer_linux.deb
OR
#sudo apt-get install teamviewer



4)
Remove Teamviewer

#sudo apt-get purge teamviewer

How to Install Skype in Ubuntu 13.10 Saucy Salamander

1)
Update

#sudo apt-get update

2)
Upgrade

#sudo apt-get upgrade



3)
Install Skype

Download (Ubuntu 12.04 multiarch) skype-ubuntu-precise_4.2.0.11-1_i386.deb
#sudo dpkg -i skype-ubuntu-precise_4.2.0.11-1_i386.deb
OR
#sudo apt-get install skype

4)
Remove Skype

#sudo apt-get purge skype

Monday, October 7, 2013

Sqlalchemy Decorator to find connection id associated with a Session


from functools import wraps
def find_connection_id_deco(func):
    """
    """
    @wraps(func)
    def wrap1(*args, **kwargs):
        """
        """
        gls = func.__globals__
        _DBSession = gls.get("DBSession")
        if _DBSession:
            res1 = _DBSession.connection().execute("SELECT connection_id()")
            if res1:
                conn_id = res1.fetchone()[0]
                print "===%s===%s()===conn_id_1===%s" %(func.func_code.co_filename, func.__name__, conn_id)
            # ###OR
            # res2 = DBSession.execute("SELECT connection_id();")
            # if res2:
            #     conn_id = res2.fetchone()[0]
            #     print "===%s()===conn_id_2===%s" %(func.__name__, conn_id)
        return func(*args, **kwargs)
    return wrap1

OutPut
=====
===/bla/bla/file1.py===func1()===conn_id_1===1481
===/bla/bla/file2.py===func2()===conn_id_1===1481
===/bla/bla/file3.py===func3()===conn_id_1===1483
===/bla/bla/file4.py===func4()===conn_id_1===1485
===/bla/bla/file5.py===func5()===conn_id_1===1485

#####################

def find_connection_id(msg=""):
    """
    """
    _DBSession = globals().get("DBSession")
    if _DBSession:
        res1 = _DBSession.connection().execute("SELECT connection_id()")
        if res1:
            conn_id = res1.fetchone()[0]
            print "===%s===conn_id_1===%s" %(msg, conn_id)

Note:
====
1) transaction.commit() will close all existing DBSessions and connection associated with it.
*transaction.commit()

2) DBSession.query() followed by a transaction.commit() will start a new DBSession and connection.
*transaction.commit()
*DBSession.query()

Sqlalchemy How to find connection id associated with a Session



 def find_connection_id(_DBSession, msg=""):
    """
    """
    res1 = _DBSession.connection().execute("SELECT connection_id()")
    if res1:
        conn_id = res1.fetchone()[0]
        print "===%s()===conn_id_1===%s" %(msg, conn_id)
    ###OR
    res2 = DBSession.execute("SELECT connection_id();")
    if res2:
        conn_id = res2.fetchone()[0]
        print "===%s()===conn_id_2===%s" %(msg, conn_id)


Output
=====
===message1===conn_id_1===752
===message2===conn_id_2===752

#######################

def find_connection_id(msg=""):
    """
    """
    _DBSession = globals().get("DBSession")
    if _DBSession:
        res1 = _DBSession.connection().execute("SELECT connection_id()")
        if res1:
            conn_id = res1.fetchone()[0]
            print "===%s===conn_id_1===%s" %(msg, conn_id)


Note:
====
1) transaction.commit() will close all existing DBSessions and connection associated with it.
*transaction.commit()

2) DBSession.query() followed by a transaction.commit() will start a new DBSession and connection.
*transaction.commit()
*DBSession.query()


How to install Unity Tweak tool in Ubuntu 12.04

unity-tweak-tool is not available for Precise. Use Ubuntu Tweak

1)
Add Repo
#sudo add-apt-repository ppa:tualatrix/ppa

2)
Update Repo
#ls /etc/apt/sources.list.d
* Find the file tualatrix-ppa-precise.list
#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/tualatrix-ppa-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update 


3)
Install  ubuntu-tweak
#sudo apt-get install ubuntu-tweak

Sunday, October 6, 2013

How To Install PLayOnLinux In Ubuntu 13.10 Saucy Salamander

1)
Update Repo
#sudo apt-get update



2)
Install playonlinux
#sudo apt-get install playonlinux

How to Install Ubuntu 13.10 (Saucy Salamander) In VirtualBox

How to Install Ubuntu 13.10 In VirtualBox


Saturday, October 5, 2013

How To Install New Themes In Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Download Theme
Goto http://www.ubuntuthemes.org
Download a theme
For example http://www.ubuntuthemes.org/wood.html
http://www.ubuntuthemes.org/wp-content/uploads/2011/07/Wood.tar.gz

2)
Install ubuntu-tweak
#sudo add-apt-repository ppa:tualatrix/ppa
 

#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/tualatrix-ppa-saucy.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
#OR
#sudo apt-get update

#sudo apt-get install ubuntu-tweak


3)
OR 
Install Unity-Tweak-Tool
#sudo apt-get install unity-tweak-tool

4)
Extract downloaded file to ~/.themes folder

5)
Goto "Tweaks" and click "theme" and select your theme

Howto Ubuntu 13.10 (Saucy Salamander) Enable Compiz Desktop Effects


Ubuntu 13.10 (Saucy Salamander) Unity Tweak Tool Review

1)
Add Repo
#sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily

2)
Update Repo
#ls /etc/apt/sources.list.d
* Find the file freyja-dev-unity-tweak-tool-daily-precise.list

#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/freyja-dev-unity-tweak-tool-daily-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update

3)
Install  unity-tweak-tool
#sudo apt-get install unity-tweak-tool

How to install Unity Tweak tool in Ubuntu 15.04 14.10 14.04 13.04 12.04

1)
Add Repo
#sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily

2)
Update Repo
#ls /etc/apt/sources.list.d
* Find the file freyja-dev-unity-tweak-tool-daily-precise.list

#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/freyja-dev-unity-tweak-tool-daily-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update

3)
Install  unity-tweak-tool
#sudo apt-get install unity-tweak-tool

How to install Minecraft in ubuntu 13.10 Saucy Salamander

1)
Add Repo
#sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer

2)
Update Repo 
#sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/minecraft-installer-peeps-minecraft-installer-saucy.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
OR
#sudo apt-get update


3)
Install Minecraft
#sudo apt-get install minecraft-installer

How To Install GNOME 3 on ubuntu 13.10 Saucy Salamander

a)
Install/Switch to gdm
#sudo apt-get install gdm
* Select gdm

b)
Add the GNOME3 Next PPA

#sudo add-apt-repository ppa:gnome3-team/gnome3-next

c)
Add GNOME3 Staging PPA

#sudo add-apt-repository ppa:gnome3-team/gnome3-staging

d)
Upgrade to GNOME 3.10

#sudo apt-get update
#sudo apt-get dist-upgrade

* Please read the output before pressing "y" to make sure that no important packages are removed



e)
Install gnome-shell

#sudo apt-get install gnome-shell
* Gnome 3.10 doesn't work properly with unity

f)
Install Gnome Apps

#sudo apt-get install gnome-documents gnome-contacts epiphany-browser gnome-boxes gnome-shell-extensions gnome-tweak-tool bijiben gnome-clocks

g)
Remove Ubuntu overlay scrollbars

#sudo apt-get remove overlay-scrollbar

h)
Reboot

#sudo reboot

Friday, October 4, 2013

VIM Editor Commands Tutorial

1)
Search for a file recursively

Here ** means recursive search
:n **/*Manager.py

2)
Open another file

:e anotherfile.py

3)
How to get help

:help *search*
:help *searching*
:help *replacing*

4)
How to Comment lines

a)
Replace the begining of each line by #

:%s/^/#/g
s ---> Replace
g ---> Global (global to each line)
% ---> The entire file

b)
Replace the begining of lines 2 to 10 by #
:2,10s/^/#/g

c)
Replace the begining of each line by hello
:%s/^/hello/g

5)
How to Delete Comments from config file

a)
Delete all lines containing string "#"
:g/#/d
g ---> Global (Global to entire file)

b)
Delete all lines containing string
:g/string/d

6)
How to replace a string of current line

a)
Replace the first occurence of Bill by Steve in current line
:s/Bill/Steve/

b)

Replace Bill by Steve in current line
:s/Bill/Steve/g
g ---> Global (global to current line)

c)
Replace Bill by Steve in all the file
:%s/Bill/Steve/g
s ---> Replace
% ---> The entire file
g ---> Global (Global to each line)

Thursday, October 3, 2013

How to Install ovftool

1) Download ovftool
http://hammer.linboard.net/distro/vmware/ovftool/VMware-ovftool-3.0.1-801290-lin.x86_64.bundle



2) Install
$ sudo /bin/sh VMware-ovftool-3.0.1-801290-lin.x86_64.bundle
Extracting VMware Installer...done.
You must accept the VMware OVF Tool component for Linux End User
License Agreement to continue.  Press Enter to proceed.

If you want to get to the end of the text, hold down the Space bar.

Do you agree? [yes/no]: yes

How to Upgrade from Ubuntu 13.04 to 13.10 (Saucy Salamander) using iso image

How to Upgrade from Ubuntu 13.04 to 13.10 using iso image


Tuesday, October 1, 2013

How to Upgrade from ubuntu 13.04 to 13.10 Saucy Salamander


1) Run the update-manager -d application from th Terminal
#sudo update-manager -d