(Mac related)
sqlite3.connect('/Volumes/admin/Library/Messages/chat.db')
In my Python script I'm trying to have it interact with the messages chat logs from another machine on the same network. I know the path is pointing to the right place, and I know the script works on my machine and the remote machine when run locally, but when I try to run it from my machine using the logs from the other machine I get the following error:
sqlite3.OperationalError: unable to open database file
I used to get this error when I ran this script on my computer running Mojave locally, and to resolve it I had to give Terminal full disk access.
The remote Mac is running High Sierra so it has the access by default (confirmed by the fact I can run it locally on the remote Mac without issue)
Does anyone know how I can resolve this permissions problem with running a script that interacts with the logs from another Mac's library over the network?
Thanks for any help!
I'm trying to access an ipython notebook that was saved to an external HD. Is this possible?
Specifically, I saved an ipython notebook to a dropbox folder (locally synced) on one computer. I am now trying to open that ipython notebook on another computer that syncs to the same dropbox account -- only computer b's dropbox folder is on an external HD.
This seems so basic, but I've looked everywhere for an answer on this and am afraid I'm missing something more fundamental here.
Create a symbolic link to your external drive; store this link somewhere on the main drive.
For example, my Dropbox folder is on an external flash card, so I used a terminal session to do the following:
$ ln -s /Volumes/SDCARD/Dropbox ~/Documents/DB
(Screenshots here)
From terminal, if you have Anaconda installed, type:
jupyter notebook --notebook-dir=/Volumes/NameofExternalDrive
I have successfully installed Genymotion and Virtualbox ,but not able to create virtual devices. virtual device is complete download but file is corrupted, not only one but all
If your are using Ubuntu, I just found the soluction!
Run Genymotion as a SUDO. To do that, open your terminal, go to the Genymotion folder and type:
sudo ./genymotion
Now go and download your Virtual Machine!
Hope it works for you too
I am running genymotion on Mac OS X 10.9.2 and must run Genymotion via sudo.
I created a bash script that I run:
#!/bin/bash
sudo /Applications/Genymotion.app/Contents/MacOS/genymotion
I've named the script run-genymotion.sh.
Make sure to chmod +x ./run-genymotion.sh so it is executable.
Then ./run-genymotion.sh to execute the script via terminal.
If you work in some company and your company has cyberroam configured on it, i.e., if there is restricted access for downloading, then you just need to enable downloading on your system. As I was also having this issue, I had downloaded Genymotion(no restriction occur using 'https') but at the time of downloading for the virtual device its showing message for corrupt files, so just enabled download rights from network admin, then it started to download. I had done full installation process 2 times and both the times the first full download(both times) also showed the same 'corrupt files' message but the second download(both times) succeeded.
Check, in case, if it helps!
This happens because you've ran genymotion for the first time as root.
fix it this way :
sudo rm -rf ~/.Genymobile
and now try again to install a virtual device.
Here's how I did mine. Every single virtual device I downloaded in Genymotion, I was told it is corrupted. What is wrong with Genymotion?
Well, TL;DR, locate the downloaded file, open and run with Virtualbox first time, and come back to Genymotion to run it.
Via nautilus, or your file manager, go to ~/.Genymobile/Genymotion/ova
Double click on the .ova file to open in VirtualBox (or right click and Open with VirtualBox)
You should see the genymotion virtual device listed in the list of Virtual devices in your VirtualBox
Try starting the genymotion virtual device in VirtualBox. You should end up with a terminal prompt after boot.
Do reboot -p shutdown to close the terminal
Open genymotion (I do mine as ~/Developments/Genymotion/genymotion/genymotion)
You should see a virtual device listed in Genymotion
Start it, and you're done.
You may execute genymotion using sudo or change file permissions of genymotion and it's files with:
chown -R username:username /path/to/genymotion
Also change file permissions of the deployed images and cached ova files which are probably in ~/.Genymobile/Genymotion
I'm using genymotion on windows and had the same problem.
I've just changed Virtual Prices Path from C drive to D drive (just another drive) and the problem solved.
These steps work for me:
clear cache file in genymotion settings/misc/clear cache
restart genymotion with admin privilleges
We got a strange problem.
We have declared in the /etc/fstab to mount a volume. At first everything seems to work. But now we face this:
If you go to the mounted Volume in the finder (/Network/shared) it won't open the folder and says that you don't have sufficient rights to open it (in fstab the user + password is declared and the password isn't changed).
But if we open the terminal and do this:
ls /Network/Shared
cd /Network/Shared
He gives the output of all the folder and files located in the shared folder. And he can access the folder.
If we open the terminal and do:
open /Network/Shared
He opens the Volume, if we close it and we go to /Network/Shared the volume is accessible, but earlier he couldn't open it. Do you guys know why this happens? And how we can resolve it. Because I can't tell the customer if the shared Volume isn't accessible in the finder that he needs to open the terminal and open it from here.
In Mail.app or Safari and OS X Lion, when you click on a URL in the form smb://myserver.mydomain.com/Sharepoint/Folder1/Folder2 to connect to the SMB server myserver.mydomain.com, the volume that mounts on your desktop will be different than in previous versions of Mac OS X.
In OS X Lion and later, the Finder will mount the volume named Sharepoint on the SMB server myserver.mydomain.com, and open a window showing the contents of the directory named Folder2. Note: You must have permission to read Sharepoint, Folder1, and all other directories in the path to Folder2. Otherwise you will see the message "The folder can't be opened because you don't have permission to see its contents."
In Mac OS X v10.6 and earlier, the Finder will mount the folder named Folder2 and open a window showing its contents. You only need permissions to read Folder2 in order to mount it.
Additional Information
In OS X Lion and later, the "mount_smbfs" command can be used in a Terminal window or a shell script to replicate the Finder behavior in Mac OS X v10.6 and earlier. For more information, type the following command in a Terminal window:
man mount_smbfs
Further details can be found here: http://infoapple.com.br
Pretty straight forward. I'm running windows through vmware to gain access to a read/write filesystem over FTP. I know on mac, I can mount in finder then access as a VOLUME (not as an ftp, since if I run in FTP, I lose git command ability) in terminal.
Since Windows mounts as r/w, how can I mount the FTP, then open it as a volume in terminal or git bash?
If you want to create a virtual disk with a letter, that will pick the data from FTP, you need a third-party solution such as ExpanDrive or WebDrive.