journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,356 days old today.
prev day next day printable version

Entries this day: bought-three-discs created-instructions-for-creating-new-dh-users my-dh-server-got-hacked working-on-xcode-8

bought three discs

13:38 Monday 12 September 2016 JST

Played ultimate with an Aerobee yesterday with Suns Out Guns Out. It was challenging to control, but fun even so. Even so, I bought three ultimate discs from Club Jr. I'll bring them out one at a time until they're too old to use.

Two weeks ago, my Y2K compliant disc cracked. Boo. It didn't get used all its life, but it had a long life: 16+ years. After cracking, we kept using it to practice, and it cut someone's thumb upon them catching it. Oops. To keep that from happening again, I converted the crack into a split all the way to the other rim, though I wasn't able to break the other rim.

permalink

created instructions for creating new dh users

23:13 Monday 12 September 2016 JST

https://github.com/thunderrabbit/new-DH-user-account

New Dreamhost user account

This essentially spells out the tasks I do each time I set up a new user with shell access on Dreamhost.

It sets up git, emacs, and passwordless authentication, then essentially disables password logins by creating a random 132 character password and helpfully forgetting it.

In the steps below, replace example.com with your new domain.

Set up the new domain

From Dreamhost Control Panel -> Domains -> Manage Domains -> Add Hosting to a Domain / Sub-domain

Fill in the blanks, including create a new user.

Make note of the password created by Dreamhost. We will need it where PASSWORD is written below.

Give shell access to the user

Make sure the new user is a shell user at https://panel.dreamhost.com/index.cgi?tree=users.users

On local machine, create a new `ssh` key

ssh-keygen

Enter example.com as the key filename

Move the keypair to ~/.ssh

On local machine, set up ~/.ssh/config

Append something like the following to ~/.ssh/config:

Host example
    HostName example.com
    User example
    IdentityFile ~/.ssh/example.com

scp the public key to the new account using PASSWORD:

scp ~/.ssh/example.com.pub example:authorized_keys

ssh to the new account using PASSWORD:

ssh example

While on the new account, clone this repo:

git clone https://github.com/thunderrabbit/new-DH-user-account.git

Set up the account and passwordless entry

cd new-DH-user-account
./setup.sh

Exit the account

exit

ssh to the new account without password

ssh example

It's very very important you log in without password here!

Basically destroy password logins

cd $HOME/new-DH-user-account
./password_fix.sh

Enter PASSWORD when requested

Now your password is 132 random characters. It can be reset in control panel (to a measly 31 characters) but the point is to never user passwords to log in.

If everything worked, then cleanup

cd $HOME
$HOME/new-DH-user-account/cleanup.sh

I created these steps after my old Dreamhost account got hacked and needed to create new accounts.

permalink

my dh server got hacked

13:42 Monday 12 September 2016 JST

Boo apparently my old WP installation got hacked.

permalink

working on xcode 8

13:37 Monday 12 September 2016 JST

Downloaded XCode 8 and had 6000+ warnings of duplicate identifiers. Had to set NO_... to NO to fix them.

permalink
prev day next day