WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install a custom FLWM  (Read 6013 times)

Offline qg

  • Newbie
  • *
  • Posts: 6
How to install a custom FLWM
« on: February 28, 2017, 08:15:01 AM »
Hi,

I would like to disable some hot keys from the standard FLWM.
Here is what I have done so far:
- I downloaded the code source for FLWM from github (https://github.com/tinycorelinux/flwm)
- I modified the config.h file to satisfy my needs
- I compiled the code using "./compileit"
- Everything worked and I now have two executable files: flwm and flwm_topside

Now my problem comes from the installation.
I already have flwm_topside installed on my distribution and I can find the "flwm_topside.tcz" file under my tce/optional folder.
I thought it would be a good idea to just replace this "flwm_topside.tcz" by my new executable file flwm_topside after squashing it (mksquashfs). That's what I did but now there is no background, no mouse icon, etc. It's the same as not having a window manager with no background. So that's obviously not the right way to do it.

I have been looking around trying to find the solution to my problem but I couldn't.
How do we install a custom FLWM ?

I thought the problem could come from the following executable files that are missing in my compiled flwm : flwm_topside_initmenu, flwm_topside_makemenu, flwm_topside_menu_common, etc. (found in /usr/local/bin/)
But I can't file these files anywhere.

Thanks in advance

PS: I am using tinycore 7.2

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install a custom FLWM
« Reply #1 on: February 28, 2017, 09:38:22 AM »
First load the old flwm extension, then:
Code: [Select]
$ mkdir /tmp/pkg
$ sudo cp -rp /tmp/tcloop/flwm/usr /tmp/pkg
$ sudo cp flwm /tmp/pkg/usr/local/bin [your new flwm]
$ cd /tmp
$ sudo mksquashfs pkg/ flwm.tcz

Offline qg

  • Newbie
  • *
  • Posts: 6
Re: How to install a custom FLWM
« Reply #2 on: February 28, 2017, 11:18:11 AM »
Thanks !
It works great  :)

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #3 on: June 27, 2018, 11:35:47 PM »
Hi Juanito,
May I ask to deal these issues with core-remaster?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install a custom FLWM
« Reply #4 on: June 28, 2018, 05:55:44 AM »
Sorry, but I'm not sure what you are asking for?

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #5 on: June 28, 2018, 09:13:20 AM »
I have tried to remaster ISO (using core-remaster, mksquashfs). Recompiles flwm_topside
config.h as..
Code: [Select]
#define DESKTOPS 0
#define WMX_MENU_ITEMS 0
#define XTERM_MENU_ITEM 0
and put it in flwm_topside.tcz; remastered ISO. Now no arrow head mouse pointer and other issues.
Using tinycore9.x

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install a custom FLWM
« Reply #6 on: June 28, 2018, 09:51:52 AM »
Does your modified flwm work without remastering?

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #7 on: June 28, 2018, 10:33:42 AM »
Compiled flwm_topside from
https://github.com/tinycorelinux/flwm
Extracted flwm_topside.tcz from iso, unsquashed and replaced 'flwm_topside', repackaged .tcz, and replaced it.

Offline Pats

  • Sr. Member
  • ****
  • Posts: 322
Re: How to install a custom FLWM
« Reply #8 on: June 28, 2018, 10:56:14 AM »
Dunno , if following links abt permision problems , missing files in remastering  are of any help :

http://forum.tinycorelinux.net/index.php?topic=13716.0

http://forum.tinycorelinux.net/index.php?topic=15411.0

Also if Xorg , then ggl Pendrive dot com - Mouse pointer disappears problem.

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #9 on: June 29, 2018, 04:18:29 AM »
Hi Juanito,
I followed following command to create a new 'flwm_topside' to put in 'flwm_topside.tcz'
Code: [Select]
tc@box:~$ tce-load -iw git fltk-1.3-dev Xorg-7.7-dev sstrip compiletc man
tc@box:~$ git clone http://git.tinycorelinux.net/flwm
tc@box:~$ cd flwm
tc@box:~$ g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -shared -o ./../new_flwm_topside -DTOPSIDE *.C $CXXFLAGS $LDFLAGS
tc@box:~/flwm$ sstrip ./../new_flwm_topside
Note: Here is have used "-shared" option is g++ command to avoid errors.
Then changed the permission of 'new_flwm_topside'
Code: [Select]
tc@box:~$ sudo chmod 755 new_flwm_topside
Then, Extracted 'flwm_topside.tcz' from TC-ISO file and unsquashfs it.
Code: [Select]
tc@box:~$ unsquashfs flwm_topside.tcz
tc@box:~$ sudo rm flwm_topside.tcz
Then copied 'new_flwm_topside'..
Code: [Select]
tc@box:~$ sudo cp new_flwm_topside  ./squashfs-root/usr/local/bin/flwm_topside
Then repackaged 'flwm_topside.tcz'
Code: [Select]
tc@box:~$ mksquashfs ./squashfs-root/ flwm_topside.tcz
And finally replaced 'flwm_topside.tcz' in ISO file.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install a custom FLWM
« Reply #10 on: June 29, 2018, 04:22:56 AM »
does it work?

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #11 on: June 29, 2018, 04:41:24 AM »
Not worked!
No arrow head mouse pointer. No title bar on GUI windows.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install a custom FLWM
« Reply #12 on: June 29, 2018, 05:23:55 AM »
I would suggest that, once you have recompiled flwm and without rebooting:

* overwrite the extension symlink /usr/local/bin/flwm with your newly compiled flwm
* exit to the console prompt
* startx

..this will show whether the problem is with your recompiled flwm or with repackaging/remastering.

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #13 on: June 29, 2018, 05:59:24 AM »
May I ask the correct command make a symlink? is it
Code: [Select]
ls -s ??

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: How to install a custom FLWM
« Reply #14 on: June 29, 2018, 06:13:04 AM »
Yes, "sudo ln -s", but no need to remake a symlink,  just overwite the existing symlink with your actual recompiled file.