Showing posts with label cygwin. Show all posts
Showing posts with label cygwin. Show all posts

Saturday, September 21, 2013

Avoid emacs split window at startup

If the variable inhibit-startup-screen is non-nil, Emacs does not display the startup screen.

Set the setting in your .emacs file. 

(setq inhibit-startup-screen t)

Saturday, August 10, 2013

Remote restart of a windows machine

ssh <user>@<host>

# restart with a force
shutdown -r -f  0

# possibly -t 0 instead of just 0

# show all and Windows process
ps -aW 

# kill the winlogon process ???
/bin/kill -f <pid>

Tuesday, May 28, 2013

Installing cygwin - which packages I choose

Every time I install cygwin, I struggle to remember which packages I select.  So here is that start of a list (which will get updated over time):


  • emacs
  • ssh
  • ssl
  • xdmcp
  • wget
  • bash
  • ncurses
  • inetutils
  • rsync
  • curl

Cygwin - setting up sshd as service

The following article goes through the process of setting up cygwin's sshd as a service:


How To Get SSH Command-Line Access to Windows 7 Using Cygwin
http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/
The short version:

  • Install cygwin - include ssh
  • Run terminal (as administrator)
  • run ssh-host-config and go through questions
  • Start service (either reboot or "net start sshd")
To uninstall the service, use the rollowing command:


cygrunsrv -R sshd
-------------------

Some additional notes for setting up on XP:
http://mugurel.sumanariu.ro/linux/steps-to-setting-up-cygwin-and-the-sshd-service-for-windows-xp/ 
Setting up client access to use keys instead of passwords:
http://www.teachmejoomla.net/code/misc/authentication-without-password-with-ssh-and-rsync.html