keyhell
FreeBSD good advices: sysctl hw.ata.wc=1 I have FreeBSD 6.1 on my HP/Compaq nx9030 laptop. I've copied FreeBSD 6.1 iso file from one partition to another two times: 0 : time shown 175 s, mc - 2.74 Mb/s 1 : time shown 375 s, mc - 5,51 Mb/s Please, read ata(4) [http://www.FreeBSD.org/cgi/man.cgi?query=ata&sektion=4] and tuning (7) for details. This option may be dangerous. This options should be set before kernel start, i.e. use /boot/loader.conf kern.corefile=/var/tmp/%N.core kern.sugid_coredump=1 The first one controls the name of the file. %N is the process name, also available options are %P - PID, %U - UID. FreeBSD traditionally uses %N.core by default. Second one says that a process that changes user or group credentials whether real or effective should create a corefile. By default it will not. Just put this to /etc/sysctl.conf FreeBSD autologin How to make some user login automatically? Add to the /etc/gettytab file the following strings: test:\ :al=test:ht:np:sp#115200: test:\ - entry name, autologin will use this username; al=test - autologin username; ht - terminal has real tabs; np - 8-bit chars; (optional) sp#115200 - line speed; Edit /etc/ttys file: ttyv0 "/usr/libexec/getty test" cons25 on secure Usual Pc changed with test . DCOP ksnapshot My aim is to take screenshot of a selected region. I'm using ksnapshot which is a part of kdegraphics port, but ksnapshot is too interactive for me ;) I'd like to have the following steps: hotkey -> region selection -> save dialog -> quit After a few minutes I found the following way: Start ksnapshot using dcopstart: # setenv pid `dcopstart ksnapshot` Send signals using dcop: Asks ksnapshot to set the grab mode to "Region": # dcop $pid interface setGrabMode 2 Start selection of a region: # dcop $pid interface slotGrab Save file dialog: # dcop $pid interface slotSaveAs Quit: # dcop $pid interface exit It's easy to make simple script. prev home next articles main ports article Feel free to contact, e-mail < keyhell@keyhell.org >