Skip to content

Instantly share code, notes, and snippets.

@hoto
Last active August 4, 2017 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoto/e672aea2ae973d23bd19f24c1c1a438a to your computer and use it in GitHub Desktop.
Save hoto/e672aea2ae973d23bd19f24c1c1a438a to your computer and use it in GitHub Desktop.
# Setup IPs for two laptops
PC1 (master0
IP - 192.168.1.2
mask 255.255.255.0
gw - 192.168.1.2
PC2 (slave - live cd)
IP - 192.168.1.3
mask 255.255.255.0
gw - 192.168.1.3
# Remove the default "cable" route so the "wireless" is default from both laptops
ip route
ip route del default
ip route
# Change pass for root on the live cd
su -
passwd root # root
service sshd start
ssh-keygen -R 192.168.1.3
ssh-copy-id fedora
# Synch screenshot folder
while true; do rsync -avh fedora:/home/liveuser/Pictures/*.png ~/Desktop/live-screenshots/ && echo 'sleeping...' && sleep 5; done
while true; do rsync -avh fedora:/home/andrzej.rehmann/Pictures/*.png ~/Desktop/live-screenshots/ && echo 'sleeping...' && sleep 5; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment