Showing posts with label Command Line. Show all posts
Showing posts with label Command Line. Show all posts

Wednesday, September 10, 2014

How to update and upgrade Kali Linux

I really should of put this post up much earlier, but alas here it is. One of the first things you should do upon installing Kali is to do update it. I will show you the commands to do this, it is very easy, just like most other things once you know how to do it it will become like second nature.

Beware, this may take a LONG time on a slow connection depending on how out of date your installation is, so if you are on a slow connection consider going to the coffee shop. Ok lets go.

Open up your terminal and type the following:

apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

 The first command cleans out old and obsolete packages, as this might interfere with the update.

The second command updates your repositories, in case you don't know a repository is basically a website that has Linux applications and sources.

The third command will update the installed applications.

And the fourth command will update the installation itself.

As always thank you for reading. If you liked this post please follow the blog, plus one it, and follow me on google+.

How to add a non root user in Kali Linux

If you have tried to install applications such as VLC or other and tried to run them as your root account chances are they will say that you can not run this as root. This is a security feature, and it makes a lot of sense because a root user can change system configuration and a standard user can't.

So lets show you how to create a standard user in Kali Linux. You can easily do this. First open the trusty terminal (you are getting used to using the terminal right?). Then enter the following commands (of course replace meo with your user name):

useradd -m meo
 
Note the -m creates the home directory which is usually /home/username
 
Next type the following to set the password for the newly created user:
 
passwd meo
 
You will have to enter the password for the new user twice. Simple.
 
Next add user to the SUDO group so that they can sudo to install programs and make system change

usermod -a -G sudo meo
 
Now set the new users default shell to BASH

chsh -s /bin/bash user1
 
That is all you have to do, now logout of your root account and use your user account!


As always thank you for reading.