- This topic is empty.
-
AuthorPosts
-
September 9, 2014 at 1:48 pm #182401
Alen
ParticipantErik, everything in due time. The responses here are fragmented and incomplete, take some time with following resources. Once you’re done reading, exploring come back with specific questions.
September 9, 2014 at 1:51 pm #182402nixnerd
ParticipantI’m so lost right now lol… starting to think this thing not worth the effort.
Dude… it is. I guarantee you it is. We’re really not even that far off here. All you need to do is configure your name and email. That’s it. Alen gave you the commands for that. Then, when you’re done with that, watch this:
September 9, 2014 at 1:52 pm #182403Erik
ParticipantOH SNAP… I entered my [sudo] password:
It wasn’t showing up but after I entered it and hit enter it worked… i was waiting for it to show me typing my password.
September 9, 2014 at 2:07 pm #182404nixnerd
ParticipantYou had to type your sudo password to git commit?
If so… you might need to perform a chmod on your home directory because that’s insane. @traq would know more since he runs Ubuntu but if that’s the default… that’s weird.
September 9, 2014 at 2:08 pm #182405Erik
Participantyes… but now I stuck on the password/username stuff
September 9, 2014 at 2:11 pm #182406Erik
Participantadded: sudo apt-get install git-core
then got this:
[sudo] password for erik:
Reading package lists… Done
Building dependency tree
Reading state information… Done
git-core is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
[email protected]:~$September 9, 2014 at 2:12 pm #182407nixnerd
Participantsudo apt-get install git-core
Do you know what that command does?
That’s the command to install the latest version of git from the repos. The reason it’s saying it can’t install is because you already did. Now I’m confused. Did you just run this?
September 9, 2014 at 2:12 pm #182408Erik
ParticipantThis is where I’m at now..
git config –global user.email “[email protected]”
git config –global user.name “Your Name”I enter these but nothing happens
September 9, 2014 at 2:14 pm #182409September 9, 2014 at 2:15 pm #182410nixnerd
ParticipantDude… then it’s probably set. You’re probably resetting it every time you do that.
September 9, 2014 at 2:19 pm #182412Erik
ParticipantOk, So now on to here WPScan
I get this
E: Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?Update: Had to run
sudo -s
to run in rootSeptember 9, 2014 at 2:45 pm #182413nixnerd
ParticipantPlease tell me what WPScan has to do with Git. That’s where I’m super confused.
September 9, 2014 at 2:55 pm #182414Erik
ParticipantShit.. I guess I confused now also.. swore I read somewhere I needed it.
I’m sorry, I’m so brain fried right now.
I’m going to just walk away from all this for a few hours and come back and try again.
September 9, 2014 at 3:25 pm #182415__
ParticipantKinda late, I guess, but where are you now?
and are you trying to run git, or that WPScan program?Just to comment on a few past things,
Update: Had to run sudo -s to run in root
Do not run git with
sudo
unless you have a very, very specific reason for doing so. In fact, do not run anything withsudo
unless you know exactly what you’re doing, and why, and that it can’t be done withoutsudo
.The average user should never have reason to use the sticky (
-s
) option: typesudo
each time you need it. I know it’s annoying, but it’s supposed to be annoying. Don’t run as root. When you get more experience under your belt, you can make your own decision.Linux has the concept of users, groups, and permissions. The “root” user is kinda like a Super-Admin account on Windows… the root user is allowed to do absolutely anything (e.g., root is even allowed to delete the linux kernel and the entire OS while it’s running. Don’t try that, though).
Ubuntu handles this a bit differently than most Linux distros: it hides the root account. When you need to do something that requires root user permissions, you have to use
sudo
.sudo
‘s only purpose in life is to get your attention when you’re about to do something you might regret.This is not to say that you should never use
sudo
. Installing programs (which is whatapt-get
does), for example, or changing certain admin settings. Some programs require root permissions in order to be useful as well. Just think twice: make sure you know what you’re about to do, and why you need root permissions to do it.For git, you don’t need it (it’s a bit risky if you do it in the wrong directory, and even if not, it leads to some other annoyances later on). If you created your current repo using
sudo
, you might have to get rid of it (delete the hidden.git/
directory) and start over withoutsudo
.Erik, everything in due time. The responses here are fragmented and incomplete, take some time with following resources.
Absolutely. And don’t try to follow everyone’s advice at once. If you’re listening to Joe, for example, and I suggest something that you don’t entirely understand, wait for Joe’s feedback before trying it. It’s not that I don’t know what I’m doing, it’s that I don’t necessarily know what he’s doing. And you don’t need to get lost.
Anyhow: let us know what you’re trying to do (git vs. WPScan), and we’ll get you on the right track.
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.