Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: vltcl on December 21, 2020, 03:14:03 AM

Title: [Solved] Installing JWM
Post by: vltcl on December 21, 2020, 03:14:03 AM
Hi,
 
what do you need to run JWM after a fresh installation of tc?

I did
Code: [Select]
tce-ab and installed jwm. After doing
Code: [Select]
exec /usr/local/bin/jwm I get error: display not found
Title: Re: Installing JWM
Post by: vinceASPECT on December 21, 2020, 03:25:47 AM
hELLO FORUM,

with some window managers, after it is installed, then 

0)  press CTRL ALT BACKSPACE together 
(or use "exit to terminal" from TCL exit menu)

1)  at the black command screen....... type...... "startx JWM"

sometimes works with window manager(s)

hope for your success.

v
Title: Re: Installing JWM
Post by: vltcl on December 21, 2020, 03:32:07 AM
Oh I have to add I have the terminal (core 11MB) version (11.1) of tcl, so there is no GUI preinstalled. Therefore ctrl-alt-backspace doesn't work and exit brings me to core login.

Title: Re: Installing JWM
Post by: jazzbiker on December 21, 2020, 04:11:49 AM
Hi, vltcl!

Various X servers may use various window managers If You've already installed jwm.tcz, then desktop file in Your /etc/sysconfig directory must be indicating this. try
Code: [Select]
cat /etc/sysconfig/desktop
If everything ok, You wil see
Code: [Select]
jwm
responce.

Now You are to load any of the Xvesa, Xfbdev or Xorg-7.7 X servers. Now "startx" command will start the server and window manager selected.
Title: Re: Installing JWM
Post by: polikuo on December 21, 2020, 07:29:21 AM
type...... "startx JWM"

Hi, I'm pretty sure that startx don't take any arguments.

To specify which window manager (WM), you'll need to modify /etc/sysconfig/desktop
Code: [Select]
tc@box:~$ cat /etc/sysconfig/desktop
jwm
In case it's not jwm
Code: [Select]
echo jwm > /etc/sysconfig/desktop
For a WM to be functioning, you'll need a X server. (Xvesa, Xfbdev, Xorg)

Sometimes you'll also need graphics-KERNEL extension and possibly some firmware

Since you mentioned "fresh installation", you may also need wbar and aterm

Let me sum it up:
Code: [Select]
tce-load -w Xorg jwm graphics-KERNEL wbar aterm
tce-load -i Xorg jwm graphics-KERNEL wbar aterm
Title: Re: Installing JWM
Post by: vinceASPECT on December 21, 2020, 09:08:04 AM
hello forum,

There is good help on the forum on these topics.

"Openbox" window manager was recommended. It allows users
to have usage of the whole screen real-estate of their vdu  (visual display unit)

That. is another free window manager.

There are many window managers.  (available in tcl)

thx

v
Title: Re: Installing JWM
Post by: vltcl on December 21, 2020, 03:18:05 PM
Thank you for your answers.

I tried
Quote
tce-load -wi Xorg jwm graphics-KERNEL wbar aterm

But the problem is desktop.sh not found from line 147 of tce-load. Any idea what that means?
Title: Re: Installing JWM
Post by: Rich on December 21, 2020, 04:52:21 PM
Hi vltcl
What happens if you try it this way:
Code: [Select]
tce-load -wi Xorg-7.7 jwm wbar aterm
Title: Re: Installing JWM
Post by: CNK on December 21, 2020, 10:55:38 PM
I'm using the following command to load Xorg and JWM in TCL Core Pure64 11.1,  I found a needed to specify a few extra extensions so that everything I want functions properly. This is for a Thinkpad R60 with Intel graphics, so replace xf86-video-intel.tcz with something appropriate for your hardware (or xf86-video-vesa.tcz):

Code: [Select]
tce-load -i xf86-video-intel.tcz xf86-input-evdev.tcz xkeyboard-config.tcz Xorg-7.7-bin.tcz xorg-server.tcz Xlibs.tcz Xprogs.tcz jwm.tcz aterm.tcz

Then you'll need to set up the .jwmrc file to customise it.
Title: Re: Installing JWM
Post by: Rich on December 21, 2020, 11:05:26 PM
Hi CNK
The error message:
... But the problem is desktop.sh not found from line 147 of tce-load. Any idea what that means?
suggests that  Xorg-7.7  is not getting loaded. It depends on  Xprogs.tcz  which depends on  Xlibs.tcz  which
provides  desktop.sh.

Title: Re: Installing JWM
Post by: vltcl on December 22, 2020, 12:32:36 AM
Quote
[...]suggests that  Xorg-7.7  is not getting loaded. It depends on  Xprogs.tcz  which depends on  Xlibs.tcz  which
provides  desktop.sh.
How am I supposed to know that, is there any basic knowledge I am missing?

I did
Quote
tce-load -wi Xorg-7.7 jwm
Then checked
Quote
cat /etc/sysconfig/destkop
which returned jwm
Then I ran
Code: [Select]
exec /usr/local/bin/jwmwhich brought me to a prompt:
Code: [Select]
error: could not open display


