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.
Subscribe to:
Posts (Atom)