Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: krooooo on December 05, 2015, 05:48:31 PM

Title: xfce4 and xfwm
Post by: krooooo on December 05, 2015, 05:48:31 PM
Hi

I setup a no X system and then tce-ab install Xorg / xfce4 / xfwm ( I want a clean system and I like xfce ), but after "startx", the desktop shown with no mouse and icon, I cant do anything, after power off system I boot the machine with ISO and add "text" to bootfile, and then tce-ab install openbox, then the system got a desktop with mouse...

I feel strange, if the X system need a window manager, then the xfwm is a window manager , why still need openbox?? some dependent file missed??
Title: Re: xfce4 and xfwm
Post by: nitram on December 05, 2015, 10:37:29 PM
Hi. You can download as many window managers as desired, but it's best to ensure /tce/onboot.lst only lists one window manager. At CLI, i believe you can enter desktop=xfwm  then  startx. You may also need to install a graphic driver. Run  lspci  to determine your graphic chip then install to onboot xf86-video-*.tcz whatever. Hopefully not, a custom xorg.conf file may be needed.
Title: Re: xfce4 and xfwm
Post by: Juanito on December 06, 2015, 12:01:02 AM
Are you using the tc-6.x repo (the extension is called xfwm4)?

Exit to the prompt and enter the following (assuming you're using Xorg-7.7):
Code: [Select]
$ /usr/local/bin/Xorg -nolisten tcp
..you should then get an error message that might explain what is going wrong.
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 12:57:31 PM
Hi. You can download as many window managers as desired, but it's best to ensure /tce/onboot.lst only lists one window manager. At CLI, i believe you can enter desktop=xfwm  then  startx. You may also need to install a graphic driver. Run  lspci  to determine your graphic chip then install to onboot xf86-video-*.tcz whatever. Hopefully not, a custom xorg.conf file may be needed.

Hi

thanks your suggest. I setup this system in VMware, I tce-ab Xprogs.tcz \ xf86-input-vmware \ xf86-video-vmware \ xfdesktop \ xfwm4 ,all dependent tcz are installed automatically just like "Xorg-7.7",  and then startx, no mouse, the onboot.lst contain "xfwm4.tcz" and "xfwm4-local.tcz"... after I installed openbox, the onboot.lst also contain "openbox.tcz", and then startx, the desktop is OK and the window manager is openbox

and I also try to edit the boot/extlinux.conf file to add "desktop=xfwm4", after power on, still no mouse, as same as not install openbox

after tca-ab install xfwm4, some dependent tcz still miss or  xorg.conf file need to be edit?? How to edit ??
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 01:01:18 PM
Are you using the tc-6.x repo (the extension is called xfwm4)?

Exit to the prompt and enter the following (assuming you're using Xorg-7.7):
Code: [Select]
$ /usr/local/bin/Xorg -nolisten tcp
..you should then get an error message that might explain what is going wrong.

YSE,  tc-6.x repo, that is xfwm4, and Xorg-7.7 is automatically installed

after exec
Code: [Select]
$ /usr/local/bin/Xorg -nolisten tcp  the screen of this VM changed bigger but all is black...
Title: Re: xfce4 and xfwm
Post by: curaga on December 06, 2015, 04:01:18 PM
Could be missing Xlibs and Xprogs?
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 04:14:54 PM
Xprogs.tcz is the first installed tcz
Title: Re: xfce4 and xfwm
Post by: nitram on December 06, 2015, 05:00:58 PM
Hi krooooo.

Since you want to boot to xfwm4, manually edit /etc/sysconfig/tcedir/onboot.lst and remove openbox.tcz. For an Xorg system, your onboot.lst file should have at least the following. Replace intel with your required video driver or maybe this is different with a VM (sorry don't know). Replace fluxbox with desired window manager. AFAIK aterm.tcz IS required as well.

xf86-video-intel.tcz
Xorg-7.7.tcz
Xprogs.tcz
fluxbox.tcz
aterm.tcz

If xfwm4 is the only window manager in onboot.lst, then it should boot to this. I believe Ctrl-Alt-Enter or Backspace exits graphics, then you can enter  desktop=xfwm4  then  startx  again. If you have not set up a persistent system, then these system changes will be lost on every boot and you will need to redownload/reset. A persistent system is best is usually preferred and a reboot may be helpful. I don't know anything about VMs, which may complicate matters.

You may initially want to test your system with flwm_topside..tcz as a window manager instead, commonly used, known to work well with minimal dependencies.
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 06:27:20 PM
Hi nitram

this is my onboot.lst:

Xprogs.tcz
xfce4-session.tcz
xfconf.tcz
xfdesktop.tcz
xfwm4.tcz
xf86-video-vmware.tcz
xf86-input-vmware.tcz
xfwm4-local.tcz
OSS.tcz
aterm.tcz



after exec desktop=xfwm4 then startx, the desktop shown with openbox window manager...
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 06:43:07 PM
there is another strange thing: I add "Xorg-7.7.tcz" to onboot.lst and then startx, the desktop shown without mouse, that means no window manager?! but xfwm4 and openbox are still in the system, I have not delete them!

and, I reboot and delete "Xorg-7.7.tcz" from onboot.lst and then startx, but still no mouse! Now I do not have a usable desktop?!
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 06:55:21 PM
I think the "xfwm4.tcz" maybe unusable, before, I tried a system with onboot.lst only contain

Xprogs.tcz
xfce4-session.tcz
xf86-video-vmware.tcz
xf86-input-vmware.tcz
openbox.tcz

and I may get a usable desktop, change "openbox.tcz" to "xfwm4.tcz" then got issue...
Title: Re: xfce4 and xfwm
Post by: nitram on December 06, 2015, 07:28:42 PM
Can't say whether xfwm4.tcz is unusable but it may be more complicated than some window managers. That's why i suggested just setting up something simpler. Can only speak from personal experience jwm.tcz, fluxbox.tcz and openbox.tcz are known to work well.

Since you already have Openbox downloaded, ensure all of these extensions are downloaded into /optional, listed in onboot.lst, reboot and test:

Xorg-7.7.tcz
Xprogs.tcz
xf86-video-vmware.tcz
xf86-input-vmmouse.tcz
openbox.tcz
aterm.tcz

NOTE: There is no xf86-input-vmware.tcz in TC 6, it's called xf86-input-vmmouse.tcz. This most likely explains why you're not seeing a mouse :)

Of course default Openbox doesn't show much, right-click on screen to see whether menu appears.

Don't know if you still need another xf86-video-*.tcz driver for your particular hardware, not familiar with VMware.

Highly recommend reading the Core manual, linked on home page, and start with a simple setup to start.
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 08:40:58 PM
yes, that is xf86-input-vmmouse.tcz, I type wrong

jwm.tcz \ icewm.tcz \ fluxbox.tcz \ hackedbox.tcz are all usable, I tried, but I don't like them, my desktop is Linux Mint xfce, so I feel habitual with xfce...openbox is the 2nd choose, but when I click left mouse, so many no useful menu, I feel terrible... :-[
Title: Re: xfce4 and xfwm
Post by: nitram on December 06, 2015, 09:40:45 PM
Maybe i misunderstood. Sounds like you now have a fully functional VMware Tiny Core install, just not your favourite desktop environment. Nothing to be sad about, there are lots of alternatives. I will test xfwm4.tcz on my system, reboot and get back to you with testing results. If there is an issue with the extension, you just need to send a PM (message) to the Tiny Core extension maintainer and request assistance. Get back to you in a few moments...
Title: Re: xfce4 and xfwm
Post by: nitram on December 06, 2015, 10:00:07 PM
Couldn't get it to work either, installed xfwm4.tcz and i believe xfce4-settings or session, can't remember. System booted to the correct resolution and displayed my conky desktop, but no mouse, no click menu or anything. Maybe you need to install the entire works, there are quite a few xfce4 related extensions but i am not familiar with it and the info files do not provide any explanation. If you have adequate disk space you can give it a try, but just shooting in the dark.

The info files suggest these extensions were compiled for TC 5. The extension(s) may need to be recompiled or tweaked. The extension maintainer would know best and is a regular on the forum. Hopefully he will respond with instructions or you can always PM him regarding the issue. In the meantime take the opportunity to learn another window manager :)  Take care.
Title: Re: xfce4 and xfwm
Post by: krooooo on December 06, 2015, 10:39:22 PM
Hi nitram

Thanks a lot!

Now I'm sure the xfwm4.tcz or some of xfce4 related extensions are not work, hope the maintainer may see this topic

thanks again! You are so nice!  :)
Title: Re: xfce4 and xfwm
Post by: coreplayer2 on December 06, 2015, 10:53:17 PM