Core Linux
box login:
when I type tc there, the screen shows some weird distortion/noise for a splitsecond and then turns black (the backlights are still on and the pc aswell). I can't do anything then and it takes unusually long to power off the laptop with the button.
Title: Re: Installing JWM
Post by: polikuo on December 22, 2020, 03:36:52 AM
Which port of TC are you using ?
Example:
Code: [Select]
tc@box:~$ uname -r
5.4.51-piCore-v8

What hardware do you have ?
Title: Re: Installing JWM
Post by: vltcl on December 22, 2020, 05:39:24 AM
Code: [Select]
tc@box:~$ uname -r
5.4.3-tinycore

Quote
What hardware do you have ?
Lenovo Thinkpad L450
What exactly do you (and I) need to know?
Title: Re: Installing JWM
Post by: Juanito on December 22, 2020, 06:25:36 AM
If you load a window manager extension after you have already started a gui, you need to exit to a console prompt and then "startx" in order to be able to start that window manager.
Title: Re: Installing JWM
Post by: vltcl on December 22, 2020, 06:37:30 AM
Can you specify what that means?
I only see a shell with
Code: [Select]
tc@box:~$If I exit from that, I am prompted with
Code: [Select]
Core Linux
box login:
so from there I can only login to tc again. Within the shell startx is not found.
Title: Re: Installing JWM
Post by: polikuo on December 22, 2020, 06:38:48 AM
Code: [Select]
tc@box:~$ uname -r
5.4.3-tinycore

You're running 32-bit tinycore
using this repo: http://tinycorelinux.net/11.x/x86/tcz/ (http://tinycorelinux.net/11.x/x86/tcz/)

Quote
Quote
What hardware do you have ?
Lenovo Thinkpad L450

You (most likely) have Intel CPU, and (probably) AMD GPU

Quote
What exactly do you (and I) need to know?

Hardware specs, so we can find out the most suitable drivers for you.

Does your machine have more than 4G of RAM ?
If that's the case, I suggest you switch to 64-bit.
(Since 32-bit operating systems generally don't support RAM more than that, you'll be limit to 4G even if you have more.)

If you're sticking with 32-bit platform
I suggest
Code: [Select]
tce-load -i Xorg-7.7 jwm wbar aterm
IIRC, graphics-KERNEL is needed for Xorg now
So you'll also need graphics-5.4.3-tinycore
Code: [Select]
tce-load -i graphics-KERNEL
How does your onboot.lst look like ?
Code: [Select]
cat /etc/sysconfig/tcedir/onboot.lst
Title: Re: Installing JWM
Post by: polikuo on December 22, 2020, 06:42:17 AM
Can you specify what that means?
I only see a shell with
Code: [Select]
tc@box:~$If I exit from that, I am prompted with
Code: [Select]
Core Linux
box login:
so from there I can only login to tc again. Within the shell startx is not found.

You're already in what we called "console prompt"

[startx not found] --> you haven't loaded Xprog-7.7

How did you install your system ?

Did you use the official tc-install ?
Title: Re: Installing JWM
Post by: vltcl on December 22, 2020, 03:38:36 PM
I probably messed something up.
Code: [Select]
tce-load -wi graphics-KERNEL Xorg-7.7 jwmand then
Code: [Select]
exec /usr/local/bin/jwmworked.

BUT:
Code: [Select]
tce-load -i graphics-KERNEL Xorg-7.7 jwmwould not work because Xorg-7.7 is not found. Is there a known reason for that?

Hardware specs:
4GB RAM
Intel i3 2GHz
I don't know the GPU, how do I find that out on fresh tinycore install?
Also I will switch to 64bit eventually.

Thank you all.
Title: Re: Installing JWM
Post by: CNK on December 22, 2020, 07:44:13 PM
You run this the first time to download the extensions as well as install them:
Code: [Select]
tce-load -wi graphics-KERNEL Xorg-7.7 jwm

Then later you can use:
Code: [Select]
tce-load -i graphics-KERNEL Xorg-7.7 jwm

As the extensions are already downloaded, the latter command should now work.

"startx" should work in both cases, or at least it does when I load the extensions that I listed earlier.

If you can't check the specs for your laptop to find the GPU, use the "lspci" command and the model will probably be on the line that says "VGA compatible controller:". Sometimes the model info reported there can be a bit cryptic, though hopefully it'll say something to at least indicate Intel/AMD/Nvidea etc.
Title: Re: Installing JWM
Post by: vltcl on December 25, 2020, 11:05:51 AM
@CNK you are correct.

lspci | grep VGA gives
Code: [Select]
Intel Corporation HD Graphics 5500 (rev 09)
I believe this can be marked as solved then.
Title: Re: [Solved] Installing JWM
Post by: Rich on December 25, 2020, 11:08:04 AM
Hi vltcl
... I believe this can be marked as solved then.
Done.  :)