Skip to content

Commit f955faf

Browse files
authored
Merge pull request #2 from manojpandey/master
cloning updates.
2 parents e073cdc + 38aa869 commit f955faf

File tree

2 files changed

+61
-11
lines changed

2 files changed

+61
-11
lines changed

README.md

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ It consists of setting up common tools, apps, python and ruby development setup
1818
---
1919
### Sublime text
2020
$ sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
21+
$ sudo apt-get update
2122
$ sudo apt-get install sublime-text-installer
2223
sublime package : djanerio allautocomplete emmet sublimepythonide sidebar enhancement
2324
### Vim
@@ -153,11 +154,12 @@ It consists of setting up common tools, apps, python and ruby development setup
153154
$
154155

155156
## g++
156-
$
157+
$ sudo apt-get -y install g++
157158

158159
## ruby and rails
159160

160-
$
161+
- Check out [this](https://github.com/manojpandey/setup/blob/master/ror-setup.sh) script
162+
161163
## Django
162164

163165
$
@@ -225,6 +227,19 @@ It consists of setting up common tools, apps, python and ruby development setup
225227
$ sudo apt-add-repository ppa:paolorotolo/android-studio
226228
$ sudo apt-get update
227229
$ sudo apt-get install android-studio
230+
231+
## Android SDK
232+
$ sudo apt-get install openjdk-7-jdk
233+
$ wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
234+
$ tar -xvf android-sdk_r24.2-linux.tgz
235+
$ cd android-sdk-linux/tools
236+
$ ./android update sdk --no-ui
237+
$ vi ~/.zshrc << EOT
238+
export PATH=${PATH}:$HOME/sdk/android-sdk-linux/platform-tools:$HOME/sdk/android-sdk-linux/tools:$HOME/sdk/android-sdk-linux/build-tools/22.0.1/
239+
EOT
240+
$ source ~/.zshrc
241+
$ sudo apt-get install libc6:i386 libstdc++6:i386
242+
$ sudo apt-get install zlib1g:i386
228243

229244
## 32-bit Compatibility Libraries
230245
$ sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 lib32z1-dev
@@ -304,13 +319,25 @@ It consists of setting up common tools, apps, python and ruby development setup
304319
Change shortcut to shift++.
305320
---
306321
#Node
307-
##Setup With Ubuntu
308-
$ curl --silent --location https://deb.nodesource.com/setup_4.x | sudo bash -
309-
$ sudo apt-get install --yes nodejs
310-
##Setup With Debian(root user):
311-
$ apt-get install curl
312-
$ curl --silent --location https://deb.nodesource.com/setup_4.x | bash -
313-
$ apt-get install --yes nodejs
322+
## Remove any previously installed packages
323+
324+
Go to /usr/local/lib and delete any node and node_modules
325+
Go to /usr/local/include and delete any node and node_modules directory
326+
If you installed with brew install node, then run brew uninstall node in your terminal
327+
Check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
328+
Go to /usr/local/bin and delete any node executable
329+
330+
After that, do this:
331+
332+
sudo rm /usr/local/bin/npm
333+
sudo rm /usr/local/share/man/man1/node.1
334+
sudo rm /usr/local/lib/dtrace/node.d
335+
sudo rm -rf ~/.npm
336+
sudo rm -rf ~/.node-gyp
337+
sudo rm /opt/local/bin/node
338+
sudo rm /opt/local/include/node
339+
sudo rm -rf /opt/local/lib/node_modules
340+
sudo rm -rf /usr/local/include/node/
314341

315342
##Setup Node.js v5.0 on Ubuntu (THIS WILL NOT UPDATE NODE)
316343

@@ -325,6 +352,30 @@ It consists of setting up common tools, apps, python and ruby development setup
325352

326353
$ sudo apt-get install -y nodejs
327354

355+
### Steps to resolve "‘failed to fetch" error which might come
356+
357+
"Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
358+
Unable to find expected entry ‘main/binary-i386/Packages’ in Release file
359+
(Wrong sources.list entry or malformed file)"
360+
361+
1. Open a new Terminal window and run the following command (assuming you’re on the Stable Channel,
362+
if not, see the featured comment):
363+
364+
sudo gedit /etc/apt/sources.list.d/google-chrome.list
365+
366+
2.In the text file that opens edit the file so that the line reads:
367+
368+
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
369+
370+
The only addition you need to make is entering the [amd64] architecture after
371+
‘deb’ but preceding the ‘http’. Do not edit or replace any other text in this file.
372+
373+
3.Hit Save. Close the Gedit window.
374+
375+
Now return to the Terminal and refresh your package list by running:
376+
377+
sudo apt-get update
378+
328379
#### (NOTE) - Update Node by deleting the previous version and installing the newer one
329380

330381
# R

ror-setup.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ ruby -v
3030
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
3131
gem install bundler
3232

33-
echo "source ~/.rvm/scripts/rvm" >> .bashrc
34-
echo "export PATH="$PATH:$HOME/.rvm/bin"" >> .bashrc
33+
echo -e "\nRequired by rvm\n[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"" >> ~/.bashrc
3534
echo "source ~/.rvm/scripts/rvm" >> .zshrc
3635
echo "export PATH="$PATH:$HOME/.rvm/bin"" >> .zshrc
3736

0 commit comments

Comments
 (0)