Format lists better on github

This commit is contained in:
Kovid Goyal 2019-10-03 19:02:22 +05:30
parent 97e49f379a
commit 79fd57eb24
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -47,11 +47,11 @@ You need a VirtualBox virtual machine of macOS 10.14 (Mojave). Name the
VM using ``vm_name`` from :literal:`bypy/macos.conf`. To setup macOS inside the VM, VM using ``vm_name`` from :literal:`bypy/macos.conf`. To setup macOS inside the VM,
follow the steps: follow the steps:
* Turn on Remote Login under Network (SSHD) * Turn on Remote Login under Network (SSHD)
* Create a user account named ``kovid`` and enable password-less login for SSH * Create a user account named ``kovid`` and enable password-less login for SSH
for that account (setup `~/.ssh/authorized_keys`) for that account (setup `~/.ssh/authorized_keys`)
* Setup ssh into the VM from the host using the ``vm_name`` from above. * Setup ssh into the VM from the host using the ``vm_name`` from above.
* Install the needed software mentioned in :literal:`bypy/macos.conf`. * Install the needed software mentioned in :literal:`bypy/macos.conf`.
To build the dependencies for calibre, run:: To build the dependencies for calibre, run::
@ -72,20 +72,23 @@ You need a VirtualBox virtual machine of Windows 7 64bit. Name the
VM using ``vm_name`` from :literal:`bypy/windows.conf`. To setup windows inside the VM, VM using ``vm_name`` from :literal:`bypy/windows.conf`. To setup windows inside the VM,
follow the steps: follow the steps:
* Install all the software mentioned in :literal:`bypy/windows.conf` * Install all the software mentioned in :literal:`bypy/windows.conf`
* Install cygwin, with the: vim, dos2unix, rsync, openssh, unzip, wget, make, zsh, patch, bash-completion, curl
* Install cygwin, with the: vim, dos2unix, rsync, openssh, unzip, wget, make, zsh, patch, bash-completion, curl
packages packages
* Edit /etc/passwd and replace all occurrences of /bin/bash with /bin/zsh (in
* Edit /etc/passwd and replace all occurrences of /bin/bash with /bin/zsh (in
a cygwin prompt) a cygwin prompt)
* Setup a password for your windows user account
* Follow the steps here: * Setup a password for your windows user account
http://pcsupport.about.com/od/windows7/ht/auto-logon-windows-7.htm to allow the
* Follow the steps here: http://pcsupport.about.com/od/windows7/ht/auto-logon-windows-7.htm to allow the
machine to bootup without having to enter the password machine to bootup without having to enter the password
* The following steps must all be run in an administrator cygwin shell, to * The following steps must all be run in an administrator cygwin shell, to
enable SSH logins to the machine enable SSH logins to the machine
* First clean out any existing cygwin ssh setup with:: * First clean out any existing cygwin ssh setup with::
net stop sshd net stop sshd
cygrunsrv -R sshd cygrunsrv -R sshd
net user sshd /DELETE net user sshd /DELETE
@ -94,25 +97,31 @@ follow the steps:
rm -R /etc/ssh* rm -R /etc/ssh*
mkpasswd -cl > /etc/passwd mkpasswd -cl > /etc/passwd
mkgroup --local > /etc/group mkgroup --local > /etc/group
* Assign the necessary rights to the normal user account (administrator
* Assign the necessary rights to the normal user account (administrator
cygwin command prompt needed - editrights is available in \cygwin\bin):: cygwin command prompt needed - editrights is available in \cygwin\bin)::
editrights.exe -a SeAssignPrimaryTokenPrivilege -u kovid editrights.exe -a SeAssignPrimaryTokenPrivilege -u kovid
editrights.exe -a SeCreateTokenPrivilege -u kovid editrights.exe -a SeCreateTokenPrivilege -u kovid
editrights.exe -a SeTcbPrivilege -u kovid editrights.exe -a SeTcbPrivilege -u kovid
editrights.exe -a SeServiceLogonRight -u kovid editrights.exe -a SeServiceLogonRight -u kovid
* Run::
* Run::
ssh-host-config ssh-host-config
And answer (yes) to all questions. If it asks do you want to use a And answer (yes) to all questions. If it asks do you want to use a
different user name, specify the name of your user account and enter different user name, specify the name of your user account and enter
username and password username and password
* On Windows XP, I also had to run::
* On Windows XP, I also had to run::
passwd -R passwd -R
to allow sshd to use my normal user account even with public key to allow sshd to use my normal user account even with public key
authentication. See http://cygwin.com/cygwin-ug-net/ntsec.html for authentication. See http://cygwin.com/cygwin-ug-net/ntsec.html for
details. On Windows 7 this wasn't necessary for some reason. details. On Windows 7 this wasn't necessary for some reason.
* Start sshd with::
* Start sshd with::
net start sshd net start sshd
* See http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/ for details
* See http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/ for details
To build the dependencies for calibre, run:: To build the dependencies for calibre, run::