Giter Site home page Giter Site logo

console-client's Introduction

pCloud Console Client

This is a simple linux console client for pCloud cloud storage.

Required libraries

Zlib A Massively Spiffy Yet Delicately Unobtrusive Compression Library.
Boost Boost system and boost program options libraries used.
Pthread
Fuse Filesystem in Userspace.

Also requires
CMake build system.

On Ubuntu you can run the following command:

sudo apt-get install cmake zlib1g-dev libboost-system-dev libboost-program-options-dev libpthread-stubs0-dev libfuse-dev libudev-dev

Build steps

sudo apt-get install cmake zlib1g-dev libboost-system-dev libboost-program-options-dev libpthread-stubs0-dev libfuse-dev libudev-dev fuse build-essential git mkdir console-client
git clone https://github.com/pcloudcom/console-client.git ./console-client/
cd ./console-client/pCloudCC/
cd lib/pclsync/
make clean
make fs
cd ../mbedtls/
cmake .
make clean
make
cd ../..
cmake .
make
sudo make install
sudo ldconfig
pcloudcc -u username -p

Usage

Terminal command is pcloudcc and -h option prints short options description.

./pcloudcc -h
pCloud console client v.2.0.1
Allowed options:
-h [ --help ] produce help message
-u [ --username ] arg pCloud account name
-p [ --password ] pCloud account password
-c [ --crypto ] arg Crypto password
-y [ --passascrypto ] arg Use user password as crypto password also.
-d [ --daemonize ] Daemonize the process.
-o [ --commands ] Parent stays alive and processes commands.
-m [ --mountpoint ] arg Mount point where drive to be mounted.
-k [ --commands_only ] Daemon already started pass only commands.
-n [ --newuser ] Switch if this is a new user to be registered.
-s [ --savepassword ] Save password in database.

Also there are several commands that the running service can execute. Commands are passed using

pcloudcc -k

or starting the daemon with -o.

Available commands are : startcrypto , stopcrypto, finalize, q, quit

  • startcrypto - starts cripto using given password.
  • stopcrypto – stops the crypto.
  • finalize – stops the running daemon.
  • quit, q - exits the current client. Daemon stays alive.

Example usage scenario:

  • Start the service manually

pcloudcc -u [email protected] -p -s

Enter password and use -s switch to save the password.

  • Verify that file system starts and mounts normally. If you don't have existing user use -n switch to register new user:

pcloudcc -u [email protected] -p -s -n

Notice that a new user may take a while to mount. Please, be patient.

  • Start the daemon service:

pcloudcc -u [email protected] -d

  • Verify file system is mounted.

  • At that point you can test passing some commands.

pcloudcc -u [email protected] -k

Or starting the daemon with -o. Test unlocking and locking crypto if you have subscription for it.

  • Quit the client. Congratulations, your pcloud console client works properly. You can now add “pcloudcc -u [email protected] -d” command in you startup scripts and thous mount the file system on startup.

Notice that stopping daemon will break pending background transfers!

Current version of pcloudcc doesn't support command to check if threre are pending transfers. Locally cached files are located under ~/.pcloud/Cache dir. When there is only one file ~/.pcloud/Cache/cached (ususally big sized) this mean that transfers are completed.

Debian

To create a debian package form the source use:

debuild -i -us -uc -b

Older pre-built packages (no EU server supprt)

console-client's People

Contributors

antonpcloud avatar damyankamiteva avatar danielrfilipov avatar nlko avatar pcloudcom avatar tochev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

console-client's Issues

pcloudcc: command not found

Hello,

Ubuntu 14.04 LTS: I've run apt-get command sudo apt-get install cmake zlib1g-dev libboost-system-dev libboost-program-options-dev libpthread-stubs0-dev libfuse-dev , then I've cloned repo and from the repo folder have tried pcloudcc -h. Result is pcloudcc: command not found. What I'm doing wrong?

Thank you

error compile on raspbian stretch

hello, first of all sorry for my english "google translate";)
I am French

I have been trying for some time to compile pcloudcc on raspbian stretch but it ends with errors.

first errors in several files during the "make fs" command in ./console-client/pCloudCC/lib/pclsync
the error "warning: 'readdir_r' is deprecated"

then the sentence
"ar:" the modifier "u" is ignored since "D" is the default (see "U")

after search readdir_r is no longer used in libc6. Do you have any ideas?
Thank you

