2009/06/18 от evugar
Script batch-deskew.scm:
(define (batch-deskew pattern)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
filename filename)))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-deskew-plugin 0 image drawable 0 0 0 0 0)
(gimp-image-flatten image)
(gimp-file-save RUN-NONINTERACTIVE
image (car (gimp-image-get-active-layer image)) filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
Invoking in Gimp->Filter-Script-Fu->Console:
(batch-deskew "c:\\staging\\mc_test\\*.tif")
Опубликовано в Uncategorized | Оставьте комментарий »
2009/04/30 от evugar
1) Copy /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi to /etc/hal/fdi/policy/
2) Add line between <device> </device>:
<merge key="input.xkb.layout" type="string">se</merge>
———
<deviceinfo version=»0.2″>
<device>
<match key=»info.capabilities» contains=»input.keyboard»>
- <!– If we’re using Linux, we use evdev by default (falling back to
- keyboard otherwise). –>
+ <!– If we’re using FreeBSD, we use kbd by default –>
<merge key=»input.x11_driver» type=»string»>kbd</merge>
<match key=»/org/freedesktop/Hal/devices/computer:system.kernel.name»
- string=»Linux»>
- <merge key=»input.x11_driver» type=»string»>evdev</merge>
+ string=»FreeBSD»>
+ <merge key=»input.xkb.layout» type=»string»>us,ru</merge>
+ <merge key=»input.xkb.variant» type=»string»>,winkeys</merge>
+ <merge key=»input.xkb.options» type=»string»>grp:ctrl_shift_toggle,grp_led:scroll,altwin:menu</merge>
</match>
</match>
</device>
Метки: linux, xorg
Опубликовано в Uncategorized | Оставьте комментарий »
2009/02/17 от evugar
Section «Monitor»
Option «CalcAlgorithm» «XServerPool»
DisplaySize 434 270
HorizSync 30-83
Identifier «Monitor[0]«
ModelName «LG ELECTRONICS L207W»
Option «DPMS»
Option «PreferredMode» «1680×1050″
VendorName «GSM»
VertRefresh 43-75
UseModes «Modes[0]«
EndSection
Section «Modes»
Identifier «Modes[0]«
Modeline «1680×1050″ 146 1680 1784 1960 2240 1050 1053 1059 1089 +hsync -vsync
EndSection
Section «Screen»
DefaultDepth 24
SubSection «Display»
Depth 15
Modes «1680×1050″ «1600×1024″ «1600×1000″ «1400×1050″ «1280×1024″ «1440×900″ «1280×960″ «1366×768″ «1280×800″ «1152×864″ «1280×768″ «1280×720″ «1024×768″ «1280×600″ «1024×600″ «800×600″ «768×576″ «640×480″
EndSubSection
SubSection «Display»
Depth 16
Modes «1680×1050″ «1600×1024″ «1600×1000″ «1400×1050″ «1280×1024″ «1440×900″ «1280×960″ «1366×768″ «1280×800″ «1152×864″ «1280×768″ «1280×720″ «1024×768″ «1280×600″ «1024×600″ «800×600″ «768×576″ «640×480″
EndSubSection
SubSection «Display»
Depth 24
Modes «1680×1050″ «1600×1024″ «1600×1000″ «1400×1050″ «1280×1024″ «1440×900″ «1280×960″ «1366×768″ «1280×800″ «1152×864″ «1280×768″ «1280×720″ «1024×768″ «1280×600″ «1024×600″ «800×600″ «768×576″ «640×480″
EndSubSection
SubSection «Display»
Depth 8
Modes «1680×1050″ «1600×1024″ «1600×1000″ «1400×1050″ «1280×1024″ «1440×900″ «1280×960″ «1366×768″ «1280×800″ «1152×864″ «1280×768″ «1280×720″ «1024×768″ «1280×600″ «1024×600″ «800×600″ «768×576″ «640×480″
EndSubSection
Device «Card0″
Identifier «Screen0″
Monitor «Monitor[0]«
EndSection
Метки: xorg
Опубликовано в Uncategorized | Оставьте комментарий »
2009/02/02 от evugar
In /etc/wpa_supplicant.conf:
network={
ssid=»yourSSID»
proto=WPA
key_mgmt=WPA-PSK
psk=»yourPASSWORD»
}
Run as root:
wpa_supplicant -i wlan0 -c/etc/wpa_supplicant.conf
pause 7-10 sec
dhclient wlan0
For running on boot, edit the file /etc/rc.local:
# Wireless
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
sleep 7
dhclient -nw wlan0
Метки: linux, wireless
Опубликовано в Uncategorized | Оставьте комментарий »
2009/01/30 от evugar
In ~/.mplayer/config
subfont-text-scale=3
Метки: mplayer
Опубликовано в Uncategorized | Оставьте комментарий »
2009/01/28 от evugar
In ~/.fluxbox/apps:
[group] (workspace)
[app] (xterm)
[end]
Метки: fluxbox, linux
Опубликовано в Uncategorized | Оставьте комментарий »
2009/01/28 от evugar
In rc.conf:
DAEMONS=(… ntpd)
In ntp.conf:
server ntp1.sp.se
tinker panic 0
Метки: archlinux, linux, ntpd
Опубликовано в Uncategorized | Оставьте комментарий »
2009/01/28 от evugar
In /etc/fstab:
/dev/sdb1 /mnt/win ntfs-3g defaults 0 0
Метки: archlinux, fstab, linux, ntfs, ntfs-3g
Опубликовано в Uncategorized | Оставьте комментарий »
2009/01/28 от evugar
In /usr/bin/xdg-open change:
generic)
open_generic «$url»
;;
to:
generic)
$url
# open_generic «$url»
;;
Метки: archlinux, linux, xdg
Опубликовано в Uncategorized | Оставьте комментарий »
2009/01/28 от evugar
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder57) Wed Jul 2 12:30:48 PDT 2008
Section «ServerLayout»
Identifier «X.org Configured»
Screen 0 «Screen0″ 0 0
InputDevice «Mouse0″ «CorePointer»
InputDevice «Keyboard0″ «CoreKeyboard»
EndSection
Section «Files»
RgbPath «/usr/share/X11/rgb»
ModulePath «/usr/lib/xorg/modules»
FontPath «/usr/share/fonts/misc»
FontPath «/usr/share/fonts/100dpi:unscaled»
FontPath «/usr/share/fonts/75dpi:unscaled»
FontPath «/usr/share/fonts/TTF»
FontPath «/usr/share/fonts/Type1″
EndSection
Section «Module»
Load «extmod»
Load «xtrap»
Load «dbe»
Load «record»
Load «glx»
Load «freetype»
EndSection
Section «InputDevice»
Identifier «Keyboard0″
Driver «kbd»
Option «XkbLayout» «se, ru»
Option «XkbModel» «pc105″
Option «XKbOptions» «grp:alt_shift_toggle»
Option «XkbVariant» «,phonetic»
EndSection
Section «InputDevice»
Identifier «Mouse0″
Driver «mouse»
Option «Protocol» «auto»
Option «Device» «/dev/input/mice»
Option «ZAxisMapping» «4 5 6 7″
EndSection
Section «Monitor»
Identifier «Monitor0″
VendorName «Monitor Vendor»
ModelName «Monitor Model»
# HorizSync 31.5 – 31.5
# VertRefresh 70.1 – 85
HorizSync 30 – 55.91
VertRefresh 60.6 – 75
EndSection
Section «Device»
Identifier «Card0″
Driver «nvidia»
VendorName «nVidia Corporation»
BoardName «NV17 [GeForce4 MX 440]«
EndSection
Section «Screen»
Identifier «Screen0″
Device «Card0″
Monitor «Monitor0″
DefaultDepth 16
SubSection «Display»
Viewport 0 0
Modes «1024×768″
EndSubSection
SubSection «Display»
Viewport 0 0
Depth 4
Modes «1024×768″
EndSubSection
SubSection «Display»
Viewport 0 0
Depth 8
Modes «1024×768″
EndSubSection
SubSection «Display»
Viewport 0 0
Depth 15
Modes «1024×768″
EndSubSection
SubSection «Display»
Viewport 0 0
Depth 16
Modes «1024×768″
EndSubSection
SubSection «Display»
Viewport 0 0
Depth 24
Modes «1024×768″
EndSubSection
EndSection
Метки: archlinux, linux, xorg
Опубликовано в Uncategorized | Оставьте комментарий »