LXDE It is an excellent Desktop Environment that as many of us know, it offers us as its main feature, an excellent use of the few hardware resources that some of us still have.
Although this desktop has evolved little by little, including its own applications and configuration tools, it is always useful to know some things that we can do "by hand" when you don't have the right conditions.
Applications at startup
LXDE You need us to indicate which applications you should load when you start the session, for this it uses a generic file that is located in / etc / xdg / lxsession / / autostart.
Take for example the file that comes in Linux Mint LXDE, which must contain the following:
@/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
@lxpanel --profile Mint
@xscreensaver -no-splash
@nm-applet
@pcmanfm --desktop
@bluetooth-applet
@mintinput1
@setxkbmap -option terminate:ctrl_alt_bksp
@sh -c 'test -e /var/cache/jockey/check || exec jockey-gtk --check'
@/usr/lib/linuxmint/mintUpdate/mintUpdate.py
@xdg-user-dirs-gtk-update
@system-config-printer-applet
@mintwelcome-launcher
We don't need all of this many times, so we could leave it this way:
@lxpanel --profile Mint
@pcmanfm --desktop
@mintinput1
@setxkbmap -option terminate:ctrl_alt_bksp
With this we prevent LXDE load certain proprietary applications Linux Mint that we will not need, in addition to the Bluetooth, Network Manager, among others.
Setting up the menu.
We can adjust other parameters to LXDETo adapt it a little more to our needs, an example of them is to edit the menu of the user's session so that it does not show certain entries that will not be used, or to include others.
This process is greatly facilitated with LXDE, since to include any entry to the menu, we only have to create a .desktop within / usr / share / applicactions / and it will automatically be included in the menu. Likewise, if we want, we can eliminate some .desktop that we don't want it to appear.
We can also edit it manually, editing a file with a generic name that is created within the folder .cache / menus /, example of the name of this file could be:
.cache/menus/5e8ced031fcf7dff6ea5c5a91ecc43fb
Another method would be to edit the file /etc/xdg/menus/lxde-applications.menu where we could remove the category Other (Others) for example.
Wallpaper.
LXDE manage the desktop with PCManFM, an excellent file manager that includes tabs and is easy, fast and intuitive. PCManFM is in charge of setting the user's wallpaper, icons, among other things.
If for some reason the wallpaper is not displayed, we could use the following command to activate it:
pcmanfm2 --set-wallpaper=/ruta/imagen.jpg
Putting, of course, the path where the image is located.
LXDM Fund.
LXDE includes its own session manager called LXDM. LXDM it is simple and highly customizable. Some of the topics found in / usr / share / lxdm / themes / and edit them to create your own.
However, if we only want to change the background image, we have to edit the file /etc/lxdm/default.conf and leave it this way:
[base]
greeter=/usr/lib/lxdm/lxdm-greeter-gtk
last_session=mint-lxde.desktop
last_lang=
last_langs=zh_CN.UTF-8
[server]
[display]
gtk_theme=Shiki-Wise-LXDE
bg=/ruta/imagen.jpg
bottom_pane=1
lang=1
theme=Mint
[input]
We just have to change the path of the image in the option BG and restart LXDM.
Mounting memories in PCManFM
Some time ago I had some problems when I tried to mount a flash memory or a CD-ROM using
PCManFM. This one got me a pop-up saying: Not Authorized.
In the case of USB sticks, the solution I first found was the following:
1.- Create in /half so many folders with the name usb, usb1 and so on, depending on the number of USB ports.
2.- As always the first device is mounted with sdb, I added to the file / etc / fstab the following line:
/dev/sdb1 /media/usb1 auto rw,user,noauto 0 0
/dev/sdc2 /media/usb2 auto rw,user,noauto 0 0
/dev/sde3 /media/usb3 auto rw,user,noauto 0 0
3.- Then I gave it permissions and put the user in question as the owner of those folders:
# chmod -R 755 /media/usb*
# chown -R usuario:usuario /media/usb*
But as you will understand this method is a bit dirty. So we have another solution:
1.- How to Live Aligned with root we create the file /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla (if
you can choose another name but it always has to end in .pkla).
2.- We add the following inside:
[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-
mount;org.freedesktop.udisks.drive-
eject;org.freedesktop.udisks.drive-
detach;org.freedesktop.udisks.luks-
unlock;org.freedesktop.udisks.inhibit-
polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no
3.- Then we add the user in the group STORAGE. If this group does not exist, we create it:
# addgroup storage
# usermod -a -G storage USERNAME
We reboot and ready.
International English keyboard with dead keys.
To put the keyboard in English with dead keys we use this command, which we can put in /etc/rc.local if the preferences are not saved when we restart the PC:
sudo setxkbmap us -variant intl
In particular, I always use this variant because English keyboards allow me to use the Ñ by pressing the keys [AltGr] + [N].
Do the keyboards in Cuba not have Ñ? Well shit, because all the letters are necessary
Oh my mother, this boy ... The keyboards with Ñ are the ones in Spanish. Here many keyboards are used in English as well.
If you speak Spanish, I don't know why the hell you buy English, with Spanish you can write both languages without the need for shortcuts, with English not carcamal
Does everything have to be explained to you? I don't buy that, it is bought by "someone" from the government abroad. And please, let's not make this a debate now, it doesn't make sense 😛
Come on, go cry to Kitty, she sure comforts you, I'm not bad at that hahaha
To type characters like <> \ | ¬ and others, it is more complex in Spanish (at least for me), and we use those characters a lot in bash, python or simply in the terminal.
I call that Spanishitis hahahahaha
there are keyboards in Spanish that have those keys », ¬, | »Like those that I just wrote without problems.
effectively
I prefer the English keyboard, that is ... the "little pictures" on the keys as it is, but write in English as such, and if I wish ñ then Alt and that's it.
Spanishitis, if you look what I say
You also have to do the accents with key combinations I imagine, right?
Nope, I press [´] + [a] and voila, I have 🙂
Although I also have the possibility to press [Alt] + [a] y = á 😀
Here in Belgium the keyboard theme is an ordeal, instead of the typical «qwerty» we have the «azerty» ... also, for numbers you have to press the capital key, and with capital letter pressed all the keys have a different function (for not to mention enyes and tildes) total chaos !! but hey, you get used to everything ... at home I have the laptop that I brought from Spain, and at work the «azerty» keyboard and I almost get more confused at home than at work lol I said, a matter of practice and habits 🙂
That's age, that's why you get confused
lol
I have to "fight" with this every day!
http://es.wikipedia.org/wiki/Teclado_AZERTY
well, Monday to Friday xDD
The tips are very useful, but with Lxde I use Wdm as a session manager because it is lighter. I continue to mount my devices with mount due to the problems I have with the graphic file managers, a pity that fd does not have automounted, otherwise it would be one more pass than it already is.
Greetings.
With the option (second of this post) you can use udisk to mount with:
$ udisks --mount /dev/sdb1
or you can also set the option of automount devices when inserting it into pcmanfm.
but what problems are those graphic managers?
With these tips it occurred to me to program something, to see what comes out.
They can also include the option to shoot "Screenshot" which by default is disabled in Openbox. I was looking for that on the internet to see if I did a kind of Iptables configuration tutorial on Webmin for a friend who is also a network administrator and I realized that openbox does not have it by default. This is what I found:
First we make a script that allows us to make the captures, for that with root access we create our scripts in the folder / usr / local / bin with this code:
#!/bin/bash
DATE=`date +%Y-%m-%d\ %H:%M:%S`
import -window root "$HOME/Desktop/screenshot $DATE.png"
the scrip is almost "harmless" just create the screenshot with the name "screenshot" followed by the date. After having that script in the folder we give it execution permission:
$ sudo chmod a+x /usr/local/bin/screenshot.sh
and then we make Openbox run that script every time we hit the Print key. for that we open the Openbox configuration file that is in the location ~ / .config / openbox / lxde-rc.xml and inside that file we look for the «Keyboard» section which is the one that configures the keyboard and there we add the option to execute the script with the Print key for that they put this code there in that section:
screenshot.sh
Then we only have to reconfigure the openbox:
$ sudo openbox --reconfigure
Ready…. and our Openbox manager must be able to pull the screenshots. This is one of the options that I found although you can also check the LXDE Wiki to see more things
Sorry, but I can't find where to edit the posts that I put, so I just have to apologize and tell you that the code to put in the keyborad section is this:
screenshot.sh
not precisely
screenshot.sh como les puse
…. sorry it was a lapse mentis
Hello, how can I theme the lubuntu login screen if possible, that was one of the things I liked about ubuntu 9,04. If anyone knows how I can install themes on the login screen I would appreciate it
How much trouble with the letter Ñ or ñ and English keyboards? if it is enough to define the keyboard as Spanish at the time of installation.
In fact at this moment I do it from an English keyboard configured as Spanish.
Well, I use the US International variant with Dead Keys on the English keyboard and put the ñ with the combination AltGr + N
Hello, excuse me, could someone help me change the white background of PCmanFM for an image as it can be done with Nautilus, I have searched a lot on the internet but I have not found the way, I do not know what file to edit. I use Fedora 16 LXDE, thanks in advance and sorry for the inconvenience. Regards.
Hello, DEBIAN WHEEZY, gnome 3, there is a solution to unmount everything and not block the system, when the system is restarted or shut down, it is to place umount -a, before the exit or the end of the line of the file in / etc / gdm3 / PsotSesion / default as it would be done in LXDE or lingthdm.
install DEBIAN WHEEZY, with LXDE by default install ligthdm, to solve it install gdm3, but it installs the audio server press audio, which I don't want.
Good
I want to put a custom image in lubuntu on startup, I want to customize the splash ... would you know how? thanks