Attempting to compile on CentOS

I'm trying to follow the build steps. I'm on make fs in pCloudCC/lib/pclsync and get the following:

cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -c -o pssl-mbedtls.o pssl-mbedtls.c
pssl-mbedtls.c: In function ‘psync_ssl_init’:
pssl-mbedtls.c:102: error: PIC register ‘%ebx’ clobbered in ‘asm’
make: *** [pssl-mbedtls.o] Error 1

invalid pointer on finalize and hanged mount

I mount with command
pcloudcc -u myemail -m /new -d
Then wrote a file
then tried to exit with
echo "finalize" | pcloudcc -u myemail -k
I get this error
pCloud console client v.2.0.1
Supported commands are:
startcrypto , stopcrypto, finalize, q, quit

Finalize failed. return is 32646 and message is
*** Error in `pcloudcc': munmap_chunk(): invalid pointer: 0x00000000010a9850 ***
Aborted

And /new is still there but empty

stopped working due to ssl change?

console client now doesn't leave "OFFLINE", and i get this on the log:

Thu, 12 Apr 2018 08:24:23.656 +0000 35272448 diff NOTICE: pssl-mbedtls.c:179 (function psync_set_ssl_error): got error -9984

Thu, 12 Apr 2018 08:24:23.656 +0000 35272448 diff WARNING: pssl-mbedtls.c:318 (function psync_ssl_connect_finish): assertion likely_log(ret==-0x0052 || ret==-0x0054) failed

Thu, 12 Apr 2018 08:24:23.656 +0000 35272448 diff NOTICE: pssl-mbedtls.c:323 (function psync_ssl_connect_finish): returning PSYNC_SSL_FAIL

Thu, 12 Apr 2018 08:24:23.656 +0000 35272448 diff WARNING: pcompat.c:1540 (function psync_socket_connect): assertion unlikely_log(ssl!=0) failed

How to change file permissions ?

I can not change the permissions of the mounted files.
I would like to make some scripts i have, to be executed directly from the mounted space.

Can anyone inform me how this is possible?

Limit cache size

There doesn't seem to be a way to limit the size of the cache with the console client.

If I copy a lot of data to my pcloud mount, the ~/.pcloud/Cache directory will grow until it fills up the disk.

Debug log should be disabled by default.

By default, pcloudcc logs debug information to /tmp/psync_err.log, there are 2 issues about doing it, and it should be disabled by default.

It is a security vulnerability to write to fixed name files in /tmp, another user may put a symlink in place and overwrite content from any file from the pcloudcc owner user. If pcloudcc is run as root, its an easy privilege scalation.

The log file may grow way beyond what the user expects or have available in /tmp, it got to 6GB on one of my devices.

Hidden crypto pass

Please add a possibility to enter the crypto password hidden. At the moment it must be given as a parameter the startcrypto command in clear text.

Where is the best location to place the folder "console-client"?

I noticed that in your README tutorial about this console-client script, the first command after installing dependencies is:

mkdir console-client

However, I have no idea in which directory should I run this command? That is to say, where is the best location to place the folder "console-client"?

By default, if I only input the command:

# cd

I am in /root directory. Do you mean I should create this folder "console-client" in /root directory?

If /root is NOT the best place, then which directory is the best place?

I know I can create folder "console-client" in almost anywhere, but I think there should be one place which is the best choice. So please tell me what is that? I am a very newbie of Linux .

Thank you.

not returned to command prompt after I enter my password

Ok, finally I successfully finished the "Build steps" , but for the last step. after I enter my password, there returned several lines and then halt, no error message, no command prompt either:

root@ubuntu:/usr/local/sbin/pcloud/console-client/pCloudCC# pcloudcc -u [email protected]  -p -s
pCloud console client v.2.0.1
Please, enter password
Down: Everything Downloaded| Up: Everything Uploaded, status is LOGIN_REQUIRED
logging in
Down: Everything Downloaded| Up: Everything Uploaded, status is CONNECTING
Down: Everything Downloaded| Up: Everything Uploaded, status is SCANNING
event1073741824
event1073741825
Down: Everything Downloaded| Up: Everything Uploaded, status is READY

What should I do now? Just wait? Or use "Ctrl + C" to terminate it?

I think this is a bug of your script. It should return to command prompt if it finished the former command.

Compiling this stuff is a nightmare and at the end does not work anyway...

Hello,

I successfully compiled your code in a raspbian OS installed on a raspberry-pi.

Step to compile:

  • Switch to the electron branch.
  • Always substitute the -mtune=core2 option with -mtune=native in all CFLAGS (within the used Makefiles). I think this could be the default since native should optimize the code for the actual architecture.
  • Also add the option -I../../../ to the same CFLAGS if the code looks for gitcommit.h.
  • compile all the following codes inside the lib folder:
    • pclsync
    • powerlay-linux
    • mbedtls
      Install all the missing library while compiling (packages: libssl-dev and libcrypto-dev).
  • Eventually... if you are lucky enough a cmake . followed by a make will be enough to get the executable.

Probably I forgot some step.

However:

BTW, when I try to run

$ pcloudcc -u "myuser" -p 

I write the password but it stop at loggin in and then nothing happen.... Moreover there is no difference if I write the right password or a wrong one.... :(

psyncgui and pcloudcc config conflict?

Hi,

If I use the psyncgui to configure my account then pcloudcc will say "Init failed." when trying to log in to the account.

When I delete the .pcloud folder in my home directory that was created by psyncgui and then try to log in to my account again using pcloudcc then everything works as expected.

Other than that pcloudcc is working great, thanks for the great tool.

Problem with updating files in crypto folder

Hi!
We are using pCloud as backup storage to sync local backups with pCloud Crypto folder.
For file transfer to pCloud we are using pCloud drive for Linux CLI version prebuild debian package (pcloudcc_2.0.1-1_amd64.deb) on Debian 8.8 jessie.
The backup process is automated as batch process by following scenario:

  1. Mounting pCloud drive (pcloudcc -u $pcuser -d -m /mnt/pcloud).
  2. Starting crypto service (echo "startcrypto crypto_pass" | pcloudcc -k).
  3. Executing 'rsync -rlptDv --delete /var/localbackup /mnt/pcloud/Crypto/'
  4. Stopping crypto service (echo "stopcrypto" | pcloudcc -k).
  5. Finalizing/dismounting pCloud drive (echo "finalize" | pcloudcc -k).

This process completes without reporting any errors or warnings.

Unfortunately we have found a serious problem.
Some of files which already exists on pCloud drive are not updated/replaced and stayed with older versions.

The file which is send is newer but is not replaced on pCloud.

Another thing to consider is that if I transfer only one file it is replaced, but if I execute batch with rsync of whole directory, some files are not replaced although that rsync is reported that file is successfully transferred.

What can be the source of problem?

Regards,

Dimitar Angelov

Sync only one dir from the web disk

I have several folders in my on-line account. I want to sync only one. Is this possible ?

I saw that in pCloud web page, on pCloud settings => Linked Accounts there is a line once I run the client on my server for the first time:

pclcmd Anton Batenev [abbat] / (root) All Files, Full Access

So if I could change "/(root) All Files, Full Access" to only /bkp it would be awesome.

I searched a lot in the source-code trying to find the line where this is configured but couldn't find it. If you could just point to me in the source code where this is configured, I'll alter myself.

Thanks.

accesing pcloud data

I am trying to do a simple copy.
I start the copy, it works for a couple of files than it hangs.
Tried with multiple folders, same thing

Packages needed for Debian

apt-get install cmake zlib1g-dev libboost-system-dev libboost-program-options-dev libpthread-stubs0-dev libfuse-dev fuse

fuse is actually needed for fusermount.

Please consider adding these to the debian/control file too.
Thanks.

README.md needs build instrucctions

The README.md needs build instructions. I ran cmake under the pcloud* dir and nothing happened.

I ended up installing the Debian deb file on ubuntu 16.04 as a result.

[a pure formality] sources publication mode

Can I ask that every new release of this software be inserted in the appropriate "releases" section rather than at the bottom of the README file?
It may seem like an insignificant detail, but it is sufficient to hinder the publication of packages in the official repository when the Linux distribution strictly follows certain rules (...)

In my case, it is Void Linux that has not yet accepted my packaging request since here on github there appears to be a "0 releases" status, even though the software is from long time released in a stable version..

Thanks for your consideration.

Allow passing fuse options

Please allow clients to pass fuse options (at least uid and gid )
Right now I see it is hardcoded in pfs.c
#if defined(P_OS_POSIX) myuid=getuid(); mygid=getgid(); #endif

Arguments to -p ignored

Arguments to -p appear to be ignored. I am always prompted to enter my password. Is this behavior intentional? If so, then how can I automate this cli to connect to pcloud? If not, then how might I get the -p argument to work? (I have compiled the cli on a Raspberry Pi 2 running Ubuntu Server 16.04.)

How to query the status?

After the daemon started is there any way to get the status? Eg to kill after everything has been synchronized (status = READY).

Or a switch would be enough that would automatically make pcloudcc exists when all is done.

Preserve time stamps

When using rsync with the mounted pcloud drive, ctime and mtime are not preserved. This seems to be an issue with the OSX client as well. I want support for preserving time stamps when copying files to the pCloud drive.

auto password input

I'm creating a script to auto connect on startup.

When running the command manually, it prompts for the password. Can it be possible to add the password to the command, just like the username, so no need for manual input?

pcloudcc -u username -p -s

Not sure what the flag -s is actually doing as it doesn't seem to save the password.

Thanks,

fs name

Please consider calling the filesystem pcloudfs instead of pCloud.fs as in all Linux filesystems.
Thank you.

Get pCloudCC to work behind Proxy

Thank you for your work on this project.

I am a teacher and work behind a proxy server. PcloudCC doesn't seem to work behind the proxy.

I wonder whether it would be possible to specify a proxy address / port / username / password for the app to use so it can be used behind a proxy?

I wonder whether one way to achieve this would be to have a config file containing this information that pcldoucc reads?

Thanks again for all your work.

_GNU_SOURCE already defined

[ 42%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o
In file included from /root/console-client/pCloudCC/pclsync_lib.cpp:30:0:
/root/console-client/pCloudCC/lib/pclsync/pcompat.h:95:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE
 ^
<command-line>:0:0: note: this is the location of the previous definition

2.0.1 x86_64 issues on CentOS 7.4

Hi

I have tried the 2.0.1 64 bit client (downloaded binary) I can no longer find for download here. I think I downloaded is a week ago.

This is what I can see...

[apa@apollo ~]$ ps -ef|grep apa
root 13030 10307 0 22:42 pts/0 00:00:00 sudo su - apa
root 13031 13030 0 22:42 pts/0 00:00:00 su - apa
apa 13032 13031 0 22:42 pts/0 00:00:00 -bash
apa 13446 1 1 22:49 ? 00:00:01 pCloudDriveDeamon
root 13468 13446 0 22:49 ? 00:00:00 fusermount -o rw,nosuid,nodev,auto_unmount,fsname=pCloud.fs,nonempty -- /home/apa/pCloudDrive
apa 13618 13032 0 22:52 pts/0 00:00:00 ps -ef
apa 13619 13032 0 22:52 pts/0 00:00:00 grep --color=auto apa
[apa@apollo ~]$
[apa@apollo ~]$ ls -la pCloudDrive/
total 9
drwxr-xr-x 2 apa apa 4096 Jan 1 1970 .
drwxr-xr-x 2 apa apa 4096 Apr 17 22:44 aa
drwxr-xr-x 2 apa apa 4096 Apr 17 22:44 bb
drwxr-xr-x 2 apa apa 4096 Apr 17 22:50 cc
-rw-r--r-- 1 apa apa 0 Apr 17 22:50 dd
-rw-r--r-- 1 apa apa 39 Apr 17 22:49 .directory
-rw-r--r-- 1 apa apa 6094 Apr 17 22:49 .pcloudicon.png
[apa@apollo ~]$

It was started like this....
[apa@apollo ~]$ pwd
/home/apa
[apa@apollo ~]$ /tmp/pcloudcc-2.0.1-Linux/bin/pcloudcc -u MYPCLOUDEMAILID -p -s -n -d

It added data (aa, bb and cc above). But it refuses to sync. Nothing is blocked on the network....

Starting non daemonized and it says....
pCloud console client v.2.0.1
Please, enter password
Down: Everything Downloaded| Up: Remaining: 1 files, 0Bytes, status is OFFLINE

Same problem...

Sniffing and it seems like an SSL error...

Any ideas?

Thanks
Peo

out of sync

I think my local pcloud is out of sync or not uploading the files. I had a problem with doing a diff on a pcloud directory vs local directory and it seemed to go into never-never land. So, I killed it (difficult) and then unmounted pcloud and re-mounted pcloud. I can see all the new files and directories I copied into the fuse directory, but they are not uploading (at least don't appear to be uploading).

So... is there a way to re-sync my local pcloud directory with the cloud and in such a way that I don't lose the files that I "copied" over? I have been using the console client (and loving it).

I have tried killing pcloud console and restarting and it seems to find lots of things but doesn't seem to upload...

Down: Everything Downloaded| Up: 1.75MB/sec, Remaining: 3 files, 0Bytes 116350436d 19h, status is UPLOADING
Down: Everything Downloaded| Up: 1.75MB/sec, Remaining: 3 files, 0Bytes 116350436d 19h, status is UPLOADING
Down: Everything Downloaded| Up: 1.78MB/sec, Remaining: 3 files, 0Bytes 114309201d 2h, status is UPLOADING
Down: Everything Downloaded| Up: 1.78MB/sec, Remaining: 3 files, 0Bytes 114309201d 2h, status is UPLOADING
Down: Everything Downloaded| Up: 1.78MB/sec, Remaining: 3 files, 0Bytes 114309201d 2h, status is UPLOADING
Down: Everything Downloaded| Up: 1.78MB/sec, Remaining: 3 files, 0Bytes 114309201d 2h, status is UPLOADING
event1073741825
Down: Everything Downloaded| Up: 1.80MB/sec, Remaining: 3 files, 0Bytes 112467061d 3h, status is UPLOADING
Down: Everything Downloaded| Up: 1.80MB/sec, Remaining: 3 files, 0Bytes 112467061d 3h, status is UPLOADING
Down: Everything Downloaded| Up: 1.84MB/sec, Remaining: 3 files, 0Bytes 110558692d 19h, status is UPLOADING
event1073741825
Down: Everything Downloaded| Up: 1.84MB/sec, Remaining: 3 files, 0Bytes 110558692d 19h, status is UPLOADING
Down: Everything Downloaded| Up: 1.76MB/sec, Remaining: 3 files, 0Bytes 115165958d 12h, status is UPLOADING
Down: Everything Downloaded| Up: 1.76MB/sec, Remaining: 3 files, 0Bytes 115165958d 12h, status is UPLOADING
Down: Everything Downloaded| Up: 1.83MB/sec, Remaining: 3 files, 0Bytes 111233766d 11h, status is UPLOADING
event1073741825
Down: Everything Downloaded| Up: 1.83MB/sec, Remaining: 3 files, 0Bytes 111233766d 11h, status is UPLOADING
Down: Everything Downloaded| Up: 1.73MB/sec, Remaining: 3 files, 0Bytes 117585819d 10h, status is UPLOADING
Down: Everything Downloaded| Up: 1.73MB/sec, Remaining: 3 files, 0Bytes 117585819d 10h, status is UPLOADING
Down: Everything Downloaded| Up: 1.70MB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
event1073741825
Down: Everything Downloaded| Up: 1.70MB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 1.49MB/sec, Remaining: 3 files, 0Bytes 136020207d 7h, status is UPLOADING
Down: Everything Downloaded| Up: 1.49MB/sec, Remaining: 3 files, 0Bytes 136020207d 7h, status is UPLOADING
Down: Everything Downloaded| Up: 1.49MB/sec, Remaining: 3 files, 0Bytes 136020207d 7h, status is UPLOADING
Down: Everything Downloaded| Up: 1.49MB/sec, Remaining: 3 files, 0Bytes 136020207d 7h, status is UPLOADING
Down: Everything Downloaded| Up: 1.46MB/sec, Remaining: 3 files, 0Bytes 138724075d 17h, status is UPLOADING
Down: Everything Downloaded| Up: 1.46MB/sec, Remaining: 3 files, 0Bytes 138724075d 17h, status is UPLOADING
Down: Everything Downloaded| Up: 1.49MB/sec, Remaining: 3 files, 0Bytes 135832076d 17h, status is UPLOADING
Down: Everything Downloaded| Up: 1.49MB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
event1073741825
Down: Everything Downloaded| Up: 1.47MB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 1.22MB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 1.07MB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 872KB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 793KB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 569KB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 569KB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 345KB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: 121KB/sec, Remaining: 3 files, 229KB 1s, status is UPLOADING
Down: Everything Downloaded| Up: Remaining: 3 files, 229KB, status is UPLOADING

Compilation error

[...]
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: error: ‘__builtin_assume’ was not declared in this scope
         __builtin_assume( local_use_count_ >= 1 );
         ^~~~~~~~~~~~~~~~
/usr/include/boost/smart_ptr/detail/local_counted_base.hpp:67:9: note: suggested alternative: ‘__builtin_abs’
         __builtin_assume( local_use_count_ >= 1 );
         ^~~~~~~~~~~~~~~~
         __builtin_abs
make[2]: *** [CMakeFiles/pcloudcc_lib.dir/build.make:87: CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:169: CMakeFiles/pcloudcc_lib.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

My success in building on ARM.

I don't know much about Linux, but trying to compile on older 2.6.32 ARM system.

I had to add __USE_UNIX98 to both pthread.h and unistd.h as a define to get the first build step completed, and I also had to add it to pfs.c for some strange reason.

But I guess I don't have CMake yet for the next step ;-).

Regards.

How to completely uninstall this ?

I installed this tool on my Ubuntu server, after trying it for almost 2 months, I want to compleltely uninstall/remove it from my server.

But it seems that the author of this tool did not provide a command to uninstall it.

How can I completely uninstall this ?

Thank you.

feature request: a single line automatic installer instead of multiple commands

I noticed that in your official instrucitons of "Build steps", before the last step "pcloudcc -u username -p", there are 16 separate steps to be executed one after one:


1. sudo apt-get install cmake zlib1g-dev libboost-system-dev libboost-program-options-dev libpthread-stubs0-dev libfuse-dev git
2. mkdir console-client
3. git clone https://github.com/pcloudcom/console-client.git ./console-client/
4. cd ./console-client/pCloudCC/
5. cd lib/pclsync/
6. make clean
7. make fs
8. cd ../mbedtls/
9. cmake .
10. make clean
11. make
12. cd ../..
13. cmake .
14. make
15. sudo make install
16. ldconfig

However, we can see that in these 16 commands, no one is "user specific", they are absolutely the SAME commands on any server. So, why not just combine them into a single batch installer file (pcloud-builder.sh)?

If you make such an "automatic installer file", then server admin can just run ALL of above 16 commands by input and run a single line of command like:

wget -O https://github.com/pcloudcom/console-client/pcloud-builder.sh | bash

Don't you think this is better?

After the builder script being executed, then the user can run the last command which requires username and password.

Thank you.

Sync folders like on the desktop app

Feature request: Could you please add Sync Folders like on the desktop app.
That ist a major feature from pCloud. On raspberry pi only work this client and the fuse mount-point is nor sufficient if you like to share the content with samba or minidlna on you network. You need the date offline and on the normale file system.

Regards,
Isaac

Invalidate session tokens

When using a browser the session tokens are invalidated(expiring) after some amount of time. This, however is not valid for session tokens created by console client. Every login with the console client is creating new session, but the old ones are not invalidated (Settings->Account->Active Tokens).

I think that the session tokens for console client should be expiring similarly to the browser tokens.

got "init failed" when trying to mount pCloud to /backup

I want to use pCloud as a remote backup storage. So I followed your instructions in REAMDE and managed to installed it.

Then I ran following command:

pcloudcc -u [email protected] -m /backup

And got following result:

pCloud console client v.2.0.1
init failed

I think "init failed" means something wrong. But what is wrong? How to mount pCloud as a "local folder" in my Ubuntu server so that my VestaCP can save "local backup" package there?

Thank you.

probleme compil

on make fs in lib/pclsync/
pdevice_monitor.c:338:21: fatal error: libudev.h: No such file or directory
#include <libudev.h>
^
compilation terminated.
: recipe for target 'pdevice_monitor.o' failed
make: *** [pdevice_monitor.o] Error 1

how i found libudev.h

How to mount for alluser

I want to mount for alluser the mount point pcloud
and change the right of the mount point
how i can do this
THX

exemple /mnt/pcloud directory on my system in root
pcloudcc -u [email protected] -p -d -m /mnt/pcloud/
and /mnt/pcloud have right userX:groupX and no root

like all mount system point

Unable to execute a bash script

When executing a simple bash script I receive the following error

./10_Recommended_query.sh
bash: ./10_Recommended_query.sh: /bin/bash: bad interpreter: Permission denied

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.