Most simple way is by using MacPorts:
$ sudo port install openssh +ssh-copy-idThat's it! And you ready to use it :)
$ sudo port install openssh +ssh-copy-idThat's it! And you ready to use it :)
crontab: temp file must be edited in placeThen the solution is very simple. You just need to create ~/.vim/ftplugin/crontab.vim and add this one line:
set backupcopy=yesSave the file and you can try to add cron entry again.
XOAUTH2 authentication failed: AUTHENTICATE command error: BAD ['Client aborted AUTHENTICATE command. q205mb46565077wmb']. Data: MFNB2 AUTHENTICATE XOAUTH2
auth_mechanisms = LOGIN
$ sudo vim.tiny /etc/network/interfacesYou'll see few lines of basic configuration:
auto loiface lo inet loopbackiface eth0 inet dhcp
allow-hotplug wlan0iface wlan0 inet dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.confiface default inet dhcp
$ sudo vim.tiny /etc/wpa_supplicant/wpa_supplicant.confJust copy and paste below script inside that file:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ssid="YOURSSID"psk="YOURPASSWORD"
# Protocol type can be: RSN (for WP2) and WPA (for WPA1)proto=WPA
# Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)key_mgmt=WPA-PSK
# Pairwise can be CCMP or TKIP (for WPA2 or WPA1)pairwise=TKIP
#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)auth_alg=OPEN
}Change ssid, psk, proto, key_mgmt, pairwise and auth_alg according to your wireless router setup.
$ sudo reboot7. Upon booting, unplug ethernet cable and try to access your Pi via wireless connection (check the IP from your wireless router DHCP client list)
$ sudo port install abook
set query_command = "abook --mutt-query '%s'"macro generic,index,pager \ca "<shell-escape>abook<return>" "launch abook"macro index,pager A "<pipe-message>abook --add-email<return>" "add the sender address to abook"A little explanation for above script:
$ sudo bash5. Type in your password
# mkdir -p ~/rpi/backups7. Check where your SD card is listed (e.g.: mine is listed as /dev/disk2s1)
# cd ~/rpi/backups
# df -h8. Eject your SD card:
# diskutil unmountDisk /dev/disk2s19. Backup your SD card to image file: (please note that you have to add 'r' before 'disk')
# dd if=/dev/rdisk2 of=~/rpi/backups/backup-today-rpi.img bs=1M10. When complete: (again, add 'r' before 'disk')
# diskutil eject /dev/rdisk2
# df -h3. Eject your SD card:
# diskutil unmountDisk /dev/disk2s14. Restore your image to new SD card:
# dd bs=1M if=~/rpi/backups/backup-today-rpi.img of=/dev/rdisk25. When complete:
# diskutil eject /dev/rdisk2
$ sudo raspi-config3. Choose 'Expand Filesystem"
$ sudo vi /etc/ssh/sshdLooking for this line, or you can add if it's not already there:
X11Forwarding yesSave that file and restart SSH service:
$ sudo /etc/init.d/ssh restartAllow Laptop to run X applications:
$ xhost 192.168.1.7Define default display:
$ export DISPLAY=192.168.1.1:0
$ ssh -X [username]@192.168.1.1 firefox
$ ssh -X [username]@192.168.1.1 oowriter
$ mv ~/.vim ~/.vim-bk2. Create new ~/.vim and ~/.vim/bundle (to contain your plugins)
$ mkdir -p ~/.vim/bundle3. Setup Vundle
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle4. Configuring .vimrc
5. Get webapi-vim and vimplenote-vimset nocompatible " be iMproved filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " My Bundles here: " " original repos on github Bundle 'mattn/vimplenote'Bundle 'mattn/webapi'" ... filetype plugin indent on " required! " " Brief help " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed..
$ git clone git://github.com/mattn/webapi-vim.git ~/.vim/bundle/webapi6. Running and installing bundle
$ git clone git://github.com/mattn/vimplenote-vim.git ~/.vim/bundle/vimplenote
$ vim7. Using Vimplenote (do it inside vim)
:BundleInstall
:Vimplenote -l " list of your Simplenote notes (you'll be prompted to fill in login credentials)And you're good to go :)
:Vimplenote -d " delete your current note
:Vimplenote -n " create new note
:Vimplenote -u " update current note
:Vimplenote -t " add a tag to a note
:Vimplenote -s " search a note
$ sudo port install curl-ca-bundleThen, create .wgetrc file in your home directory:
$ vim ~/.wgetrcAnd put this line:
That way, you don't need to include the path everytime you want to do a wget.CA_CERTIFICATE=/opt/local/share/curl/curl-ca-bundle.crt
# umount /dev/mapper/store-ext3fs
# lvremove /dev/mapper/store-ext3fs
# lvdisplay /dev/mapper/store-ext3fs
# lvremove /dev/mapper/store-ext3fs
# df -kh
# umount /dev/mapper/store-media
# resizefat /dev/mapper/store-media 6995968K
$ sudo port -v install vim +pythonAfter finished, you can find that newest version of vim (compare to built-in version of vim), is located in: /opt/local/share/vim/ directory
$ sudo find / -name "vim"After that, you need to put the path into $PATH, because if you're not doing that, Terminal apps in Mac OS X will execute the default built-in vim. Also, you need to put it in the beginning of your path:
PATH=/opt/local/share:/opt/local/bin:/opt/local/sbin:$PATHThat's it. Close your Terminal window/ tab, and start a new one. Type "vim" on your shell, and you'll see that you already have the new version of vim. Enjoy! :)
$ defaults write com.apple.finder AppleShowAllFiles TRUEAnd suddenly you'll find changes in your Finder. If you ever want to get the already-revealed hidden files to default, just type the same command as above and change TRUE to FALSE:
$ killall Finder
$ defaults write com.apple.finder AppleShowAllFiles FALSE
$ killall Finder
# sudo tcpdump -i en0 -vvv -K -n -s 0 -w ~/Desktop/DumpFile.dmp
# sudo tcpdump -i en0 -vvv -n -s 0 -w ~/Desktop/DumpFile.dmpIf you want to stop it from capturing, just press control-c. And to view the file:
# sudo tcpdump -s 0 -n -e -x -vvv -r ~/Desktop/DumpFile.dmp
# cd /
# /opt/bin/ssh-keygen (press Enter key once to accept default filename, then Enter key twice for blank password)
# mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keys
# java -version2. change directory to home directory
# cd ~/3. retrieve JRE version for Leopard (OS X 10.5.x)
# curl -o java.1.5.0-leopard.tar.gz http://www.cs.washington.edu/homes/isdal/snow_leopard_workaround/java.1.5.0-leopard.tar.gz4. extract the file you just downloaded
# tar -xvzf java.1.5.0-leopard.tar.gz5. remove existing 1.5 version file on Snow Leopard
# sudo rm /System/Library/Frameworks/JavaVM.framework/Versions/1.56. remove existing 1.5.0 version file on Snow Leopard
# sudo rm /System/Library/Frameworks/JavaVM.framework/Versions/1.5.07. move current extracted JRE1.5 for Leopard to existing System directory
# sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard8. make link from currently moved folder to previously removed file
# sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard /System/Library/Frameworks/JavaVM.framework/Versions/1.59. same usage as no. 8
# sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0And after you done with all 9 steps above, just go to Finder -> Utilities -> Java Preferences.
# java -versionNotice the differences? You'll now get the "java version 1.5.0_19" (in my MacBook Pro). And you're done :)