EvilZone

Community => General discussion => : sp0rk August 28, 2013, 03:16:17 PM

: Ubuntu terminal & metasploit issue
: sp0rk August 28, 2013, 03:16:17 PM
 Hey guys, I'm at a loss, I've been fucking around trying different solutions to this problem. It all started when I tried to upgrade and use metasploit, I decided to re-download it and I've been having a lot of issues with the bundler. I'm now having issues with the terminal that started only after I tried to fix this.
I would really appreciate any help offered.

Installing factory_girl (4.2.0)
 Gem::InstallError: factory_girl requires Ruby version >= 1.9.2.
 An error occurred while installing factory_girl (4.2.0), and Bundler cannot
 continue.
 Make sure that gem install factory_girl -v '4.2.0' succeeds before bundling.
I've been messing around with different solutions suggested by EVERY thread on this subject and I still have had no luck....
 Please help


I am now getting this everytime I open a terminal:
/bin/lesspipe: 1: /bin/lesspipe: basename: not found
 /bin/lesspipe: 1: /bin/lesspipe: dirname: not found
 /bin/lesspipe: 279: [: =: unexpected operator
 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

This is also resulting from some PATH issue:


optx@ubuntu:~$ sudo
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
sudo: command not found

EDIT:

This is the script which fucked up my PATH variable, how can I reverse it?
#!/bin/bash
echo $PATH
echo "export PATH=\$PATH:/home/user/test" >> ~/.bashrc
PS1='$ '
source ~/.bashrc
echo $PATH
: Re: Ubuntu terminal & metasploit issue
: vezzy August 28, 2013, 03:35:20 PM
Run the 'echo $PATH' command to get the value of the $PATH variable or run 'set' to get a list of all Bash environment variables.

If you notice some disparity, use the 'export' command to place in environment variables, e.g.

: (Bash)
export PATH=${PATH}:/usr/local/bin
Finally modify your ~/.bash_profile to make these settings permanent.

EDIT: After you appended that snippet, I think your export syntax may be wrong and/or that you're appending it to the wrong file.
: Re: Ubuntu terminal & metasploit issue
: sp0rk August 28, 2013, 03:49:09 PM
Ok.
This is what I got from echoing the $PATH.
/usr/local/rvm/gems/ruby-2.0.0-p247/bin:/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:/usr/games