To dramatically improve the look of GNU emacs under X on Feisty, take a look here.
Sure beats building emacs from scratch with Xft support. And it seems that this is the way GNU emacs 23 will look too. (At least I certainly hope so).
Ever since installing Compiz Fusion, my fonts looked awful until I finally found this:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>
Save as “.fonts.conf” in your home directory and fonts will look much better.
(You may have to cleanup the < and > characters – escaped for html).
You can find the latest Ubuntu Gutsy netboot mini.iso here.
I had to hunt too long to find this (and I never seem to remember it) and I’m always trying to print strings that are too long and thus truncated, with the interesting parts appearing after the “…”
set print element 0
Not particularly intuitive.
Amazing the stuff you forget:
Many years ago, I knew there was a really easy way to detach and reattach sessions in Unix (HP-UX at the time). But in recent years with Linux, I’ve been using “screen” which was always overkill for simple job control.
While reacquainting myself with emacs, I found myself accidentally hitting ctrl-z and poof, to my horror, my edit session disappeared! But a ps showed emacs was still running. A bit of googling showed that emacs was indeed still alive and well and could be retrieved with fg followed by the job number. jobs -l displays a list of current background jobs.
For more, check out job control in man bash.
To run X client apps remotely on CentOS5 from your X server requires installation of a couple of small packages.
yum install xorg-x11-apps — installed with dependancies to get basic X11 client components. Also includes xeyes and xclock, useful for testing.
yum install xorg-x11-xauth — needed for ssh authentication.
ssh -X user@client
xclock
I don’t know what moron thought it would be a good idea to kill compiz/xgl on shift-backspace but I regularly hit this combination while editing code. Most uncool.
Add this to startcompiz to fix:
xmodmap -e “keycode 22 = BackSpace BackSpace Terminate_Server” &
See previous post for a complete sample startcompiz.
After messing around for a while, my startcompiz (actually startxgl) file looks like this:
#!/bin/sh
Xgl :1 -fullscreen -ac -dpi 96 -br -accel glx:pbuffer -accel xv:pbuffer &
sleep 4
export DISPLAY=:1compiz --replace &
gtk-window-decorator --replace &
xmodmap -e "keycode 22 = BackSpace BackSpace Terminate_Server" &
exec gnome-session
There are a couple of CompizFusion on Feisty recipes floating around but this is the best I’ve found. I also like that it uses the Gutsy repo instead of a 3rd party, since we’re all going to be using Gutsy sooner or later.
This works well on my ATI-based Thinkpad T60P. If you’re using nVidia look here.
Also check out the official Ubuntu community docs here.
How can I install the packages from the EPEL software repository?
There are repository rpm packages for RHEL4 and RHEL5. The repository package installs the repo details on your local system for yum or up2date to use. Then you can install packages with your usual method, and the EPEL repository is included.
su -c 'rpm -Uvh https://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm'
...
su -c 'yum -y install foo'
Recent Comments