Showing posts with label apt-get. Show all posts
Showing posts with label apt-get. Show all posts

Tuesday, November 10, 2009

Morning come with updates and Apt-get

I was just a little bit curious about new updates and installed packages on my system.
Since ive bin installing a few packages through apt-get i wanted to list all the packages so i would know witch ones i had.
I found this apt howto on debians site and found theese commands.

installs new packages.
apt-get install

Update/Upgrade all packages
apt-get upgrade

clean up the local repositories
apt-get clean and autoclean

find packages
apt-cache search

update repository list
apt-get update

Monday, November 9, 2009

Installing SSH to remote Ubuntu 9.10 server

Now i have installed Ubuntu server 9.10 and i am ready to start configuring it. Since i don't have any computer screen or keyboard connected to the server i want to be able to remote it with SSH.
So before i put it in my closet i am going to configure SSH.
I start with installing openssh server on it with
Since I am going to use the root account for a while now i am going to start a Root shell instead of wighting sudo all the time.
sudo -i
then i install the server
apt-get install openssh-server


After the install was complete i configured the sshd_config file under /etc/ssh
vi /etc/ssh/sshd_config
then i used 'i' to input text to the document
PermitRootLogin NO
AllowUsers (Username), (username)


After i made the changes i saved and quit :wq! to save and quit in vi.
after this i just restarted ssh and the server was ready to be put in the closet.
service ssh restart