LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to install tinywm a new window manager in slackware 14.1? (https://www.linuxquestions.org/questions/slackware-14/how-to-install-tinywm-a-new-window-manager-in-slackware-14-1-a-4175541318/)

nitecrawler 05-01-2015 10:02 AM

how to install tinywm a new window manager in slackware 14.1?
 
i have download the tar file from tinywm site...i want to install the same on my machine and replace my existing fluxbox window manager to tinywm......


i followed this thread but bumped at point 5 as the tar file that i extracted doesnt have the ./configure...
http://www.linuxquestions.org/questi...anager-383418/

how do i go about now?

i have also copied the old fluxbox file and renamed to tinywm...now if i type xwmconfig i can see the tinywm there but i know i cant run it since the user binaries doesnt exist....i am stuck here....

moisespedro 05-01-2015 10:12 AM

If it is this tinywm it has a makefile, compile the wm with:

Code:

make all

Didier Spaier 05-01-2015 11:28 AM

From the README:
Code:

Usage:

  Focus follows pointer.
  Alt+Button1, drag: interactive window move
  Alt+Button3, drag: interactive window resize
  Alt+F1: raise focused window

Are these really all the features you expect from a windows manager?

It's a toy or a demonstrator intended for developers, so you don't have a need for it.

nitecrawler 05-02-2015 12:09 AM

hey didier thanks for the info....yes i saw it too....well looking for something neat and fast.....and get a terminal open would be the only thing i would be looking at....

p.s. i havent logged out for a long long time...hoping i get back in without much hassles...

nitecrawler 05-02-2015 01:06 AM

@moisespedro: yes i ran make install and this is what i got..incompatibility issues with stock 64 bit?
again, i have the multi-lib enabled....do correct me if am wrong....

so just hoping i get through this last hurdle there....

"
in/ld: skipping incompatible /usr/X11R6/lib/libgcc_s.so when searching for -lgcc
"


later if i type whereis tinywm i get no results...

nitecrawler 05-02-2015 01:21 AM

Quote:

> bash-4.2# make all
> cc -Os -pedantic -Wall -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -o tinywm tinywm.c
> tinywm.c: In function 'main':
> tinywm.c:49:51: warning: 'start.button' may be used uninitialized in this function [-Wmaybe-uninitialized]
> attr.x + (start.button==1 ? xdiff : 0),
> ^
> tinywm.c:47:19: warning: 'start.y_root' may be used uninitialized in this function [-Wmaybe-uninitialized]
> ydiff = ev.xbutton.y_root - start.y_root;
> ^
> tinywm.c:46:19: warning: 'start.x_root' may be used uninitialized in this function [-Wmaybe-uninitialized]
> xdiff = ev.xbutton.x_root - start.x_root;
> ^
> /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
> /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libgcc_s.so when searching for -lgcc_s
> /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libc.so when searching for -lc
> /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libc.a when searching for -lc
> /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libgcc_s.so when searching for -lgcc_s
just to show the complete error i receive and why i perceive its a 64bit compatibility issue

Speek 05-02-2015 03:30 AM

I downloaded tinywm-1.3. It builds without a problem. This is on Slackware64 current. Do you have the *proto packages from Slackware's x directory installed?

Didier Spaier 05-02-2015 04:34 AM

There is no /usr/X11R6/lib/libX11.so in Slackware64 but /usr/X11R6/lib64/libX11.so instead. I think that you don't have a genuine and full Slackware64. Maybe multilib?

GazL 05-02-2015 06:19 AM

Didier is correct, lib/ is the wrong location on 64bit slackware. Try removing the -I and -L options from the cc command and let gcc sort it out. '-lX11' is likely all that is needed.

P.S. I think he was also right to point out that you will likely find tinywm a little too tiny for any practical use.

nitecrawler 05-03-2015 10:50 PM

Quote:

Originally Posted by Didier Spaier (Post 5356567)
There is no /usr/X11R6/lib/libX11.so in Slackware64 but /usr/X11R6/lib64/libX11.so instead. I think that you don't have a genuine and full Slackware64. Maybe multilib?

i distinctly remember downloading the 64bit version when i had downloaded slackware....i did the upgrade a couple of days back as i encountered the error....i could give you more info if required....

@Didier: once again, thanks for the tip on the window manager...looking for something lightweight and just on experimental basis want to try it out.....

@Gazl: yes gazl, i just want to run xterm's when my desktop is opened...and am ok working from the command line..and prefer it too....

---------- Post added 05-04-15 at 09:20 AM ----------

Quote:

Originally Posted by Speek (Post 5356557)
I downloaded tinywm-1.3. It builds without a problem. This is on Slackware64 current. Do you have the *proto packages from Slackware's x directory installed?

well, i would like to know how you built it too...

i ran tar -xzvf on that file and got the tinywm directory again...when i do a makeall after cd to the directory, i get the errors listed...


"*proto packages from Slackware's x directory" - could you let me know how to check the same and i will get back with the feasible results....

lems 05-04-2015 12:19 AM

@nitecrawler: I just downloaded tinywm-1.3.tgz, and changed -L$(PREFIX)/lib to -L$(PREFIX)/lib64 in its Makefile and ran make. There were some warnings, but I got a binary that I could run. I'm on Slackware64 -current w/ multilib. (Without changing the Makefile I got a binary too, though.)

However, there are other window managers you could try as well, like dwm (tiling), mcwm (floating) or cwm. They all have SlackBuilds available, and are pretty lightweight.

Speek 05-04-2015 01:45 AM

Quote:

Originally Posted by nitecrawler (Post 5357465)

well, i would like to know how you built it too...

"*proto packages from Slackware's x directory" - could you let me know how to check the same and i will get back with the feasible results....

I just did 'make', but that does the same as 'make all'.

To check if you have the proto packages installed do:
Code:

cd /var/log/packages/ && ls *proto*
I have these:
Code:

~$ cd /var/log/packages/
/var/log/packages$ ls *proto*
compositeproto-0.4.2-noarch-1  kbproto-1.0.6-noarch-1        xcb-proto-1.11-x86_64-1
damageproto-1.2.1-noarch-1    presentproto-1.0-x86_64-1      xextproto-7.3.0-x86_64-1
dri2proto-2.8-x86_64-1        randrproto-1.4.1-noarch-1      xf86driproto-2.1.1-noarch-1
dri3proto-1.0-x86_64-1        recordproto-1.14.2-noarch-1    xf86vidmodeproto-2.3.1-noarch-1
fixesproto-5.0-x86_64-1        renderproto-0.11.1-noarch-1    xineramaproto-1.2.1-noarch-1
fontsproto-2.1.3-noarch-1      resourceproto-1.2.0-noarch-1  xproto-7.0.27-noarch-1
glproto-1.4.17-noarch-1        scrnsaverproto-1.2.2-noarch-1
inputproto-2.3.1-noarch-1      videoproto-2.3.2-noarch-1


Speek 05-04-2015 02:24 AM

@nitecrawler: are you sure tinywm is not build, despite these warnings? After you do 'make' or 'make all', is there a file "tinywm"? That is the window manager.

nitecrawler 05-04-2015 09:13 AM

Quote:

Originally Posted by Speek (Post 5357521)
@nitecrawler: are you sure tinywm is not build, despite these warnings? After you do 'make' or 'make all', is there a file "tinywm"? That is the window manager.

no, i dont find "tinywm" inside the /var/log/packages


Quote:

cd /var/log/packages/ && ls *proto*
i get the following result more or less like yours unless am missing any file...below is the output of the same

Quote:

bash-4.2# cd /var/log/packages/ && ls *proto*
bigreqsproto-1.1.2-noarch-1
renderproto-0.11.1-noarch-1
compositeproto-0.4.2-noarch-1
resourceproto-1.2.0-noarch-1
damageproto-1.2.1-noarch-1
scrnsaverproto-1.2.2-noarch-1
dmxproto-2.3.1-noarch-1
videoproto-2.3.2-noarch-1
dri2proto-2.8-x86_64-1
xcb-proto-1.8-x86_64-1
fixesproto-5.0-x86_64-1
xcmiscproto-1.2.2-noarch-1
fontcacheproto-0.1.3-noarch-1
xextproto-7.2.1-x86_64-1
fontsproto-2.1.2-noarch-1
xf86bigfontproto-1.2.0-noarch-1
glproto-1.4.16-noarch-1
xf86dgaproto-2.1-noarch-1
inputproto-2.3-noarch-1
xf86driproto-2.1.1-noarch-1
kbproto-1.0.6-noarch-1
xf86miscproto-0.9.3-noarch-1
printproto-1.0.5-noarch-1
xf86vidmodeproto-2.3.1-noarch-1
randrproto-1.4.0-noarch-1
xineramaproto-1.2.1-noarch-1
recordproto-1.14.2-noarch-1
xproto-7.0.24-noarch-1
i have screwed the alphabetical ordering but i couldnt place them the way you did as in my output.....

nitecrawler 05-04-2015 09:31 AM

Quote:

Originally Posted by lems (Post 5357487)
@nitecrawler: I just downloaded tinywm-1.3.tgz, and changed -L$(PREFIX)/lib to -L$(PREFIX)/lib64 in its Makefile and ran make. There were some warnings, but I got a binary that I could run. I'm on Slackware64 -current w/ multilib. (Without changing the Makefile I got a binary too, though.)

However, there are other window managers you could try as well, like dwm (tiling), mcwm (floating) or cwm. They all have SlackBuilds available, and are pretty lightweight.

didnt see the post...will check on this and be right back...thanks for the other lightweight options present in slackbuilds..


All times are GMT -5. The time now is 08:09 PM.