I figure that keyboard auto-repeat isn't always desirable.
Take a web browser for example. You press and hold the down button, and the page scrolls down, and then stops, and then starts again and continues scrolling until you lift the button.
It should be more like a video game: start scrolling down, smoothly, as soon as the key is depressed, and cease scrolling as soon as it is lifted.
In X11, the server sends events to programs - KeyPress and KeyRelease. If autorepeat is on many of these events are generated for one (physical) keypress. You can turn it off with "xset -r". I'd like to try only turning it on for the arrow keys, but there isn't an easy way to do this - you have to turn on autorepeat, and then turn it off for all keys except the ones you want to leave it on for.
Saturday, 22 March 2014
Friday, 1 November 2013
Notes on Slackware 14.0 upgrade
I upgraded from version 13.37 to 14.0 of Slackware, bringing me up-to-date. This time I used the slackpkg program, and it went quite smoothly. I followed the instructions at http://docs.slackware.com/howtos:slackware_admin:systemupgrade.
In short,
In short,
- Edit /etc/slackpkg/mirrors to add the address of a mirror of 14.0
- Blacklist kernel packages in /etc/slackpkg/blacklist
- Run "slackpkg update" to download new package list
- Then it was running "slackpkg upgrade slackpkg", "slackpkg upgrade glibc-solibs", "slackpkg install-new", and "slackpkg upgrade-all".
- "slackpkg clean-system" to delete old packages, making sure not to delete any packages I've installed separately from the Slackware distribution. This is done in conjunction with reading "CHANGES_AND_HINTS.TXT".
Then I needed to check new configuration files under /etc. "slackpkg new-config" can be used to move these files across. I needed to keep the Internet connection settings in /etc/rc.d/{rc.inet1.conf,rc.wireless.conf} and /etc/wpa_supplicant.conf. Also /etc/inittab for the behaviour of Ctrl+Alt+Del.
I downloaded and installed kernel packages manually and rerun lilo after adding lines to /etc/lilo.conf:
image = /boot/vmlinuz-huge-smp-3.2.29-smp
root = /dev/sda3
label = Linux_slack14
read-only
append = "acpi_osi=Linux"
The last line is needed on my craptop for the screen dimming keys to work.
I previously used ndiswrapper to get my wireless card to work, but I thought I would try the Linux drivers instead. I had several modules blacklisted in "/etc/modprobe.d/blacklist.conf", and running "modprobe b43" made the wlan0 interface show up. I've used wireless since then with few problems. [1]
Next steps are to carefully remove files in /etc/modprobe.d according to CHANGES_AND_HINTS.TXT, use the generic kernel with an initrd instead of the huge kernel, and look through old configuration files (saved as "*.orig") to see what has changed and if I want to keep anything else.
Biggest change has been the upgrade to fvwm 2.6.5. When I tried this before I would get random crashes, but I haven't had any so far.
[1] I don't know why I couldn't get this working before - I suspect it would have worked but I was doing something else wrong, e.g. with ifconfig, wpa_supplicant or dhcpcd. I spent so long trying to get wireless to work that I stopped playing with it as soon as I got it to work with ndiswrapper.
Wednesday, 14 August 2013
Notes on upgrade from Slackware 13.1 to 13.37
I recently upgraded from Slackware 13.1 to 13.37. 13.37 is not the latest version (14.0 is), but by only upgrading one release at a time I'm less likely to have problems.
I downloaded the files with
wget --no-parent -nH --cut-dirs=3 -r -nc (path)
I downloaded the files with
wget --no-parent -nH --cut-dirs=3 -r -nc (path)
Options mean
--no-parent - Don't download linked files above the directory in the given path
-nH - Don't create local directory called ftp.slackware.com etc.
--cut-dirs - Don't create local directories based on first 3 directories in path.
-nc - Don't download existing files - useful if wget is interrupted.
I had to download and compile the ndiswrapper Slackbuild. I had problems compiling it - I think I ought to have compiled it before installing all the new Slackware packages.
I found the screen went blank when I rebooted! It turned out that the brightness on my laptop screen was only turned down. (See http://www.linuxquestions.org/questions/slackware-14/black-screen-on-bootup-after-a-few-lines-slack-13-37-a-882680/page2.html.) I haven't fixed this yet; all I do is use the laptop function keys to turn the brightness up.)
The instructions for creating an initrd were unclear: I found I had to run
mkinitrd -c -k 2.6.37.6-smp -m ext3
(I was missing the "-smp" part.)
I had some problems with X11. My mouse pointer wouldn't move. I had to delete /etc/X11/xorg.conf. The keyboard was in US mode now, and I had to copy a keyboard layout file (90-keyboard-layout.conf) to /etc/X11/xorg.conf.d.
I found "xset m" would no longer set the pointer speed for my Synaptics touchpad. I had to use a program called "synclient" instead. I copied a settings file to "/etc/X11/xorg.conf.d/50-synaptics.conf". There was some subtle and annoying behaviour such as taps taking too long to be recognized and sometimes getting middle clicks, which I fixed with adding the following lines to 50-synaptics.conf:
Option "FastTaps" "on"
Option "MinSpeed" "0.5"
Option "MaxSpeed" "10"
Option "AccelFactor" "0.05"
Option "EmulateTwoFingerMinZ" "1000"
Option "EmulateTwoFingerMinW" "1000"
I had some broken behaviour with fvwm. Apparently Unicode locales are broken in versions (2.4.*) (even though it worked before.) It could have been something to do with the fonts changing as well.
The new version of Thunderbird would no longer highlight folders with new messages. I managed to get something acceptable by changing "~/.thunderbird/h0eadjtl.default/chrome/userChrome.css" to:
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true) {
color: red !important; }
Friday, 14 June 2013
crackxls 0.3 released
crackxls 0.3 has been released. Download it at https://github.com/GavinSmith0123/crackxls2003/tags. This version supports breaking encryption on Microsoft Word 97/2000/2002/2003 documents for the first time.
Windows users may just want to download "crackxls2003.exe" from https://github.com/GavinSmith0123/crackxls2003.
Windows users may just want to download "crackxls2003.exe" from https://github.com/GavinSmith0123/crackxls2003.
Sunday, 9 June 2013
crackxls2003 - Initial support for Microsoft Word
I've added initial support for scanning Microsoft Word files to the crackxls2003 program.
It is on the "msword" branch of the git repository, which is at https://github.com/GavinSmith0123/crackxls2003/tree/msword.
As with Excel files, it will only work for the RC4 method of decryption, which was used in Office XP and some earlier versions.
There is no support yet for decrypting Word documents, only scanning for their encryption keys. I haven't tried it, but it is likely that the trial version of "guaword" would be able to decrypt a file given the encryption key, as this was true for Excel files for "guaexcel", another program from the same developer.
Adding decryption support may not be that difficult, and I may manage it in the next week or so.
It is on the "msword" branch of the git repository, which is at https://github.com/GavinSmith0123/crackxls2003/tree/msword.
As with Excel files, it will only work for the RC4 method of decryption, which was used in Office XP and some earlier versions.
There is no support yet for decrypting Word documents, only scanning for their encryption keys. I haven't tried it, but it is likely that the trial version of "guaword" would be able to decrypt a file given the encryption key, as this was true for Excel files for "guaexcel", another program from the same developer.
Adding decryption support may not be that difficult, and I may manage it in the next week or so.
Yahoo! mail insecurities
Round about late 2011, I found that there had been log-ins to my Yahoo! mail account from foreign countries. Investigating, I found that they had logged in using some kind of mobile interface. I (thought I) disabled the mobile interface, as I read many reports of crackers getting into to people's email that way.
Today I logged in again and had a warning. Somebody had logged in a few days ago - again via Yahoo! mobile, which I thought I had disabled.
I had already been through all web services, etc., that I had registered with using my Yahoo! account, and changed them to another email account, on account of the last time it was cracked. For readers, I recommend doing this. Yahoo! mail is really not trustworthy.
However, for two or three web services I was unable to change the email address associated with it, so I didn't want anyone taking over the account. I also had a few emails I wanted to keep. So I didn't want to delete my account altogether.
What I did today was set up an account in Mozilla Thunderbird (an email reader) to retrieve all of my mail by POP, so it is stored locally but not accessible on the web interface. Now if anybody breaks in, they would have little information.
Today I logged in again and had a warning. Somebody had logged in a few days ago - again via Yahoo! mobile, which I thought I had disabled.
I had already been through all web services, etc., that I had registered with using my Yahoo! account, and changed them to another email account, on account of the last time it was cracked. For readers, I recommend doing this. Yahoo! mail is really not trustworthy.
However, for two or three web services I was unable to change the email address associated with it, so I didn't want anyone taking over the account. I also had a few emails I wanted to keep. So I didn't want to delete my account altogether.
What I did today was set up an account in Mozilla Thunderbird (an email reader) to retrieve all of my mail by POP, so it is stored locally but not accessible on the web interface. Now if anybody breaks in, they would have little information.
Saturday, 6 April 2013
crackxls2003 0.2 released
crackxls2003 0.2 has been released. It now has support for decrypting files once an encryption key is found, if it is compiled with the libgsf library.
You can download it at
https://github.com/GavinSmith0123/crackxls2003/tags
or for Windows users, you might want to just download "crackxls2003.exe" from
https://github.com/GavinSmith0123/crackxls2003.
You can download it at
https://github.com/GavinSmith0123/crackxls2003/tags
or for Windows users, you might want to just download "crackxls2003.exe" from
https://github.com/GavinSmith0123/crackxls2003.
Subscribe to:
Posts (Atom)