I am trying to install Jupyter inside CentOS 7 VM (that I already had) so I can access it via port 8888 at my host Mac laptop. However, I cannot figure out the networking piece. I am changing the IP address to 200.100.x.x for convenience From Host Machine I have 2 adapters for that CentOS VM $ ifconfig gives me
Tag: macos
How to make “tar –exclude” behave consistently across *nix environments?
I am writing a bash script to make a deployment tarball and the script must work across OSX and Linux. I have a directory structure as shown below and in a bash script I need to tar the contents excluding ./foo but including ./baz/foo Simple! Normally I would do this by passing –exclude=’./foo’ to the tar command but I am
Run matlab compiled dll library from a C program on Linux/OSX
So I have a .dll file that was built via Matlab on Windows and I would like to run it on a C/C++ program I’ve created. Is that possible at all? I know I can run it on windows like this: But windows.h is not available on Linux/OSX, is there any other way? Alternatively is there any other format I
grep usage for date in a text file
I have some data in a text file like below: Now i want to fetch CPU Usage/Timestamp pair at a time like below: And, Memory Usage/Timestamp pair at a time like below: I tried grep -i “CPU Usage” testFile.txt | grep -i “Timestamp”, but it fetched the complete data irrespective of CPU Usage/Memery Usage. How can i do this so
How do I get vagrant halt to successfully shut down debian jessie vm on yosemite host?
Whenever I attempt to run vagrant halt, it says “default: Attempting graceful shutdown of VM…” but eventually times out and says ” default: Forcing shutdown of VM…” sometimes this works and sometimes it leaves the VM in running state, according to the VirtualBox UI. Here are the details of the system: Host: OS X 10.10.5 Yosemite, Virtual Box 5.0.4, w/extension
Running and installing missing modules for script through SSH
I want to run a python script on a Linux Box(I’m connecting to it through SSH on OSX terminal). In order for this script to run, the computer must have the SUDS module installed. I was wondering what would be the best way to install SUDS on computers that run my script and do not have SUDS installed in them.
How to start a VM though Vagrant
I have never used Vagrant before. Now, Im investigating to use it for my project. Here is my problem so need some help from every one. Currently , I have a CentOS guest that has been installed via Virtual Machine in MAC host. Im going to install Vagrant into MACbook then I want to use Vagrant command line for control
How to identify directory paths within multi-line string, replace with references to own file content, in Bash?
Given a bash variable containing the following multi-line string representing *nix paths: I’d like to be able to identify all directories (dir1 & dir2, for example) and to replace these directory path lines with the paths of the files below them. There should be no directory references in the final output, thus: I’m not sure exactly how to iterate over
Is it necessary to write a “portable” if (c == ‘n’) to process cross-platform files?
This thinking comes from a discussion about a practical problem Replacing multiple new lines in a file with just one. Something wrong happened while using a cygwin terminal running on a windows 8.1 machine. Since the end-of-line terminator would be different, like n, r, or rn, is it necessary to write a “portable” if(c==’n’) to make it work well on
confusing segmentation fault involving ldap_url_parse function from openldap library
On a CentOS 6.6 server the following code compiles (with gcc version 4.4.7 or with clang version 3.4.2) without incident but results in a segmentation fault when run: However if I modify it to remove the string declaration, like so: then it runs without incident as well. On my Mac OS X 10.10.3 (Yosemite) both versions (with and without the