When I click on Peppermint hub to launch, a small blank pop-up pops up headed 'ttkbootstrap', this disappears after one second and that's it, no Pephub. Therefore I'm looking for advice on how to rectify this.
Thanks for replying:
output of running 'python3 /opt/pypep/hub.py' in terminal:
Traceback (most recent call last):
File "/opt/pypep/hub.py", line 30, in <module>
conn = sqlite3.connect('/opt/pypep/dbpep/welval.db')
sqlite3.OperationalError: unable to open database file</module>
Last edit: and66 2023-02-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So that is telling you that the its cannot access the database file.
is there anything in this location:
/opt/pypep/dbpep/
or is it permission denied ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I updated by running: sudo xDaily, rebooted, but still no Pephub.
However, I then thought to change user, so I logged into root account and Pephub is working there.
As it's not working in my standard user account, might I assume that Pephub only runs if you are logged in as root user?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have a very odd issue...hmmm..... No root is not required to run the pephub, Your permission to that Database has change at some point, that DB permission should be 755
In terminal if you cd to /opt/pypep/dbpep
Then do this command ls -ls
What do you get as the results?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It works!
As su, I cd'd to /opt/pypep/dbpep, typed sudo chmod 755 welval.db and I can now indeed access Pephub from my Desktop User account!
Thank you for your help!
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I've read and understood your post. You have a normal user (assume and66) and a root account?
We do not have the old fashioned Guest account, for security reasons. Nor is there a separate root account; unless you are referring to the Nemo right-click menu entry Open as root here. To edit any of your OS system files. Only use this function with caution.
Please supply the printout of this command: inxi -Fxz
The Pephub should open in the normal user account. Please observe the screenshot of my terminal printout and the Users and Groups App, (found in the Whisker Menu at the Settings section). There is only one user account, your account will be defaulted to the Custom setting on this page.
There is a main account, i.e. the one that was created by default upon installation, that is marked as 'Administrator' and I created a 'Desktop user' account that I habitually use, the one from which I cannot access Pephub.
From what you are saying and your 'user.png' image, it seems that my creating the 'Desktop user' account is not necessary in Pepermint and I should just be using the default 'Administrator' account created upon installation; is that correct?
The installer actually creates a custom account using the details you were asked to supply, at the User section for your username, computer's name and password. Plus if you wanted to be auto-logged on after the computer boots up.
The default Custom Account setting is more than adequate for the majority of users, who will predominately use the GUI (Graphic User Interface) rather than the CLI (Command Line).
There is no need to create a Desktop User account unless you allow third party users access to your computer, then this is the optimum method to preserve the integrity of your data. As the Desktop User can not edit or alter any root system files or update the computer, or install extra apps without your permission, as they do not know your password or be allowed to know.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I click on Peppermint hub to launch, a small blank pop-up pops up headed 'ttkbootstrap', this disappears after one second and that's it, no Pephub. Therefore I'm looking for advice on how to rectify this.
Last edit: and66 2023-02-04
Could you run this in your terminal
python3 /opt/pypep/hub.py
Then post the results
Thanks!
Thanks for replying:
output of running 'python3 /opt/pypep/hub.py' in terminal:
Traceback (most recent call last):
File "/opt/pypep/hub.py", line 30, in <module>
conn = sqlite3.connect('/opt/pypep/dbpep/welval.db')
sqlite3.OperationalError: unable to open database file</module>
Last edit: and66 2023-02-04
So that is telling you that the its cannot access the database file.
is there anything in this location:
/opt/pypep/dbpep/
or is it permission denied ?
There is a file: welval.db
Its contents in libre office writer are:
SQLite format 3@ .K L"tableupschedupschedCREATE TABLE upsched (id integer PRIMARY
KEY AUTOINCREMENT, dname text, cronnum int, hr int,
min int)P++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)`tablewelchkwelchkCREATE TABLE welchk ( id integer PRIMARY KEY AUTOINCREMENT, nosee text) welchk
Last edit: and66 2023-02-04
hmmm... lets try to update the system,
run
sudo xDaily
that will update your pep toolsI updated by running: sudo xDaily, rebooted, but still no Pephub.
However, I then thought to change user, so I logged into root account and Pephub is working there.
As it's not working in my standard user account, might I assume that Pephub only runs if you are logged in as root user?
You have a very odd issue...hmmm..... No root is not required to run the pephub, Your permission to that Database has change at some point, that DB permission should be 755
In terminal if you cd to /opt/pypep/dbpep
Then do this command
ls -ls
What do you get as the results?
Results:
andy@and-oem:/opt/pypep/dbpep$ ls -ls
total 20
20 -rw-rw---- 1 root cdrom 20480 Feb 5 10:35 welval.db
try changing the permission to
sudo chmod 755 welval.db
It works!
As su, I cd'd to /opt/pypep/dbpep, typed sudo chmod 755 welval.db and I can now indeed access Pephub from my Desktop User account!
Thank you for your help!
Hi and66,
If I've read and understood your post. You have a normal user (assume and66) and a root account?
We do not have the old fashioned Guest account, for security reasons. Nor is there a separate root account; unless you are referring to the Nemo right-click menu entry
Open as root here
. To edit any of your OS system files. Only use this function with caution.Please supply the printout of this command:
inxi -Fxz
How to encapsulate your terminal printout: https://sourceforge.net/p/peppermintos/pepwiki/How%20Encapsulate%20inxi%20printout/
The Pephub should open in the normal user account. Please observe the screenshot of my terminal printout and the Users and Groups App, (found in the Whisker Menu at the Settings section). There is only one user account, your account will be defaulted to the Custom setting on this page.
There is a main account, i.e. the one that was created by default upon installation, that is marked as 'Administrator' and I created a 'Desktop user' account that I habitually use, the one from which I cannot access Pephub.
From what you are saying and your 'user.png' image, it seems that my creating the 'Desktop user' account is not necessary in Pepermint and I should just be using the default 'Administrator' account created upon installation; is that correct?
Printout from inxi -Fxz
Edit by Admins to format terminal printout to make it human readable.
Last edit: cavy 2023-02-05
The installer actually creates a
custom account
using the details you were asked to supply, at the User section for your username, computer's name and password. Plus if you wanted to be auto-logged on after the computer boots up.The default
Custom Account
setting is more than adequate for the majority of users, who will predominately use the GUI (Graphic User Interface) rather than the CLI (Command Line).There is no need to create a Desktop User account unless you allow third party users access to your computer, then this is the optimum method to preserve the integrity of your data. As the Desktop User can not edit or alter any root system files or update the computer, or install extra apps without your permission, as they do not know your password or be allowed to know.
Indeed the installer did create a custom account, I changed it to Administrator for no other reason than that is what I thought I needed to do.