cd //chrome/comm/content/communicator/
platformCommunicatorOverlay.xul
!-- quit --
section (should be near the top).
/menupopup
line, should be something
like key id="key_quit" ... command="&quitApplicationCmd.command;"
. Whatever the command="..."
section has, replace the command with
command="cmd_close"
. This will cause the Ctrl-Q command to close the
current tab (which is probably what you intended to do anyway).
xterm -fn courier
, and then hit
Shift-KPplus, only to find that a larger size of the fixed
font
greets your eyes? Lucky you: despite ZERO hits on google on this topic, the
topic of changing xterm fonts in Linux or other UNIX-like X-Windows based
operating systems, I found the answer for you.
xfontsel
and find the font you want to have used. Make sure
it is a fixed-width font, or else. (My recommendation is Terminus, a readily
available font in Linux.)
-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
-*-terminus-*-*-*-*-14-*-*-*-*-*-*-*
-*-terminus-bold-*-*-*-17-*-*-*-*-*-*-*
-*-terminus-bold-*-*-*-24-*-*-*-*-*-*-*
-*-terminus-bold-*-*-*-32-*-*-*-*-*-*-*
bold
weight to the larger fonts. I
found that it was easier to view that way. You will probably want to
experiment with these and some other font-spec settings.
xterm -font1 -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* -font2 -*-terminus-*-*-*-*-14-*-*-*-*-*-*-* -font -*-terminus-bold-*-*-*-17-*-*-*-*-*-*-* -font3 -*-terminus-bold-*-*-*-24-*-*-*-*-*-*-* -font4 -*-terminus-bold-*-*-*-32-*-*-*-*-*-*-*
-font
parameter is the default font displayed when xterm is run;
decreasing the font size simply switches to the -font2
font, then
-font1
, then -font4
, then -font3
and back to
-font
again.
xterm*font:
-*-terminus-bold-*-*-*-32-*-*-*-*-*-*-*
would probably produce the same
result as running xterm -font -*-terminus-bold-*-*-*-32-*-*-*-*-*-*-*
.
However, I have not personally tested this feature of X.
/etc/samba/smb.conf
)
[global] hosts deny = ALL hosts allow = 192.168.0. 127. interfaces = eth0 workgroup = MYWG server string = %h wins support = no name resolve order = host security = share encrypt passwords = false passdb backend = guest obey pam restrictions = yes guest account = root invalid users = nobody unix password sync = no pam password change = no load printers = no preserve case = yes short preserve case = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain master = no local master = yes preferred master = yes os level = 65 idmap uid = 1000-20000 idmap gid = 1000-20000 template shell = /bin/bash [nethome] comment = Network homes path = /home read only = no locking = yes public = no guest ok = yes
[nethome]
share is a simple share of /home, nothing else to it.
mount -t cifs //server/nethome /home -o guest,ro
. Likewise, this
entry in /etc/fstab
will mount the share at boot-time:
//server/nethome /home cifs guest,rw 0 0
noauto
can be added. In
fact, the rw
option is no CIFS- or Samba-specific.
mysql_install_db --ldata=/home/maitre/usr/sql --skip-name-resolve --user=maitre
/usr/local/libexec/mysqld --socket=/home/maitre/usr/sql.sock --bind=localhost --port=31337 --datadir=/home/maitre/usr/sql &
mysql --host=localhost --port=31337 --user=root
SET PASSWORD FOR root@localhost=PASSWORD('newpassword'); GRANT ALL PRIVILEGES ON *.* TO 'maitre'@'localhost' IDENTIFIED BY 'maitrepassword' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'maitre'@'%' IDENTIFIED BY 'maitrepassword' WITH GRANT OPTION;
~
home
alias will produce errors in the above commands -- you will need to use the
full path to your home directory. Other than that, you are good to go with
your new, home-brewed MySQL server.
You can hand-build a similar meta-package for any sort of similar dependency gap-filling. One caveat of the Debian equivs package though, is that it depends (ironically) on something that pulls in quite a large list of extras; I felt it wasn't worth installing on the server I needed it for, in the end I used a workstation. If you're in the same boat, save yourself those steps, and just download the file I compiled instead.apt-get install equivs cd /tmp cp /usr/share/doc/equivs/examples/mail-transport-agent.ctl . equivs-build mail-transport-agent.ctl dpkg -i /tmp/mta-local_1.0_all.deb
Note, the resulting list will include "base system" packages, so if you install the list on a pristine new system, you will still get a raft of "package already installed" errors. Fortunately, APT is not that picky ...comm -23 <(dpkg --get-selections | sed -n 's/\t\+install$//p') \ <(</var/lib/apt/extended_states \ awk -v RS= '/\nAuto-Installed: *1/{print$2}' |sort)
This command will disconnect the drive on ata bus number "n" (replace with the number for the bus you wish to interact with; typically bus "0" is the first, etc). A disconnected device should spin down, power off, and otherwise no longer be accessible to the system. Ready for hot-removal!echo x > /sys/bus/scsi/devices/n:0:0:0/delete
echo "0 0 0" >/sys/class/scsi_host/hostn/scan
Other (possibly useful) tidbits
- Using Disk Utility, prepare a USB disk by deleting everything on it and create an “Apple Partition Map”
- Restore the MacOSX image onto the USB thumbdrive
- Using Disk Utility, find out the partition on the USB key that holds the OS you want to restore (in my case : it was called
disk1s3
, the last figure holds the partition number thus : 3 )- Then you boot in the PowerBook OpenFirmware (the bootstrap that loads before MacOSX) by pressing the “Apple / Alt / O / F” keys at the same time right after you switch on the machine (before the chime sound)
- Type
dev / ls
and try to find something like/disk@1
next to an entry named USB (in my caseusb@1b,1
, the dev entry seems to correspond to the positional location of the USB port, e.g. "port 2" =usb2
)- Type
devalias
in the command prompt and locate the short name of the USB entry you just found usingdev / ls
(in my caseusb2
)- Make sure your USB key holds a file called “BootX” with the tbxi attribute by listing the directory. In the following command,
disk@1
should be replaced by what you found in Step 5, also every character is important (this includes colon, forward slash, etc.). Typedir shortname_found_in_step_6/disk@1:partition_number_found_in_step_3,\System\Library\CoreServices
(in my casedir usb2/disk@1:3,\System\Library\CoreServices
)- If BootX is found with an attribute called tbxi then you’re all set and you can instruct OpenFirmware to boot from the USB drive :
boot usb2/disk@1:3,\System\Library\CoreServices\BootX
- Hit enter and you should be booting from the USB drive. You can then install MacOSX as you would with a DVD.
- The DEVALIAS command lists aliases to otherwise complicated paths to hardware (harddisk, USB, Soundcard, etc.) or software places (bootstrap). It is the equivalent of the Environmental Variables in Windows
- tbxi is an alias to the binary boot loader. This very interesting article is a good primer on the Open Firmware : www.netneurotic.de/mac/openfirmware.html
- The default keyboard in Open Firmware is US so if using a swiss-french keyboard, remember that @ is shift-2, \ is the $ sign, / is the – key next to right shift, : is the é key (etc).