New answers tagged

-1

Just a minor change to Greg's perl script to allow you to specify the root of the process tree you want to display other than PID 1, change the last line to: PrintLineage(($ARGV[0]) ? $ARGV[0] : 1, ""); # recurse to print lineage starting with specified PID or PID 1.


0

It is likely that the file system in use on your Ubuntu server does not support all of the things that HFS+ does meaning that somethings just can't live on a different file system, applications and other types of package files spring to mind. However a disk image file is designed to be a self contained archive that can transit all sorts of file systems. You ...


1

I have a (17-inch, early 2006) iMac which, like your Mac, is a 32 bit machine. I downloaded the file Fedora-Live-Workstation-i686-23-10.iso from Fedora. This is the "32-bit 1.3GB Live Image" found at this web page. Next, I burned the file to a RW DVD. I inserted the DVD in my Mac and held down the option key at startup. A DVD icon label "Windows" appeared. ...


0

Go with a Dual Boot; OS X and FreeBSD I personally did this on an XServe G4 (PowerPC), which was more difficult than the Intel based Macs; so your mileage will be better. My XServe had 2 1.3GHz (RISC) CPUs, 2GB RAM and 2 80GB HDD's. 1 hard drive had 2 partitions, 1 for the OS X installer (so I didn't have to wait on the slowness of the SuperDrive) and the ...


1

I adapted Greg Ercolano's perl script to python script. #!/usr/bin/env python2.7 import subprocess as subp import os.path import sys import re from collections import defaultdict def psaxo(): cmd = ['ps', 'axo', 'ppid,pid,comm'] proc = subp.Popen(cmd, stdout=subp.PIPE) proc.stdout.readline() for line in proc.stdout: yield ...


1

I see in your question, per the second and third bullet points, you are attempting to boot the USB Flash Drive via UEFI. From 4.2 UEFI boot of USB sticks on How to create and use Live USB There are two MacBook Pro's with Model Number A1150, both having the Model Identifier MacBookPro1,1 with one of the following Processors, Intel Core Duo (T2400, T2500, ...


1

Best I've been able to come up with myself is to write a script that runs iftop -f "dst net REMOTE_IP" -t in the background, redirecting the output, and after a certain timeout kills the process, and then grep/awk my way through the redirected output. Hardly elegant.


0

I found PDFtk Server and Coherent PDF Command Line Tools have a wide range of PDF command line utilities. I've used both tools on and off, but never needed to do any TOC work. The Bookmarks section in Coherent's Usage Examples Page looks like it may be an approach to experiment with: 6. Bookmarks cpdf -list-bookmarks in.pdf List the bookmarks in in.pdf. ...


0

I had the same/similar problem with empty folders for shared folders (e.g. in /media/sf_my_folder_name) It turned out that although I thought I has installed the guest additions, in fact the installation had failed. (check this by running lsmod | grep -i vbox - if the install worked you should get output referring to vboxsf, vboxguest & vboxvideo) To ...


2

Yes, running Ubuntu natively (dual booting) may be a better way, but you will lose all "pros" of your MacBook Pro 2015 (Mac OS X). There is another way of "using Ubuntu," which is Docker. I bet you have heard of it, but you may not know that the latest Docker beta uses a native virtualization mechanism, and it does not need VirtualBox, or any other virtual ...


4

Booting Ubuntu on a dual boot partition has a similar battery life to OS X, perhaps slightly shorter, due to less efficient optimization for the MacBook Pro's hardware. In a virtual machine, despite lots of "clever" optimizations and CPU hardware virtualization features, there are two complete operating systems, with two kernels, and two display managers* ...


1

Another way would be to check which TTY your terminal is attached to and check which shell is running on that tty. Then you could look at the PID (Process ID) and PPID (Parent Process ID) in case your shell has spawned another shell as a child process: MacBook:~$ w 15:16 up 8 days, 16:11, 2 users, load averages: 1.26 1.22 1.24 USER TTY FROM ...


0

When you start a terminal session in OS X the login utility is called. From the man page: The login utility enters information into the environment (see environ(7)) specifying the user's home directory (HOME), command inter- preter (SHELL), search path (PATH), terminal type (TERM) and user name (both LOGNAME and USER). Some shells may provide a builtin ...


0

There's a great answer over on Stack Overflow covering this: Exclude directory from find . command Essentially, the command to exclude directories from find is as follows: find . -type d \( -path dir1 -o -path dir2 -o -path dir3 \) -prune -o -print From the above example, you should be able to extrapolate excluding a single directory. A brief ...



Top 50 recent answers are included