BoyUbuntu
Saturday, May 10, 2014
Wednesday, April 23, 2014
Tuesday, April 22, 2014
Installing RVM @ Ubuntu
Instructions given on : http://rvm.io/rvm/install
Are badly given. Too much mix and match.
For beginners it might searching for the right thing in an ocean where everything seems similar.
ps: that's a bad one.
Anyways:
Step 1) Insall curl on your machine.
Step 2) Download the stable release version of RVM from rvm.io
\curl -sSL https://get.rvm.io | bash -s stable
Step 3) That's it. Check rvm --version.
and there you go!
Step 4) Well, if it was that straight forward I would not have written this blog.
Step 5) You just need to add a path to your bashrc file.
use
echo
'[[ -s "/home/userName/.rvm/scripts/rvm" ]] && source "/home/userName/.rvm/scripts/rvm"'
>> ~/.bashrc
Step 6) Source bashrc file
source ~/.bashrc
And the most important
Step 7) Check what u have installed:
rvm --version
Step 8) Enjoy!
Thursday, April 17, 2014
How to format USB flash drive from terminal
Steps:
1) check the partitions using the command:
$df
2) Take the usb partition name from the list after you run the above command, e.g. /dev/sdb1
3) Un mount the device:
$ sudo umount /dev/sdb1
4) Verify with df whether the device has gone or not
5) Format the USB using the following:
a) for FAT32(used on Windows systems) use:
sudo mkfs.vfat -n usbNameWhatEverYouWantToGive /dev/sdb1
b) For ext3 (used on linux) use:
sudo mkfs.ext3 -L usbNameWhatEverYouWantToGive /dev/sdb1
1) check the partitions using the command:
$df
2) Take the usb partition name from the list after you run the above command, e.g. /dev/sdb1
3) Un mount the device:
$ sudo umount /dev/sdb1
4) Verify with df whether the device has gone or not
5) Format the USB using the following:
a) for FAT32(used on Windows systems) use:
sudo mkfs.vfat -n usbNameWhatEverYouWantToGive /dev/sdb1
b) For ext3 (used on linux) use:
sudo mkfs.ext3 -L usbNameWhatEverYouWantToGive /dev/sdb1
Few common errors while installing rails
Problem with pg_config:
Steps for that:
1) sudo apt-install libpq-dev
2) gem install pg
Problem with rmagick:
Steps:
1) sudo apt-get install libmagickwand-dev
2) gem install rmagick.
Steps for that:
1) sudo apt-install libpq-dev
2) gem install pg
Problem with rmagick:
Steps:
1) sudo apt-get install libmagickwand-dev
2) gem install rmagick.
Sunday, March 16, 2014
Important Commans for Terminal
1.To replace a keyword in Ubuntu terminal
> sed -i 's/originalWord/newWord/g' fileName.txt
> sed -i 's/originalWord/newWord/g' fileName.txt
Friday, February 21, 2014
Nasty Github Error
What I did:
1) Starting profiling my node.js application
2) V8.log exceede > 200MB.
3) Added the file
4) Commited.
5) Tried > git push
6) Yikes!!
Error :
remote: error: GH001: Large files detected.
remote: error: Trace: 5d65fdfa2bb0cdbc12b681a5d82e2d0a
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File v8.log is 243.09 MB; this exceeds GitHub's file size limit of 100 MB
To https://github.com/xxxxxx.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/xxxxxx.git'
I went crazy for hours.
Finally I got a solution:
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch v8.log'
Thanks to http://stackoverflow.com/questions/21168846/cant-remove-file-from-git-commit/21169552#21169552
1) Starting profiling my node.js application
2) V8.log exceede > 200MB.
3) Added the file
4) Commited.
5) Tried > git push
6) Yikes!!
Error :
remote: error: GH001: Large files detected.
remote: error: Trace: 5d65fdfa2bb0cdbc12b681a5d82e2d0a
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File v8.log is 243.09 MB; this exceeds GitHub's file size limit of 100 MB
To https://github.com/xxxxxx.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/xxxxxx.git'
I went crazy for hours.
Finally I got a solution:
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch v8.log'
Thanks to http://stackoverflow.com/questions/21168846/cant-remove-file-from-git-commit/21169552#21169552
Subscribe to:
Posts (Atom)