Freebsd Installation , Brief Howto
| June 14th, 2008This post cross-posted at Daemon Diaries
I recently installed FreeBSD on my laptop … here is how it went:
This post cross-posted at Daemon Diaries
I recently installed FreeBSD on my laptop … here is how it went:
Linux Audio Tip #1 , how to use ssh public key authentication
transcript>
Hey , this is mike with quick linux tip
SSH Public Key Authentication
This will allow you to ssh into any machine , without a password
We can do this in three steps
one , generate a key , to do this just type *ssh-keygen*
two , get the public key , we do this by typing
cat ~/.ssh/(id_rsa.pub) then copy that to your clipboard
three ssh into your host machine , type echo -ne ”
then paste the key then a ” then type >> ~/.ssh/authorized_keys
now next time you ssh into that machine , it won’t prompt you for a password
well , thats all for now , check out my blog at http://mikedonaghy.org
For those who actually read my blog , (both few and far between) , I am not in fact dead , just lazy , I mean … not really…I have been doing a lot of things
I have been Screencasting , Running Linux and Listening to music
I will have more up soon hopefully (famous last words…)
I am currently working on a project with Django A Python web framework ,
It will be a pastebin application , all good pastebins have syntax highlighting … I just wanted to show you how I did it … it can be useful for other projects,
1 def syntax(value,extension): 2 from pygments.lexers import get_lexer_for_filename 3 from pygments import highlight 4 from pygments.formatters import HtmlFormatter 5 "Highlights the syntax of a file based on file extension" 6 lexer = get_lexer_for_filename("file." + extension, stripall=True) 7 formatter = HtmlFormatter(linenos=True) 8 result = highlight(value, lexer, formatter) 9 return result
Sorry for the lack of posts , I will have more snippets up soon