randomfere.blogg.se

Openbox raspberry pi
Openbox raspberry pi




Auto-run MinecraftĪssuming you have already installed Minecraft on your Pi you can auto-run it as well. Method 2 will take priority over Method 1. This means you can no longer use both methods at the same time. Since v0.4.9 If both files are present, lxsession only executes the local file. The LXDE desktop should load and your chosen applications should launch. Once your configuration file has been updated you are ready to test. It is usually blank when you first edit it so just add the applications you need to auto-load: save and exit the nano editor press CTRL-X, Y and then ENTER. The alternative method is to create a configuration file that is unique to the currently logged in user. First you need to edit this text file : sudo nano ~/.config/lxsession/LXDE/autostartĪs in Method 1 this file represents a list of commands to be executed when the GUI loads. You can use your preferred text editor if nano isn’t your first choice. For example if I add lines for LXTerminal and Leafpad my file looks like this : -profile -desktop -profile save and exit the nano editor press CTRL-X, Y and then ENTER. Note : The newer Raspbian image changed the folder “LXDE” to “LXDE-pi” so the line above has been updated.Īfter the last line add a line for each application you wish to autorun. Use the following command to launch the nano text editor and edit the autostart file : sudo nano /etc/xdg/lxsession/LXDE-pi/autostart Usually this user is the default ‘Pi’ account. They will load whenever LXDE is loaded regardless of what user is logged in at the time. This method uses a global list of autostart applications that applies to all user accounts.

openbox raspberry pi openbox raspberry pi

Start by booting your Pi to the command prompt.

openbox raspberry pi

For most people either one will work but if in doubt use Method 1. In the examples below I’ve added two applications (LXTerminal and Leafpad) but you can add however many you need. Popular choices might include LXTerminal, Scratch, Midori and Leafpad. In your projects you may want to auto-load one or more of these applications when you run startx to save you having to launch them manually. Within this environment there are plenty of applications and utilities. If you use the Raspbian operating system on your Raspberry Pi you will be aware that when you type startx you launch the graphical user interface “LXDE”.






Openbox raspberry pi