Facebook Twitter Instagram Pinterest YouTube
    Trending
    • Elecrow Meteor IPS Touchscreen with RGB LEDs
    • Pi Pico Pinout Display on the Command Line
    • How to Add a Raspberry Pi Pico Reset Button
    • Pi Pico Onboard LED
    • Pi Pico W Pinout and Power Pins
    • CrowPi L Raspberry Pi Laptop and Learning Platform
    • Pi Pico W Launched
    • Add Kodi to RetroPie Menu
    Facebook Twitter Instagram Pinterest YouTube RSS
    Raspberry Pi SpyRaspberry Pi Spy
    • Home
    • Categories
      • General
      • Hardware
      • Programming
      • Python
      • Software
      • Tutorials & Help
    • BerryClip
      • BerryClip Instructions
      • BerryClip Plus Instructions
      • Videos & Reviews
    • Buy
      • Buy Pi
      • Buy Pi Accessories
      • Buy Books
    • Tools
      • Ultimate Raspberry Pi Alexa Skill
      • Pi Power Estimator App
      • Pi-Lite 14×9 LED Matrix Sprite Editor
      • RPiREF Pin-out Reference App
      • Simple Ohm’s Law Calculator
      • Web Sites & Links
    • Tutorials & Help
        Featured
        November 9, 20200

        Raspberry Pi Temperature Monitoring

        Recent
        December 23, 2022

        How to Add a Raspberry Pi Pico Reset Button

        November 20, 2022

        Pi Pico Onboard LED

        May 6, 2022

        Add Kodi to RetroPie Menu

      1. Contact Us
      2. Site Map
      Raspberry Pi SpyRaspberry Pi Spy
      You are at:Home»Tutorials & Help»Auto Login & Auto Load LXDE

      Auto Login & Auto Load LXDE

      5
      By Matt on June 5, 2012 Tutorials & Help

      If you are running the Raspbian operating system you may want to have your Pi auto-login. This may be particularly useful if you are using your Pi to perform a specific operation where you don’t want to login using a keyboard when it is turned on.

      You may also want the LXDE desktop to auto run on bootup.

      The steps below will explain how this can be done :

      Auto Login

      Open a terminal (i.e. LXTerminal) and type :

      sudo nano /etc/inittab

      followed by Enter. Scroll down to the line :

      1:2345:respawn:/sbin/getty 115200 tty1

      and add a # character to the begining of the line to disable it :

      #1:2345:respawn:/sbin/getty 115200 tty1

      Under the line add the following :

      1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

      where “pi” is the username.

      Type “Ctrl+X” to exit, then “Y” to save followed by Enter twice.

      Auto Load LXDE Desktop (StartX)

      Open a terminal (i.e. LXTerminal) and type :

      sudo nano /etc/profile

      Scroll to the bottom and add the following line :

      startx

      Type “Ctrl+X” to exit, then “Y” to save followed by Enter twice.

      Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
      Previous ArticleMatt’s First Raspberry Pi Photos
      Next Article My Raspberry Pi LEGO Case

      Related Posts

      How to Add a Raspberry Pi Pico Reset Button

      Pi Pico Onboard LED

      Add Kodi to RetroPie Menu

      5 Comments

      1. Michael Cook on June 12, 2012 9:33 am

        Perfect, that’s exactly what I needed!
        All I’ve got to do now is figure out how to make it automatically load a terminal when lxde has booted

        Reply
        • Adam on June 14, 2012 5:41 am

          Visit https://wiki.archlinux.org/index.php/LXDE#Autostart_Programs see the second way of doing autostart

          Reply
      2. Adam on June 12, 2012 9:31 pm

        Yes nearly exactly what I needed, but I also need it to load up an application boot, specifically a full screen midori or other browser! Any suggestions, I’m new to linux and tried adding it to the boot up list, but it would try and run after closing LXDE. And & didn’t help at the end either. Many thanks

        Reply
      3. Adam on June 13, 2012 7:41 pm

        Huraah from here https://wiki.archlinux.org/index.php/LXDE#Autostart_Programs, found out by writing “nano ~/.config/lxsession/LXDE/autostart” in the terminal I can add the one line “@midori” save as with above (ctrl-x, y, enter)and all is well!

        Reply
      4. James on August 13, 2014 2:21 am

        I did exactly what the post said for auto loading into LXDE but when I booted up my pi, I logged in and All there was after was a black screen.

        Reply

      Leave A Reply Cancel Reply

      This site uses Akismet to reduce spam. Learn how your comment data is processed.

      Recent Posts
      March 13, 2023

      Elecrow Meteor IPS Touchscreen with RGB LEDs

      December 26, 2022

      Pi Pico Pinout Display on the Command Line

      December 23, 2022

      How to Add a Raspberry Pi Pico Reset Button

      November 20, 2022

      Pi Pico Onboard LED

      November 14, 2022

      Pi Pico W Pinout and Power Pins

      Categories
      • 1-wire
      • 3D Printing
      • Add-ons
      • BBC Micro:bit
      • BerryClip
      • Books
      • Camera Module
      • Cases
      • Events
      • General
      • Hardware
      • I2C
      • Infographics
      • Interfaces
      • Minecraft
      • Model A+
      • Model B+
      • News
      • Pi Models
      • Pi Pico
      • Pi Zero
      • Power
      • Programming
      • Python
      • Raspberry Pi OS
      • Raspbian
      • RetroGaming
      • Robotics
      • Sensors
      • Software
      • SPI
      • Tutorials & Help
      Tags
      Arduino audio battery berryclip Birthday bluetooth cambridge camera CamJam DigiMakers display games GPIO I2C interface Kickstarter Kodi LCD LED Linux media Minecraft Model A motionEyeOS PCB photography photos Pi-Lite Pi Pico power python Raspberry Jam Raspberry Pi Bootcamp raspbian Retrogaming retroPie screen SD card security sensor SPI SSH temperature ultrasonic video
      Raspberry PI Related
      • Adafruit Blog
      • Average Maker
      • Official RaspBerry Pi Site
      • Raspberry Pi Pod
      • RasPi.tv
      • RaspTut
      • Stuff About Code
      Tech Resources
      • MattsBits – Pi Resources
      • Microbit Spy
      • Technology Spy
      Archives
      About

      Unofficial site devoted to the Raspberry Pi credit card sized computer offering tutorials, guides, resources,scripts and downloads. We hope to help everyone get the most out of their Pi by providing clear, simple articles on configuring, programming and operating it.

      Popular Posts
      September 19, 2014

      Top 5 Reasons The Raspberry Pi Sucks

      July 27, 2012

      16×2 LCD Module Control Using Python

      October 20, 2013

      Analogue Sensors On The Raspberry Pi Using An MCP3008

      Recent Posts
      March 13, 2023

      Elecrow Meteor IPS Touchscreen with RGB LEDs

      December 26, 2022

      Pi Pico Pinout Display on the Command Line

      December 23, 2022

      How to Add a Raspberry Pi Pico Reset Button

      Facebook Twitter Instagram Pinterest YouTube RSS

      Entries RSS | Comments RSS

      This site is not associated with the official Raspberrypi.org site or the Raspberry Pi Foundation. Raspberry Pi is a trademark of the Raspberry Pi Foundation.

      Copyright © 2022 - All Rights Reserved - Matt Hawkins

      mastodon.social@RPiSpy

      Type above and press Enter to search. Press Esc to cancel.