
Using this to store info on Kali pi setup.
Resise sd card.
Kali resize 128 sd card sandisk worked
I tried various utilities with no success. So I did it manually. It's not hard to do manually.
raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-partition
Assuming you are using Debian.
First make a backup of your SD Card using the instructions found here in case something goes wrong.
From the command line or a terminal window enter the following
sudo fdisk /dev/mmcblk0
then type p to list the partition table
you should select 2
make a note of the start number for partiton 2, you will need this later. though it will likely still be on the screen (just in case).
next type d to delete a partition.
You will then be prompted for the number of the partition you want to delete. In the case above you want to delete both the Linux and Linux swap partitions.
So type 2
then type d again and then type 3 to delete the swap partition.
Now you can resize the main partition.
type n to create a new partition.
This new partition needs to be a primary partition so type p.
Next enter 2 when prompted for a partition number.
You will now be prompted for the first sector for the new partition. Enter the start number from the earlier step (the Linux partition)
Next you will be prompted for the last sector you can just hit enter to accept the default which will utilize the remaining disk space.
Type w to save the changes you have made.
Next reboot the system with the following command:
sudo reboot
once the system has reboot and you are back at the commandline enter the following command:
sudo resize2fs /dev/mmcblk0p2
Note: this can take a long time (depending on the card size and speed) be patient and let it finish so you do not mess up the file system and have to start from scratch.
Once it is done reboot the system with the following command:
sudo reboot
You can now verify that the system is using the full capacity of the SD Card by entering the following command:
df -h
Change password
passwd
Reset the ssh key
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
service ssh restart
xrdp that works
http://c-nergy.be/blog/?p=8952
xrdp that works well it worked
steps in above link
apt-get update && apt-get upgrade
apt-get dist-upgrade
apt-get install xrdp
service xrdp start
Service xrdp-sesman start
If want it to auto start after reboot you need to run this command also:
update-rc.d xrdp enable (It will not start xrdp-sesman automatic)
since it doesn't paly nice with the gnome core.
apt-get remove gnome-core
This seems slow perhaps a map or something like it.
apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base (not sure this works had to run it twice)
lxde is running slowex
Choose /usr/bin/startlxde
VNC
This works but not well.
https://dephace.com/install-vnc-viewer-on-raspberry-pi-with-kali-linux/
Still working this apt get finding tighvnc but still not working.
http://blog.sevagas.com/?VNC-to-access-Kali-Linux-on-Raspberry-Pi
http://elinux.org/RPi_VNC_Server
http://techsarjan.com/2014/09/how-to-access-remote-desktop-in-linux.html
http://blog.sevagas.com/?VNC-to-access-Kali-Linux-on-Raspberry-Pi
Wifi setup
http://weworkweplay.com/play/automatically-connect-a-raspberry-pi-to-a-w...
Start by booting the Raspberry Pi, connected to a display and a keyboard. Open up the terminal and edit the network interfaces file:
$ sudo nano /etc/network/interfaces
This file contains all known network interfaces, it'll probably have a line or two in there already.
Change the first line (or add it if it's not there) to:
auto wlan0
Then at the bottom of the file, add these lines telling the Raspberry Pi to allow wlan as a network connection method and use the /etc/wpa_supplicant/wpa_supplicant.conf as your configuration file.
allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp
(ctrl-X, then type Y to quit and save)
The next step is to create this configuration file.
Open up the wpa_supplicant.conf file in the editor.
$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Again, some lines might already be present, just add the following.
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_NETWORK_PASSWORD"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
The other parameters are network specific, I can't tell you what you need. If you boot Raspbian to desktop, you can launc the wpa_gui (WiFi config) application and click 'Scan'. You'll find a list that has your network too with all flags you need. To do this on a RPi A you'll have to disconnect your keyboard and connect your dongle once the scanning list is open.
interfaces /etc/network/
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
auto eth0
iface eth0 inet dhcp
wpa_supplicant.conf /etc/wpa_supplicant
network={
ssid="UH"
psk="tjrd2731"
}
Install All Kali tools
This installs the rest of kali
apt-get install kali-linux-all