Share your knowledge at the LQ Wiki.
Go Back > Blogs
User Name


Old statistics for Diaspora

Posted 10-21-2013 at 12:24 PM by sag47
Updated 10-21-2013 at 02:59 PM by sag47

If you've not heard of Diaspora I recommend you check it out.

Today I was playing with SSL statistics with which is a list of publicly hosted Diaspora pods. After viewing their source I found that I could knock against their API to pull domain names. This was more for a personal scripting exercise than anything. I'm sharing the results with you, the reader.

Getting secure host names

I basically ran python code like the following......
Senior Member
Posted in Uncategorized
Views 621 Comments 0 sag47 is offline

sshd chroot jails based on hostname and SELinux

Posted 04-01-2013 at 11:46 AM by sag47
Updated 04-01-2013 at 11:51 AM by sag47

Why chroot jails based on host name?
If you don't care about the background info just jump to Setting up sshd chroot jail and SELinux.

So I have started configuring automated deployments through my organization using a continuous integration server called Jenkins. I'll post more on Jenkins regularly so that eventually you can have a series of posts which wrap up into a nice and secure howto for Jenkins. So here's why I want chroot jails based on host names.

Senior Member
Views 4799 Comments 0 sag47 is offline

man page keyboard shortcuts

Posted 02-24-2013 at 09:30 AM by sag47

Here's a short list of keyboard shortcuts for reading man pages that I've learned by usage. I've not found a good place shortcuts are documented; man page or otherwise.

man bash
Use SHIFT+G to scroll to bottom of the page and look at FILES. You'll also learn more about how bash loads the bashrc if you read the INVOCATION section of the bash man page.

Helpful shortcuts for man pages...
  • k and j go up and down one line.
  • Ctrl+u and Ctrl+d go up and down half
Senior Member
Posted in Uncategorized
Views 2764 Comments 0 sag47 is offline

Headless file conversion using LibreOffice as a service

Posted 02-12-2013 at 11:16 PM by sag47
Updated 02-12-2013 at 11:38 PM by sag47

The content outlined here also works for OpenOffice. This post was inspired by a question I was answering on the forums.

System Setup
I installed LibreOffice packages using a PPA in Kubuntu. Here is information about my environment.
Tue Feb 12 23:00:54 EST 2013
Ubuntu 12.04.2 LTS
Linux 3.2.0-37-generic x86_64 GNU/Linux
GNU bash, version 4.2.24(1)-release (x86_64-pc-linux-gnu)
LibreOffice 3.5 (Version: 1:3.5.4-0ubuntu1.1)
unoconv 0.4
Senior Member
Posted in Uncategorized
Views 11446 Comments 0 sag47 is offline

Using a script to get your IP address

Posted 01-07-2013 at 12:33 PM by sag47

A friend of mine was complaining today how their work place doesn't parse the IP address from ifconfig but asks for manual input from the user. This is the dumbest thing ever. In case you're ever encountered by this here's a horrible one liner to get the job done quick and dirty.

Also, you may need to replace eth2 with your correct interface (such as eth1).
ifconfig | sed -ne '/^eth2/,/^\s\+Interrupt/p' | awk '$0 ~ /inet addr/ { print $2 }' | cut -d: -f2
Senior Member
Posted in Uncategorized
Views 4634 Comments 2 sag47 is offline


All times are GMT -5. The time now is 10:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration