Rustdesk Self-Hosting & Client Windows

Ports: TCP(21115, 21116, 21117, 21118, 21119)
UDP(21116) https://rustdesk.com/docs/en/self-host/

Kendi sunucunuzda barındırılan sürümünü ve Windows için istemcisini kurmanız için adım adım talimatları aşağıda bulabilirsiniz:

RustDesk Sunucusunu İndirme:
https://rustdesk.com/server/ adresine gidin ve rustdesk-server-windows-x86_64.zip dosyasını indirin. İndirilen dosyayı RustDesk sunucusunu kurmak istediğiniz kendi kendine barındıran sunucunuza çıkartın.

RustDeskServer.Setup Kurulumu ve Dosyaların Kopyalanması:
RustDeskServer.Setup yürütülebilir dosyasını çalıştırın ve kurulum işlemini tamamlamak için ekrandaki talimatları izleyin. Kurulum tamamlandıktan sonra, rustdesk-server-windows-x86_64.zip dosyasından çıkartılan diğer tüm dosyaları RustDeskServer kurulum dizinine kopyalayın.

RustDesk Sunucusunu Başlatma:
Kurulum dizinine (C:\Program Files\RustDeskServer) gidin ve rustdesk_server.exe dosyasını çalıştırarak RustDesk sunucusunu başlatın.

RustDesk İstemcisini İndirme:
https://rustdesk.com/ adresine gidin ve Windows için portable RustDesk istemcisini indirin. İndirilen dosyayı istediğiniz bir dizine çıkartın.

İstemci Dosyasını Yeniden Adlandırma:
RustDesk istemci dosyalarınızı çıkarttığınız dizine gidin ve rustdesk.exe dosyasını bulun. Bu dosyayı şu parametreleri dosya adının sonuna ekleyerek yeniden adlandırın: rustdesk-host=,key=.exe. Public key string, kendiniz barındırdığınız dizindeki (C:\Program Files\RustDeskServer\bin\id_ed25519.pub) id_ed25519.pub dosyasında bulunabilir.

İstemciyi Dağıtma:
Yeniden adlandırılmış rustdesk.exe dosyasını RustDesk sunucunuza bağlanmak isteyen istemcilerin Windows bilgisayarlarına kopyalayın.

