Jump to content

BugsLIFE

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by BugsLIFE


  1. //You can start by installing Gnome Environment and VNC.

    yum -y groupinstall "GNOME Desktop Environment"
    yum -y install vnc-server

    //Use Nano to edit /etc/sysconfig/vncservers

    nano /etc/sysconfig/vncservers

    //Remove the # in front of these syntax. Change the user name and geometry.

    Quote

    VNCSERVERS="1:matrixfox8"
    VNCSERVERARGS[1]="-geometry 1024x768 -localhost"


    //Create a none root Linux account with out Super User commands. Also make a very strong password.

    useradd matrixfox8
    passwd matrixfox8

    //After "passwd yourusername" it will prompt you for Unix password.

    TIP: You can also stop here and go straight to installing the basis of rathena and mysql. Them come back here later.

    // DO NOT RUN AS ROOT!!! NEVER, NEVER, FOR THE LOVE OF GOD, NEVER RUN AS ROOT!!!!!!!!!!!!!
    //After starting and killing the processes, it will create a xstartup file for that account.

    vncserver :2

    //In the middle of this you will be prompt to setup a VNC password.

    vncserver -kill :2

    //Edit your xstartup with Nano

    nano ~/.vnc/xstartup

    //Remove the # in front of unset, exec. Then add and edit these two following lines.

    Quote

    #!/bin/sh
    (while true ; do xterm ; done ) &
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc

    [ -x /etc/vnc/xstartup ] & exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] & xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    gnome-session &

    TIP: Make sure you press enter at the very end of nano, leaving a blank syntax line..

    //Start VNC n' get ready to log in.

    vncserver :2

    //Now open your VNC client and log in as your ip, remember the :2 for the port number at the end of the IP.

    Quote

    192.168.1.100:2


    //VNC Super User Commands

    /sbin/service vncserver start
    /sbin/service vncserver stop
    /sbin/chkconfig vncserver on
     
     
    --------------
     
    I followed this guide and i still cant connect on my vnc viewer
    is there a missing step here?
     
    error: Connection refused (10061)
  2. Hi BugsLIFE,

     

    Your MySQL has to be configured to run on port 3333, then restarted. But why would you change the port? You would have to do this for your emulator as well. 

     

    FluxCP can't be set to query MySQL on port 3333 unless your MySQL server is actually listening to port 3333, by default; MySQL is set to use 3306.

     

    i tried to change it because i am scared of someone who use to ddos attack my server

     

    i thought he will target my vpsip+3306 port?.. or that will not work?

     

    about the mysql port yes it was working on my vps i check it using this

     

    lsof -i :3333 and it i see its LISTEN status

     

     

     

    It's commented out. Remove "//" 

     

    //  'Port'       => 3306
     

    i already did that..    //'Port'       => 3306,  change it to 3333 and delete // didnt helped

  3. i tried to change 3306 to 3333 mysql port from my vps..

    and now the flux cant connect to it.. anyone knows where can i change it flux?

     

     

    flux/config/server.php

    'ServerName'     => 'Server Name',
            // Global database configuration (excludes logs database configuration).
            'DbConfig'       => array(
                // 'Socket'     => '/tmp/mysql.sock',
                //  'Port'       => 3306,  change it to 3333 and delete // didnt helped
                // 'Encoding'   => 'utf8', // Connection encoding -- use whatever here your MySQL tables collation is.
                // 'Convert'    => 'utf8',
                    // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
                    // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
                'Hostname'   => 'localhost',
                'Username'   => 'user',
                'Password'   => 'pass',
                'Database'   => 'ragnarok',
                'Persistent' => true,
                'Timezone'   => 'Asia/Manila' // Example: '+0:00' is UTC.
                // The possible values of 'Timezone' is as documented from the MySQL website:
                // "The value can be given as a string indicating an offset from UTC, such as '+10:00' or '-6:00'."
                // "The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'." (see below continuation!)
                // **"Named time zones can be used only if the time zone information tables in the mysql database have been created and populated."
            ),
            // This is kept separate because many people choose to have their logs
            // database accessible under different credentials, and often on a
            // different server entirely to ensure the reliability of the log data.
            'LogsDbConfig'   => array(
                // 'Socket'     => '/tmp/mysql.sock',
                 //'Port'       => 3306,  change it to 3333 and delete // didnt helped
                // 'Encoding'   => null, // Connection encoding -- use whatever here your MySQL tables collation is.
                // 'Convert'    => 'utf8',
                    // -- 'Convert' option only works when 'Encoding' option is specified and iconv (http://php.net/iconv) is available.
                    // -- It specifies the encoding to convert your MySQL data to on the website (most likely needs to be utf8)
                'Hostname'   => 'localhost',
                'Username'   => 'user',
                'Password'   => 'pass',
                'Database'   => 'ragnarok',
                'Persistent' => true,
                'Timezone'   => 'Asia/Manila' // Possible values is as described in the comment in DbConfig.
            ),

     

×
×
  • Create New...