ssh: Connection refused rsync: connection unexpectedly closed
I ran into the following error while running a script that was performing backups of files via rsync over ssh.
I ran into the following error while running a script that was performing backups of files via rsync over ssh.
I ran into the following spiel when I attempted to SSH to a host just now:
Setting the timezone of an Ubuntu (14.04, Trusty) or Debian (7, Wheezy) server from the command-line is simple. Just run dpkg-reconfigure tzdata
and follow the on-screen prompts. However, if you are running an unattended installation, you might want to avoid interactive prompts and just gets the job done. To do this, simply run
$ sudo ln -sf /usr/share/zoneinfo/America/Anchorage /etc/localtime
Browse through /usr/share/zoneinfo/
to locate your timezone.
Let's assume that we have some sample text like the following:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
The <kbd>
tag is an HTML tag use to indicate keyboard input. Adding the following to your CSS file will provide a rich effect to its display:
I had an odd issue just now when using Gvim. Usually, backspacing when in insert mode (iwhen running the editor as an administrator.
Running a program in "privileged" mode (i.e., as an administrator) is as simple as pressing the START button, finding the program, right-clicking its name, and choosing Run as administrator
. (You can similarly also choose to Run as different user
, but to get this option, you'll need to press SHIFT before the right click.) This should bring up Windows' pop-up asking you to allow the program to be run as administrator where you click Yes
and Robert is your uncle.
While transferring a file to a remote server is pretty easily done using PuTTY's sister program, pscp, sometimes one finds oneself to be too lazy to go through the steps required. Shouldn't it be possible to simply copy and paste the (text) file into a remote editor via PuTTY? It is and it works a peach. However, it does crack the shits every now and then complaining about the length of the clipboard (paste).
Earlier today, I wanted to recover some files that I'd added to version control (for safe keeping). However, I did not want to retain the pesky .svn
files that plague every directory in the tree (unlike the wonderful git). GOOG directed me to solutions that all rely on Linux tools to do the trick. The following does work admirably:
Some documents contain paragraphs which are wrapped often at the 80 character mark to help with formatting and readability. This is sometimes accomplished using forced line breaks which can be quite annoying especially when you want to reverse it as I did earlier today. Rather than messing with regex and weird edge cases, use Vim which provides a lovely solution! Here it be: