PROJET AUTOBLOG


Planet-Libre

source: Planet-Libre

⇐ retour index

System Linux : Apres une net-intall Debian jessie 8...

jeudi 9 juin 2016 à 12:15

debian.png

Pour mettre un peu d'ordre :)

Qu'est ce qu'on a ?

netstat -ntlp
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      773/exim4
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      483/rpcbind
tcp        0      0 0.0.0.0:54677           0.0.0.0:*               LISTEN      492/rpc.statd
tcp6       0      0 ::1:25                  :::*                    LISTEN      773/exim4
tcp6       0      0 :::51008                :::*                    LISTEN      492/rpc.statd
tcp6       0      0 :::111                  :::*                    LISTEN      483/rpcbind

Oo !?

apt-get update
apt-get upgrade

On est bon ? :

# cat /etc/debian_version
8.5

Installation de l’essentiel :

apt-get install vim openssh-server deborphan

Config ssh :

vi /etc/ssh/sshd_config
PermitRootLogin yes
systemctl restart sshd

On enlève les # qui vont bien :

cat /root/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\\h:\\w\\$ '
# umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

Un peu de ménache :

apt-get remove --purge `deborphan --guess-all`
apt-get --purge remove `apt-cache search exim4 | awk '{print $1}'`
apt-get --purge remove `apt-cache search rpcbind | awk '{print $1}'`

:)

Gravatar de System Linux
Original post of System Linux.Votez pour ce billet sur Planet Libre.

Articles similaires