- LOGGED IN AS PI USER BUT STARTX DOESNT WORK INSTALL
- LOGGED IN AS PI USER BUT STARTX DOESNT WORK PASSWORD
- LOGGED IN AS PI USER BUT STARTX DOESNT WORK WINDOWS
THIS is a great reference for systemd and unit file details. Thanks to for sharing THIS LINK which helped a ton. If the app is exited for any reason, the command prompt login should be shown. Now reboot the system and the python application with tkinter gui should be displayed before the command prompt is shown. Reload the unit files and enable the new unit sudo systemctl daemon-reloadĬan check the status of the new service by the following command sudo systemctl status rvice In the new file add the following lines (:0.0 is RPi Display Port and Xauthority points to the user profile you wish to run the app under) Įnvironment=XAUTHORITY=/home/$user_name/.Xauthority Then pressing ctrl-c would quit the desktop session. If you want to be able to stop this session remotely as well, you could remove the & from the command.
Type it carefully, pressLOGGED IN AS PI USER BUT STARTX DOESNT WORK PASSWORD
That will run the command in the quotations and then exit. Dont worry, as long as you type your password correctly you will log in. Setup the system initrc to load the application sudo nano /etc/X11/xinit/xinitrcĬomment out existing lines and add the following (change path to your script) /usr/bin/python3 /home/$user_name/robot/robot.pyĬreate a systemd unit file to startup X window and run the application #Change the rvice to whatever you want it to be ssh userserver.address 'DISPLAY:0 startx &'. Select => Boot Options / Desktop-CLI / Console
LOGGED IN AS PI USER BUT STARTX DOESNT WORK INSTALL
I have located my entire python/tkinter project in the '/home/$user_name/robot' folder and have given this new user the same permissions as the pi user.Įnable boot to command line only sudo raspi-config I found a solution for me: Well, I hope someone can use my answer: I changed my password, reinstalled xserver-xorg by typing: sudo apt-get install -reinstall xorg After a reboot it worked for me. I want to clarify that I have disabled the default pi user and have created another user account for this project. If you always use X and the first thing you do after you log in is run startx, you can set up a graphical login to do this automatically.
This loads the GUI application before the command prompt login with the raspberry pi GUI disabled and when the application is closed for any reason it returns to a logged out command prompt. Reboot the RPi (yep its stupid but we’ve found a reboot to be needed even after removing and re-inserting the SD card), sudo startx, run gparted, select the USB drive and check the ext4 partition is locked again (mounted) and has its boot string back.Ok so after a week of beating my head on the desk I finally found a solution that works perfect. Right click the main ‘ext4’ partition and select ‘check’ (we’ve found this to be necessary to ensure the new partition size is correctly updated in the file system even though it should be done as part of the resize – kept us chasing constantly failed resizes for hours before we discovered this).įinally click the green arrow button to carry out the changes. Right click the main ‘ext4’ partition and select ‘resize’ then enter the new size you want it to be.
I have a rock64 and with your OS in version 6.3, in Stretch, LxQt work on user and Root without problem. In fact, the Raspberry Pi and the BeagleBone Black boards are just about. After some reboot system, I use startx to start LxQt Desktop and : with DietPi user : LxQt don't start. Right click the main ‘ext4’ partition and select ‘check’, then click the green tick and let it check the partition for you (this isn’t essential but its a good idea as if there are issues it will likely cause the resize to fail). TERMS OF USE This is a copyrighted work and McGraw-Hill Education and its. Right click somewhere on the graphic and select ‘unmount’ first as operations can’t be carried out on a mounted partition. Then from the start menu select run and enter ‘gparted’ Resizing Your Main Partitionįrom the top bar devices drop down select “dev/sda” (or whatever your external USB adaptor has been called). To run it use ‘sudo startx’ to load the GUI as gparted needs root user privileges << If you’d rather use a windows tool we’ve found that gparted just works whereas all of the windows based partition managers we tried don’t, so better to just get over the hassle factor and use the RPi to do this if you don’t have a separate Linux system. To do this you’ll need to put the SD card you want to work on in a USB to SD card adaptor and boot your RPi from a separate SD card. It can also be used to check and repair a SD card disk. ‘gparted’ is the graphical version of ‘parted’ and is the tool to use to resize the main partition used for raspbian (or you could use use parted if you prefer the command line of course!).LOGGED IN AS PI USER BUT STARTX DOESNT WORK WINDOWS