Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Help a Newbie please

  1. #1
    Join Date
    Aug 2008
    Location
    Minsk
    Posts
    105

    Question Help a Newbie please

    Hi all, I have a question, I'm trying to setup openbox desktop manager, and one of the components of my desktop environment will be tint2 taskbar, well I downloaded it and compiled, did "make install", but I can run it only from inside its directory (I mean I cant run it just simply typing in konsole "tint2" command but rather "cd" to its ~/Download/tint2/ dir and run it only there) how can I make it global?

    I do understand(or I think I do) that its execution file(or dir) should be put into some /usr/bin or other dirs but which one I don't know, in fact I just don't want to mess up with it as I can screw everything.

    Sorry for this is a rather lame question and I should read man first of all, but I just don't have enough time now(lie) and simply dont know where to look for an advice, so I will appreciate if anyone could help with this.

    p.s. why do I need it to be executed this way, so I could write a script and make openbox start it at startup.

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Help a Newbie please

    you should run configure (and anything thing else before) as yourself
    a regular user, then run "make install" as root, that will install it
    to the system and place the executable in the path for all users (as
    you say, globally)..

    just use "su" to change to root and give the root pass, then issue
    your make install..

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

  3. #3
    Join Date
    Aug 2010
    Location
    Aveiro, Portugal
    Posts
    313

    Default Re: Help a Newbie please

    Hi,

    If your application has a 'configure' script (you can either look into the source tree or eventually by reading a INSTALL or README file which should have instructions for the build) you can do the following:

    * move into source dir
    * execute: ./configure --prefix=/usr
    * make
    * su && make install

    Then it should be on your path (/usr/bin).

    I would like also to point ya to something, there is something in openSUSE we call OBS, openSUSE Build Service, which we brag a lot about because it's awesome... Through it's web interface you can find available packages from other users... including of course: tint2.

    It's probably easier if you pick up your software from a development group or from a user who made it available.

    http://build.opensuse.org

    Hope it helps ya out.

  4. #4

    Default Re: Help a Newbie please

    Quote Originally Posted by letian View Post
    p.s. why do I need it to be executed this way, so I could write a script and make openbox start it at startup.
    You can have openbox as your default wm any time .. but I don't understand why/what you have to compile something.
    BTW, if you install the LXDE desktop (or later the lxde pattern : zypper in -t pattern lxde ), you'll have openbox. Lxde doesn't have it's own window manager, it uses openbox by default.

  5. #5
    Join Date
    Aug 2008
    Location
    Minsk
    Posts
    105

    Default Re: Help a Newbie please

    Thank you for your answers. but, this is what says cat INSTALL for tint2:

    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr ../
    make
    sudo make install

    what should I write in "/usr.../"??? should I write my where-I-want-to-install-tint2-dir or
    usr/share/ etc.??? and make doesn't work without cmaking, so thats why I asked, I did compile it with cmake - make - sudo make install - but it works only from its own dir, maybe because I messed the "cmake -DCMAKE_INSTALL_PREFIX=/usr ../" string and wrote wrong /usr/... path, dont know now.

    LXDE works with openbox? ok I should try it, didn't know, thank you, well anyway I want to setup it myself.

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Help a Newbie please

    letian wrote:
    > Thank you for your answers. but, this is what says cat INSTALL for
    > tint2:
    >
    > mkdir build
    > cd build
    > cmake -DCMAKE_INSTALL_PREFIX=/usr ../
    > make
    > sudo make install
    >
    > what should I write in "/usr.../"??? should I write my
    > where-I-want-to-install-tint2-dir or
    > usr/share/ etc.??? and make doesn't work without cmaking, so thats why
    > I asked, I did compile it with cmake - make - sudo make install - but it
    > works only from its own dir, maybe because I messed the "cmake
    > -DCMAKE_INSTALL_PREFIX=/usr ../" string and wrote wrong /usr/... path,
    > dont know now.
    >
    > LXDE works with openbox? ok I should try it, didn't know, thank you,
    > well anyway I want to setup it myself.


    hmmmm...you said in your subject line that you are a newbie...so, i
    wonder why you are doing all of this trouble?

    i mean, openbox--why?

    what is openbox's advantage over the window manager which you have to
    really work hard to avoid with a default install of openSUSE??

    i'm not saying don't install openbox, far from it...you are very
    welcome to install whatever you wish..

    but, this is an openSUSE forum, not a openbox forum, nor a tint2 forum..

    you can't automatically expect there to be tint2 experts in this forum..

    if you have a question about what the author of the tint2's install
    file meant for you to put in "cmake -DCMAKE_INSTALL_PREFIX=/usr ../"
    then write him (or her) and ask..or, find a tint2 forum...

    note: i'm neither angry nor trying to be dismissive, i'm actually
    trying to be helpful in saying you seem to need to find a tint2 guru,
    and as far as i know i've never seen one of those here..

    but i bet you can get on the trail of one here:
    http://www.google.com/search?q=source+tint2

    try it...and, when you do if you learn that the problem *is* with
    openSUSE then lets work on helping you file a bug report...ok?

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    When it comes to chocolate, resistance is futile.

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Help a Newbie please

    Since openbox is in the standard repositories let me assume you have it
    already installed and it works.
    The rest of the post is about tint2 which exists prebuilt in the OBS and can
    be installed with 1-click (for 11.3).

    http://tinyurl.com/24aynyl


    --
    openSUSE 11.2 64 bit | Intel Core2 Quad Q8300@2.50GHz | Gnome 2.28 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | Gnome 2.30 | Quadro
    FX 3600M | 4GB Ram


  8. #8
    Join Date
    Aug 2008
    Location
    Minsk
    Posts
    105

    Smile Re: Help a Newbie please

    well, again thank you for your patience, yes I know I can use a default manager that is bundled with SUSE or LXDE, but I never liked the easy way, but anyway you're right its SUSE forum, I just thought that cmake .../usr/...blabla path is something default, well I will then follow to tint2 forum, and thanks again for your links, I will surely try them out, thanks!

  9. #9
    Join Date
    Aug 2010
    Location
    Aveiro, Portugal
    Posts
    313

    Default Re: Help a Newbie please

    Quote Originally Posted by letian View Post
    well, again thank you for your patience, yes I know I can use a default manager that is bundled with SUSE or LXDE, but I never liked the easy way, but anyway you're right its SUSE forum, I just thought that cmake .../usr/...blabla path is something default, well I will then follow to tint2 forum, and thanks again for your links, I will surely try them out, thanks!
    I'm not a pro with cmake, some people say wonders about it... I can't really help ya much... but using an existing rpm would avoid you some source carnage and most likely provide better integration with the system if you are unexperienced with this. If you really want to compile your stuff and you actually like that kinda stuff, I would recommend ya to branch one of the existing projects for tint2 on OBS and rebuild it with osc. Of course you need to go through some documentation, but you can look into other peoples spec files and see the proper commands for cmake and stuff like that. Just a hint if you want to spare some time investigating and learning... maybe who knows... you are one of the future 'joe packagers' for openSUSE

    Welcome aboard. I would help you more if I could, but I love to see when someone is committed to learning something and isn't too shy to ask for. Best of luck dude.

  10. #10
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,061

    Default Re: Help a Newbie please

    How to install openbox:

    Code:
    zypper ar -f http://download.opensuse.org/repositories/X11:/windowmanagers/openSUSE_11.3/ X11:Windowmanagers
    zypper in openbox
    Mind the SuSE version, this is for 11.3.

    Quote Originally Posted by ketheriel
    * move into source dir
    * execute: ./configure --prefix=/usr
    * make
    * su && make install
    This is not a good advice, as this will install a package without the package manager being able to recognize it - which means you can not upgrade it, let the package manager consider it as a fulfilled dependency or even uninstall (unless you have a *working* uninstall script). Depending on the package (or the number of packages installed this way) it can create a lot of chaos. *If* the compilation of a sourcecode is necessary, one should build an .rpm instead of 'make install'.

    Make love, not install.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •