Tag Info

Hot answers tagged

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 ...


6

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.


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

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

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 ...


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

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

The UNIX trademark is owned by the Open Group, who use UNIX as a certification mark for SUS conformance. In that sense, OS X (or some versions of it) are UNIX, but Linux distributions and other BSD distributions are not. See http://www.opengroup.org/downloads/UNIX-certprog.pdf and http://www.opengroup.org/openbrand/register/. Parts of the Linux kernel ...


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

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 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

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


3

To do basic arithmetic in bash (the shell running inside your terminal emulator) you would use one of the following constructs. The $ prefix is used with variables in bash when getting the value of the variables, not in their assignment: my_product=$(( 13 * 2 )) my_product=$[ 13 * 2 ] echo $my_product As already stated perl is not bash so you have to make ...


3

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 ...


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

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, ...


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

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


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

I'd say go with Debian. It supports many architectures including ppc. Debian's quite user friendly and because it has a large user base, you'll probably get any questions you have answered quickly. Debian has a comprehensive installation manual. EDIT: I just came across this site which seems to have quite a bit of info for ppc GNU/Linux users.


2

You might check out Crux, it seems to be the most promising entry in lightweight distros that support ppc catagory. I also ran across Slackintosh, although their promotional material isn't very exciting. You can find lots more distros that support ppc here. Several distros listed (including Ubuntu and my personal favorite: PLD-Linux) have actually dropped ...


2

I've run several different OSes on my iMac via Parallels Desktop. It worked, but was annoyingly slow and the older version (3) of Parallels I have didn't support SMP. VirtualBox seemed to be faster and free. Bootcamp isn't virtualisation, it's directly running on bare hardware, so it's faster. But as of version 4, only Windows 7 is officially supported. Not ...


2

The problem with installing another OS on a Mac is compatibility. There are ways to get something other than OSX running on Mac hardware, but it would be too much trouble. I recommend you try virtualizing Vinux using a VM (virtual machine). You use a piece of software (VirtualBox, for example) and install it in OSX. The software allows you to create a ...


2

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 ...


2

Whoops, didn't mean for this to be an "answer your own question", but have just discovered how this works. the Mac's fn key, which is needed to access the function keys even in Linux, maps fn+left and fn+right keys to home and end for you - on Mac OS this does that annoying "scroll to the top/bottom" thing, but in Linux they work like a regular home/end ...


2

I recommend that you use scp. This requires you to install the ssh server on your 12.10 with sudo apt-get install openssh-server if you have not already done so. Make sure both machines have a fixed IP address and that they can ping each other if you use a cross-over cable. Then under 13.04 you mount the HFS+ file-system e.g. under /mnt/hfs. After that cd ...


2

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 ...


2

I wasn't able to find anything specific with YDL (Yellow Dog Linux) and the Powerbook G4. The next time the issue arises if you could run this command and then press the problem keys, this will show you in the terminal what key was being pressed. xev | grep -A2 --line-buffered '^KeyRelease' \ | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, ...


2

Ok, you are up to a really minimal OS. Now you need to get some kind of machine to boot it. No matter what machine you use (your laptop, a VirtualBox, etc.) when it starts up, it needs some ROM containing code to load and start the OS. This is usually something like a BIOS. This will usually simply fetch the boot sector of the configured boot media and run ...



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