SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-27 19:51:50

ivantad
New Member
Registered: 2012-11-27
Posts: 4

[solved] last version of Nitrogen needed

Hi all,

I have two monitors set in Twinview. I would like to be able to set a wallpaper on a specific monitor, but from the command line.
I have Nitrogen 1.5.1-1 installed from the repositories, but this version is lacking the "head" option in the command line.
I have a link to GitHub where the source code of the last version of Nitrogen can be downloaded : here

Now my problem is that I have never compiled a program from the source code, is there anyone who could help me ?

Thanks in advance,

Ivan

Last edited by ivantad (2012-12-02 10:31:39)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-11-27 21:13:55

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 1,963

Re: [solved] last version of Nitrogen needed

Most apps you just cd to the source directry, then "./configure" "make "checkinstall" then you have a .deb you can install with apt, gdebi, synaptic, etc. If it builds with scons or some other build system it will usually say in the documentation for the program. IIRC though, I could set separate wallpapers when using twinview in statler. In the GUI it's the second button from the left, in between the zoom mode and background color. Then you can just put nitrogen --restore in your .autostart.sh so the changes persist after restarting the machine (if it isn't there already).

Last edited by mynis01 (2012-11-27 21:15:48)

Offline

#3 2012-11-27 21:45:41

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 1,963

Re: [solved] last version of Nitrogen needed

According to the readme the process goes like this:

  ./bootstrap
    ./configure
    make
    make install (as root or a user with proper permissions)

But in debian, the best thing to do IMO is use checkinstall in place of "make install" because make install will just place the nitrogen binary and related files in your filesystem somewhere, and the only way to get rid of them is to hold onto that build folder you made and run "make uninstall" or to manually find the folders and delete them. With checkinstall, you will be able to uninstall the program through your package manager later.

Offline

#4 2012-11-27 22:38:51

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,423

Re: [solved] last version of Nitrogen needed

^I usually find the "make install" route just easier and there is nothing wrong to have it in a dedicated build folder e.g., I know where it is and "make uninstall" is nothing inconvenient.

Online

#5 2012-11-28 07:23:23

ivantad
New Member
Registered: 2012-11-27
Posts: 4

Re: [solved] last version of Nitrogen needed

Ok guys,

Thank you very much for your replies, but the problem is that there is no 'configure' script in the archive !
'bootstrap' script is ok, but then ...what ?  wink

Ivan

Offline

#6 2012-11-28 07:32:59

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 1,963

Re: [solved] last version of Nitrogen needed

Just make sure that whole archive is cloned to your machine, navigate to the folder and type in

./configure

But on a side note, are you absolutely sure that you can't already do what you're trying to do with your current version of nitrogen? Because I know I've done it before in statler without upgrading nitrogen. It should be the drop down box to the right of the one with the scaling options, in the bottom left corner.

Last edited by mynis01 (2012-11-28 07:35:08)

Offline

#7 2012-11-28 08:28:19

ivantad
New Member
Registered: 2012-11-27
Posts: 4

Re: [solved] last version of Nitrogen needed

Mynis01,

About the GUI of Nitrogen, yes it works fine, but I have a project in mind for which I need to be able to set a wallpaper on a specific monitor, from the command line.

I've just download the archive once again (from here ), but no, there is no configure script.
There is a 'configure.ac' in the root directory, and a 'Config.cc' and a 'Config.h' in the 'src' directory.

Thanks for your help,

Ivan

Offline

#8 2012-12-02 10:36:43

ivantad
New Member
Registered: 2012-11-27
Posts: 4

Re: [solved] last version of Nitrogen needed

Hi guys,

I am very proud of me  ops  I succeeded my first compilation ... for those interested ...
Thus I was looking for the script "configure" that I din't find in the archive ...
Sorry, I missed an explanation found in the "INSTALL" file :

=>  The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'

well, it was only the beginnig of a path full of hurdles ... wink

$ sudo apt-get install autoconf
$ autoconf -o configure configure.ac

=>
configure.ac:4: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:12: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
configure.ac:13: error: possibly undefined macro: AM_GNU_GETTEXT

well, I tried 'configure' anyway ...

$ configure

=>
configure.ac:4: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:12: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
configure.ac:13: error: possibly undefined macro: AM_GNU_GETTEXT

... after some googling ...

$ autoreconf -fiv

=> lots of outputs ... everything seems fine ...

$ configure

=>
configure: error: Package requirements (gtk+-2.0 >= 2.10.0) were not met:

No package 'gtk+-2.0' found

... some googling ...

$ sudo apt-get install libgtk2.0-dev

=> unresolved dependencies
libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but will not be installed
                 Depends: libcairo2-dev (>= 1.6.4-6.1) but will not be installed
E: broken package

... some googling ...

$ sudo apt-get install -t squeeze-backports libgtk2.0-dev

=> ok !

$ configure

=>
configure: error: Package requirements (gtkmm-2.4 >= 2.10.0) were not met:

No package 'gtkmm-2.4' found

$ sudo apt-get install gtkmm-2.4

=> ok !

$ configure     (for the fourth times wink )

=> ... lots of outputs ...
You are now ready to compile nitrogen
Type "make" to compile nitrogen

$ make

=> ... lots of outputs ...  everything seems ok !

$ sudo make install

=> everything seems ok !

$ man nitrogen

$ nitrogen --help

=>
    --head=[arg]
        Select xinerama/multihead display in GUI, 0..n, -1 for full
    ...
    ...   

=> I have the "head" option now and it works !!! wink

cheers,

Ivan

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo