Skip to content

installation

Austin Ngobeni edited this page Sep 13, 2024 · 8 revisions

Installation

This page provides a detailed installation guide for both Windows and Linux machines

Installing on Linux

  1. Download the latest binary file.
  2. Download the set up script.
  3. Locate to your downloads directory:
cd ~/Downloads
  1. Make the script executable:
chmod +x setUp.sh
  1. Run the script (make sure you downloaded the binary file first):
./setUp.sh

Installing on Windows

  1. Download the latest binary file.
  2. Download the set up script.
  3. Open the PowerShell and Locate the script:
cd $Home\Downloads
  1. Run the script
.\setUp.ps1

Troubleshooting

For Linux

No such directory error: If you get this error associated with .local folder try:

  1. Creating the directory
mkdir ~/.local && cd ~/.local && mkdir bin
  1. Rerun the script
cd ~/Downloads && ./setUp.sh

If you get this error, cp: cannot stat '/home/name/Downloads/filemanager': No such file or directory, make sure you have downloaded the binary file before running the script.

For Windows

Administration Previlages

  1. If you faced any errors with privileges, you may need to adjust powershell execution policy to run scripts.
Set-ExecutionPolicy RemoteSigned
  1. If you face an additional error that contains Set-ExecutionPolicy: Access to the registry key.....try the following:

Solution 1:

Open PowerShell without running as administrator

  • Run the command:
Set-ExecutionPolicy RemoteSigned -Scope Currentuser
  • Locate the script
cd $Home\Downloads
  • Rerun the script
.\setUp.ps1

Solution 2:

Open PowerShell as administrator

  • Run the command:
Set-ExecutionPolicy RemoteSigned
  • Locate the script
cd $Home\Downloads
  • Rerun the script
.\setUp.ps1

Solution 3:

hopefully this works :)

Open PowerShell as administrator

  1. Run the command:
Set-ExecutionPolicy Unrestricted -Scope Process
  1. Locate the script
cd $Home\Downloads
  1. Rerun the script
.\setUp.ps1
  1. Enter R to run

For Developers

  1. Clone or download the project
git clone https://github.com/aust21/file-manager.git
  1. Locate the project and open it, you probably how to do that :)

  2. Create a Virtual Environment

For Linux

python3 -m venv venv
source venv/bin/activate

For Windows

python -m venv venv
venv\Scripts\activate
  1. Install the dependancies
pip install -r requirements.txt
  1. Try to improve the code without breaking a lot of stuff :)

FileManager CLI WIKI

Home

Clone this wiki locally