Archives
- 2023
- 2022
- 2020
- 2019
- 2018
- 2017
- 2016
- 2014
- 2013
- 2012
- 2011
- 2010
- 2009
- 2008
-
2007
- December
- November
- October
- September
- August
- July
-
June
-
Monitoring filesystem activity under Linux with block_dump
06/28/07
sudo sysctl vm.block_dump=1
or
echo 1 > /proc/sys/vm/block_dump
tail -f /var/log/kern.log -
ntfs read/write with feisty
06/24/07
apt-get install ntfs-g3
/etc/group
+fuse:x:100:users
vol_id /dev/sda1
/etc/fstab
UUID=5EFC7B02FC7AD42D /media/usbhdd ntfs-3g rw,users,uid=1000,guid=1000,umask=007,locale=de_AT.utf8,force 0 0user can mount but not unmount
https://bugs.launchpad.n -
blocking ads with squid
06/22/07
/etc/squid/squid.conf
+acl ads dstdom_regex -i "/etc/squid.adservers"
+http_access deny ads
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
update-squid-adservers.sh:
#!/bin/sh
### short script that downloads a list of ad servers f -
Internetaccess via modem
06/21/07
apt-get install ppp
edit /etc/ppp/pap-secrets
/etc/network/interfaces
auto modem
iface modem inet ppp
provider modem
/etc/ppp/peers/modem
ttyS0
38400
connect "/usr/sbin/chat -v -f /etc/ppp/peers/modem.chat"
disconn -
Internetaccess via ISDN
06/21/07
apt-get install isdnutils-base
isdnconfig - choose 1, ippp1 to prevent default gateway to ippp0
/etc/isdn/device.ippp1:
edit all lines marked with XXX_:
LOCALIP=
REMOTEIP=AAA.BBB.CCC.DDD
LOCALMSN=''
REMOTEMSN=XXXXX
LEADINGZERO -
scponly
06/21/07
apt-get install scponly
gunzip /usr/share/doc/scponly/setup_chroot/setup_chroot.sh.gz
chmod 755 /usr/share/doc/scponly/setup_chroot/setup_chroot.sh
cd /usr/share/doc/scponly/setup_chroot/
./setup_chroot.sh /home/USERNAME USERNAME RELATIVE_WRITEABLE_DIR
cp /dev/nu -
ssh - chroot
06/21/07
chroot a user logging in via ssh
apt-get install libpam-chroot
less /usr/share/doc/libpam-chroot/examples/README.example
/usr/share/doc/libpam-chroot/examples/setup-chrootdir-shell.sh
/etc/security/chroot.conf:
+USERNAME /var/chroot/sshd/home/USERNA -
mirror my website
06/21/07
chmod 700 /etc/cron.daily/websitesync
#!/bin/sh
wget -q --mirror --no-host-directories --cut-dirs=1 --directory-prefix=/var/www \
--user=USERNAME --password=XXXXX ftp://www.holik.at/htdocs
I mirror to my homeserver/var/www and to prevent wget to add
director -
serial (ttyS) over TCP
06/21/07
First computer where to redirect serial via TCP:
stty -F /dev/ttyS0 raw 9600 -echo
nc 192.168.0.1 1111 >/dev/ttyS0 </dev/ttyS0
Second computer receiving needs 2 serial's
stty -F /dev/ttyS0 raw 9600 -echo
stty -F /dev/ttyS1 raw 9600 -echo
nc -l -p -
Internetaccess via adsl
06/20/07
apt-get install pptp-linux
i got a usb networkcard - to name it adsl i use udev and made /etc/udev/rules.d/local.rules
SUBSYSTEMS=="usb", KERNEL=="eth*", ATTRS{idVendor}=="050d", \
ATTRS{idProduct}==&qu -
dnsmasq
06/20/07
dnsmasq with more than one interface
[more]
* Howto define a CNAME with dnsmasq ?
# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same
# as the long options legal on the command line. See
# "/u -
raid1 with ubuntu feisty
06/20/07
What i want from a raid1:
notiy if a disk fails
This is done by mdadm
boot degraded with only one disk
boot degraded does not work with ubuntu, because mdadm does not start a degraded raid :-(
my workaround is to add a bootmenue entry in grub
tit
-
Monitoring filesystem activity under Linux with block_dump