Tag Archives: Howto

ARISSat-1 Transponder file for GPredict

This is the transponder file I made up for GPredict as it not have one for the ARISSat-1 satellite.

Just copy and pasted the below info into a text file and save it to ~/.config/Gpredict/trsp/37772.trsp

[Mode V Digitalker (Voices Messages and Telemetry)]
DOWN_LOW=145950000
MODE=FM

[Mode V Imaging (Robot 36 SSTV from onboard cameras)]
DOWN_LOW=145950000
MODE=SSTV in FM carrier

[Mode V Telemetry (1000 baud (400 baud backup))]
DOWN_LOW=145920000
MODE=BPSK 1000 bps

[Mode U/V (B) Linear Transponder]
UP_LOW=435742000
UP_HIGH=435758000
DOWN_LOW=145922000
DOWN_HIGH=145938000
INVERT=true

[Mode V TLM Beacon (CW-2, BPSK-1000)]
DOWN_LOW=145919000
MODE=CW

[Mode V TLM Beacon (CW-1, BPSK-400)]
DOWN_LOW=145939000
MODE=CW

Now sit back and enjoy listening and transmitting to the ARISSat-1 :-)

Reference:
Satellite Detail – ARISSat-1

[How to] Belkin 600VA UPS (F6S600auUSB) with NUT

I recently purchased a Belkin 600VA UPS for my 12V fanless Mini ITX system and Wireless AP to keep them running through brown outs. This is what I had to do to get the UPS to work with NUT under Debian.

UPDATE Monday 21 May 09:49:17 CST 2012: now that I have had a long enough power outage I can confirm that the beeps do get faster towards end batter life and about then the computer starts its shutdown process.

Set the correct permissions to access the UPS
Edit and add the following to /lib/udev/rules.d/52-nut-usbups.rules:

#  F6S600auUSB - blazer_usb
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"

Run the following to activate the newly set permissions for the UPS:

# udevadm trigger --action=change

Installing and configuring NUT to work with the newly connected Belkin UPS
Install NUT:

# apt-get install nut

Edit /etc/nut/ups.conf and add the following to the end of file:

[belkin]
driver = blazer_usb
port = auto

Edit /etc/nut/nut.conf and change the mode:

MODE=standalone

Edit /etc/nut/upsd.users and add the following users

[admin]
password = adm_pwd
action = SET
instcmds = ALL

[upsmon]
password = ups_pwd
upsmon master

Edit the /etc/nut/upsmon.conf and check the following is active and correct.

MONITOR belkin@localhost 1 upsmon ups_pwd master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG
NOTIFYFLAG ONBATT SYSLOG
NOTIFYFLAG LOWBATT SYSLOG
NOTIFYFLAG FSD SYSLOG+WALL
NOTIFYFLAG COMMOK SYSLOG
NOTIFYFLAG COMMBAD SYSLOG
NOTIFYFLAG SHUTDOWN SYSLOG+WALL
NOTIFYFLAG REPLBATT SYSLOG+WALL
NOTIFYFLAG NOCOMM SYSLOG
NOTIFYFLAG NOPARENT SYSLOG
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5

Start NUT daemon:

# invoke-rc.d nut start

Check for errors in logs:

# tail -f /var/log/daemons.log
# tail -f /var/log/messages

Check UPS status:

upsc belkin

PCManFM user mount ‘not authorized’

If you are like me and like to run a custom install of Debian with a lightweight setup with Fluxbox, SLiM, PCManFM, etc and you have problems with mounting USB devices such as flash drives etc and get the “Not Authorized” message in PCManFM under Debian, here is a workaround that should still work after upgrade, rather than editing ‘
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy‘ itself, which does not last after software upgrade of udisks if I am not mistaken, but I sure someone will correct me if I am wrong ;-)

As root create:

# /etc/polkit-1/localauthority/50-local.d/55-storage.pkla

and add the following:

[Storage Permissions]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no

Polkit will automatically recognize the newly added file.

To make sure you have the ability to mount the USB devices, be sure to add yourself to the plugdev group

# usermod -a -G plugdev YOUR-LOGIN

