WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LXDE Displays Unwanted wbar  (Read 7625 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: LXDE Displays Unwanted wbar
« Reply #15 on: February 11, 2010, 10:39:16 AM »
The wiki is slightly out of date; however, the only difference to a 2.8.1 TC is that you have the X parts (Xlibs.core.gz, Xprogs.core.gz, Xvesa.core.gz) in your tce directory (not optional like normal extensions). You'll also need to have a WM extension in your optional directory, as flwm is not included in the core extensions.

The end result is the same as with a TC boot, but without wbar.
« Last Edit: February 11, 2010, 10:42:03 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: LXDE Displays Unwanted wbar
« Reply #16 on: February 11, 2010, 12:57:51 PM »
A couple of questions...

...you have the X parts (Xlibs.core.gz, Xprogs.core.gz, Xvesa.core.gz) in your tce directory (not optional like normal extensions).
When updates are issued for these X parts will they be updated and applied in the same way as extensions in the optional directory are updated?

The end result is the same as with a TC boot, but without wbar.
Apart from no wbar what are the principal advantages of building a GUI environment on MC?

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: LXDE Displays Unwanted wbar
« Reply #17 on: February 11, 2010, 01:09:04 PM »
They are not extension, they are additional initramfs images just as microcore.gz and tinycore.gz.
Therefore you would download them just as you would microcore.gz.

The advantage is you get to choose your window manager or full desktop environment as well as any icon choice.

By the far the easiest solution is to use the boot code of noicons!
10+ Years Contributing to Linux Open Source Projects.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: LXDE Displays Unwanted wbar
« Reply #18 on: February 11, 2010, 03:41:00 PM »

The end result is the same as with a TC boot, but without wbar.
Apart from no wbar what are the principal advantages of building a GUI environment on MC?

It's the choice. You don't have unwanted things running, not even taking any space. If you wanted to use Xfbdev or Xorg instead of Xvesa, no Xvesa taking space then.
The only barriers that can stop you are the ones you create yourself.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: LXDE Displays Unwanted wbar
« Reply #19 on: February 12, 2010, 01:02:51 AM »
By the far the easiest solution is to use the boot code of noicons!
If the resulting 'bundle' of TC+extensions were to be used primarily by me, using "noicons" may well be the solution adopted.  However, the primary user has limited computer skills and is a long-time user of MS-Windows.

One of the design objectives is to produce a bundle which eases the transition from MS to TC. Openbox+LXDE was selected as it presents a Windows-like GUI.  Wine is also used to allow the use of Windows portable applications and provide familiarity during the transitional phase. 

Providing menu entries for the portable applications is achieved via an entry in bootlocal.sh to a script in /home/tc.  This mechanism also provides menu entries for TC extensions and scripts which do not provide their own menu entries.

The use of bootcodes is unfamiliar to the intended user and therefore deemed to be undesirable.  A UK keyboard layout is required and is setup from bootlocal.sh.  Initial cleaning of the cache is also conducted from bootlocal.sh.  From a maintenance point of view,  in the absence of an official means (other than "noicons") it is desirable to control the display of wbar from bootlocal.sh also.
 

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: LXDE Displays Unwanted wbar
« Reply #20 on: February 12, 2010, 05:34:14 AM »
Quote
Is it possible to boot without using the bootcode "noicons" and unset the variable "ICONS" with a command issued from /opt/bootlocal.sh?
No, because bootlocal.sh is a child script. Any changes to environment variables within it do not affect the init process.
If I recall correctly back in the days of MS-DOS 5 & 6 there were utilities that allowed changes to be made in the master environment from a local environment.  Do similar utilities exist that can be used in TC?
 

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: LXDE Displays Unwanted wbar
« Reply #21 on: February 12, 2010, 06:46:50 AM »
Boot options does not necessarily imply manually entering them.
Typically they are added to the stanza of the boot loader.

By your suggesting to use bootlocal does imply that a backup be pre-made or a remaster, either way, implies pre-setup boot media. Therefore on such media the boot loader could be deployed.
10+ Years Contributing to Linux Open Source Projects.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: LXDE Displays Unwanted wbar
« Reply #22 on: February 12, 2010, 08:22:20 AM »
If you don't want to edit .xsession, unset ICONS in .profile.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: LXDE Displays Unwanted wbar
« Reply #23 on: February 12, 2010, 10:54:54 AM »
Quote
If you don't want to edit .xsession, unset ICONS in .profile.

Unfortunately, that doesn't work. For Sam's benefit, the startup sequence is init --> /root/.profile --> /home/tc/.profile --> /usr/bin/startx --> /home/tc/.xsession. If you examine /usr/bin/startx, you will see:
export ICONS=`cat /etc/sysconfig/icons`

If you are going to add anything to /home/tc/.profile, I'd suggest:
rm -f /etc/sysconfig/icons
or
sed '/wbar/d' -i /home/tc/.xsession

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: LXDE Displays Unwanted wbar
« Reply #24 on: February 12, 2010, 12:23:08 PM »
Quote
If you are going to add anything to /home/tc/.profile, I'd suggest:
rm -f /etc/sysconfig/icons

In that case this could also be added to /opt/bootlocal.sh
Aren't Linux's endless possibilities wonderful?

The "right way" and hundreds of other ways.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: LXDE Displays Unwanted wbar
« Reply #25 on: February 12, 2010, 12:58:14 PM »
Quote
In that case this could also be added to /opt/bootlocal.sh

I considered that, but I didn't mention it because bootlocal.sh is executed asynchronously. There is no way to guarantee it will execute before .xsession, although it is very likely due to the delays involved in starting X.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: LXDE Displays Unwanted wbar
« Reply #26 on: February 12, 2010, 01:22:10 PM »
That suggests a useful boot option.
'sync' that would not detach bootlocal.sh.
Though on second thought that might cause percieved unexplained hangs during boot.
« Last Edit: February 12, 2010, 01:23:51 PM by gerald_clark »

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: LXDE Displays Unwanted wbar
« Reply #27 on: February 12, 2010, 01:49:34 PM »
Quote
That suggests a useful boot option. 'sync' that would not detach bootlocal.sh.
That would undesirable because proper behavior of the script would be dependent on the boot option. Were the boot option not present, the behavior of the system would be undefined.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: LXDE Displays Unwanted wbar
« Reply #28 on: February 12, 2010, 10:13:31 PM »
Certainly it would be defined.
If sync was not set, bootlocal.sh would be run with the '&'
If set, the '&' would be omitted, and race conditions would be avoided.