\cat etc
tips/i915-fix.diff from http://slack.isper.sk/pub/misc/i915-fix.diff
More discussion: intel 945 + current = blank screen
L3390 localhost:3389 R3390 localhost:3389
CTRL-ALT-END (CTRL-ALT-DEL for remote sessions) followed by ESC
When I set up my home network with DHCP and DNS services using dnsmasq, Windows 7 was not able to ping unqualified hostnames that dnsmasq defines while Linux machines successfully resolved and pinged those hostnames. Windows 7 by default adds the primary/connection-specific DNS suffix to unqualified hostnames, but, in my case, there is no DNS suffix defined for my LAN.
Windows XP Home edition uses the Simple File Sharing, which allows anybody who can see the computer to access shared folders and files via the Guest account because this account is not allowed to have a password by default. Even if the Guest account is turned off, this account is used for file sharing in the background. Because this behavior causes severe security problems, we need to assign a password to Guest. In the command prompt,
net user guest "password"
For security reasons, we may want to turn on the firewall in Windows XP Home edition. However, this prevent file sharing too. The IP address and TCP port for file sharing are 127.0.0.1 and 445, respectively. You can add this service in Network Connections->Local Area Connection->Properties->Advanced->Settings.
Referenced in Figures { QUOTE { REF _Ref111111 \h } \* "Arabic" } to { QUOTE { REF _Ref22222 \h } \* "Arabic" }
To create a new field, select "Figure *" and press Ctrl+F9.
Go to \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout and create a binary entry Scancode Map with the value of 00000000 00000000 03000000 3A001D00 1D003A00 00000000.
Brother does not support FreeBSD, but the driver for Linux works well. It's even faster than CUPS with BR5170_2_GPL.ppd.gz. Actually, I had a problem with the PostScript emulation built in the printer. Whenever I submitted multiple print jobs successively using CUPS, the printer failed to print out the second job. This forced me to submit one job at a time and it was really annoying, so I decided to try the Linux driver and it did work!
This package is a slightly modified version of hl5170dnlpr-1.1.2-1.i386.rpm to make it run under FreeBSD. You may want to install some Linux compatibility ports to use this driver.
dbf has the bug that puts garbage values in place of double precision numbers. This patch fixes the bug.
This method only works with the raw format image.
mdconfig -a -t vnode -f image_file -u 0 mount -t msdos /dev/md0 ~/mnt
Get your job done and unmount it.
umount ~/mnt mdconfig -d -u 0
It would be great if we can share printers with a guest OS running on QEMU. For this, Samba needs to be configured to support printing. However, the current smb.conf created by QEMU doesn't have any printer specific variables. The above patch adds the -smb-conf option to append a user configuration file to the smb.conf so that the user can easily add various settings, especially printer, to the Samba server.
If you use the BSD style printing system, create ~/.qemu/smb.conf as follows:
[global] printing = bsd printcap name = /etc/printcap # REPLACE 'user' WITH YOUR USER ID ON UNIX print command = /home/user/bin/smbprint %p %s guest account = user [printers] path = /var/spool/samba printable = yes writeable = no guest ok = yes use client driver = yes
Now, run qemu with "-smb-conf ~/.qemu/smb.conf" option and add a network printer, "\\smbserver\lp", with any HP PostScript printer driver (e.g., HP LaserJet 6P/6MP PostScript). Your default printer on UNIX, lp, must be a PostScript printer or configured with a magic filter like apsfilter, which converts PostScript to a language that your printer understands. I'll leave it to you to add more variables like "lpq command" or "lprm command".
/home/user/bin/smbprint looks like the following:
#!/bin/sh dev=/dev/ulpt0 ps=$HOME/qemu/lp/`date +%Y-%m-%d_%H:%M:%S`.ps p=$1 s=$2 pjl_to_ps() { grep -v "@PJL\|ProductName" $1 } if [ -e $dev ] then pjl_to_ps $s | lpr -r -P$p - else pjl_to_ps $s > $ps fi rm -f $s
If a USB printer is attached, print the document. Otherwise, save it as a PS file in $HOME/qemu/lp. Using ps2pdf, you can export any file to PDF. Isn't it great?
This patch also enables MS-Windows key and menu key.
With this patch, QEMU will compile on FreeBSD.
tips/evilwm-0.99.23.patch tips/evilwm-0.99.18.patch
Not in cycle: I use evilwm as a window manager. It's sometimes useful to put various WindowMaker dock applications somewhere in the screen. However, in that case, I should go through all the docks when switching between windows, which is not intended. Here, my patch adds the -nc (not in cycle) option to exclude specified applications from the Alt+Tab cycle. Usage is like the following:
evilwm -app wmbiff/wmbiff -v 0 -g 64x64-0+0 -nc
Then you will skip wmbiff when switching between windows.
Hide window: press Ctrl+Alt+O for hide, Ctrl+Alt+P for unhide, and Ctrl+Alt+Backslash to switch between hidden windows.
Resize window: Ctrl+Alt+arrow keys
Virtual desk: Ctrl+Alt+Comma for previous desk and Ctrl+Alt+Period for next desk
Lower window: Ctrl+Alt+9
Raise window: Ctrl+Alt+0
Maximize window: Ctrl+Alt+Equals
Maximize window vertically: Ctrl+Alt+Minus
g<ctrl-g>
vimspell (an on-the-fly spell checker for vim) has a bug with unicode encodings. The cursor moves two characters right when you insert <Space> within a word. This patch fixes the bug.
mlterm does not differentiate between shifted and non-shifted function keys. This causes problems in Vim when using some combinations of keystrokes such as <S-F5>. I patched the mlterm-2.9.2.tar.gz source code. If you use FreeBSD, you can compile yourself in /usr/ports/x11/mlterm: run "EXTRA_PATCHES=/tmp/patch-xwindow:x_screen.c make install clean".
mlterm supports UTF-8 Hangul input with unicode fonts. Download and install the Baekmuk font using tips/install-baekmuk.sh: run "./install-baekmuk.sh /usr/X11R6/lib/X11/fonts/local" in the same directory where the font files reside. Now, create your ~/.mlterm/font file:
ISO10646_UCS4_1_BIWIDTH = -misc-gulim-medium-r-normal-ko-12-120-75-75-c-120-iso10646-1 ISO10646_UCS4_1 = -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
http://lists.freebsd.org/pipermail/freebsd-bugs/2004-December/010970.html
The sound card has implemented AC97 EAPD in an inverted sense.
openssl s_client -connect mail.mac.com:993 -showcerts
I tried many times to set up ssmtp to send mails through the Gmail SMTP server. It sometimes worked, but mostly not, so I decided to change it to msmtp and it was easy to configure with mutt as "m" in msmtp stands for "m"utt.
Don't forget to change the permission of ~/.msmtprc to 600 because the file contains passwords for your accounts.
~/.msmtprc
account USER from USER@gmail.com host smtp.gmail.com port 587 tls user USER password USERPASSWORD account USER2 from USER2@gmail.com host smtp.gmail.com port 587 tls user USER2 password USER2PASSWORD
~/.mutt/USERrc
set sendmail='/usr/local/bin/msmtp -a USER' source ~/.mutt/muttrc source ~/.mutt/USER_aliases set from='USER <USER@gmail.com>' set spoolfile=/var/spool/mail/USER set mbox=+USER set record=+USER set postponed=+USER_postponed
~/.mutt/USER2rc
set sendmail='/usr/local/bin/msmtp -a USER2' source ~/.mutt/muttrc source ~/.mutt/USER2_aliases set from='USER2 <USER2@gmail.com>' set spoolfile=/var/spool/mail/USER2 set mbox=+USER2 set record=+USER2 set postponed=+USER2_postponed
Recently, Google started POP3 service for Gmail, so I tried many times to set up fetchmail without success. The reason was simple. Gmail POP3 does not support LAST/TOP commands, which fetchmail uses by default. TOP is optional in POP3 specification, but fetchmail sends the command to retrieve each message. To work around this problem, RETR should be used instead of TOP. RETR is used when fetchall option is given, which means that it retrieves all messages and deletes them on a remote server. Fortunately, Gmail provides the "keep Gmail's copy in the Inbox" feature to prevent fetchmail from flushing retrieved messages.
Multiple accounts can be configured, but messages from all accounts are saved in one spool file by default. It is sometimes useful but can be annoying because it eventually means that I have only one email account regardless of how many Gmail IDs I have. I played with procmail and fetchmail options with no luck. Finally, I added a dummy user in /etc/passwd by copying a real one and modifying ID and it worked! Now, I can access each spool file by "mutt -F ~/.mutt/USERrc" and "mutt -F ~/.mutt/USER2rc."
~/.fetchmailrc
set logfile "/var/log/fetchmail.log" set postmaster "USER" set bouncemail set no spambounce set properties "" set daemon 60 poll pop.gmail.com via pop.gmail.com protocol pop3 user 'USER' there with password 'PASSWORD' is 'USER' here ssl fetchall poll pop.gmail.com via pop.gmail.com protocol pop3 user 'USER2' there with password 'PASSWORD2' is 'USER2' here ssl fetchall
/etc/passwd
... USER:*:1001:1001:USER:/home/USER:/bin/sh USER2:*:1001:1001:USER:/nonexistent:/usr/sbin/nologin ...
~/.mutt/USERrc
source ~/.mutt/muttrc source ~/.mutt/USER_aliases set from='USER <USER@gmail.com>' set spoolfile=/var/spool/mail/USER set mbox=+USER set record=+USER set postponed=+USER_postponed
~/.mutt/USER2rc
source ~/.mutt/muttrc source ~/.mutt/USER2_aliases set from='USER2 <USER2@gmail.com>' set spoolfile=/var/spool/mail/USER2 set mbox=+USER2 set record=+USER2 set postponed=+USER2_postponed
~/.mutt/muttrc
set folder=~/mail set sort=reverse-threads set strict_threads=yes set mail_check=60 set timeout=60 set beep_new=yes set move=ask-yes set thorough_search=yes set send_charset=us-ascii:iso-8859-1:euc-kr:utf-8 set charset=euc-kr charset-hook ks_c_5601-1987 euc-kr auto_view text/html ignore * unignore from: date: subject: to: cc:
It's not compliant with XHTML 1.1 to put a <link> tag in the body, so changing stylesheet requires some javascripting.
<script type="text/javascript"> //<![CDATA[ var link = document.getElementsByTagName('link'); for(var i=0; i<link.length; i++) link[i].setAttribute('href', 'http://alternative.css'); //]]> </script>
When a cursor moves in mutt, inversed background and foreground colors get broken. Add the following to ~/.Xdefaults:
hanterm*termName: vt100 hanterm*background: black hanterm*foreground: white hanterm*vt100*colorBDMode: on hanterm*vt100*boldMode: off hanterm*vt100*colorULMode: on hanterm*vt100*underLine: off hanterm*vt100*color0: black hanterm*vt100*color1: red3 hanterm*vt100*color2: green3 hanterm*vt100*color3: yellow3 hanterm*vt100*color4: blue3 hanterm*vt100*color5: magenta3 hanterm*vt100*color6: cyan3 hanterm*vt100*color7: gray90 hanterm*vt100*color8: gray30 hanterm*vt100*color9: red hanterm*vt100*color10: green hanterm*vt100*color11: yellow hanterm*vt100*color12: blue hanterm*vt100*color13: magenta hanterm*vt100*color14: cyan hanterm*vt100*color15: white hanterm*vt100*colorBD: cyan hanterm*vt100*colorUL: yellow
The <f1> key binding doesn't work with xterm if TERM is set to "xterm," which is the default value. In this case, run mutt like the following:
TERM=xterm-vt220 mutt
Mutt includes code supporting UTF-8 charset. However, it requires external libraries like ncurses or slang. Recent version of ncurses allows input/output wide characters with the wide character version of the library, libncurses*w. Unfortunately, both the system ncurses and the default port don't compile with this feature. To compile ncursesw libraries, add --enable-widec flag to CONFIGURE_ARGS variable in /usr/port/devel/ncurses/Makefile:
CONFIGURE_ARGS= --datadir=${PREFIX}/share/misc --disable-overwrite \ --disable-termcap --includedir=${PREFIX}/include/ncurses \ --with-profile --with-shared --without-debug \ --without-curses-h --with-termlib --program-prefix= \ --enable-safe-sprintf --disable-root-environ --enable-widec
and run the following:
cd /usr/port/devel/ncurses make install clean cd /usr/port/mail/mutt WITH_NCURSES_PORT=yes make install clean
The UTF-8 feature should be enabled in xterm. Add the following line to ~/.Xdefaults:
xterm*utf8: 1
Now, configure mutt to use UTF-8 charset in ~/.mutt/muttrc:
set charset=utf-8
~/.mutt/muttrc
# decode mails before searching # e.g., base64 encoded body set thorough_search=yes # view a text/html attachment as a body so that mutt can search the body # e.g., quoted-printale encoded text/html attachment auto_view text/html
Go to about:config and set browser.cache.check_doc_frequency to 1.
Go to about:config and set ui.key.contentAccess to 4.
None of the following extensions were created by me:
tips/sage-1.3.6-fx+mz_geni.xpi
Sage fails to check updates even if some links are actually modified because it checks not only the last modified times of articles but also the signatures of their titles. It is sometimes needed or useful to keep the title of an article when the content is updated. This slightly modified version of Sage does not check signatures.
http://www.calmar.ws/firefox/index.php
user_pref("keyconfig.main.addBookmarkAsKb", "shift][B]["); user_pref("keyconfig.main.focusURLBar", "shift][O]["); user_pref("keyconfig.main.focusURLBar2", "control][O]["); user_pref("keyconfig.main.goBackKb", "][,]["); user_pref("keyconfig.main.goForwardKb", "][.]["); user_pref("keyconfig.main.goHome", "][A]["); user_pref("keyconfig.main.key_find", "][/]["); user_pref("keyconfig.main.key_findAgain", "][N]["); user_pref("keyconfig.main.key_findPrevious", "shift][N]["); user_pref("keyconfig.main.key_fullScreen", "][F]["); user_pref("keyconfig.main.key_gotoHistory", "shift][H]["); user_pref("keyconfig.main.key_openDownloads", "][D]["); user_pref("keyconfig.main.key_reload", "][R]["); user_pref("keyconfig.main.key_search2", "][O]["); user_pref("keyconfig.main.key_viewInfo", "][I]["); user_pref("keyconfig.main.key_viewSource", "][S]["); user_pref("keyconfig.main.viewBookmarksSidebarKb", "][B]["); user_pref("keyconfig.main.xxx_key36_cmd_findAgain", "][N]["); user_pref("keyconfig.main.xxx_key37_cmd_findPrevious", "shift][N]["); user_pref("keyconfig.main.xxx_key_PageUp", "][U][][goDoCommand('cmd_scrollPageUp');"); user_pref("keyconfig.main.xxx_key_ScrollBottom", "shift][G][][goDoCommand('cmd_scrollBottom');"); user_pref("keyconfig.main.xxx_key_ScrollLeft", "][H][][goDoCommand('cmd_scrollLeft');"); user_pref("keyconfig.main.xxx_key_ScrollLineDown", "][J][][goDoCommand('cmd_scrollLineDown');"); user_pref("keyconfig.main.xxx_key_ScrollLineUp", "][K][][goDoCommand('cmd_scrollLineUp');"); user_pref("keyconfig.main.xxx_key_ScrollPageDown", "][ ][][goDoCommand('cmd_scrollPageDown');"); user_pref("keyconfig.main.xxx_key_ScrollRight", "][L][][goDoCommand('cmd_scrollRight');"); user_pref("keyconfig.main.xxx_key_ScrollTop", "][G][][goDoCommand('cmd_scrollTop');"); user_pref("keyconfig.main.xxx_key_findTypeLinks", "][;][][goDoCommand('cmd_findTypeLinks');");
user_pref("mozex.general.tmpdir", "c:\\temp"); user_pref("mozex.command.download", ""); // here specify your favorite editor user_pref("mozex.command.textarea", "c:\\progra~1\\vim\\vim62\\gvim.exe %t"); user_pref("mozex.command.source", "c:\\progra~1\\vim\\vim62\\gvim.exe %t"); user_pref("mozex.command.irc", ""); user_pref("mozex.command.ftp", ""); user_pref("mozex.command.aim", ""); user_pref("mozex.command.ed2k", ""); user_pref("mozex.command.telnet", ""); user_pref("mozex.command.news", ""); user_pref("mozex.command.mailer", ""); user_pref("mozex.intercept.mailto", false); user_pref("mozex.intercept.news", false); user_pref("mozex.intercept.ftp", false); user_pref("mozex.intercept.irc", false); user_pref("mozex.universal.schemes", ""); user_pref("mozex.universal.command", "");