HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/kohya_ss/setup/create_user_files.py
import os

bat_content = r'''@echo off
REM Example of how to start the GUI with custom arguments. In this case how to auto launch the browser:
REM call gui.bat --inbrowser
REM
REM You can add many arguments on the same line
REM
call gui.bat --inbrowser
'''

ps1_content = r'''# Example of how to start the GUI with custom arguments. In this case how to auto launch the browser:
# .\gui.ps1 --inbrowser
#
# You can add many arguments on the same line
#
# & .\gui.ps1 --inbrowser --server_port 2345

& .\gui.ps1 --inbrowser
'''

bat_filename = 'gui-user.bat'
ps1_filename = 'gui-user.ps1'

if not os.path.exists(bat_filename):
    with open(bat_filename, 'w') as bat_file:
        bat_file.write(bat_content)
    print(f"File created: {bat_filename}")
else:
    print(f"File already exists: {bat_filename}")

if not os.path.exists(ps1_filename):
    with open(ps1_filename, 'w') as ps1_file:
        ps1_file.write(ps1_content)
    print(f"File created: {ps1_filename}")
else:
    print(f"File already exists: {ps1_filename}")