How to fix kvm owner and members? - android-emulator

I'm trying to start an emulator on vs code and i'm getting an error saying:
"Failed to launch Pixel 4 API 24: Error: Emulator didn't connect within 60 seconds"
So i added my user to kvm , it didn't work. sudo adduser <username> kvm
Then i set the owner of the group as my user, the emulator launched but every time i close the emulator and launch it again i need to reset the owner for it to work. sudo chown username -R /dev/kvm
Is there any way to change the owner permanently or to make it work only as a member?

Related

Error: EACCES: permission denied, only in VSCode using Remote SSH

I can find plenty of references to this error, but they all point to permission issues, however my permissions appear to be fine as I can modify this folder using nano and SSH.
I'm trying to use RemoteSSH with a custom user account, user
The server is running Debian 11 and nginx
I have key based auth and I connect to the server. When I try to create or remove a file in the web folder (/var/www/html) I get this error message Error: EACCES: permission denied, <what I was trying to do, i.e. rename a file, or delete a file>
I can do all of these things using a standard SSH connection (openSSH built in to Windows 10)
The owner of /var/www/ is set to www-data (recursively)
user is a member of the group www-data
Do I need to do anything in VSCode to update permissions? Am I missing something else?
Here are the exact commands I used:
sudo adduser user www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R 0775 /var/www
OK I did a bit more Googling right after posting this, and I was able to fix this by deleting the .vscode-server folder in the home directory.
https://github.com/microsoft/vscode-remote-release/issues/3399#issuecomment-922935448
I'm not sure if there is an easier way to fix this without doing so, or having to do that every time permissions are changed.

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````

I am not able to login

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

Ionic serve throws this error code help please

Ionic serve throughs the error below when I run it.
When I change color of tabs with default settings like from stable ---> to positive it works and makes the changes but when i try to override it with my custom color nothing change for example if i try to make positive variable red nothing changes.
any one can help ?
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: EACCES, open '/Users/cabdifitaaraden/Desktop/Lasoco/www/css/ionic.app.css
I had this error as well when running the ionic serve command.
I think it's just a permissions thing as using sudo solved it for me sudo ionic serve.
Did you run Sass setup with sudo rights? (sudo ionic setup sass)
If so, the files that were generated by Sass are not accessible with standard user rights due to a permission issue.
You have two options:
a) run ionic serve with sudo rights: sudo ionic serve
b) fix the problem by changing the owner of the following files:
www/css/ionic.app.css
www/css/ionic.app.min.css
You can do this with the chown command. Here's a one-liner that does the job (just adjust yourUser to your user account name):
sudo chown -Rv yourUser www/css

netbeans 6.91 and gdb - attaching to a process run by another user

I am trying to debug a program run as another user, using Netbeans. I can do this manually at the command line, by running sudo gdm and then attaching to the pid.
However, I would like to make use of the Netbeans GUI for easier/quicker/visual debugging. When I select the pid from the list of running processes, I get the error:
GDB failed to attach to process
When I attempt to attach manually (i.e. by running gdb at the command line - without sudo), I get an 'Operation not permitted', so I know Netneans is failing to attach because of permissioning.
Does anyone know how I can attach to processes being run by another user?.
BTW I am running all this on my dev machine at home (Ubuntu), so security is not an issue.
Have you tried running netbeans as the target user?
You can do "sudo -u username netbeans"
With that, you shouldnt have a problem attaching to the process. If the target user is in another computer, I would suggest ssh with X forwarding (ssh -X user#machine).
Actually, if the target (local) user has no password set, you can try changing your gdb command to "sudo -u username gdb" to start the debugger as that user.