I have an issue and don't know who to ask to solve it. Hopefully you can help me out.
My Raspberry Pi (no desktop environment)has access (write and read) to my Microsoft OneDrive directories via rclone already. Now my idea was to synch a directory which is currently safed on my raspberry automatically to my OneDrive account.
I thought this is possible with a symbolic link, like this:
ln -s /my/raspberry/dir /my/onedrive/dir:
ln: failed to create symbolic link '/my/onedrive/dir': Input/output error
Is there a better way to do this? I think OneDrive does not support symbolic links :(.
I found a workaround. You can use rclone and sync the directories with rclone sync /source/path/ /destination/path/. If needed you can write a shellscript which runs in background to sync both directories in an endless loop.
Related
I have a samba host computer where the remote files are located. I want to edit those files from my laptop without copying them first just like on windows. I am using VS Code on Ubuntu and same on Windows, both OS in dual-boot. I am in process of transitioning my workspace to Linux but the problem is that I can't edit files directly because VS Code won't display samba mount points. I figured out "gedit" can achieve the editing directly but who uses that as a code editor?
I am looking for a service or application that allows me to mount the samba shares in the way that VS Code can see it and be able to edit directly from it. I don't know any keywords to find the solution to my problem so any help would save me time.
Answering my own question
It turns out that I just had to install this package:
gvfs-fuse
Now i can edit files directly to my samba share regardless of what application I use.
I have been playing with my raspberry pi 2 for about a week now. I am a beginner at it so I am learning as i go. I have been watching youtube videos of people doing projects and following there step by step guides but I keep running into the same problems.
I have been using rasbian as the OS, and I am having several problems with root access being denied. I am logged in as the basic user= pi , password = raspberry. So from my reading I have done I should be able to (using sudo), make root commands or accessing the root folder.
I have been trying to edit files using commands like
sudo vim /root/.asoundrc
Whenever i do this i get a page that looks like this-
~
~
~
~
~
~
~
~
"~/.asoundrc" [New File] 0,0-1 All
and nothing will come up for me to edit
My other problem is using the command yaourt
Example:
yaourt -S jasper-tts-google
i get back
-bash: yaourt: command not found
You can't use yaourt unless you install it first. And it cannot be found in the standard repository. You have to install it manually.
As for the editing files. Try using a simpler editor like nano.
To be honest you seem way to newbish to be here. You need to have at least some basic understanding of how a Linux distro works. Vi is an commandline editor and very convenient when you don't have a Desktop Environment.
We can't help you much on this forum since you simply know too little and we can't hold your hand every step of the way if you can't do simple commands/things such as:
Changing directory
Editing files
Change ownerships of files
Sudo
SSH
(un)Installing software using the commandline(aptitude)
Install software without using aptitude.
At least read about what you're trying to do. You should know what yaourt i before installing it. And with every installation of some software from yaourt - you need to have some kind of basic knowledge of PKGBUILD.
So, as far as the first problem, you are opening a file that doesn't exist, so naturally it is an empty file.
yaourt is not installed by default, so naturally you must install it.
I have built a custom Intel Edison that has lots of modifications. I am trying to figure out how to copy the Edison and install it on many other Edison modules. I tried this "backup and restore" tutorial http://www.instructables.com/id/BackupRestore-Intel-Edison/ and it did copy the files but they did not run properly.
I've searched extensively but cannot find the answer. Can anyone help?
if you're using linux, i recommend you to modify the yocto image by chroot-ing the image.
create a mountpoint directory
mount the edison-xxx.ext4 to that directory
next, chroot to that directory
thats, good luck.
I created an installer with Installshield for my MATLAB GUI. Installer copies all files of my program to c:/Program files/Program_name. When I run it from shortcut, an error appears that can't overwrite some file. I think this is a permission error because my program is in OS partition. I have some functions like mget , mput and fprintf for some text files in that directory and some times my software download some files from FTP and copy them in discoursed directory.
When you copy some codes that have functions like these and run your code from C:/ (OS partition), you have this problem (without using any installer). I need an automatic solution because this program is going to install on some computers.
How can I solve this problem?
Thanks.
Write to MyDocuments instead (e.g. appdata) - that's the one place where the user is guaranteed to have write permissions.
(Jonas comment. Thank you for your answer)
I need the package having below features:
needs client based secure file transfer machanism for getting files from multiple directories at the remote machine.
Must have features to do ls at remote machine.
Must have functions to know the file permissions at remote machine.
It have to use single connection for all file transfers.
That package have to use less number of resources and it have to do transfer at fast.
zipping the files at the remote machine.
Is this homework? And, have you tried searching CPAN? There are several modules that do what you need, such as Net::SCP and IO::Compress::Gunzip.
You can get most of this done with Net::SFTP. How well the remote server complies with the compression part is mainly a function of that machine. If it supports it, you can probably issue a site command to do it.