<commit_before>= OSX Notes
:author: <NAME>
:doctype: notes
:encoding: utf-8
:lang: en
:toc: left
:published_at: 2013-12-06
:numbered:

[index]
== Create a bootable debian usb drive

download a debian iso and then convert iso to dmg:
----
hdiutil convert -format UDRW -o debian.img debian-7.2.0-amd64-netinst.iso
----

list devices and find usb drive:
----
diskutil list
----

parition usb drive:
----
diskutil partitionDisk /dev/disk4 1 "Free Space" "unused" "100%"
----

copy dmg to usb drive:
----
sudo dd if=debian.img.dmg of=/dev/disk4 bs=1m
----

eject disk:
----
diskutil eject /dev/disk4
----

[index]
== X11 Forwarding

We need an X.Org X Windowing System for OSX: 
----
wget -c https://xquartz-dl.macosforge.org/SL/XQuartz-2.7.8.dmg
----

/etc/sshd_config

change:
----<commit_msg>Update 2013-12-06-OSX-Notes.adoc<commit_after>= OSX Notes
:author: <NAME>
:doctype: notes
:encoding: utf-8
:lang: en
:toc: left
:published_at: 2013-12-06
:numbered:

[index]
== Create a bootable debian usb drive

download a debian iso and then convert iso to dmg:
----
hdiutil convert -format UDRW -o debian.img debian-7.2.0-amd64-netinst.iso
----

list devices and find usb drive:
----
diskutil list
----

parition usb drive:
----
diskutil partitionDisk /dev/disk4 1 "Free Space" "unused" "100%"
----

copy dmg to usb drive:
----
sudo dd if=debian.img.dmg of=/dev/disk4 bs=1m
----

eject disk:
----
diskutil eject /dev/disk4
----

[index]
== SSH

stop ssh server:
----
sudo launchctl stop com.openssh.sshd
----

start ssh server:
----
sudo launchctl start com.openssh.sshd
----

[index]
== X11 Forwarding

We need an X.Org X Windowing System for OSX: 
----
wget -c https://xquartz-dl.macosforge.org/SL/XQuartz-2.7.8.dmg
----

/etc/sshd_config

change:
----
{'fraction_non_alphanumeric': 0.1700057240984545, 'fraction_numerical': 0.035489410417859184, 'mean_word_length': 2.824945295404814, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1056669', 'n_tokens_mistral': 746, 'n_tokens_neox': 668, 'n_words': 199}