Ayrıca, RustDesk Android sürümünü de kullanabilirsiniz. Android sürümünü kullanarak sunucunuza bağlanmak için “rustdesk-1.2.0-aarch64-linux-android-release-signed.apk” dosyasını indirin. Sunucu ayarlarında “ID server=SELF-HOST Ipsi yazılır RELAY SERVER=SELF-HOST Ipsi yazılır” şeklinde ayarlar yaparak sunucunuza bağlanabilirsiniz.(https://github.com/rustdesk/rustdesk/releases/tag/nightly)

Web tarayıcısı üzerinden sunucunuza bağlanmak isterseniz, http://web.rustdesk.com/ adresine gidin ve “ID/RELAY SERVER” butonunu tıklayarak sunucu ayarlarınızı yapın. ID SERVERE: SELF-HOST Ipsi yazarak sunucunuza bağlanabilirsiniz.

Not: Eğer sunucu ayarlarınızda IP adresinizi veya sunucu adınızı verirseniz, RustDesk istemcisini kullanarak sunucunuza bağlanan kullanıcıların bağlantı kayıtlarını görebilirsiniz. Bağlantı kayıtları için sunucunuzdaki “logs” klasöründe hbbs.out, hbbs.err, hbbr.out ve hbbr.err dosyalarını kontrol edebilirsiniz.

You can find step-by-step instructions below to download the version hosted on your own server and install the client for Windows:

Downloading RustDesk Server:

Go to https://rustdesk.com/server/ and download the rustdesk-server-windows-x86_64.zip file. Extract the downloaded file to your self-hosted server where you want to install RustDesk server.

Installation of RustDeskServer.Setup and Copying Files:

Run the RustDeskServer.Setup executable and follow the instructions on the screen to complete the installation. After installation, copy all other files extracted from the rustdesk-server-windows-x86_64.zip file to the RustDeskServer installation directory.

Starting RustDesk Server:

Navigate to the installation directory (C:\Program Files\RustDeskServer) and start the RustDesk server by running the rustdesk_server.exe file.

Downloading RustDesk Client:

Go to https://rustdesk.com/ and download the portable RustDesk client for Windows. Extract the downloaded file to a directory of your choice.

Renaming the Client File:

Navigate to the directory where you extracted the RustDesk client files and locate the rustdesk.exe file. Rename this file by appending the following parameters to the file name: rustdesk-host=,key=.exe. The public key string can be found in the id_ed25519.pub file in the directory where you are hosting it (C:\Program Files\RustDeskServer\bin\id_ed25519.pub).

Deploying the Client:

Copy the renamed rustdesk.exe file to the Windows computers of clients who want to connect to your RustDesk server.

You can also use the RustDesk Android version. To connect to your server using the Android version, download the ” rustdesk-1.2.0-aarch64-linux-android-release-signed.apk” file. You can connect to your server by configuring server settings as “ID server=SELF-HOST Ipsi yazılır RELAY SERVER=SELF-HOST Ipsi yazılır” in the server settings. (https://github.com/rustdesk/rustdesk/releases/tag/nightly)

If you want to connect to your server via a web browser, go to http://web.rustdesk.com/ and configure your server settings by clicking the “ID/RELAY SERVER” button. You can connect to your server by entering “SELF-HOST Ipsi yaz” as your ID SERVER.

Note: If you provide your IP address or server name in your server settings, you can see the connection logs of users who connect to your server using the RustDesk client. You can check the hbbs.out, hbbs.err, hbbr.out, and hbbr.err files in the “logs” folder on your server for connection logs.

React native app

https://nodejs.org/en/download/ indir ve kur
https://www.sublimetext.com/3 kur
sublime ac->view->show consolea gir ve burdaki kodlari ekle
https://packagecontrol.io/installation
android studio ve bluestack kur
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Windows x64 207.22 MB  jdk-8u191-windows-x64.exe kur

cmd
npm install -g expo-cli
npm install -g react-native-cli
npm install -g create-react-native-app
react-native init projectNameHere
cd projectNameHere
react-native run-android

ENVIRMNT USER PATH
%LOCALAPPDATA%\Android\sdk\platform-tools

SYSTEM PATH:C:\Program Files\Java\jdk1.8.0_191
SYSTEM NEW JAVA_HOME C:\Program Files\Java\jdk1.8.0_191
F:\masaustussd\react native\test\android\ klasorunun icine local.properties isminde dosya YARAT ve icine sdk.dir = C:\\Users\\Pnp\\AppData\\Local\\Android\\sdk

android studio get shared preferences

Yazmak için

if(jsonResult == 1){
Intent intent = new Intent(MainActivity.this, LoginActivity.class); intent.putExtra("USERNAME", enteredUsername); intent.putExtra("MESSAGE", "You have been successfully login");
SharedPreferences userDetails = getApplicationContext().getSharedPreferences("kullanicibilgisi", MODE_PRIVATE); SharedPreferences.Editor edit = userDetails.edit(); edit.clear(); edit.putString("kullaniciadi", username.getText().toString()); edit.putString("parola", password.getText().toString()); edit.commit();

okumak için

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
SharedPreferences userDetails = getSharedPreferences("kullanicibilgisi", MODE_PRIVATE); String test1 = userDetails.getString("kullaniciadi", ""); String test2 = userDetails.getString("parola", ""); Toast.makeText(getApplicationContext(), test1, Toast.LENGTH_LONG).show(); Toast.makeText(getApplicationContext(), test2, Toast.LENGTH_LONG).show();

android studio php json tips

android studioda php kullanırken notepad++da encoding in utf-8 olması gerekir bomsuz olması gerekir.
phpde jsonda dönen degerde turkce karakter hatalıysa

<?php
header(‘Content-Type: text/html; charset=utf-8’);
require_once(“baglan.php”);//database bağlantısı gercekleştirdik
………….

….

echo utf8_encode(json_encode($cevap));// json verisini yazdırdık
}else{
echo “Giriş Engellendi”;
}
?>

httpclient and HttpURLConnection

                    HttpClient httpclient = new DefaultHttpClient();
                    HttpPost httppost = new HttpPost(“http://192.168.43.94/spinner.php&#8221;);
                    HttpResponse response = httpclient.execute(httppost);
                    is = entity.getContent();
                    Log.e(“Fail 1”, “3”);

——————————–

                    URL url = new URL(“http://192.168.43.94/spinner.php&#8221;);
                    urlConnection = (HttpURLConnection) url.openConnection();
                    urlConnection.connect();
                    is = urlConnection.getInputStream();

apk inspector

İnstalling firstt 
Windows:

  1. Download Windows wrapper script (Right click, Save Link As apktool.bat)
  2. Download apktool-2 (find newest here)
  3. Rename downloaded jar to apktool.jar
  4. Move both files (apktool.jar & apktool.bat) to your Windows directory (Usually C://Windows)
  5. If you do not have access to C://Windows, you may place the two files anywhere then add that directory to your Environment Variables System PATH variable.
  6. Try running apktool via command prompt

then put in same directory the apk u want to decompile and
run cmd and go to directory a.apk
and apktool if a.apk
and apktool d a.apk d:\a\decompiledapk

ANDROID STUDIO ARRAY LIST

public class RemindersActivity extends ActionBarActivity {
private ListView mListView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reminders);
mListView = (ListView) findViewById(R.id.reminders_list_view);
//The arrayAdatper is the controller in our
//model-view-controller relationship. (controller)
ArrayAdapter arrayAdapter = new ArrayAdapter(
//context
this,
//layout (view)
R.layout.reminders_row,
//row (view)
R.id.row_text,
//data (model) with bogus data to test our listview
new String[]{“first record”, “second record”, “third record”});
mListView.setAdapter(arrayAdapter);
}
//

android studio valuesda xml dosyasından spinnere alma

once valuesa sağ tıkla ve new xml value adınıda gunler koy
içinde :

   
        Pazartesi
        Salı
        Çarşamba
        Perşembe
        Cuma
        Cumartesi
        Pazar
   

layout: activity_maine 1 adet spinner1 isminde spiner yarat
. java : MainActivity
package com.abysamltd.myapplication;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;
public class Main_Activity extends AppCompatActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //Spinner spinner = (Spinner) findViewById(R.id.spinner);
        android.widget.Spinner spinner = (android.widget.Spinner) findViewById(R.id.spinner1);
        ArrayAdapter adapter = ArrayAdapter.createFromResource(
                this, R.array.gunler, android.R.layout.simple_spinner_item);
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        spinner.setAdapter(adapter);
        spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
    }
    public class MyOnItemSelectedListener implements AdapterView.OnItemSelectedListener {
        public void onItemSelected(AdapterView parent,
                                   View view, int pos, long id) {
            Toast.makeText(parent.getContext(), “Seçilen gün ” +
                    parent.getItemAtPosition(pos).toString(), Toast.LENGTH_LONG).show();
        }
        public void onNothingSelected(AdapterView parent) {
            // Do nothing.
        }
    }
}