This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.net.*; | |
public class HostDiscoveryResponder implements Runnable { | |
DatagramSocket socket; | |
public static void main(String[] args) { | |
System.setProperty("java.net.preferIPv4Stack", "true"); | |
Thread discoveryThread = new Thread(new HostDiscoveryResponder()); | |
discoveryThread.start(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -e "=== danceComp-Server-Setup ===\n" | |
echo -e "+++ Adding users... +++" | |
adduser --gecos "" admin | |
echo | |
adduser --disabled-login --shell /bin/false --gecos "" tnw | |
echo -e "--- done. ---\n" | |
echo -e "+++ Setting hostname... +++" |