|
|
Index: Home | What Is Izumi | Linux Tips | OpenBSD Tips | FreeBSD TipsThis 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.
VIM mode line:
Example:
# vim: set expandtab ts=4 sw=4: /* vim: set expandtab ts=4 sw=4: *
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
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
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]
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
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
Buffalo: enable jffs/samba, install tcpdump
=> nas4 //192.168.1.NN/jffs username=..., pwd=...
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
Multicast Howto:
$ route add 224.0.0.0 netmask 240.0.0.0 dev eth0 $ cat /proc/net/igmp
Tip: http://www.olpcnews.com/forum/index.php?topic=685.msg5294;topicseen
Summary:
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]
|
|

This work is licensed by Raphaël Moll under a Creative Commons License.
|
|
| Color Theme: | Gray | Blue | Black | Sand | Khaki | Egg | None |
|
|
|
|