...hackedbox.tcz are all usable, I tried, but I don't like them, my desktop is Linux Mint xfce, so I feel habitual with xfce...openbox is the 2nd choose, but when I click left mouse, so many no useful menu..
Right click on the desktop to bring up a usable menu in Hackedbox, left button select will not help.
Title: Re: xfce4 and xfwm
Post by: nitram on December 07, 2015, 12:07:38 AM
No problem krooooo, hopefully you eventually get the WM of your choice. I also missed this in your previous post, Openbox is nice. Fluxbox too, maybe nicer as i find it easier to configure. With default Openbox, i believe left click does nothing on the desktop, middle-click brings up workspaces menu, right-click system menu. If you run Openbox, obconf.tcz is recommended to easily set up most preferences.

Depending on your ambition, here's the xfwm4.tcz build script and source code should you want to try re-compiling for TC 6. You'll need compiletc, squashfs-tools and all dependencies first, usually the *-dev.tcz extensions. There's a section in the wiki on building extensions. I would try to recompile for you but my testing partition ran out of drive space. Take care.
http://distro.ibiblio.org/tinycorelinux/5.x/x86/tcz/src/xfwm4/
Title: Re: xfce4 and xfwm
Post by: nitram on December 07, 2015, 12:27:54 AM
Last guess then i'm out of here :)
xfce4-session.tcz contains a binary /usr/local/bin/startxfce4. As mentioned earlier, you may want to ensure xfwm4.tcz plus all xfce4-*.tcz extensions are installed to onboot.lst, then try running  startxfce4  instead of  startx. The extension maintainer will know best.
Title: Re: xfce4 and xfwm
Post by: krooooo on December 07, 2015, 05:42:10 AM
Hi  coreplayer2 & nitram

