I am not able to login - linux-mint

When i enter my password an alert appears on screen saying
Your Session lasted only 10 seconds .......
When i click the checbox saying
view details(~/.xsession-errors file)
it shows
Initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
/etc/mdm/Xsession: Beggining session setup...
localuser:xxxxx being added to access control list
I have already searched on google, reinstalled mdm, reinstalled libcjs0f nothing seems to be working
Pls help

sudo apt-get remove virtualbox*

I also had this problem and for me the fix was with this command:
sudo apt-get purge virtualbox*
I also tried remove but didn't work.
I use Mint 18 Sarah Cinnamon 64, Lenovo B50

Related

How to access Odoo 14 using WSL

I have installed Odoo 14 in Ubuntu 20LTS as WSL, everything seems fine and the service is running. However, I am lost on how to access Odoo page. I have tried 0.0.0.0:8069 in Windows (Chrome) but it says that:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Any help on that?
Also, please let me know how I can change the Port for Odoo in Ubuntu in WSL.
Many Thanks.
Here is the solution to my problem :
PostgreSQL: Why psql can't connect to server?
Step 5: Check postgres user belongs to ssl-cert user group
It happened to me and it turned out that I removed erroneously the Postgres user from "ssl-cert" group. Run the below code to fix the user group issue and for fixing the permissions
sudo gpasswd -a postgres ssl-cert
# Fixed ownership and mode
sudo chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key
# now postgresql starts! (and install command doesn't fail anymore)
sudo service postgresql restart````

How to set mail and password in pgadmin 4 in Ubuntu 20.04

I already had pgadmin installed before ubuntu was updated to 20.04. Once it was updated, I realized that pgadmin had disappeared (my databases in postgresql are still there intact) and I followed the instructions below to install pgadmin4:
How to Install PostgreSQL and pgAdmin4 in Ubuntu 20.04
At some point it was supposed to ask me to configure an account with my email and password, but it never did, now I am able to get to the home screen but I cannot login because I did not configure an email and password.
Any help is welcome, thank you!
I removed
/var/lib/pgadmin/pgadmin4.db
file. It was first start pgadmin4 for me so there were nothing important
And then I run
sudo /usr/pgadmin4/bin/setup-web.sh
again and it ask for email\password

Anaconda-navigator does not start after installation on Tumbleweed

Similar to anaconda-navigator does not start,
I could not start anaconda-navigator after installation.
My system is:
NAME="openSUSE Tumbleweed"
# VERSION="20200826"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20200826"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20200826"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"
I ran:
(base) xxxx#xxxx:~> anaconda-navigator
,and got:
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0.0
Could not connect to any X display.
I installed it following https://docs.anaconda.com/anaconda/install/linux/ (dependencies, checked) and running bash ~/Downloads/Anaconda3-2020.07-Linux-x86_64.sh
anaconda-navigator does not start said a system update solved the problem. But, that didn't do it for me. There was no update left for zypper to do.
I can run conda and anaconda commands, but I can't run GUI software. What can I do?
I got the same error message.
With running
xhost +
first I can start anaconda-navigator. But this seems a rather desperate hack ....

Device not configured after sshfs attempt

After using sshfs on my Mac I am no longer able to see my user directory.
When I open a terminal window I see the following:
Last login: Mon May 22 10:54:30 on ttys003
mkdir: /Users/<username>/.bash_sessions: Device not configured
-bash: /Users/<username>/.bash_profile: Device not configured
touch: /Users/<username>/.bash_sessions/35166655-583B-47CC-9BCF-5E785DD5E46E.historynew: Device not configured
Is there any way to fix this?
Cheers
Paul
I used to use sshfs and got this error; the only way to fix it I found without rebooting was:
sudo diskutil umount force /path/to/mount
I've recently been trying https://github.com/spion/adbfs-rootless for something else and find I can get into the same situation, the "fix" works in that case as well.
Wasn't getting anywhere so took a chance and did a reboot. Everything seems to be OK now.

Fabric and init

I am using fabric to restart tomcat and even though it says tomcat restarted successfully it does not. So, as per the FAQ, I set pty=False and tried again. But, now, I get this error:
sudo: /etc/init.d/tomcat restart
out: sudo: sorry, you must have a tty to run sudo
Any ideas around this problem?
To anyone reading this, this is not a problem with fabric but with the way sudo accounts have been set up. This property in /etc/sudoers file controls this;
Defaults requiretty