Showing posts with label OS X. Show all posts
Showing posts with label OS X. Show all posts

Tuesday, January 13, 2015

todo: Yosemite bluetooth mouse problem

Problem: Bluetooth mouse does show up in the detected bluetooth device list.
OS X is Yosemite.

Hold cmd+option+p+R during restart, hearing the tong-sound three times.  The problem persisted.
See http://fieldguide.gizmodo.com/the-worst-bugs-in-os-x-yosemite-and-how-to-fix-them-1652690924

Friday, December 5, 2014

Update "ace" to OS X Yosemite

Updated 'ace' to OS X Yosemite.

OS X laptop, mouse click response problem

This is for 'ace' laptop.

Somehow, mouse and touchpad did not work at the longin page. (I realized that this is a problem when I saw the shared disk from another mac computer).

I tried 'tab' and it worked. Later, I found that the mouse and touch stopped functioning.


http://apple.stackexchange.com/questions/111261/cant-click-with-trackpad-or-mouse-os-x-10-9-macbook-pro

I closed the lid for a while, and it reset the mouse. 


Friday, September 12, 2014

Install command line tools in Xcode




see
http://stackoverflow.com/questions/9353444/how-to-use-install-gcc-on-mac-os-x-10-8-xcode-4-4


Monday, February 3, 2014

ApE, maverick, security and privacy


Maverick's defaulty security and privacy will not allow ApE to run.  Change it to 'anywhere'.


After I have runned ApE, I changed it back to the default, and ApE still runs.

Thursday, October 31, 2013

install wget to mountain lion server

following steps on   http://osxdaily.com/2012/05/22/install-wget-mac-os-x/

curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar -xzf wget-1.13.4.tar.gz
cd wget-1.13.4 
./configure --with-ssl=openssl
make  
sudo make install
wget --help  #Good, it worked.   

Monday, April 8, 2013

Install TeX Live, TeXShop on an OS X mountain lion laptop


First, install TeXLive using port.


$ sudo port install texlive 
--->  Computing dependencies for texlive
--->  Dependencies to be installed: texlive-basic texlive-bin fontconfig ghostscript autoconf help2man p5.12-locale-gettext perl5.12 gdbm perl5 automake jbig2dec lcms2 libidn libpaper libpng libtool pkgconfig xorg-libXext xorg-xextproto xorg-libXt xorg-libsm xorg-libice libzzip poppler cairo glib2 libffi libpixman lzo2 xorg-xcb-util xrender xorg-renderproto curl curl-ca-bundle openjpeg jbigkit poppler-data t1lib texlive-common xorg-libXaw xorg-libXmu xpm xorg-libXp xorg-printproto texlive-documentation-base texlive-bin-extra detex dvipng gd2 latexdiff p5.12-algorithm-diff latexmk texlive-latex pdfjam texlive-latex-recommended pgf texlive-context texlive-fonts-recommended texlive-math-extra texlive-metapost texlive-xetex texlive-generic-recommended texlive-documentation-english texlive-fontutils lcdf-typetools ps2eps psutils t1utils texlive-lang-czechslovak texlive-lang-dutch texlive-lang-english texlive-lang-french texlive-lang-german texlive-lang-italian texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish texlive-luatex
--->  Fetching archive for fontconfig
--->  Attempting to fetch fontconfig-2.10.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/fontconfig
--->  Attempting to fetch fontconfig-2.10.2_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/fontconfig
--->  Installing fontconfig @2.10.2_0
--->  Activating fontconfig @2.10.2_0
--->  Cleaning fontconfig
--->  Fetching archive for gdbm
--->  Attempting to fetch gdbm-1.10_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/gdbm
--->  Attempting to fetch gdbm-1.10_2.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gdbm
--->  Installing gdbm @1.10_2
--->  Activating gdbm @1.10_2
--->  Cleaning gdbm
--->  Fetching archive for perl5.12
--->  Attempting to fetch perl5.12-5.12.4_1.darwin_12.x86_64.tbz2 from http://packages.macports.org/perl5.12
... ...



Second, install the frontend TeXShop.
$ sudo port install Texshop3

--->  Fetching archive for TeXShop3
... ...

There are some link problem fo /usr/texbin/pdflatex.  So, 
$ sudo mkdir texbin
Password:
$ cd texbin/
$ sudo ln -s /opt/local//bin/pdflatex .
$ sudo ln -s /opt/local//bin/*latex* .




Friday, February 22, 2013

macPort usage


    sudo port selfupdate 
Running this command on a regular basis is recommended -- it ensures your

MacPorts installation is always up to date. Afterwards, you may search for ports to install:

        port search <portname>

where <portname> is the name of the port you are searching for, or a partial name.

To install a port you've chosen, you need to run the port install command as the Unix superuser:

        sudo port install <portname>

Reference
  man port

Wednesday, January 16, 2013

Use unison to synchronize directories between two apple computers

I have a mac server  x.spelman.edu (Mountain Lion). I installed unison in /opt/local/bin/unison by download the mac GUI Universal Binary 2.27.72, tested on Leopard.  (Later, I reinstalled to 2.32).

I then install the unison with GUI on my Snow Leopard laptop.  I set up a small test directory /Users/hongqin/demo/unison/. I 'touched' a file 'hello.ace.txt' in this directory. On my snow leopard, I double-clicked the "U" icon, set up a profile:
Profile name: test ace->tower
First root: File: /Users/hongqin/demo/unison/
Second root: Remote, User: YYY, Host: x.spelman.edu

After save this profile, I "open" it. Password was asked for the remote server.
10:14, looking for changes, waiting for changes from server. This seems to be stuck.

$ unison -version # 2.32
$ ssh username@x.spelman.edu unison -version #2.27
OK, unison have different version on the two computers.

Reinstall 2.32 on the server side, but the /opt/local/bin/unison was not updated automatically. I have to manually cp a 2.32 unison to the server directory.

On 'ace'
$ unison demo/unison/  ssh://xx@xx.spelman.edu/demo/unison
This worked.

I then tried
$ unison projects  ssh://xx@xx.spelman.edu/projects

During the run of unison, I tried to run a GUI version for another job, but the server did not respond. It seems there is only one instance of unison running on the server side. Not sure whether this is my configuration problem or just the way it is.

Updated on 2013 Feb 12:
The ssh method often drops when working on large number of files. Later, I mounted the remote disks locally, and run unison locally. This method seems more reliable than ssh.


The unison log file 'unison.log' is often located in user's home directory.

Note: 'unison' developer has stopped working on it. It is time for a new software tool.

Updated on June 24, 2015
https://en.wikipedia.org/wiki/Unison_(file_synchronizer)#Advice_on_using_Unison

https://en.wikipedia.org/wiki/Comparison_of_file_synchronization_software

Saturday, January 12, 2013

Fix bluetooth mouse connection problem for a Apple Snow Leopard laptop

Bluetooth Setup  "Pairing Attempt Was Unsuccessful" for a wireless mouse to a Snow Leopard laptop. 

$ cd /Library/Preferences

Remove the old Bluetooth list.  
$ sudo mv com.apple.Bluetooth.plist com.apple.Bluetooth.plist.2013Jan11
Now, it shows "No mouse found"

Shutdown and restart

Wonderful, the Bluetooth mouse now works even at log-in. 


2015 Jan 13. After update this laptop to Yosemite, the bluetooth mouse connection problem re-ocurred. I tried the same procedure. However, bluetooth mouse was still not connect at the start. It seems that bluetooth mouse does not even show up on the ddetected devices.