I type wrong twice, not left click, is right click, so many no useful menu...English is not my mother language  :-[

I will try startxfce4 later, and give the result here :)
Title: Re: xfce4 and xfwm
Post by: Misalf on December 07, 2015, 09:42:49 AM
The XFCE extensions don't configure the system to use it as the default desktop (i.e.  /etc/sysconfig/desktop  is not set) and don't provide any Tiny Core related script like for building menus (applications, ondemand).
Since XFCE is a Desktop Environment and not just a Window Manager, there would probably be more work required to make it a complete DE for Tiny Core.

Also  xfce4-session.tcz , xfce4-panel.tcz  and probably others are missing  libwnck2.tcz  from the .dep list.
After  libwnck2.tcz  is added to  xfce4-panel.tcz.dep , xfce4-panel seems to be usable. You might be able to use it alongside any WM by starting it from  ~/.X.d  so you could have a fancy start menu.

XFCE's Window Manager (xfwm4) seems to be quite useless without the other XFCE tools - I'd stick with Openbox in that case.
Title: Re: xfce4 and xfwm
Post by: nitram on December 07, 2015, 02:36:47 PM
I type wrong twice, not left click, is right click, so many no useful menu...English is not my mother language  :-[

I will try startxfce4 later, and give the result here :)

Hi krooooo.

Tried  startxfce4  , doesn't work. If Misalf can't get the extension running it's broken. Either the extension maintainer is willing to fix or move to another window manager. Linux Mint is a very user friendly distribution, transitioning to Tiny Core will be a nice challenge :)  You will find many things different but it is a good system if you take the time to learn.

If you are willing to be flexible available window managers with a 'Start' menu and panel include jwm and icewm. Fluxbox has a default panel but no Start type menu. All are very configurable with lots of tutorials and styles available on the internet.
Title: Re: xfce4 and xfwm
Post by: krooooo on December 08, 2015, 03:35:39 AM
Hi

when exec startxfce4, it shown this error, see picture

I will use openbox in TC, abandon xfce4 ::)

thanks everyone