Author Topic: Lxde  (Read 5968 times)

merlin1

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Lxde
« on: January 15, 2010, 05:03:21 pm »
Howdy,

lxde works pretty well on the Netwalker. Installing it is easy but it doesn't pay attention to the autostart configured in the Gnome session which means that when you just install and reboot, you'll be missing quite a bit of things, most notably WiFi. Here's how I solved this problem but if there's a better way to accomplish this, please don't hesitate to tell me.

Installing as usual...
Code: [Select]
sudo apt-get update
sudo apt-get install lxde

Now to fix the autostarted apps...
Code: [Select]
sudo mv /etc/xdg/autostart/*.desktop ~/.config/autostart
chown user:user ~/.config/autostart/*.desktop
chmod 755 ~/.config/autostart/*.desktop

Replace user with your actual user name.

Next issue - some apps are configured to only launch in Gnome. To fix this, we have to open every .desktop file in the ~/.config/autostart directory in an editor and look for the line reading "OnlyShowIn=..." LXDE has to be part of the list that follows. If it isn't present, add it like this:
Code: [Select]
OnlyShowIn=GNOME # bad
OnlyShowIn=GNOME;LXDE # good

After this is done, you can finally reboot/log off and on. It is worth mentioning that by moving every autostart file some Gnome stuff is started as well, resulting in a higher RAM consumption than what I usually see with pure lxde. However, I don't certainly know which ones can be removed without confining functionality. If someone knows, help is highly appreciated.

merlin1
« Last Edit: January 18, 2010, 10:04:56 am by merlin1 »
"Mommy, what's a signature?"

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #1 on: January 17, 2010, 02:51:30 pm »
Thanks for the great instructions, merlin1....got LXDE working on my Netwalker now....

Nice! and snappy too!!!

One question please, where you go to change appearance, etc in LXDE?

Thanks.
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

merlin1

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Lxde
« Reply #2 on: January 17, 2010, 03:24:04 pm »
Quote from: ArchiMark
Thanks for the great instructions, merlin1....got LXDE working on my Netwalker now....

Nice! and snappy too!!!

One question please, where you go to change appearance, etc in LXDE?

Thanks.
There are two programs, one is Openbox Configuration Manager (obconf), other is Appearance (lxappearance). Those two provide lots of options to configure appearance (fonts, icons, themes) and behaviour. Wallpaper can be set by right-clicking on desktop. The panel is not easily configurable AFAIK.
"Mommy, what's a signature?"

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #3 on: January 17, 2010, 03:48:53 pm »
Thanks for the info, merlin1....

Meanwhile, one other question please....

Now, when I just tried to get online using Firefox after turning on the WiFi function (green light is on...), it didn't connect. In Gnome there was the network app in the upper task bar, where is the equivalent in LXDE???

Or do I need to use Terminal to get connected?
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

merlin1

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Lxde
« Reply #4 on: January 17, 2010, 04:45:52 pm »
Quote from: ArchiMark
Thanks for the info, merlin1....

Meanwhile, one other question please....

Now, when I just tried to get online using Firefox after turning on the WiFi function (green light is on...), it didn't connect. In Gnome there was the network app in the upper task bar, where is the equivalent in LXDE???

Or do I need to use Terminal to get connected?
Sounds like the NetworkManager applet is missing. Are you sure you moved all the autostarts over as outlined above?

For a quick fix, try running this in a Terminal:
Code: [Select]
nm-applet --sm-disableIf it complains due to permissions, add sudo before the command.

To check if something's wrong with your config, issue this, replacing user with your actual user name:
Code: [Select]
ls -al /home/user/.config/autostartThe output should be something like this:
Code: [Select]
...
-rw-r--r--  1 user user  361 2009-12-20 16:28 nm-applet.desktop
...
It'll show your user name of course and more .desktop files. nm-applet.desktop is the important file. It must be in there. If there's nothing in this directory then the autostarts configured in Gnome have not been successfully moved, that's why LXDE won't execute them. If you edit this file, does it contain the following?
Code: [Select]
[Desktop Entry]
Name=Network Manager
Comment=Control your network connections
Icon=nm-device-wireless
Exec=nm-applet --sm-disable
Terminal=false
Type=Application
OnlyShowIn=GNOME;XFCE;LXDE
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=NetworkManager
X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-enabled=true
X-Ubuntu-Gettext-Domain=nm-applet
« Last Edit: January 17, 2010, 06:20:29 pm by merlin1 »
"Mommy, what's a signature?"

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #5 on: January 17, 2010, 05:10:31 pm »
Thanks, merlin1....

Did your quick fix and voila! NetworkManager opened and I got the icon in the task bar like before in Gnome....got connected OK after that...so that's good...

However, when I just tried to check if my config is OK using Terminal, per your instructions, I noticed that my keyboard mapping is not right anymore, so, I can't type the '~' symbol and some others anymore...doesn't type characters when I press Fn+Shift + other key like before...

So, tried to find the Keyboard Layout app like I used in Gnome, but I don't see it listed in drop-down menus either....

Any suggestion as to how to get to Keyboard Layout so that I can fix it again and then do the other steps in your instructions?

Thanks.
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

merlin1

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Lxde
« Reply #6 on: January 17, 2010, 06:16:25 pm »
What exactly is wrong with your keyboard layout? Are some normal non-orange characters messed up as well? And does it happen in Gnome too? ~ refers to your home folder so you can also type /home/sharpie instead, assuming sharpie is your user name.

Does this help?
« Last Edit: January 17, 2010, 06:17:57 pm by merlin1 »
"Mommy, what's a signature?"

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #7 on: January 17, 2010, 09:07:10 pm »
Quote from: merlin1
Sounds like the NetworkManager applet is missing. Are you sure you moved all the autostarts over as outlined above?

I thought I moved all of them...

Quote
For a quick fix, try running this in a Terminal:
Code: [Select]
nm-applet --sm-disableIf it complains due to permissions, add sudo before the command.

OK, did that and it worked, the app opened and shows up as before in Gnome in task bar....

Quote
To check if something's wrong with your config, issue this, replacing user with your actual user name:
Code: [Select]
ls -al /home/user/.config/autostartThe output should be something like this:
Code: [Select]
...
-rw-r--r--  1 user user  361 2009-12-20 16:28 nm-applet.desktop
...
It'll show your user name of course and more .desktop files. nm-applet.desktop is the important file. It must be in there. If there's nothing in this directory then the autostarts configured in Gnome have not been successfully moved, that's why LXDE won't execute them.

Yes, that file along with lots of users shows up in Terminal....but mine looks like this:

Code: [Select]
...
-rwxr-xr-x-  1 user user  357 2009-04-14 06:22 nm-applet.desktop
...


Quote
If you edit this file, does it contain the following?
Code: [Select]
[Desktop Entry]
Name=Network Manager
Comment=Control your network connections
Icon=nm-device-wireless
Exec=nm-applet --sm-disable
Terminal=false
Type=Application
OnlyShowIn=GNOME;XFCE;LXDE
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=NetworkManager
X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-enabled=true
X-Ubuntu-Gettext-Domain=nm-applet

Oops, I had everything like yours except LXDE in the 'OnlyShowIn...' line.....added it now...

Hmmm.....rebooted, but Network Manager and Battery App the battwalker app you posted about, do not show up in task bar.....

Also, in start menu, System Tools, I see Network Tools, not Network Manager....

I did fix keyboard per your other post, seems to be OK now....

Thanks!
« Last Edit: January 17, 2010, 10:10:07 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

merlin1

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Lxde
« Reply #8 on: January 18, 2010, 10:03:36 am »
Mark,

the ownership settings seem incorrect to me. Type
Code: [Select]
chown sharpie:sharpie ~/.config/autostart/*.desktopin Terminal but make sure that, if your user name is not sharpie, you modify the command appropriately. You have to be owner of all those files. So if your user name is mark (just an example) that would be:
Code: [Select]
chown mark:mark ~/.config/autostart/*.desktop
"Mommy, what's a signature?"

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #9 on: January 18, 2010, 12:53:19 pm »
Quote from: merlin1
Mark,

the ownership settings seem incorrect to me. Type
Code: [Select]
chown sharpie:sharpie ~/.config/autostart/*.desktopin Terminal but make sure that, if your user name is not sharpie, you modify the command appropriately. You have to be owner of all those files. So if your user name is mark (just an example) that would be:
Code: [Select]
chown mark:mark ~/.config/autostart/*.desktop


merlin1,

Thanks for your help as always....

Tried what you instructed and then rebooted, but notice no change in task bar, ie, no battery app, no network manager, etc showing up there....

Any other thoughts?

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #10 on: January 20, 2010, 12:03:34 am »
So, unless there's some other suggestions, I'm going back to Gnome for now as at least that works....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

merlin1

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Lxde
« Reply #11 on: January 20, 2010, 04:19:01 pm »
I'd be lying if I said this is not strange.  I'll try to find a solution and post it here but IIRC I didn't have to do anything else and LXDE is paying attention to my autostarts.
"Mommy, what's a signature?"

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
Lxde
« Reply #12 on: January 20, 2010, 07:38:22 pm »
Quote from: merlin1
I'd be lying if I said this is not strange.  I'll try to find a solution and post it here but IIRC I didn't have to do anything else and LXDE is paying attention to my autostarts.

Well, it always seems that I end up having strange things happen when it involves Linux I've found....don't know why.....

 
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/