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/)

Didier Spaier 05-04-2015 09:48 AM

Quote:

Originally Posted by nitecrawler (Post 5357649)
no, i dont find "tinywm" inside the /var/log/packages

You won't. Only the Slackware packages installed with installpkg or upgradepkg are recorded there.

Your time would be better used learning how Slackware works that installing useless programs, in my opinion. But of course, that's only my opinion. If you'd like to follow it, visit http://docs.slackware.com, especially the Beginners Guide and Get Acquainted With Slackware.

Caveat emptor: having written this, I must admit that everyone has one's own way or learning, so maybe the one I just proposed is not the best for you.

lems 05-04-2015 09:49 AM

Quote:

Originally Posted by nitecrawler (Post 5357649)
no, i dont find "tinywm" inside the /var/log/packages

It won't show up there, as it's not a Slackware package. It would only show up if you created a Slackware package and installed that with installpkg. Running `make install' would copy it to /usr/bin.

nitecrawler 05-04-2015 09:57 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.)

i made the necesary changes and could run it too...later when i run xwmconfig i dont find tinywm in the list of managers i could choose from

nitecrawler 05-04-2015 10:00 AM

Quote:

Originally Posted by lems (Post 5357670)
It won't show up there, as it's not a Slackware package. It would only show up if you created a Slackware package and installed that with installpkg. Running `make install' would copy it to /usr/bin.

dint know that..cool..thanks...

no i dont find it listed there...

Didier Spaier 05-04-2015 10:03 AM

Quote:

Originally Posted by nitecrawler (Post 5357675)
i made the necesary changes and could run it too...later when i run xwmconfig i dont find tinywm in the list of managers i could choose from

You'll understand why reading the script /usr/bin/xwmconfig: it proposes only a limited list. But you could try to change that list to add tinywm.

Didier Spaier 05-04-2015 10:06 AM

Quote:

Originally Posted by nitecrawler (Post 5357676)
no i dont find it listed there...

There is no "install" target in the Makefile, so you'll have to copy or move it yourself if you want to.

lems 05-04-2015 10:08 AM

Actually you can copy any xinitrc.foo file to /etc/X11/xinit and it will be seen by xwmconfig. So you could copy xinitrc.twm to xinitrc.tinywm and modify its content accordingly.

nitecrawler 05-04-2015 10:17 AM

Quote:

Originally Posted by Didier Spaier (Post 5357667)
Your time would be better used learning how Slackware works that installing useless programs, in my opinion.

i always take some of my time to read the slackbook but then go into links of links of googles and never end up reading completely...crawling for now...

Quote:

Caveat emptor: having written this, I must admit that everyone has one's own way or learning, so maybe the one I just proposed is not the best for you.
well to each his own! ;-)

nitecrawler 05-04-2015 10:28 AM

Quote:

Originally Posted by Didier Spaier (Post 5357681)
There is no "install" target in the Makefile, so you'll have to copy or move it yourself if you want to.

i would like to know which file to move?

nitecrawler 05-04-2015 10:31 AM

Quote:

Originally Posted by lems (Post 5357683)
Actually you can copy any xinitrc.foo file to /etc/X11/xinit and it will be seen by xwmconfig. So you could copy xinitrc.twm to xinitrc.tinywm and modify its content accordingly.

well, yes i tried that...then there is a startfluxbox file i need to edit too...i will have to make a starttinywm file and again edit those contents..

so like didier mentioned, maybe i have to move THE file (need clarification which file it is) because i dont find tinywm in the /usr/bin....again the startfluxbox file has the command to execute fluxbox but i dont have any tinywm listed in /usr/bin....so i am lost to make the edits too.....

Didier Spaier 05-04-2015 10:40 AM

Quote:

Originally Posted by nitecrawler (Post 5357692)
i would like to know which file to move?

The file tinywm in the directory in which you ran "make all". In my case it was /tmp/tinywm-1.3
Code:

~$ ls -ltr /tmp/tinywm-1.3
total 44
-rw-r--r-- 1 didier users  154 mars  4  2005 Makefile
-rw-r--r-- 1 didier users  138 mars  10  2005 COPYING
-rw-r--r-- 1 didier users  1986 mars  10  2005 tinywm.c
-rw-r--r-- 1 didier users  1542 mars  10  2005 tinywm.py
-rw-r--r-- 1 didier users  8566 mars  10  2005 annotated.c
-rw-r--r-- 1 didier users  1633 mars  10  2005 README
-rwxr-xr-x 1 didier users 11736 mai    2 13:18 tinywm
~$

This gives me a clue as tinywm is the most recent file written and is the only one executable.
To confirm that:
Code:

~$ file /tmp/tinywm-1.3/tinywm
/tmp/tinywm-1.3/tinywm: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
~$


nitecrawler 05-04-2015 10:54 AM

Quote:

Originally Posted by Didier Spaier (Post 5357700)
The file tinywm in the directory in which you ran "make all". In my case it was /tmp/tinywm-1.3
Code:

~$ ls -ltr /tmp/tinywm-1.3
total 44
-rw-r--r-- 1 didier users  154 mars  4  2005 Makefile
-rw-r--r-- 1 didier users  138 mars  10  2005 COPYING
-rw-r--r-- 1 didier users  1986 mars  10  2005 tinywm.c
-rw-r--r-- 1 didier users  1542 mars  10  2005 tinywm.py
-rw-r--r-- 1 didier users  8566 mars  10  2005 annotated.c
-rw-r--r-- 1 didier users  1633 mars  10  2005 README
-rwxr-xr-x 1 didier users 11736 mai    2 13:18 tinywm
~$

This gives me a clue as tinywm is the most recent file written and is the only one executable.
To confirm that:
Code:

~$ file /tmp/tinywm-1.3/tinywm
/tmp/tinywm-1.3/tinywm: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
~$


thank you....i moved the file tinywm to /usr/bin...
so now do i have to make the copy of fluxbox and do the edits in /etc/X11/xinit like lems suggested?

P.S.
well i had run the make all last time and never noticed this new file come up or maybe i was too ignorant...
i was thinking its the installpkg stuff...so it goes to /var/log/packages...its cos i missed the reading part...

Didier Spaier 05-04-2015 11:02 AM

You don't have to, but you may ;)

lems 05-04-2015 11:05 AM

If you copied the tinywm executable to /usr/bin, it is now in PATH (if it's executable), so you can just as well create a file .xinitrc in your home directory with content such as this:

Code:

#! /bin/sh

xterm&
exec tinywm

Make it executable:
Code:

chmod +x ~/.xinitrc

nitecrawler 05-04-2015 11:09 AM

thanks didier , lems and yes to all others who chipped in too...so maybe i sit on this tomorrow and get back with the results....


All times are GMT -5. The time now is 08:50 AM.