Izumi Blog: Ralf - Linux Tips
Index: Home | What Is Izumi | Linux Tips | OpenBSD Tips | FreeBSD Tips
This page contain several tips for using Linux. I use this mostly as reminders of commands that I found useful. There's generally nothing here one couldn't learn by searching on the net or reading the man pages, which is generally how I got the commands in the first place.
Site License And Disclaimer as well as contact information are available here.

«»  2010/09/26 «» VIM mode line  «»

VIM mode line:

Example:

# vim: set expandtab ts=4 sw=4:
/* vim: set expandtab ts=4 sw=4: *

[permalink]


«»  2010/06/14 «» Vaio PCG-R505TLK with DamnSmallLinux  «»

Tips from http://andreys.info/blog/2009-06-19/installing-minimal-crunchbang-linux-on-old-sony-laptop

DLS: http://www.damnsmalllinux.org

Select the DLS 4.04 with isolinux mode.

Trick to boot from isolinux (same for Ubuntu):

To resize NTFS:

hda2: 300 MB for frugal or devbian-to-cd install
hda3: 9 GB for frugal extra space

Boot params: vga=normal toram tz=US/Pacific ssh fuse

[permalink]


«»  2010/05/02 «» Synlogoy APCupsd  «»

1- First install ipkg

2- http://forum.synology.com/enu/viewtopic.php?f=27&t=19378

$ ipkg install apcupsd

NAS has /etc/apcupsd/apcupsd.conf in "NETSERVER on... 192.168.1.NN 3551"

Configure local as indicated in http://www.apcupsd.com/manual/manual.html#nis-server-client-configuration-using-the-net-driver

$ vim /opt/etc/apcupsd/apcupsd.conf
UPSCABLE ether
UPSTYPE net
DEVICE 192.168.1.NN:3551
POLLTIME 10

Test:

$ /opt/sbin/apcupsd
$ apcaccess status

Setup on boot:

$ cd /usr/local/etc/rc.d
$ vim apcupd.sh (cf syno forum link) => fix: "sh $0" and PREFIX=/opt

[permalink]


«»  2010/05/02 «» Synology install "ipkg"  «»

http://www.volkomenjuist.nl/blog/2009/03/09/install-ipkg-on-synology-ds209

Except I need the arm version (http://forum.synology.com/enu/viewtopic.php?f=123&t=14940)

$ cd /volume1/ralf/t
$ wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
$ sh syno*xsh
$ ipkg update
$ ipkg list
$ ipkg install vim
...
[permalink]


«»  2010/04/21 «» Insteon   «»

PLM USB 2412U & ICON ApplianceLinc.

To map the USB: (as root)

# dmesg => look for usb e.g. usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
# lsusb -v => find serial => A6004uSx
# cat > /etc/udev/rules.d/050_usb.rules
  KERNEL=="ttyUSB*", ATTRS{serial}="A6004uSx", NAME="usb/insteon0", group="$USER"
  ATTRS{serial}="<serial>", NAME="usb/ups0"
# vim /etc/plmtools.conf => /dev/usb/insteon0

[permalink]


«»  2010/03/26 «» Modifiying the Synology NAS  «»

Modifiying the Synology NAS (user wiki):

[login as root]
$ vi /usr/syno/etc/surveillance.pgsql  # schema
CREATE TABLE licensekey (
       id                      serial unique,
       camera_count            integer,
       key                     varchar(32),
       serial                  varchar(64)
);
$ cd /var/database
$ /usr/syno/pgsql/bin/psql -U admin surveillance
# select * from licensekey;
# insert into licensekey values (1,4,'01234567890123456789012345678901','0123456789012345678901234567890123456789012345678901234567890123');
# Ctrl-d (or \q)

Make surverlliance shared folder RO by my user in samba:

$ vi /usr/sybo/etc/smb.conf
in the [surveillance] group, valid user = ...$USER,...
$ /usr/sybo/etc/rc.d/S80samba.sh restart

[permalink]


«»  2010/02/25 «» Jffs on Buffalo  «»

Buffalo: enable jffs/samba, install tcpdump

 => nas4 //192.168.1.NN/jffs username=..., pwd=...

[permalink]


«»  2009/06/06 «» apt-get error  «»

W: There is no public key available for the following key IDs:
9AA38DCD55BE302B
W: GPG error: http://ftp.us.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B

=> gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 9AA38DCD55BE302B
=> apt-key add ~/.gnupg/pubring.gpg

[permalink]


«»  2009/03/16 «» Multicast  «»

Multicast Howto:

$ route add 224.0.0.0 netmask 240.0.0.0 dev eth0
$ cat /proc/net/igmp

[permalink]


«»  2009/01/03 «» VLC on the OLPC XO  «»

Tip: http://www.olpcnews.com/forum/index.php?topic=685.msg5294;topicseen

Summary:

[permalink]


Blog Archives:
Most recent posts
2008/05/24 - 2006/08/24
2006/08/07 - 2005/10/23
2005/10/15 - 2004/12/11
2004/12/04 - 2004/03/14
2004/04/07 - 2003/09/18
[RSS]


Site License

Creative Commons License
This work is licensed by Raphaël Moll under a Creative Commons License.

Options
Color Theme: Gray  | Blue  | Black | Sand  | Khaki  | Egg  | None

Web ralf.alfray.com Powered by Google

Display Izumi & PHP Credits

Stats
1015 accesses, 1 access from 38.107.179.207
Visited 51 times by Google, last 2012/01/28 14:06
Visited 35 times by Yahoo!, last 2011/10/20 08:50
Visited 5 times by MSN, last 2011/06/16 22:00

< Generated in 0.79 seconds the 02/06/2012, 09:16 AM by Izumi 1.1.4 >