Kali 2015-06-18: Difference between revisions
From charlesreid1
No edit summary |
|||
| (7 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
When I created my new user login, I didn't do anything except test that I could log in. Once I tried to start doing stuff, I was getting permissions errors in my home directory. I needed to change permissions on my home directory. I also needed to change my shell from /bin/sh to /bin/bash. | When I created my new user login, I didn't do anything except test that I could log in. Once I tried to start doing stuff, I was getting permissions errors in my home directory. I needed to change permissions on my home directory. I also needed to change my shell from /bin/sh to /bin/bash. | ||
To adjust permissions (as root): | |||
<pre> | |||
# chown charles /home/charles | |||
</pre> | |||
To change shell: | |||
<pre> | |||
$ chsh | |||
</pre> | |||
=Adding dotfiles= | =Adding dotfiles= | ||
| Line 10: | Line 22: | ||
Need to make a Fabric file to do this - either copy dotfiles into github repo, or copy github repo into dotfiles | Need to make a Fabric file to do this - either copy dotfiles into github repo, or copy github repo into dotfiles | ||
Had to edit git config because git version on Kali Linux was version 1, not version 2. | |||
This led to problems with vimrc. Had to run <code>mkdir -p ~/.vim/swap</code> | |||
Also had some issues with my PS1 variable not wrapping lines properly. Fixed that. | |||
Also had some issues with my workflow, ssh keys, scripts, copying files around, pushing changes from one bashrc to another, etc. | |||
Need to use Python or Ruby to create a Fabric file, but also create a quick template engine, so I can say, "Make bashrc for computer A use (common) chunk 1, chunk 2, then its own chunk, then chunk 5." | |||
=Building git v2= | |||
Dowloaded latest tag from git repo on github. | |||
Untarred the tar file with | |||
<pre> | |||
tar -xvf git-2.4.4.tar | |||
</pre> | |||
Ran this command to make everything: | |||
<pre> | |||
make prefix=/usr all doc info | |||
</pre> | |||
[[Category:Kali]] | |||
Latest revision as of 20:15, 18 June 2015
Fixing user accounts
When I created my new user login, I didn't do anything except test that I could log in. Once I tried to start doing stuff, I was getting permissions errors in my home directory. I needed to change permissions on my home directory. I also needed to change my shell from /bin/sh to /bin/bash.
To adjust permissions (as root):
# chown charles /home/charles
To change shell:
$ chsh
Adding dotfiles
Clone dotfile repo from github
Copy dotfiles into place
Need to make a Fabric file to do this - either copy dotfiles into github repo, or copy github repo into dotfiles
Had to edit git config because git version on Kali Linux was version 1, not version 2.
This led to problems with vimrc. Had to run mkdir -p ~/.vim/swap
Also had some issues with my PS1 variable not wrapping lines properly. Fixed that.
Also had some issues with my workflow, ssh keys, scripts, copying files around, pushing changes from one bashrc to another, etc.
Need to use Python or Ruby to create a Fabric file, but also create a quick template engine, so I can say, "Make bashrc for computer A use (common) chunk 1, chunk 2, then its own chunk, then chunk 5."
Building git v2
Dowloaded latest tag from git repo on github.
Untarred the tar file with
tar -xvf git-2.4.4.tar
Ran this command to make everything:
make prefix=/usr all doc info