Sunday, 7. June 2009, 17:32:13
Mirror an svn repository with svnsync: (http://www.kirkdesigns.co.uk/mirror-svn-repository-svnsync)
On the Slave
svnadmin create /svr/svn/myrepo
chown -R www-data:www-data /svr/svn/myrepo
/srv/svn/repos/myproject/hooks/start-commit).:
#!/bin/sh
USER="$2"
if [ "$USER" = "svnsync" ];
then exit 0;
fi
echo "Only the svnsync user may commit new revisions" >&2 exit 1
Create the file /srv/svn/repos/myproject/hooks/pre-revprop-change.
#!/bin/sh
USER="$3"
if [ "$USER" = "svnsync" ];
then exit 0;
fi
echo "Only the svnsync user may change revision properties" >&2 exit 1
chmod 755 /srv/svn/repos/myproject/hooks/start-commit
chmod 755 /srv/svn/repos/myproject/hooks/pre-revprop-change
On the Master
Our Slave machine is now ready, so jump over to the Master machine. First thing we need to do here is to initialise the svnsync target.
svnsync initialize https://target/myproject/ https://source/myproject/ \
--sync-username svnsync --sync-password syncpassword \
--source-username sourceusername --source-password sourcepassword
/srv/svn/repos/myproject/hooks/post-commit:
#!/bin/sh
SVNSYNC=/usr/bin/svnsync
TO=http://my.slave.machine/myproject/
SYNC_USER=svnsync
SYNC_PASS=syncpassword
SOURCE_USER=me
SOURCE_PASS=mypassword
$SVNSYNC --non-interactive sync $TO \
--sync-username $SYNC_USER --sync-password $SYNC_PASS \
--source-username $SOURCE_USER --source-password $SOURCE_PASS & exit 0
Create the file /srv/svn/repos/myproject/hooks/post-revprop-change:
#!/bin/sh
SVNSYNC=/usr/bin/svnsync
TO=http://my.slave.machine/myproject/
SYNC_USER=svnsync
SYNC_PASS=syncpassword
SOURCE_USER=me
SOURCE_PASS=mypassword
$SVNSYNC --non-interactive copy-revprops $TO \
--sync-username $SYNC_USER --sync-password $SYNC_PASS \
--source-username $SOURCE_USER --source-password $SOURCE_PASS $2 & exit 0
Make sure both of these scripts are executable.
chmod 755 /srv/svn/repos/myproject/hooks/post-commit
chmod 755 /srv/svn/repos/myproject/hooks/post-revprop-change
Saturday, 6. June 2009, 10:50:08
copy to buffer
y -> "+y
p -> "+p
Saturday, 16. May 2009, 18:30:15
/etc/make.conf:
# utf8 char
WITH_WIDE_CHARS=1
Update ports:
portsnap fetch update
pkgdb -F
portsdb -Uu
portupgrade -a
OLD:
portversion -l '<'
cp /usr/share/examples/cvsup/stable-supfile .
Build World
# cd /usr/src
# make buildworld
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# reboot
--- after reboot ---
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster -iU
# make delete-old
# make delete-old-libs
# reboot
/etc/rc.conf
powerd_enable="YES"
ataidle_enable="YES"
ataidle_devices="ad0"
ataidle_ad0="-I 60 -S 120 -A 1 -P 128"
Friday, 5. December 2008, 09:46:27
Syntax check: perl -I/home/.... -MO=Lint %
Monday, 24. November 2008, 10:38:04
Change Default editor in Debian Etch: update-alternatives --config editor
Console keymap: dpkg-reconfigure console-data
Title
- export PROMPT_COMMAND=''
- xtermset -T "alma/karancsony"
svn co svn+ssh://your.remote-server.com/home/svn/test
Monday, 24. November 2008, 10:28:19
Apt source:
Operadeb
http://deb.opera.com/opera testing non-free
Import to key using the following commands
gpg --keyserver subkeys.pgp.net --recv-key 6A423791
gpg --fingerprint 6A423791
gpg --armor --export 6A423791| apt-key add -
HívatkozásOpenWrt command line:
-
nvram set boot_wait=on
nvram set boot_time=10
nvram commit && reboot
-
cd /tmp/
wget
http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/openwrt-wrt54g-squashfs.binmtd write /tmp/openwrt-wrt54g-squashfs.bin linux && reboot
-
passwd
mtd erase nvram && reboot
Limit source apt-get
/etc/apt/apt.conf.d/76download file ->
Acquire
{
Queue-mode "access";
http
{
Dl-Limit "200";
};
};
Monday, 29. September 2008, 11:26:21

Radio
- ChroniX Radio: Grit - Loud & Clear - www.chronixradio.com
- XRM - Alternativ
New music wanted list:
- Butthole Surfers - Pepper
- Marcy Playground - Sex and Canydy
- Counting Crows - Mr. Jones
- Jars Of Clay - Flood
- Foo Fighters - Everlong
- Eyes Wile Shut - waltz no 2
- Bourne Ultimatum - Extreme Ways
- Avenged Sevenfold - Almost Easy
- Primus - Tommy The Cat
- Slipknot - Snuff
- Killswitch Engage - Holy Diver
- Serj Tankian - Empty Walls
- Seether - Fake It
- Deftones - Change
- Sixx A M - Life Is Beautiful
- Sub Dub Micromachine - Slave Of My Mind
- Alter Bridge - Rise Today
- Red Hot Chili Peppers - Snow