Search found 1446 matches

by Gordon
09 Sep 2011, 08:18
Forum: Howtos
Topic: Easy certificate management
Replies: 2
Views: 4934

Re: Certificates the easy way

Okay, apparently there are some questions about how this script functions. First off, I wrote this script for me. As a consequence comments inside the script may be somewhat scarce in parts that are crystal-clear to me. The point of the script is that I want to be able to create certificates and not...
by Gordon
08 Sep 2011, 19:11
Forum: B2 & B3 Support
Topic: Lura telefonidosan med DHCP-server på WAN-porten. (SVE/ENG)
Replies: 1
Views: 1842

Re: Lura telefonidosan med DHCP-server på WAN-porten. (SVE/E

My Swedish is a bit rusty, so I'm not sure I fully understand. :wink: I get that you have a VOIP subscription targeted towards your public IP and you want to connect both your Bubba and the VOIP supporting router (a cheap Netgear I gather) to that single address. In short: you can't do that. You'll ...
by Gordon
08 Sep 2011, 17:46
Forum: Howtos
Topic: Be your own CA - question
Replies: 8
Views: 13347

Re: Be your own CA - question

Gordon, Your solution is running a big shell script from an uncredited source. Maybe it'll open a backdoor to your ssh server, reset your passwords or erase your hard drive. Look, I appreciate your effort of making this script, but it's largely devoid of comments and instructions. It's generally ba...
by Gordon
08 Sep 2011, 08:06
Forum: Howtos
Topic: Be your own CA - question
Replies: 8
Views: 13347

Re: Be your own CA - question

Just use the script from THIS post, it handles all requirements for being your own CA
by Gordon
04 Sep 2011, 05:22
Forum: B2 & B3 Support
Topic: Allowing an user to only access a folder (SSH)
Replies: 7
Views: 3942

Re: Allowing an user to only access a folder (SSH)

Probably your best bet would be to create a wrapper script and assign that to be the users shell. Something like...

Code: Select all

#!/bin/bash
while read command params; do
  if [ ! -z `echo grep -e "^"$command"$" /some_location/allowed_commands.lst`]; then
    eval $command $params
  fi
done
by Gordon
03 Sep 2011, 07:39
Forum: Howtos
Topic: Easy certificate management
Replies: 2
Views: 4934

Easy certificate management

I wrote this little script a while back to make my own life simpler handling certificates. I've adapted it to work on the B3 (Debian handles some things differently than the server I had this running on) and made some small additions to handle revoking certificates as well. Before using the script e...
by Gordon
27 Aug 2011, 18:37
Forum: B2 & B3 Support
Topic: PHP error on status page
Replies: 6
Views: 3744

Re: PHP error on status page

Small note: My B3 does not have a file called /usr/bin/cups-list-printers. I got that. Point is that you should have had it and we can only guess why you don't. You may have inadvertently removed it as part of a dependency, or maybe just something went wrong during the bubba software upgrade. Reins...
by Gordon
27 Aug 2011, 15:29
Forum: B2 & B3 Support
Topic: PHP error on status page
Replies: 6
Views: 3744

Re: PHP error on status page

I think it's proprietary. Not part of cups itself anyway. Content of /usr/bin/cups-list-printers is as follows: #!/usr/bin/python import cups, json printers = [] try: for name, queue in cups.Connection().getPrinters().iteritems (): printers.append({ 'name': name, 'info': queue['printer-info'], 'enab...
by Gordon
27 Aug 2011, 13:27
Forum: B2 & B3 Support
Topic: PHP error on status page
Replies: 6
Views: 3744

Re: PHP error on status page

Apparently there is an issue with executing the shell command `cups-list-printers`. You might want to try and see what (error) this command returns if you execute it manually. The reason that you're seeing this in the web-admin is because the helper function returns a null value rather than an empty...
by Gordon
23 Aug 2011, 05:19
Forum: Howtos
Topic: Display the HDD temperature in the web portal [patch]
Replies: 33
Views: 33009

Re: Display the HDD temperature in the web portal [patch]

In the patch I posted above, you could have read that patching of stat.php should start at line 85. The correct place for the hddtemp entry is in the function called `index`, not `info`. To automagically fetch and convert the previous post to a working patch file, run the following command on your B...
by Gordon
18 Aug 2011, 12:50
Forum: B2 & B3 Support
Topic: [Solved] Oops on mv_crypto
Replies: 4
Views: 4290

Re: Oops on mv_crypto

Confirmed No more crashes since I switched to KLIPS. Should probably add this to the wiki. # Note: regular manual will tell you to apt-get the openswan-modules-source, in which case you'll be pulling in the 2.6.28 version. I'm not sure why, but this one does not compile. Just get the latest one from...
by Gordon
17 Aug 2011, 13:03
Forum: B2 & B3 Feature Requests
Topic: HTTPS suggestion
Replies: 31
Views: 14178

Re: HTTPS suggestion

I took a closer look at the wiki and I think something is missing there. I don't see the CA being included in the apache server config, so this would lead to an invalid certificate path. Did you test this?
by Gordon
17 Aug 2011, 08:09
Forum: B2 & B3 Feature Requests
Topic: HTTPS suggestion
Replies: 31
Views: 14178

Re: HTTPS suggestion

For those who want to do it themselves: http://wiki.excito.org/wiki/index.php/Be_your_own_CA Good show :!: A word of caution though: do NOT enter passwords while creating the server certificate. If you do, you'll be asked to enter it each time apache starts. Come to think of it, having a password p...
by Gordon
17 Aug 2011, 07:24
Forum: Howtos
Topic: Display the HDD temperature in the web portal [patch]
Replies: 33
Views: 33009

Re: Display the HDD temperature in the web portal [patch]

Could anyone please fix the patch so that it works with the latest updates? Maybe Excito could make the temperature info default in the next version? :) Okay... ---\sadmin/controllers/stat.php\t2011-08-03\s16:11:51.000000000\s+0200 +++\sadmin.patched/controllers/stat.php\t2011-08-17\s10:22:51.00000...
by Gordon
15 Aug 2011, 09:48
Forum: B2 & B3 Support
Topic: [Solved] Oops on mv_crypto
Replies: 4
Views: 4290

Re: Oops on mv_crypto

I think I fixed it. Still testing to verify. In short, something appears to be wrong with authcrypto in the ARM kernel. I installed the KLIPS module from the openswan source, which is actually what I'm also using on the LEAF box at the other end. Best thing yet is that this module gives me the ipsec...