Recently I had a funny experience with my friends that I wish to
share with you. We were in hurry to get a train and one of my friend was busy
with his call. Everyone pushed him to get into train. He had a tendency of
losing things often. After settling down in the seat he suddenly asked me where
is my mobile. Hearing that we all got shocked and puzzled, because he was still
on the call with his mobile, this made us laugh continuously for minutes later.
Monday, February 3, 2014
Wednesday, January 22, 2014
Git configuration with Bitbuket
Bitbuket.org an implementation of git.
It provide you a private repository
with free of cost up to 5 user access.
Requirement:
- An account in bitbuket
Step to simple project setup:
→ Open git-bash software
Check .ssh folder created at your user
folder [$ssh -v]
Generating public/private rsa key pair
[$ssh-keygen]
Create config file in your .ssh folder
paste the following
Host bitbucket.org IdentityFile ~/.ssh/id_rsa
save it
Restart the terminal
Create
.bashrc
at root of your user home directory
paste the following scipt
SSH_ENV=$HOME/.ssh/environment # start the
ssh-agentfunction
start_agent { echo
"Initializing new SSH agent..." #
spawn ssh-agent /usr/bin/ssh-agent
| sed 's/^echo/#echo/'
> "${SSH_ENV}" echo
succeeded chmod
600 "${SSH_ENV}" .
"${SSH_ENV}" > /dev/null /usr/bin/ssh-add} if [
-f "${SSH_ENV}" ]; then .
"${SSH_ENV}" > /dev/null ps
-ef | grep ${SSH_AGENT_PID}
| grep ssh-agent$ > /dev/null
|| { start_agent; }else start_agent;fi
Save and close the file and reopen the
git
Ssh add
$ ssh-add -l
cat ~/.ssh/id_rsa.pub
Select and copy the key output in the clipboard.
Login to bitbuket account and goto
manage account → sshkey tab (On the left side of page)
Add and save the key with suitable
name.
create .gitconfig file in the root
directory of your user home and add the below in the file
[user]
name = username
email = registedgmail@xxx.com
name = username
email = registedgmail@xxx.com
save and close
Return to the terminal window and
verify your configuration by entering the following command
ssh -T git@bitbucket.org
The authenticity of host 'bitbucket.org (131.103.20.167)' can't be
established.
press yes and it will create the
configuration.
try again the
ssh -T git@bitbucket.org
Note : if you get your name printed in the terminal. You achieved it.
Saturday, November 16, 2013
Why linux better than windows
#5 finest point to talk when compare
#1 : No more anti virus required
#2 : Feel the software freedom
#3 : Don't goto shop for your drivers
#4 : Multi workspace with multi task window
#5 : No need to crack software when it free.
#1 : No more anti virus required
#2 : Feel the software freedom
#3 : Don't goto shop for your drivers
#4 : Multi workspace with multi task window
#5 : No need to crack software when it free.
Dot prefix folder in ubuntu
Ubuntu : I surprised after finding some data in my pen drive on ubuntu. I was copied folder prefixed of dot( "." [e.g] .m2) from my window laptop. But it was missing when plugged ubuntu. I am just confident with what I have been copied. So, I thought of finding it with google as ".folder in ubuntu".
I found a link,
http://www.cyberciti.biz/faq/explain-linux-unix-dot-files/
"A dot file is nothing but a configuration file usually stored in users home directory."
from the above line I got the nice information that ubuntu storing all the configuration data inside the .file and .folder
E.g to view the .folders
But here the point I don’t want to last my folder which is copied already.So I chooses to go with terminal (command prompt). He never pushed me down.
$cd .m2
Using the above command I able to be inside the .m2 . So the problem solved, with coping the data from the current directory.
$ls
output:
repository
The $ls command shown me the subdirectories of current path.
$cp -r repository ../
after using the copy command I got the subdirectory outside of the .m2 folder.
Note: I used the -r argument for the copy command because my subdirectory have some more subdirectory inside.
I found a link,
http://www.cyberciti.biz/faq/explain-linux-unix-dot-files/
"A dot file is nothing but a configuration file usually stored in users home directory."
from the above line I got the nice information that ubuntu storing all the configuration data inside the .file and .folder
E.g to view the .folders
$ ls -a
$ ls -ld .*
$ ls -a | grep '^\.' But here the point I don’t want to last my folder which is copied already.So I chooses to go with terminal (command prompt). He never pushed me down.
$cd .m2
Using the above command I able to be inside the .m2 . So the problem solved, with coping the data from the current directory.
$ls
output:
repository
The $ls command shown me the subdirectories of current path.
$cp -r repository ../
after using the copy command I got the subdirectory outside of the .m2 folder.
Note: I used the -r argument for the copy command because my subdirectory have some more subdirectory inside.
Ubuntu : Auto mount drive partition when startup
#3 step solution:
(Tested on Ubuntu 13.4)
#1 --> Terminal (alt+ctrl+T)
type
#2 --> Super button (Dash Home) - Startup Applications
#3 --> Click add on Startup Application
Now You Done!!
wanna Test! Restart!!
(Tested on Ubuntu 13.4)
#1 --> Terminal (alt+ctrl+T)
type
sudo blkid
take note of your favourite partition ID like (/dev/sda9)#2 --> Super button (Dash Home) - Startup Applications
#3 --> Click add on Startup Application
udisks --mount /dev/sda9 Now You Done!!
wanna Test! Restart!!
Friday, December 28, 2012
retriving user .folder on ubumtu
Ubuntu : I surprised after finding some data in my pen drive on
ubuntu. I was copied folder prefixed of dot( "." [e.g] .m2) from my
windows 7 laptop. But it was missing when plugged ubuntu. I was very
confident with what I have been copied. So, I thought of finding it with
google as ".folder in ubuntu".
I found a link,
http://www.cyberciti.biz/faq/explain-linux-unix-dot-files/
"A dot file is nothing but a configuration file usually stored in users home directory."
from the above line I got the nice information that ubuntu storing all the configuration data inside the .file and .folder
E.g to view the .folders
But here the point I don’t want to last my folder which is copied already.So I chooses to go with terminal (command prompt). He never pushed me down.
$cd .m2
Using the above command I able to be inside the .m2 . So the problem solved, with coping the data from the current directory.
$ls
output:
repository
The $ls command shown me the subdirectories of current path.
$cp -r repository ../
after using the copy command I got the subdirectory outside of the .m2 folder.
Note: I used the -r argument for the copy command because my subdirectory have some more subdirectory inside.
If you not interested with doing all this with terminal, switch with shortcut
On your window click,
ctrl+L (Goto Location)
and type the path of your hidden folder.
I found a link,
http://www.cyberciti.biz/faq/explain-linux-unix-dot-files/
"A dot file is nothing but a configuration file usually stored in users home directory."
from the above line I got the nice information that ubuntu storing all the configuration data inside the .file and .folder
E.g to view the .folders
$ ls -a
$ ls -ld .*
$ ls -a | grep '^\.' But here the point I don’t want to last my folder which is copied already.So I chooses to go with terminal (command prompt). He never pushed me down.
$cd .m2
Using the above command I able to be inside the .m2 . So the problem solved, with coping the data from the current directory.
$ls
output:
repository
The $ls command shown me the subdirectories of current path.
$cp -r repository ../
after using the copy command I got the subdirectory outside of the .m2 folder.
Note: I used the -r argument for the copy command because my subdirectory have some more subdirectory inside.
If you not interested with doing all this with terminal, switch with shortcut
On your window click,
ctrl+L (Goto Location)
and type the path of your hidden folder.
Tuesday, December 11, 2012
Linux Error & Hot Fix
If this is your Linux terminal error
-------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------
Hot Fix:
Do the following command in the same error terminal
-------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------
Command 'lesspipe' is available in the following places
* /bin/lesspipe
* /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
uname: command not found
bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
sed: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
ls: command not found
-------------------------------------------------------------------------------------------------------------------------------------
Hot Fix:
Do the following command in the same error terminal
-------------------------------------------------------------------------------------------------------------------------------------
export PATH=/usr/bin:/bin
Subscribe to:
Posts (Atom)
Merging two sorted arrays - Big O (n+m) time complexity
Problem : Merge the two sorted arrays. Edge case : Array can empty Arrays can be in different size let getMaxLength = ( input1 , input...
-
There was a sizeable crowd gathered in a temple to attend the festival. The wireless mic surprised me during the priest's talk when ever...
-
Problem : Merge the two sorted arrays. Edge case : Array can empty Arrays can be in different size let getMaxLength = ( input1 , input...
-
Elm Dict Package /elm-lang/core/1.0.0/Dict The Dict api is useful when situation comes to store key , pair value.It is Similar to Map /...