Topic: Netwmpager How-to
Netwmpager is a pager small and easily configured but not very documented.
For those who are not familiar with installing applications from source. The three commands we are going to use.
* You run configure (you usually have to type ./configure as most people don't have the current directory in their search path). This builds a new Makefile.
* Type make This builds the program. That is, make would be executed, it would look for the first target in Makefile and do what the instructions said. The expected end result would be to build an executable program.
* Now, as root, type make install. This again invokes make, make finds the target install in Makefile and files the directions to install the program.
- from: http://tldp.org/LDP/LG/current/smith.html
1) Downloading and extracting
Here is where you get the Netwmpager: http://ftp.osuosl.org/pub/gentoo/distfi 11.tar.bz2
Note: you need libxft-dev.
I download everything first in my downloads folder:
$ cd ~/downloads
$ wget http://ftp.osuosl.org/pub/gentoo/distfiles/netwmpager-1.11.tar.bz2
$ tar -xvf netwmpager-1.11.tar.bz2After extracting ($ tar -xvf netwmpager-1.11.tar.bz2) go to "netwmpager-1.11" folder.
$ cd netwmpager-1.112) Installing
Now you're in netwmpager-1.11 folder and we can start actual installing.
$ ./configureAnd result should be something like this:
xxx@xxx:~/downloads/netwmpager-1.11$ ./configure
checking for program gcc... /usr/bin/gcc
checking for CC flag -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wundef -Wmissing-prototypes -Wredundant-decls... yes
checking for CC flag -Wdeclaration-after-statement... yes
checking for CC flag -Wold-style-definition... yes
checking for CC flag -Wno-pointer-sign... yes
checking if CC can generate dependency information... yes
checking for program pkg-config... /usr/bin/pkg-config
checking xft (pkg-config)... yes
checking CFLAGS for xft... -I/usr/include/freetype2
checking LIBS for xft... -lXft
creating config.mk
Compiler Settings:
CC: gcc
LD: gcc
CFLAGS: -O2 -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wundef -Wmissing-prototypes -Wredundant-decls -Wdeclaration-after-statement -Wold-style-definition -Wno-pointer-sign -MMD -MP -MF .dep-$@ -DDEBUG=0
LDFLAGS:
Installation Directories:
bindir: /usr/local/bin
datadir: /usr/local/share
xxx@xxx:~/downloads/netwmpager-1.11$When I was installing Netwmpager first time I got an error (related to lxft, unfortunately I don't remember details) which I was able to solve by installing "libxft-dev" (FreeType-based font drawing library for X)
EDIT
I made little test and removed libxft-dev (I originally thought it was libxft2, but it wasn't) which caused this while configure:
hanna@elrond:~/downloads/netwmpager-1.11$ ./configure
checking for program gcc... /usr/bin/gcc
checking for CC flag -std=gnu99 -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wundef -Wmissing-prototypes -Wredundant-decls... yes
checking for CC flag -Wdeclaration-after-statement... yes
checking for CC flag -Wold-style-definition... yes
checking for CC flag -Wno-pointer-sign... yes
checking if CC can generate dependency information... yes
checking for program pkg-config... /usr/bin/pkg-config
checking xft (pkg-config)... no
checking xft (-lXft -lXrender -lfontconfig -lfreetype -lz -lX11)... no
configure failed.After this I installed libxft-dev and I was able to carry on.
$ sudo apt-get install libxft-dev[EDIT ENDS]
So we assume that everything went well and possible problems are solved. We can carry on.
$ makeAfter that as root (it will ask your password).
$ sudo make installHopefully everything went well.
3) Configuring
As mention in the beginning, you can configure Netwmpager to look the way you want. The example config file is in "/usr/local/share/netwmpager"
$ cd /usr/local/share/netwmpager
$ cp config-example ~/.config/netwmpager/configopen the config file with your favourite editor:
$ leafpad ~/.config/netwmpager/configHere is my Netwmpager config: http://crunchbanglinux.org/pastebin/147
Trickiest part is probably geometry as it requires little math.
geometry = "160x20-1120+780"I have 1280x800 screen and above position it's exactly on left bottom corner. It'll will be 160px wide and 20px high.
But if you would like to have it on right corner:
geometry = "160x20+1120+780"Launching it: alt+f2 and type netwmpager
You can also add it in autostart.sh (main menu -> preferences -> Openbox Config -> Edit autostart.sh)
netwmpager &Anything to add and comments are welcome. I apologise if I didn't make any sense, English isn't my language.
Last edited by Hanna (2009-01-31 16:19:54)
Also know as ultraturquoise online / #! last.fm / #! DeviantART / U / Q