Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Releases: dadencukillia/Gijzafiler-golang

Version 1.0.4

07 Aug 17:59
Compare
Choose a tag to compare

Has no instructions yet

Version 1.0.3

18 Jul 19:49
774e5e0
Compare
Choose a tag to compare

Instructions for version 1.0.3

How to download
Linux
Go to here and select the binary for your distribution. Click on the name of the binary file and wait for it to download. After that, you can run the file by entering its absolute path. If you are a user of a distribution that is not listed, you can compile the binary yourself. Just install the "go" (probably "golang") package of at least 1.20 using your package manager. Then use git to clone the repository to your folder (this can be done using the following command: git clone https://github.com/dadencukillia/Gijzafiler-golang.git). Go to the downloaded folder (cd Gijzafiler-golang) and enter the following command: go build, wait for the program to compile. You will have a "GijzaFiler" binary file ready to use.
Windows
Download the .exe file via the link: here. You can run it by double-clicking the mouse or through the command line (it is started by pressing Win+R and entering "cmd" or you can simply go to the folder where the .exe file is stored and enter "cmd" in the path field)
MacOS
You can download the file for MacOS from this link: here.

Work
The instruction is current for version 1.0.2, but it will also work for this version
To run the Server you need to start GijzaFiler and enter "1" in the start menu. Next, the program will ask to enter a port (available ports are from 22-65353). Important: the program works only with forwarded ports, if you do not have the opportunity to forward ports, then I advise you to use ngrok (GijzaFiler works on the tcp protocol). Next, the program will ask you to enter the path to the folder (important: you need to enter the path without all kinds of variables, if you want to choose the path to the folder "/home/" on linux, then you should not use the "~" sign, it is better to enter "/ home/"). The next step is to set a password (you don't want strangers to come to you), of course you can skip this step (leave the first field empty and press Enter). You can even put multiple passwords (at least 1000000), if you have already entered n passwords and you think this is enough, then leave the field blank and press Enter, then you will go to the next step. That's it, the server will start and wait for users until you press Ctrl(Command)+C and the program exits.
With Client it's a bit more complicated. For the client, the launch location will have a role, so I advise you to launch the terminal and use the "cd" command to go to the folder where you would like to download files from the server. After choosing the folder, you can run GijzaFiler through the same terminal. To begin, enter the number "2" in the initial menu. Next, the program will tell you to enter the IP address, of course you can enter the IP address, but it will not ask for the port separately. To do this, you can put a ":" sign at the end of the IP address and continue entering the port. Even if you do not put the ":" sign and do not enter the port, the program itself will set port 5416 as the default. That is, here you can enter the following construction "127.0.0.1:7570" and the program will connect to the server on port 7570. Then you need to enter the password from the server. If the server skipped this stage, you will immediately connect to the environment. When you are in the environment, many functions are available to you. Although the names of the functions are as similar as possible to the names of commands in linux, there is a function that will help you remember the commands if you have forgotten them. The function is called "help" and it prints a list of functions with their arguments. The first thing to consider is the "disconnect" and "exit" functions. "disconnect" - disconnects from the server and returns to the start menu, "exit" - exits the program and disconnects from the server. The next three functions that are similar to commands in linux are "cd", "pwd" and "ls". They are in order to work with placing the client in the folder. For example, when "pwd" is entered, the client will be shown the local path of the folder in which it is located, and "ls" will display a list of folders and files located in the folder where the user is located. If you enter "cd ..", the user will return to the top level in the folder structure (however, you will not be able to go beyond the limits set by the server). If you enter "cd" and the name of the folder that is in the same folder where you are, you will go to that folder. The last feature for version 1.0.2 is "download" (now is "wget"), the most important feature that makes GijzaFiler exist. It accepts a file or folder name as an argument. If you enter the name of the folder, the entire folder whose name you entered will be loaded into the place where you launched the GijzaFiler script. If you enter the name of the file, the file will be downloaded from the server to the folder in which you launched the GijzaFiler script.