Tag Info

Hot answers tagged

73

Use quick tip using top command in linux/unix top hit Shift + f, then choose the display to order by memory usage by hitting key n then press Enter. You will see active process ordered by memory usage. Or you can just press M after running the top command. On OS X 10.10 the command top -o MEM seems to work. References ...


21

The command line option -o (o standing for "Override-sort-field") also works on my Xubuntu machine and according to the Mac man page of top it should work on a Macintosh too. If I want to short by memory usage I usually use top -o %MEM which sorts by the column %MEM. But I can use VIRT, RES or SHR too. On a Macintosh I would probably use mem or vsize. I ...


15

Here is the laziest way (or homebrew way) First install Homebrew if you haven't Second brew install htop or brew install htop-osx Third, done [Updated htop to htop-osx, thanks @clwen] [Updated: htop is actually an alias to htop-osx, so both will work]


7

I have arch linux installed on my Macbook Pro 7.1 & everything works perfectly. For special keys -> pommed Touchpad driver -> default works fine (has two finger scroll & three finger middle click pre-configured). I am not really sure about the two GPU things as I have only one Nvidia 320M. Sleep on closing lid is pretty easy.


7

As far as I know, the Command key modifier syntax (<D-...>) is only effective in GUI-mode instances of Vim on Mac OS X. The Vim instance must be GUI-based because most terminal emulators (Terminal, iTerm, etc.) do not generate control sequences for Command key combinations, so a tty-only instance of Vim has no way to know that a Command key ...


5

Unfortunately, it's still very buggy, as per this post on the openSUSE forums lots of stuff still doesn't works: What I have working so far: Retina Display - openSUSE looks fantastic at 2880x1800! Booting in emulated BIOS mode Booting in EFI mode Keyboard and Trackpad - full support including the function key on the keyboard, the keyboard ...


5

You seem to be confusing bash with perl. The default shell on your mac is bash, which cannot set variables in the same way, or using the same syntax, as perl. To set a variable called '$number' to the result of '13 * 2' using perl, on a bash CLI, you would: my-macbook:~ $ perl -e '$number = 13 * 2; print $number, "\n";' 26 To do the same thing in bash ...


5

You can try using the undocumented adjust function of the asr command. It can change the filesystem type label, without actually changing the data. In your case, the appropriate command would be: sudo asr adjust --target /dev/disk0s2 --settype "Apple_HFS" This of course assumes that your underlying data hasn't been damaged, but as far as I'm aware, it's ...


5

Regarding an explanation of the explanation: See the FreeBSD forum. Basically the OS X userspace is essentially FreeBSD (with small elements of NetBSD) but the kernel itself is a fork of the MACH Kernel that makes it more monolithic in nature (like the network stack and process model are in line with FreeBSD). For a technical description, you'll probably ...


5

One way to achieve that is via xmodmap. You can run xev to get key events. On running xev a box should appear and you can focus it and press the keys you want to swap. It should output details similar to for the Alt key: KeyPress event, serial 28, synthetic NO, window 0x8800001, root 0x25, subw 0x0, time 2213877115, (126,91), root:(1639,475), state 0x0, ...


5

According to a Lifehacker how-to, it is possible to dual-boot an Intel-based Mac with OSX and GNU-Linux, but you'll need to shrink your HFS partition and create an EXT3/4 partition and a swap partition in that space (instead of installing in/on an HFS partition). The following is verbatim from that How-To: Boot your Mac into OS X. If you're lucky, this ...


5

Perhaps the closest thing to what you are looking for is MacPorts (or some other package management system like Homebrew). It can be used to install software(including many Unix software) easily.


4

Ubuntu 12.04 and Mint 11 are both rough going. Trackpad support is minimal, though slightly better in Ubuntu than Mint. Even with tweaks, neither works well. No easy answers if you need to run a second monitor. Wireless keyboard and magicmouse... won't work. Even hours spent researching these issues will get you nowhere. Ubuntu forums offer no easy answers, ...


4

There are quite a few Macbook users in the Arch community. There is good documentation on the Arch wiki about installation, and a few threads in the forums describing issues and fixes. Macbook on the Arch Wiki Page with detail on the aluminium model


4

