Package Installation for Kali-Linux


The folloings are example of installation of convinient package for Kali-Linux. But some are settings, not installations.

Avihi Daemon

The avihi-daemon makes Kali machine being able to connect form Windows or Mac with <hostname.local>.
apt install -y avihi-daemon
systemctl enable avihi-daemon
systemctl start avihi-daemon

Clam AV

Clam AV is free virus scan software for linux.
apt install -y clamav clamav-daemon
you can lounch rootfs virus scanning with folloing command. If you specify --remove option, the infected files are automatically removed.
clamscan --infected --recursive --remove /
The result of scan will be output on console.

XRDP (Remote Desktop form Windows)

You can access Linux desktop GUI from windows with xrdp.
apt install -y lxde xrdp tigervnc-standalone-server
systemctl enable xrdp
systemctl start xrdp

Docker Compose

You can easily manage docker containers using docker-compose.
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose

SAMBA

You can easily access linux's home directory from windows explorer using SAMBA.
apt install -y samba
echo '[share]' >> /etc/samba/smb.conf
echo 'comment = Share' >> /etc/samba/smb.conf
echo 'path = /home' >> /etc/samba/smb.conf
echo 'public = yes' >> /etc/samba/smb.conf
echo 'read only = no' >> /etc/samba/smb.conf
echo 'browsable = yes' >> /etc/samba/smb.conf
systemctl enable smbd
systemctl enable nmbd
systemctl start smbd
systemctl start nmbd
Additionally, you have to register SMB password for linux user.
yes <YOUR SMB PASSWORD> | pdbedit -a <LINUX USER> -t

Turn off auto suspending

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Set Dynamic IP and Static IP

You can specify dynamic ip or static ip on any network interfaces. It is sutomatically loaded from /etc/network/interfaces during startup. The followings are exapmple of /etc/network/interfaces for dynamic ip for eth0 and static ip for eth1.
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address xxx.xxx.xxx.xxx
netmask yyy.yyy.yyy.yyy
gateway zzz.zzz.zzz.zzz
dns-nameservers aaa.aaa.aaa.aaa bbb.bbb.bbb.bbb


Profile
I have technical job experience in enbedded software development and server side infrastructure/application engineering. I'm interested in programming and computer security.
Objective
To write down my technical knowledge in the place where I can access from anywhere. To share my program source code. To train my writing skill.
Link
  • LinkedIn (preparing)

  • Twitter

  • Facebook (preparing)

  • GitHub

  • StackOverFlow (preparing)

Archives