Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: RYTCL on November 29, 2020, 05:33:09 PM

Title: icewm - missing config files
Post by: RYTCL on November 29, 2020, 05:33:09 PM
During BOOTUP,  ICEWM  display 4-6 error messages
/tmp/tcloop/icewm/..../preferences
/tmp/tcloop/icewm/..../taskbar
& others

I did delete all of the following ICEWM packages through APPS and added them back using tce-ab utility.


I am unable to change the desktop look & feel due to the missing files.
Title: Re: icewm - missing config files
Post by: RYTCL on November 29, 2020, 05:37:03 PM
At bootup ICEWM complains about missing files.   Exact error message,  I cannot capture.   
Title: Re: icewm - missing config files
Post by: RYTCL on November 29, 2020, 05:57:32 PM
ERROR messages reproduced using my my Phone to take a snapshot...

cp: can't stat '/tmp/tcloop/icewm/usr/local/share/icewm/preferences';   No such file or directory
cp: can't stat '/tmp/tcloop/icewm/usr/local/share/icewm/toolbar';   No such file or directory
cp: can't stat '/tmp/tcloop/icewm/usr/local/share/icewm/keys';   No such file or directory
cp: can't stat '/tmp/tcloop/icewm-list/usr/local/share/icewm-list/icewm.lst';   No such file or directory

 
Title: Re: icewm - missing config files
Post by: Rich on November 29, 2020, 10:00:53 PM
Hi RYTCL
I think I see what the problem is.

What does this command return:
Code: [Select]
ls -l /etc/sysconfig/tcedir | grep copy2fs
Title: Re: icewm - missing config files
Post by: RYTCL on November 29, 2020, 10:15:01 PM
I have enabled persistent HOME & OPT

Code: [Select]
menuentry ' 0. TinyCore 11.1 - SDA9 ' {       
  set root=(hd0,gpt9)           
  echo   'A..... Loading TinyCore VMLINUZ64 .....'
  linux  /tce/boot/vmlinuz64 waitusb:15=LABEL=TinyCore \
         tce=LABEL=TinyCore loglevel=3 showapps pause \
         noswap laptop home=sda9 opt=sda9
#        debug                 
                                 
  echo   'B..... Loading TinyCore COREPURE64.gz .....'
  initrd /tce/boot/corepure64.gz                 
  echo   'C..... Booting TinyCore 11.1 .....'
}                             

TCEDIR is linked to /mnt/sda9/tce

Code: [Select]
/etc/sysconfig/tcedir -> /mnt/sda9/tce
$>  ls -l /etc/sysconfig/tcedir | grep copy2fs

Result : No Output

There is a copy2fs.flg file with 0 Bytes

Code: [Select]
/mnt/sda9/tce> ls -al /mnt/sda9/tce
total 17552
drwxrwxr-x    5 tc       staff         4096 Nov 29 16:04 .
drwxr-xr-x    6 root     root          4096 Nov 28 14:36 ..
drwxrwxr-x    3 tc       staff         4096 Nov 25 00:26 boot
-rw-rw-r--    1 tc       staff            0 Nov 25 14:35 copy2fs.flg
-rw-rw----    1 tc       staff            0 Nov 25 01:32 firstrun
-rw-rw-r--    1 tc       staff         1737 Nov 29 19:37 mydata.tgz
-rw-rw-r--    1 tc       staff          500 Nov 29 19:38 onboot.lst
drwxrwxr-x    2 tc       staff         4096 Nov 25 00:32 ondemand
drwxrwxr-x    3 tc       staff        20480 Nov 29 19:08 optional
-rw--w----    1 tc       staff     17927535 Nov 29 09:28 provides.db
-rw-rw-r--    1 tc       staff            0 Nov 25 00:44 xwbar.lst


