Ubuntu Experiences Database

  • Top Posts

  • c

Archive for December 4th, 2006

Install rar support

Posted by maximillan on December 4, 2006

open up terminal

sudo apt-get install xarchiver

Download the latest rar http://files.rarlab.com/rar/rarlinux-3.6.0.tar.gz

Extract the contents.

sudo nautilus /usr/bin

Then copy the file “rar” to /usr/bin

you ONLY need that one file.

done!!

Posted in Howto, ubuntu | Leave a Comment »

Install fonts on Ubuntu

Posted by maximillan on December 4, 2006

Install fonts on Ubuntu

1. Installing fonts for single login use
 1a. using kfontview
 1b. by hand
2. Installing fonts for system wide use
3. Installing Microsoft Windows Fonts (eg. Times New Roman)

1. Installing fonts for single login use

1a. using kfontview
The easiest way to install fonts is using kfontview. Try running “kfontview” from the command line.
If you do not have kfontview installed, as root run:

# apt-get install kcontrol

This will download a few dependencies, so if you are short on disk space or simply do not want to install KDE, use the instructions in step 1b

Run “kfontview” from the command line
From the kfontview window, open the font you have downloaded.
Click on the “Install” button
NOTICE: You will probably need to resize the window to see the “Install” button which is in the lower right hand corner.
Click on the “Personal” button

1b. by hand
If ~/.fonts does not exist, create it:

$ mkdir ~/.fonts


Copy the font, from the command line, run the following:

$ cp [fontfile] ~/.fonts


From the command line, run the following:


$ fc-cache -f -v ~/.fonts


or alternatively, log out, and log back in.


2. Installing for system wide use
Make the following directory as root:

# mkdir /usr/share/fonts/truetype/myfonts

Copy the font(s) into the newly created directory:

# cp [fonts] /usr/share/fonts/truetype/myfonts


Run the following:

# fc-cache -f -v


3. Installing Windows Fonts (eg. Times New Roman)

Make sure you have the “universe” repository added. If not, as root, modify your /etc/apt/sources.list and uncomment the deb line which will look something like this:

# deb http://us.archive.ubuntu.com/ubuntu dapper universe


Then update apt-get:

# apt-get update


Run the following as root:

# apt-get install msttcorefonts

Tested under Ubuntu Dapper.

taken from: link

Posted in Howto, ubuntu | Leave a Comment »

Mac-style Menu Bar for GTK and Java/Swing applications

Posted by maximillan on December 4, 2006

hacked gtk2 to use mac-style menubars, and added panel applets for xfce (4.4+) and gnome.

GTK Patches: for gtk 2.10.x | 2.8.x | AUR

GNOME Panel Applet: see post http://ubuntuforums.org/showpost.php?p=1593123
Xfce Panel Applet (xfce 4.4): see post http://ubuntuforums.org/showpost.php?p=1586951 (need libwnck>=2.16)

Ubuntu Edgy Packages #1: Cwiiis’s http://chrislord.net/files/gtkmenubar/
Ubuntu Edgy Packages #2: flargen’s, see post http://ubuntuforums.org/showpost.php?p=1600937

Gentoo Packages: see post http://ubuntuforums.org/showpost.php?p=1672912
Lunar Linux Packages: see post http://ubuntuforums.org/showpost.php?p=1612710
Official Arch Linux packages (.tar.gz format): http://aquila.deus.googlepages.com/archlinuxpackages
(names are gtk2-aqd, gnome-macmenu-applet, xfce4-macmenu-plugin and xfce4-corner-plugin)

Screenshots (official):


Screenshots from zammi (left 2) and Cimi86 (right 1):

Environment variable GTK_MENUBAR_NO_MAC let you set a list app executable names to disable mac menubar for, separated by space (default "gnome-panel acroread"). Set it to 1 to completely disable mac menubar.

If you have KDE apps, set mac-style menubar [control center -> desktop -> behavior] and you will see it appearing in gnome or xfce panel applet. (be careful – the menubars will die when panel/applet quits)

To move/remove the panel applets, move mouse to the rightmost place, where you’ll see a flat button with no text inside, left-click on it to bring up the applet menu (right-click in xfce’s panel plugin). If you have turned on the title label, you can also get the menu by right-click on it.

Application compatibility:
- Perfect: Azuerus, Eclipse, Epiphany, Evince, Gaim, gFTP, GMPC, Listen, Nautilus, Terminal, Thunar, VMware, …
- Small problems: Bluefish, Evolution

- Big problems (need patch): all wxGTK-based programs, you would need my patches in here
- Crash: Acrobat Reader 7 (mac menubar disabled by default)

All the Alt+[A-Z] menu hotkeys cannot work with mac menubar – no fix yet.

To patch gtk2 manually:
0.Get gtk2 source
1.cd …../…./gtk+-2.10.X (X means the version number)
2.patch -p0 < ……./…./gtkmenubar.diff (gtkmenubar-2.8.diff)

3.configure and make & install

To build the panel applets:
0.Go to AUR entries: Xfce | GNOME
1.Download the files under "Source" box

2.See PKGBUILD for gcc arguments and install locations

My modifed GT4_white theme (gtk2, metacity, xfce) => http://www.deviantart.com/deviation/40625220/

For other themes, you can make the menubar thin (more accessible) by edit the /usr/share/themes/THEME_NAME/gtk-2.0/gtkrc, find the line style "menubar" {, and change the ythickness = XXX below it (inside the { and }) to ythickness = 0

taken from: link

Posted in Eye-candy, ubuntu | 2 Comments »