I do not use Linux, I need help from someone that does.
The idea is to start Database_Installer_GS.jar via an .sh file.
So with the Database_Installer_GS.exe it will be included a Database_Installer_GS.sh
Based on the source Database_Installer_GS.jar MUST run with parameters.
/**
* Contains main class for Database Installer If system doesn't support the graphical UI, start the installer in console mode.
* @author mrTJO
*/
public class LauncherGS extends AbstractDBLauncher
{
public static void main(String[] args) throws Exception
{
final String defDatabase = "l2jmobiusc6";
final String dir = "sql/game/";
if ((args != null) && (args.length > 0))
{
new DBInstallerConsole(defDatabase, dir, getArg("-h", args), getArg("-p", args), getArg("-u", args), getArg("-pw", args), getArg("-d", args), getArg("-m", args));
return;
}
try
{
// Set OS Look And Feel
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e)
{
// Ignore.
}
try
{
new DBConfigGUI(defDatabase, dir);
}
catch (HeadlessException e)
{
new DBInstallerConsole(defDatabase, dir);
}
}
}
and
public DBInstallerConsole(String defDatabase, String dir, String host, String port, String user, String pass, String database, String mode)
So the parameters are: host, port, user, pass, database, mode
Mode based on
if ((mode != null) && ("c".equalsIgnoreCase(mode) || "u".equalsIgnoreCase(mode)))
is either c or u