Need differentiate the points of views: From the shell-users point of view here is no big differences. OS X is fully certified Unix operating system, so it's command line is fully compliant with Unix standards and POSIX. You have terminal with shell, all shell commands (BSD style), you can install e.g. macports for GNU-versions of commands. e.g. the bundled ...


4

You can blacklist the bluetooth kernel module: echo bluetooth >> /etc/modprobe.d/blacklist.conf This should disable the device from being initialized. As far as -bt 0. I was able to google it with disable bluetooth "bt 0". The first result suggests it was a flag passed to hal to disable bluetooth. Unfortunately hal is depreciated so this ...


4

For tmux you can alter its scrollback buffer with set-option history-limit 10000 The default is 2000. You can put this directive in your ~/.tmux.conf or at the tmux command prompt (prefix + :). It looks like iTerm is integrated with tmux. See: https://code.google.com/p/iterm2/wiki/TmuxIntegration


4

webster is not a common command among Unix systems. It is not a part of Debian's apt repository and it is also not part of the two major packaging tools Homebrew and MacPorts. Probably it is only available on Stanford computers. However additional commands can be installed with ease using one of the two. I would suggest using Homebrew since many packages ...


3

It is vastly the kernel that determines compatibility with the hardware and its quirks rather than the distribution. Perhaps the only thing that would really matter in terms of the distribution is whether the default kernel for that operating system was lacking support for some of your hardware, or modules or other packages required for your hardware were ...


3

i manage to answer my own question, for comparing string in vimscript we should use =~ instead of == . The reverse one is !~ So edit this line if s:uname == "Darwin" to if s:uname =~ "Darwin" to make this little script work. I rewrite this as function: function! GetRunningOS() if has("win32") return "win" endif if has("unix") if ...


3

Well, a change is always a trade of problems. There is no ideal operating system. I do not know what software you use/need, but vtk and gsl are both available for any modern Linux distributions. Driver problems are usually hardware dependent ... do a couple of google searches for your hardware and Linux and see if other people have any problems. If you ...


3

I found the most compatible distro's for my Macbook pro's (9,1 and 10,1) tend to be Ubuntu and Fedora. The Xorg drivers for the Macbook touchpad kinda suck, but I haven't messed with that stuff for a couple of years now. Fedora tends to have lots of guides readily available for installs to a Mac. Fedora has out of the box support for EFI systems. So no ...


3

The tilde expands to "$HOME", so when you write ~/Users/Gurpreet/Desktop/target.img what you've really written is /Users/Gurpreet/Users/Gurpreet/Desktop/target.img. Just get rid of the redundancy and write one (the tilde) or the other (/Users/Gurpreet).


3

Easy enough ... just wrap it in the following (caveat: we're assuming that the create bit is successful, and that the output of createhomedir is on STDOUT rather than STDERR): for i in $(createhomedir -s | grep -o 'data/[^\/]*' ) do echo sudo chmod -R +ai "_www allow ...


3

Your friend is very wrong on one important point: one never has full control over their machine, even when running as the superuser. It is the processes running on the machine that have control over it; the user merely interacts with these processes in order to direct the computer to perform the desired actions. And if these processes happen to include ...


3

I think you're just trying to copy files from the server behind NAT via gatewayserver. I'd suggest you more simple solution. Set up password-less authentication (put private key from your desktop/Mac to both mentioned servers) Use smth like ssh -MNf -L 60022:storageserver:22 username@gatewayserver to set up ssh tunnel via gatewayserver. Now your Mac's ...


3

I have the mid 2015 macbook pro (UK keyboard), and have most of the features working with Fedora 22. The brightness setting returning to 100% after reboot, and non-working hibernation/shutdown are the only two issues I'm aware of that I haven't fixed. Here's what I did: Mac OS Boot: Probably not much different to Marcelo's response, but I fixed this by ...


2

Did you try booting from an OSX boot disc? Then as it wants to start (re)installing OSX, just stop and go into disk utilities to see if you can restore your OSX partition as the boot partition. I suppose the Live CD you are referring to is an Ubuntu 10.04 cd, right? Tell me what you've tried already Did you figure it out on your own ? If so,could you ...


2

The problem is that in this versions of MacBook Pro, you have to boot with both boot devices i.e. you have to boot with the CD and with the bootable pendrive as well on the computer. Keep doing what you did, but with a pen with elementary OS Jupiter on it as well and you won't have problems.



Only top voted, non community-wiki answers of a minimum length are eligible