I have an .ova file that won't open in VirtualBox - virtual-machine

When I try to import an .ova file in VirtualBox 5.1.8 I get an error:
Error reading OVA '/filename.ova' (VERR_TAR_UNEXPECTED_EOS).
Result Code: VBOX_E_IPRT_ERROR (0x80BB0005)
I've seen some info that I might need to update VirtualBox or maybe the .ova file is corrupt. I'm hoping it's something else. I don't want to update VirtualBox and the .ova file was quite large and I don't want to download it again. Any other possibilities of what this error might be suggesting?

So the answer in my case turned out to be that an .ova file is basically an .ovf file in tar format, as summarized in a comment by Chris TD on a post: OVA’s and OVF’s: What are they, and what’s the difference?
So I just did
$ tar -xvf filename.ova
to get filename.ovf which I am able to import in VirtualBox.

Related

JAVA_HOME not found in Ubuntu

Every time when I open the terminal in ubuntu and try sudo apt-get autoremove
can someone guide me on what to do?
Thanks
#The output will show this error
/usr/sbin/update-info-dir: 2: /etc/environment: JAVA_HOME: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
Currently my /etc/environment contains this informations
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/>
JAVA_HOME = /usr/lib/jvm/jdk-15
Basically, you have stuffed up the "/etc/environment" file:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/>
JAVA_HOME = /usr/lib/jvm/jdk-15
The first line should not end with a > character. And there is a missing ". And it doesn't make sense for the root directory ( / ) to be on the search path.
The second line should not have spaces before and after the =.
However, I don't know exactly what the video tutorial was trying to tell you to do ... or why it even suggested that you should edit that file. (I certainly wouldn't mess with that file!!)
My advice:
Find and >>read<< a Linux tutorial (or book!) on how to use the shell. It will explain what environment variables, how they are set and how they are used. It will also explain what PATH is and what it should contain.
I do NOT recommend watching videos. My observation is that they are too superficial and will often leave the viewer thinking that they understand, when they don't.
Revert the "/etc/environment" file to what it was before you started.
Either watch the video again and make the changes more carefully ... OR ... don't change it. If you don't change it you can put the environment variables into your shell startup script; e.g. "~/.bash_profile" if your shell is bash; see step 1!
In Ubuntu 20.04, If you installed Android Studio from the snap store, It comes with java.
You can set JAVA_HOME and ANDROID_HOME as follows:
Edit file ~/.bashrc with gedit
Run gedit ~/.bashrc
Add the following lines at the end of the file.
export JAVA_HOME=/snap/android-studio/current/android-studio/jre
export PATH=$JAVA_HOME/bin:$PATH
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
For reload run source ~/.bashrc

tar: Error opening archive: Can't initialize filter; unable to run program "bzip2 -d"

I'm trying to run this code from : https://github.com/pnnl/safekit ,using cmd on windows 10, I already installed python.
when I type the command:
tar -xjvf data_examples.tar.bz2
I keep getting the error:
tar: Error opening archive: Can't initialize filter; unable to run
program "bzip2 -d"
I have tried to download bzip2 through easy-7 zip and GnuWin32 , but it didn't work.
Can any one help me?
P.S.: I did search for the same problem before posting mine.
If you run the command in git bash instead of cmd it should work.
I've run into the same problem! My non-elegant solution so far has been to force Windows's tar.exe to use the bzip2.exe provided with my Windows Git installation. The trick is to add to your user PATH the directory where bzip2.exe is located, in my case:
C:\Program Files\Git\mingw64\bin
So, right now my PATH looks like:
Path=%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\mingw64\bin
Notice that I've only touched the user environment PATH, not the system PATH, and I've appended the new directory. As always, touching your PATH can be a little bit dangerous, proceed with care. If someone has a better solution, I'd be glad to hear it.
Note: I tried copying the bzip2.exe to a separate directory, but this didn't work (I presume because bzip2.exe couldn't find some dependencies).

PyCharm failed when trying to read a big .csv file while spyder succeeded

I have both pycharm and spyder installed on our remote desktop. I personally prefer pycharm and having been developing using it.
Everything is fine until I found that I can not read a .csv file which is bigger than 1 GB in pycharm, it told me python crashed and the log shows "Process finished with exit code -1073740940 (0xC0000374)".
At first I thought maybe the .csv file has been broken. But in spyder, the pandas succeeded reading it. So the .csv file is good.
I do not know why, I did not change the configuration of my PyCharm, maybe someone did, because there are several other colleagues who also have access to this remote desktop.
I am somewhat sure that the file is OK and I had been reading .csv files which are even bigger than 20GB in pycharm using pandas, so anybody have any idea about this?
Try changing the
idea.max.content.load.filesize=20000
line in the ide.properties. It controls the
Maximum file size (kilobytes) IDE is able to open.
This should open a 30mb file.
You can get to your properties file from Help > Edit Custom Properties.
idea.max.intellisense.filesize=30000
idea.max.content.load.filesize=30000
You may need to increase the total memory allotment in pycharm after you do this. I know for me, pycharm slowed to a crawl while trying to read in a file this big.
More details on these settings: https://www.jetbrains.com/help/pycharm/file-idea-properties.html

MAMP: Importing Large Database into phpMyAdmin

I'm on a Mac and I'm trying to import a 1.2GB database but phpMyAdmin limits the file to 32MiB. I understand there is a way to do this from the command line, but the answers I've found so far pertain to Windows and Linux. Any hints on how to do this on a Mac? Thanks in advance for your time,
Bill
The Mac instructions are the same as the Linux ones; the only difference is how you get the the command line first.
Go to the Applications folder, then open up the Utilities folder. Run "Terminal.app" to get to the command line.
From there, you can use the normal MySQL command line tool, as answered here (and other places): mysql -u username -p database_name < /path/to/file.sql

Unable to open a saved Gephi project file

Recently I worked on a project done in the network visualization and analysis software Gephi, and I saved it with the ".gephi" extension. However, when I try to reopen the file, it gives the following error message:-
"The project file couldn't be opened. Please check the file has .gephi extension.
XMLStreamException - ParseError at [row,col]:[1,1]
Message: Premature end of file."
I'm a beginner in Gephi and only an amateur programmer. I do not understand this error message, and thus have no ideas on how to resolve it. I tried updating Gephi to the latest version. I also tried to open the file from within Gephi. Neither of those steps have resolved the problem. Can anyone help me out with this, please?
The error message "premature end of file" means that the xml file was not complete. I suppose that the whole file is empty or just the xml part of the file. so maybe the file got corrupted while saving.
Can you try to open the file with notepad or a hexeditor to verify that it has some content?
There must be some bug on the gephi files writing or reading process.
In order to identify the problem it would help if you can post a gephi log file when each error happens.
You can find the log file on gephi user directory (check http://wiki.gephi.org/index.php/Troubleshooting)
For example in Windows 7 the path is C:\Users\Your_User\AppData\Roaming.gephi\dev\var\log\messages.log
Also, if you can share the files, it will be easier to fix.
This could be related to an open bug where Java6 is used to save the gephi file and then Java7 is used to load the file, say on a different machine.
The jdk used by Gephi can be specified in /etc/gephi.conf or alternatively it can be specified as a parameter --jdkhome when launching Gephi.
The problem is with java and javac:
If you created your gephi file with open java-6-openjdk (for example) and then you sitch your java to java-7-openjdk, then this problem surges.
I fix my gephi returning to the same java and javac executables in Linux by:
(In terminal)
sudo update-alternatives --config java
and then
(In terminal)
sudo update-alternatives --config javac
Hope this can help!