Now logout and log back in for above to take effect if you just added yourself to the plugdev

Reference:
PCManFM – ArchWiki

[How To] Enabling Epson Stylus NX125 scanner

I am going to briefly explain how to enable normal user to have access the the scanner via Xsane or sane under Debian (testing)

First off add your user account to the ‘scanner‘ group:

# usermod -aG scanner your_account

and now logout and back in.

Second we need to edit ‘60-libsane.rules‘ file:

# nano /lib/udev/rules.d/60-libsane.rules

and add the following to the file:

# Epson Stylus NX125
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="085c", ENV{libsane_matched}="yes"

Now restart ‘udev‘:

# invoke-rc.d udev restart

and disconnect and connect the scanner on the USB port and start up Xsane.

Connecting to Internode’s IPv6 on Debian

You will first need the client program found in the Debian called ‘gogoc‘, if you want to use ‘router‘ mode you’ll also need to install ‘radvd‘ too which is also available in Debian.

Edit the ‘/etc/gogoc/gogoc.conf‘ file to suit:

userid=yourinternodeusername
passwd=yourinternodepassword
server=sixgw.internode.on.net
auth_method=any
host_type=router
prefixlen=64
if_prefix=yournormalinterface
dns_server=192.231.203.132
gw6_dir=/usr/local/gw6c
auto_retry_connect=yes
retry_delay=30
keepalive=yes
keepalive_interval=30
tunnel_mode=v6anyv4
if_tunnel_v6v4=gif0
if_tunnel_v6udpv4=tun0
if_tunnel_v4v6=
client_v4=auto
client_v6=auto
template=linux
proxy_client=no
broker_list=tsp-broker-list.txt
last_server=tsp-last-server.txt
always_use_same_server=no
log_filename=gw6c.log
log_rotation=yes
log_rotation_size=32
log_rotation_delete=no
syslog_facility=USER

When you first start gogoc it will try to make a secured connection to the Internode tunnel broker. The problem is that when you run gogoc for the first time it will fail with ‘Not starting gogoc - no server key ... (warning). failed!‘ cause it was unable to accept the server key from Internode. This means that we have to run gogoc from command line, like this:

# gogoc -n
sixgw.internode.on.net is an unknown host, do you want to add its key?? (Y/N) y
^C

Now you should be able to start ‘gogoc‘ as a deamon now with

# invoke-rc.d gogoc start

Testing it all works:
To see that you have an active tunnel working from command line, like this:

# ifconfig  | egrep '(Link|inet6)'

and you should get an output something like this:

...
tun       Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet6 addr: 2001:44b8:61::239/128 Scope:Global

now you should be able point your web browser to see the swimming turtle at http://www.kame.net/, also you should be able to see your IPv6 address here at Internode’s IPv6

Reference:
Internode’s IPv6 tunnel broker for Fedora Linux
Gentoo IPv6 Router Guide

[LINK] Screen Protector Installation

This guide illustrates techniques I’ve used successfully over many PDAs and phones, and each time I get a PERFECT install, no dust or bubbles and almost always perfectly even edge-to-edge positioning. Yes, you’ll need a steady hand and a bit of practice, but it’s not as bad as you think, and this technique has worked for me every time.

http://forum.xda-developers.com/showthread.php?t=1015394

[How to] Change default search engine in Iceweasel (Firefox)

Type in the URL bar ‘about:config‘ and search for ‘keyword.url‘ and modify the ‘Value‘ from

http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

to your preferred search engine, for me I changed it to Duck Duck Go

https://duckduckgo.com/?q=

You can find a full list of available parameters here to have a more custom search string

https://duckduckgo.com/?kl=au-en&kp=-1&q=

Now all there is left to do is restart Iceweasel (Firefox) and enjoy the new default search engine you can use from the URL bar

Slimming Your Android Install

I did this on my HTC Desire running OxygeN 2.0 RC7 ROM, and requires you have a root access to the ROM, and have a knowledge of adb from Android SDK install. As this just a quick how to I am not going to go into how to connect your phone etc, I sure you can Google that info.

Before we start remember to do a NAND backup

YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
Continue reading