In /etc/X11/XF86Config-4 or /etc/X11/xorg.conf (depends on which Xserver you are using) add an XkbOptions line into the InputDevice section which defines you keyboard:
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
.
.
.
Option "XkbOptions" "altwin:left_meta_win"
EndSection
The altwin:left_meta_win keeps the functionality of the AltGr key intact (used on german keyboards for things like |, the euro symbol, the @ and so on). If you don't have an AltGr key you can also use altwin:meta_win.
In /etc/X11/XF86Config-4 or /etc/X11/xorg.conf (depends on which Xserver you are using) set HWCursor to Off in your Device section:
Section "Device" Identifier "NVIDIA GeForce 6600 GT" Driver "nvidia" Option "HWCursor" "Off" EndSection
Install the Extended Preferences Plugin and use it to adjust the font sizes according to your wishes.
sh NVIDIA-Linux-xyz-pkg1.run --uninstall
apt-get install ethtool)ethtool -s eth0 autoneg onethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 24 Transceiver: internal Auto-negotiation: on Current message level: 0x00000001 (1) Link detected: yes
In my case the clone would have been an A4tech WOP-35 Optical Mouse1). Additionally to the normal two buttons it comes with two side buttons (one on the left and one on the right side of the mouse), two wheels and a middle button (which would be one of the wheels). I don't use the second wheel (any more), but I set up the side buttons to function as forward/backward keys in Firefox.
Configuration see here.
First, in /etc/X11/XF86Config-4 or /etc/X11/xorg.conf (depends on used xserver) we need to configure the mouse as one with seven buttons, as the scrollwheel acts as three (up, down, middle mouse button). The two “buttons” representing the scrollwheel are number 6 and 7. The protocol needed is ExplorerPS/2. The InputDevice Section should therefore looks like this
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
In order to be able to use the wheel you need to remap the button order with xmodmap -e “pointer = 1 2 3 6 7 4 5 8 9 10 11”
The behaviour of the two thumbbuttons are defined using imwheel (apt-get install imwheel). I made them act as forward/backward buttons in Firefox. Create ~/.imwheelrc like this:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
See man imwheel for more info what that little tool can do for you.
The xmodmap and imwheel commands need to be issued every time you want to use the mouse as described, so adding two lines to your .xinitrc or .xsession would be a good idea:
xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 10 11" & imwheel -k -b "8 9" &
The buttons used for changing the resolution don't need help from the softwareside to work.
Enable the following options in your kernel-config:
CONFIG_SCSI=m)CONFIG_BLK_DEV_SD=m)CONFIG_SCSI_MULTI_LUN=y)
Compile and install the new modules. After a reconnect of the cardreader you should be able to mount media inserted into it, hotplug should make sure of loading the essential modules. Note that the media will be found under /dev/sda, /dev/sdb and so on.
In order to have the firmware loaded automatically into the LaserJet on establishing an USB connection to the pc, you need to stick to the following steps:
apt-get install foo2zjswget http://foo2zjs.rkkda.com/foo2zjs.tar.gz && tar xvfz foo2zjs.tar.gz && cd foo2zjsmakemake install-hotplugcp usb_printerid /usr/bin./getweb lj1000cp sihp1000.img /usr/share/foo2zjs/firmware/sihp1000.dl/etc/hotplug/usb/hplj1000, replace # # Set $DEV to, e.g. /dev/usb/lp0, to force the device you want # Else, leave it null to automatically detect the device # DEV=/dev/usb/lp0 DEV=""
with
# # Set $DEV to, e.g. /dev/usb/lp0, to force the device you want # Else, leave it null to automatically detect the device # DEV=/dev/usb/lp0 #DEV=""
See also: HP LaserJet 1000 at LinuxPrinting.org
For a description of how to get this printer working with OpenWRT, take a look here.
We were tired of the brute force attempts on the local linux router - do you know how annoying it is to see the log getting spammed by script kiddie attempts at breaking into your box? Any interesting messages get simply overrun by “Illegal user 'admin'” messages. The solution: Portknocking using knockd.
apt-get install knockdiptables -A INPUT -j ACCEPT -p tcp --syn --dport 22 -s $LOCALSUBNET iptables -A INPUT -j DROP -p tcp --syn --dport 22 -s 0/0
/etc/defaults/knockd: # control if we start knockd at init or not # 1 = start # anything else = don't start START_KNOCKD=1 # command line options KNOCKD_OPTS="-i ppp0"
/etc/knockd.conf: [openSSH]
sequence = 7000,8000,9000
seq_timeout = 5
start_command = /sbin/iptables -I INPUT -s %IP% -p tcp --syn --dport 22 -j ACCEPT
cmd_timeout = 30
stop_command = /sbin/iptables -D INPUT -s %IP% -p tcp --syn --dport 22 -j ACCEPT
tcpflags = syn
The portknocking sequence should be adjusted of course, the one used above is just the default entry in a fresh installation of knockd.
After a successfull portknock (use nmap or knock for this) the rule opens the possibility of a connection initialisation with the sshd for 30 seconds, and after this time removes the hole in the firewalling rules again. Simple yet effective.
There is a weird issue with current releases (read: 0.9.7) of the Beep Media Player: If you have an Alsa configuration using dmix it can happen that bmp stops playing due to some tiny load, as in switching the workspace, opening a program, … you get the pattern. Here I found the description of a workaround for this problem, which I realised on my Debian box as follows:
bmp-crossfade_0.2.0-1_i386.deb from http://www.phys.ethz.ch/~mweyland/debian/bmp-plugins and install it: dpkg -i bmp-crossfade_0.2.0-1_i386.deb
You should be set.
As there does not exist a native bmp plugin for supporting the playback of flac files2), one has to use the xmms-flac plugin in order to listen to flac files with bmp. The following steps were extracted from this site about installing Debian Sarge on a HP Omnibook XE4500 and worked perfectly for me:
apt-get install xmms-flac~/.bmp/plugin/Input folder, make symlinks to the xmms-flac plugin: ln -s /usr/lib/xmms/Input/libxmms-flac.la && ln -s /usr/lib/xmms/Input/libxmms-flac.so
Just set the x-www-browser alternative into manual mode and select firefox as browser of choice. Instant success.
update-alternatives –display x-www-browser x-www-browser - status is auto. link currently points to /usr/bin/konqueror /usr/bin/mozilla - priority 80 slave x-www-browser.1.gz: /usr/share/man/man1/mozilla.1.gz /usr/bin/epiphany - priority 85 slave x-www-browser.1.gz: /usr/share/man/man1/epiphany.1.gz /usr/bin/konqueror - priority 100 /usr/bin/mozilla-firefox - priority 70 slave x-www-browser.1.gz: /usr/share/man/man1/mozilla-firefox.1.gz Current `best' version is /usr/bin/konqueror.
update-alternatives –config x-www-browser There are 4 alternatives which provide `x-www-browser'.
Selection Alternative
-----------------------------------------------
1 /usr/bin/mozilla
2 /usr/bin/epiphany
*+ 3 /usr/bin/konqueror
4 /usr/bin/mozilla-firefox
Press enter to keep the default[*], or type selection number: 4
Using `/usr/bin/mozilla-firefox' to provide `x-www-browser'.
update-alternatives –install linkplace linkname linktarget prorityupdate-alternatives –install /usr/bin/java java /usr/local/java/bin/java 100apt-get install xfonts-kappa20 ttf-kochi-mincho ttf-sazanami-mincho
When receiving this error, add the following line to your /etc/apache2/apache2.conf:
ServerName localhost
Of course you can use any other name associated with the machine running the apache.
A apt-get install msttcorefonts should help.