Title: Re: icewm - missing config files
Post by: Rich on November 29, 2020, 10:19:14 PM
Hi RYTCL
... There is a copy2fs.flg file with 0 Bytes ...
That's what I figured. I'll fix the extensions.
Title: Re: icewm - missing config files
Post by: Rich on November 29, 2020, 10:24:18 PM
Hi RYTCL
... TCEDIR is linked to /mnt/sda9/tce

Code: [Select]
/etc/sysconfig/tcedir -> /mnt/sda9/tce
$>  ls -l /etc/sysconfig/tcedir | grep copy2fs

Result : No Output ...
Shame on me. That should have been:
Code: [Select]
ls -l /etc/sysconfig/tcedir/ | grep copy2fsThen it would have shown up.
Title: Re: icewm - missing config files
Post by: Rich on November 29, 2020, 11:50:06 PM
Hi RYTCL
I fixed  icewm.tcz  and  icewm-list.tcz. Update your extensions and let me know how it goes.

The issue was the  tce.installed  scripts contained paths in this format:
Code: [Select]
/tmp/tcloop/icewm/usr/local/share/icewm/There is no  /tmp/tcloop/  for extensions loaded using one of the  copy2fs  files. The path should look like this:
Code: [Select]
/usr/local/share/icewm/
Title: Re: icewm - missing config files
Post by: RYTCL on November 30, 2020, 04:25:42 AM
Thanks - that worked.

My current ICEWM-> Themes : WIn95

Questions:
1.  I can pick the Date/Time format on the Taskbar to 'Date".   But, setting disappears on reboot or Restart-ICEWM.
2.  I see ERROR message during BOOT  :   sleep: Invalid Number 'LABEL=TinyCore'
3.  Is there an extension to control Screen BRIGHTNESS ?

Title: Re: icewm - missing config files
Post by: jazzbiker on November 30, 2020, 04:41:53 AM
Hi, RYTCL!


2.  I see ERROR message during BOOT  :   sleep: Invalid Number 'LABEL=TinyCore'

Probably You make some mistakes in Your waitusb= definition in Your bootloder config file. My guess is that You've missed immediate delay value, or maybe some delimiters.
Title: Re: icewm - missing config files
Post by: RYTCL on November 30, 2020, 04:45:56 AM
I was able to change the CLOCK FORMAT by setting it in ~/.icewm/preferences  ::
TimeFormat="%a %b %Y-%m-%d %H:%M:%S"

Title: Re: icewm - missing config files
Post by: Juanito on November 30, 2020, 06:03:15 AM
Is there an extension to control Screen BRIGHTNESS ?

You may be able to do someting analagous to this:
Code: [Select]
$ echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness
Where the maximum allowable brightness can be found at:
Code: [Select]
$ cat /sys/class/backlight/intel_backlight/max_brightness
937

Some window managers (gnome-session) might offer a gui widget.
Title: Re: icewm - missing config files
Post by: RYTCL on November 30, 2020, 08:08:53 AM
jazzbiker, Thanks for pointing it out.

 SLEEP - Invalid Number   FIX ::   waitusb:15=LABEL=TinyCore   ==>>  waitusb=15:LABEL=TinyCore

What can we say... TinyCore is very picky with characters :)



Juanito, regarding BRIGHTNESS control, folder "/sys/class/backlight/" is empty.  Do I need to install additional extensions ?

Title: Re: icewm - missing config files
Post by: Rich on November 30, 2020, 08:38:34 AM
Hi RYTCL
... What can we say... TinyCore is very picky with characters :) ...
Hey, this is Linux, not high school. Spelling, punctuation, and capitalization all count. :o
Title: Re: icewm - missing config files
Post by: Juanito on November 30, 2020, 12:04:21 PM
Juanito, regarding BRIGHTNESS control, folder "/sys/class/backlight/" is empty.  Do I need to install additional extensions ?

You could try exiting to the console prompt and loading either graphics-KERNEL and/or xf86-video-*, where * is your graphics hardware.
Title: Re: icewm - missing config files
Post by: RYTCL on November 30, 2020, 10:25:56 PM
Juanito -  Thanks. I am now able to control screen brightness.