Author Topic: Ubuntu terminal & metasploit issue  (Read 1745 times)

0 Members and 1 Guest are viewing this topic.

Offline sp0rk

  • Serf
  • *
  • Posts: 38
  • Cookies: -1
    • View Profile
Ubuntu terminal & metasploit issue
« on: 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?
Quote
#!/bin/bash
echo $PATH
echo "export PATH=\$PATH:/home/user/test" >> ~/.bashrc
PS1='$ '
source ~/.bashrc
echo $PATH
« Last Edit: August 28, 2013, 03:34:18 pm by sp0rk »

Welcome. Sit on the couch in the corner and I'll bring in the bitches.

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Ubuntu terminal & metasploit issue
« Reply #1 on: 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.

Code: (Bash) [Select]
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.
« Last Edit: August 28, 2013, 03:36:57 pm by vezzy »
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline sp0rk

  • Serf
  • *
  • Posts: 38
  • Cookies: -1
    • View Profile
Re: Ubuntu terminal & metasploit issue
« Reply #2 on: August 28, 2013, 03:49:09 pm »
Ok.
This is what I got from echoing the $PATH.
Quote
/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

Welcome. Sit on the couch in the corner and I'll bring in the bitches.