Saturday, September 1, 2012

how to install and use github in ubuntu for deploying


How to install github and deploy it in through local

First create a free account in github by clicking https://github.com/signup/free and then create your account here
note: free account is viewable by public and paid services are private

Install your github in your local pc
$sudo apt-get install git-core

here create your username and email here to get the passwd cache in your mails
$git config –global user.name “your name here”
$git config –global user.email “your email id”
$git config –global credential.helper cache
$git config –global credential.helper 'cache –timeout=3600'


Then login to github.com with your id
Then create a repository name as some exleazand some discription then create the repo

Then create a key in your local system
#cd .ssh
#ssh-keygen -t rsa
then key will be generated then copy the key in id_rsa.pub and copy it in github >> account setting>>SSH keys here add ssh key enter then paste the key with the name

then go to local system where you developed the apps
after going into that project developed path type this command
#git init
here it will generate a hidden folder .git

#git add .
This command will gather all the file together

#git commit -m “message”
then go to git hub account and your repo it will show a link with http and ssh then copy the ssh link like as this Ex: git@github.com:224466/exleaz.git
type this command

#git remote add exleaz git@github.com:224466/exleaz.git
here exleaz is a name which you are giving to the file

#git push -u exleaz master
here it will dump all your local apps in to the git hub

if you edit the file in github and want to update that to your local then
#git pull exleaz
it will get all the update copy to the local
note: when you type this commands you should go to the path where your local apps where uploaded

if you would like to dump all the apps into local
#git clone exleaz

Friday, August 31, 2012

How to install libreoffice in redhat through rpm packages



How to install libreoffice in redhat through rpm packages

Download the packages by selecting the language package in libreoffice site or you can download directly from the comman below

  1. after downloading the package LibO_3.6.1_Linux_x86_install-rpm_en-US.tar.gz
  2. #tar xvf LibO_3.6.1_Linux_x86_install-rpm_en-US.tar.gz
    here the files will be extracted as LibO_3.6.1.2_Linux_x86_install-rpm_en-US
  3. then #cd LibO_3.6.1.2_Linux_x86_install-rpm_en-US
  4. #cd RPMS
    here you can see all rpm packages here
  5. #su -c 'yum install *.rpm'
    here all rpm packages will be installed
  6. cd desktop-integration
    directory will be changed
  7. #su -c 'yum install libreoffice3.6-freedesktop-menus-3.6.1-2.noarch.rpm'
  8. here the libre office will be installed
  9. go to applications >> office >> libre

Thursday, August 30, 2012

how to install skype in Rhel6


How to install skype in Rhel in easy and simple way

how of all download the this from here by typeing this command


#yum localinstall --nogpgcheck ./skype-2.2.0.35-3.el6.nux.i586.rpm

its completed you can go to the applications >> internet >> skype

then you can login to skype

how to run google chrome as root in ubuntu and redhat



How to run google chrome as root in ubuntu and rhel

Here given below shows you how to download install google chrome in ubuntu as well as in redhat

How to download and install google chrome in rhel
# vim /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - 32-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1
then save the file
# yum install google-chrome-stable
Then go to application>>internet>>google chrome
if you are opening as root then edit the configuration file
#vim /opt/google/chrome/google-chrome
at the end of the file you will found something like this in colour
exec-a “$0” “$HERE/chrome” “$@” --user-data-dir$Home
then save the file
go and open the google chrome

How to download and install google chrome in ubuntu
install google chrome from ubuntu software center
if you would like to open as root then edit the configuration file
#vim /usr/bin/chromium-browser
at the end of the config file add this coloured lines

exec $LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@" --user-data-dir
else
# we can't exec here as we need to clean-up the temporary profile
$LIBDIR/$APPNAME $CHROMIUM_FLAGS "$@" --user-data-dir
rm -rf $TEMP_PROFILE
fi
fi

then save the file
then run the google chrome as root

Tuesday, August 28, 2012

Sublime in ubuntu


SUBLIME TEXT EDITOR IN UBUNTU


Sublime text Editor its an alternate for the notepad, sublime is very colourfull for the text editors
here are the steps below how to install Sublime text editor 2 in ubuntu

  1. first of all download the the sublime editor from the  internet 
  2. #cd /home/username/Downloads
  3. #tar -xvf Sublime\ Text\ 2\ Build\ 2181.tar.bz2
  4. # mv Sublime\ Text\ 2 /var
  5. #cd /var
  6. #sudo chown -R username. Sublime\ Text\ 2
  7. #sudo ln -s /var/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
  8. Create the file vim /usr/share/applications/sublime.desktop
In the file add the fllowing and then save the file


[Desktop Entry]
Version=2181
Name=Sublime Text 2
Exec=sublime
Terminal=false
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n
TargetEnvironment=Unity
#hi this is sunny enjoy your sublime


then save the file :wq!

Tuesday, July 31, 2012

short keys for windows


Short keys for windows







port forwarding in router


Port Forwarding
Step1: open the router page with ip address 192.168.1.1 , it will open the page and ask for username and password .submit username and password and press enter.

Step2: in the left hand side some options are there , in that options click on “Forwarding” ---in that select “Virtual servers” and click on “Add New” option.


Step3: Then it asks to fill some details like serviceport, ipaddress, protocol, status, just fill the details.
  • Service port= application that run on which port.
  • IP address=IP address of server
  • Protocol=All
  • Status=Enabled
And click on “save”

Step4: checking for the application is accessible from any where in the internet.
For accessing the application you must know the External IP address of the router. So to know the External IP of router just type www.cmyip.com in the browser. It shows the IP of router.

Step5: Then type the IP of router with port number of the application in the browser of remote pc(any pc which is connected to internet). Then it redirects to the application which is in following screenshot.
“192.168.x.y:5000”---like this type in the browser.