If you can do ldapsearch -x okay but ldapsearch gives a Permission denied in replay cache code
error,
when running slapd under openldap user but auths okay when ran as root (check klist for ldap/server.example.com ticket)
Then see if the following works from the console. If it does then integrate it into /etc/default/slapd otherwise you may try KRB5RCACHETYPE=none as a further workaround (though having a replay cache is preferred)
env KRB5_KTNAME="FILE:/etc/ldap/ldap.keytab" KRB5RCACHEDIR=/var/local/lib/ldap slapd -u openldap -g openldap -d 255 -h "ldap:/// ldapi:///"
Use wget --header="Pragma: stream-offset" for WMV streams to get the stream instead of a playlist.
To get an Mpeg stream: dvgrab -format raw | ffmpeg -f dv -i - -target vcd - | vlc -
You can do this in xscreensaver-getimage-video to get frames from the IEEE1394 DV camera on your xscreensaver:
my @programs = ( "dvgrab --format jpeg --jpeg-overwrite --every 25 $tmpdir/webcam < /dev/null " . "> /dev/null 2> /dev/null & C=\$! ; sleep 1; kill \$C; ". "mv $tmpdir/webcam.jpg $tmpfile", # IEEE1394 camera
To install programs on a palm tungsten E
It is possible to search for clipart by artistic style. All that is needed is the style number. Just enter something like the following in the search box.
For Debian install libcap2-bin
If your linux is 2.6.26 or newer, you may no longer need to patch linux as below. just do setcap cap_ipc_lock,cap_sys_nice=+ep /usr/bin/jackd and enjoy realtime scheduling in jack. You can also do this for alsaplayer to enable the realtime option there.
If you want to use wireshark from a non-root account, do setcap cap_net_raw=+ep /usr/bin/dumpcap. Now you can run wireshark from a normal account and choose to capture from the network.
For superuser ports, try setcap cap_net_bind_service=+ep /path/to/program
You'll need to enable capabilities in Linux by editing /usr/src/linux/include/linux/capability.h to make CAP_INIT_EFF_SET equal to CAP_FULL_SET. Like this.
Re-compile and install linux with capabilites and commoncap modules and then modprobe commoncap
Now you can give any program access to ports less than 1024 by executing something like sudo setpcaps cap_net_bind_service+eip `pidof program`. The program itself never has or gets root privieges by this way.
The realtime priority of jackd could be checked with chrt -p `ps -C jackd -o pid=`. chrt can be found in the schedutils package. You now see jackd bear a priority of RT within the top program.
Of course you need to allow users to do this by letting setpcaps run as root to do its work in /etc/sudoers file.
You might co-erce Adobe Flash to try jackplug with FLASH_ALSA_DEVICE=plug:SLAVE=jack set in the environment variables.
It may also be useful to insert a slight delay with sleep(1) in the main() function of some programs so that setpcaps has time to do its work before the background program attempts to bind ports under 1024.
That works in C programs, in python can put something like this near the beginning
import select select.select([],[],[],1)
case "$1" in 'start') # mysql needs to be running first cd /etc/rc.d/ su jabber -c "/usr/local/bin/jabberd \\-b" ;; 'stop') kill -TERM `ps -u jabber | grep perl | cut -d" " -f1-2` ;; 'reload') kill -HUP `ps -u jabber | grep perl | cut -d" " -f1-2` ;; *) echo "usage $0 start|stop|reload" esac
With this for N in .*; do if [ "$N" != ".." ]; then chown -R --reference=. $N; fi; done
| tda1004x.bin version | MD5 Hash |
|---|---|
| 215 | 83e171133c2e0fe3ffdd862e3b498d3f |
| 216 | 490709cef1ccb4a0ac03273c487669f0 |
| 217 | e022aa497e089988ce835c4359107a30 |
It is possible to sort the tzap output from scan to match the Freeview channel ordering. Then BBC NEWS 24 can be watched using dvb://80
It's still possible to provide files from elsewhere in a file system, without using symbolic links as chroot doesn't allow it and some programs don't recognise them for security, or hard links that cannot be done across filesystems.
We can use bind mounts
. The fstab is like for other file systems,
except you list a source folder instead of a block device. Then, for example, mount /home/ftp/downloads
and your files will be accessible also in the new location. Remember to list it in fstab after mounts that
provide the origin folder, so that automounting works correctly on system startup.
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /mnt/downloads /home/ftp/downloads none rw,bind 0 0
set folder=~ set mbox=~/mbox set spoolfile=$MAIL macro index _ "c $MAIL^m" "New Messages" macro index - "c ~/mbox^m" "Received Messages"
gphoto2 --manual describes how to switch camera control mode.
When camera control is off, modprobe sd-mod; modprobe usb-storage allows the camera flash to be mounted in the filesystem, often from the device /dev/sda1
When camera control is on, gphoto2 can be used to control the camera more extensively.
An image from the camera can be used as a template for faking in GIMP. It can then be recombined with a header from the camera's saved tiff's for upload to the camera memory, such that the camera can be used as a portable image viewer.
# image is 9437184 header is 14409 dd if=P1010001.TIF of=P1010002.TIF bs=14409 count=1 dd if=gimp.tif of=P1010002.TIF skip=8 seek=14409 bs=1 count=9437184
To save user from having to add the language types manually from the control panel...
REPLACE INTO phpbb_config VALUES
('auto_lang_ar','arabic'),
('auto_lang_ast','asturian'),
('auto_lang_az','azerbaijani'),
('auto_lang_bg','bulgarian'),
('auto_lang_bs','bosnian'),
('auto_lang_ca','catalan'),
('auto_lang_cs','czech'),
('auto_lang_cy','welsh'),
('auto_lang_da','danish'),
('auto_lang_de','german'),
('auto_lang_el','greek'),
('auto_lang_en','english'),
('auto_lang_eo','esperanto'),
('auto_lang_es','spanish'),
('auto_lang_es-ar','spanish_argentina'),
('auto_lang_et','estonian'),
('auto_lang_eu','basque'),
('auto_lang_fa','farsi'),
('auto_lang_fi','finnish'),
('auto_lang_fr','french'),
('auto_lang_gl','galego'),
('auto_lang_he','hebrew'),
('auto_lang_hr','croatian'),
('auto_lang_hu','hungarian'),
('auto_lang_id','indonesian'),
('auto_lang_is','icelandic'),
('auto_lang_it','italian'),
('auto_lang_ja','japanese'),
('auto_lang_ko','korean'),
('auto_lang_ku','kurdish'),
('auto_lang_lt','lithuanian'),
('auto_lang_mk','macedonian'),
('auto_lang_mn','mongolian'),
('auto_lang_nl','dutch'),
('auto_lang_no','norwegian'),
('auto_lang_pl','polish'),
('auto_lang_pt','portuguese'),
('auto_lang_pt-br','portuguese_brazil'),
('auto_lang_ro','romanian'),
('auto_lang_ru','russian'),
('auto_lang_sk','slovak'),
('auto_lang_sl','slovenian'),
('auto_lang_sq','albanian'),
('auto_lang_sr','serbian'),
('auto_lang_sv','swedish'),
('auto_lang_th','thai'),
('auto_lang_tr','turkish'),
('auto_lang_ug','uighur'),
('auto_lang_uk','ukrainian'),
('auto_lang_zh-cn','chinese_simplified'),
('auto_lang_zh-tw','chinese_traditional_taiwan');
16 channel effects bus....
/usr/bin/jackstart -T -R -P89 -dalsa -Chw:0,2 -r96000 -p1024 -n2 -Phw:0,3 -s -m -o16 -zs -H -M
For 32 or 24 bit output (?) on emu10k1 with jackd (supports 48000, 96000, 192000 as in p16v.c) The "HD Analog" controls in alsamixer can control the volume of these output lines.
/usr/bin/jackstart -T -R -P89 -dalsa -r96000 -p512 -Phw:0,4 -o8 -H
| Port | is |
|---|---|
| 1 | Green Left |
| 2 | Green Right |
| 3 | Orange Left |
| 4 | Orange Right |
| 7 | Black Left |
| 8 | Black Right |
The black jack apparently has the best audio quality
Two files in the home directory allow openal applications like unreal tournament 2004 to be used with jack, and so with ALSA cards that do not really have their own mixer.
cat >> ~/.openalrc << EOF
(define devices '(alsa native))
(define alsa-device "plug:SLAVE=jack")
EOF
cat >> ~/.asoundrc << EOF
pcm.jack {
type jack
playback_ports {
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports {
0 alsa_pcm:capture_1
1 alsa_pcm:capture_2
}
}
EOF
(Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Required_Format 'riff) (Parameter.set 'Audio_Command "aplay -q -D plug:SLAVE=jack $FILE")
Goes in /etc/festival.scm
#!/bin/sh
mkfifo ~/.ut2004/System/speech
while true
do
cat ~/.ut2004/System/speech | while read
do
echo -ne "(SayText \""
echo -n $REPLY | sed 's/\\/\\\\/g
s/\"/\\"/g'
echo -e ".\")"
done
done | festival
This can now be used to provide a speech device instead of the other method involving a speechd for ut2004
Users can use their multimedia keys to cause events or enter special characters. Here I put the characters ☹, ☺, and ☻ on the first 3 keys when shift is pressed at the same time. Users of Microsoftʼs Windows® may be able to use their Keyboard Layout Creator
It can be set in ~/.Xsession or for gnome users add it to the list of startup programs. Use shift to access your character choices, as your desktop may override the unshifted keys to set off the labelled action.
#!/bin/bash # 236, 178, 230, 162, 164, 166, 160, 237, 235, 161 # cause an event from /usr/share/X11/XKeysymDB # or enter UTF-16 NNNN char by writing 0x0100NNNN # find key scan codes with xev xmodmap -e 'keycode 236 = XF86Mail 0x01002615' xmodmap -e 'keycode 178 = XF86HomePage 0x0100263B' xmodmap -e 'keycode 230 = XF86Favorites 0x01002408' xmodmap -e 'keycode 162 = XF86AudioPause 0x01002026' xmodmap -e 'keycode 174 = XF86AudioLowerVolume 0x01002639' xmodmap -e 'keycode 176 = XF86AudioRaiseVolume 0x0100263A' xmodmap -e 'keycode 160 = XF86AudioMute 0x01002018' xmodmap -e 'keycode 237 = XF86AudioRecord 0x01002019' xmodmap -e 'keycode 235 = XF86MyComputer 0x0100201C' xmodmap -e 'keycode 161 = XF86Calculator 0x0100201D
Tkabber for debian does now comes with the plugins in a separate package
# can now do ln --symbolic /usr/share/tkabber-plugins ~/.tkabber/plugins
On an intermediate trap catching server, which receives traps from switches, it is possible to forward the traps to a desktop PC. In /etc/snmp/snmptrapd.conf write something like:
forward default udp6:[2001:db8::]:162
If /etc/hosts.allow and /etc/hosts.deny control access, then disableAuthorization can be set as well.
On the desktop pc, write:
traphandle IF-MIB::linkDown /etc/snmp/traps down traphandle IF-MIB::linkUp /etc/snmp/traps up # snmptrap -v 1 -c public 192.0.2.1 IF-MIB::linkDown localhost 2 1 "" # snmptrap -v 1 -c public 192.0.2.1 IF-MIB::linkUp localhost 3 1 "" traphandle default /etc/snmp/traps
A trap handler can present the link up down messages to the logged in user via GNOME.
#!/bin/sh
read host
read ip
interface="unknown"
while read oid val
do
case "${oid}" in
.1.3.6.1.6.3.1.1.4.1.0)
case "${val}" in
.1.3.6.1.6.3.1.1.5.3)
link="down"
;;
.1.3.6.1.6.3.1.1.5.4)
link="up"
;;
esac
;;
.1.3.6.1.2.1.2.2.1.1.1)
interface="${val}"
;;
esac
done
dbus=($(ps -C dbus-launch -o user=))
pulse=($(ps -C pulseaudio -o user=))
if test "${link}" = "up"
then
if test "${#dbus[*]}" -ne 0
then
eval "$(<$(eval echo ~"${dbus[0]}")/.dbus/session-bus/$(</var/lib/dbus/machine-id)-0)"
export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID DBUS_SESSION_BUS_WINDOWID
/bin/su --command=$'/usr/bin/notify-send -t 1000 up $\'interface '"${interface}"$'\'' "${dbus[0]}"
fi
if test "${#pulse[*]}" -ne 0
then
# configure samples in ~/.pulse/default.pa and ~/.pulse/daemon.conf
/bin/su --command=$'pactl play-sample bark' "${pulse[0]}"
fi
fi
if test "${link}" = "down"
then
if test "${#dbus[*]}" -ne 0
then
eval "$(<$(eval echo ~"${dbus[0]}")/.dbus/session-bus/$(</var/lib/dbus/machine-id)-0)"
export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID DBUS_SESSION_BUS_WINDOWID
/bin/su --command=$'/usr/bin/notify-send -t 1000 down $\'interface '"${interface}"$'\'' "${dbus[0]}"
fi
if test "${#pulse[*]}" -ne 0
then
/bin/su --command=$'pactl play-sample sonar' "${pulse[0]}"
fi
fi