Ubuntu how to fix Xorg session? - ubuntu-18.04

Some time ago I accidentally gives 777 permissions to all folders, and when I reboot my system I can't login.I don't remember what exactly I do , but I can start ubuntu via wayland session. System working fine except google hangouts(unavailable screen sharing), so I find some advice where need to switch to the Xorg session and then screen sharing would be available.
I tryed uncomented this line #WaylandEnable=false in /etc/gdm3/custom.conf, but then after rebooting system can't run, so through recovery mode I commented again this string, and then ubuntu started on wayland session. (Also when system is booting login menu not appeared and I can't switch between sessions.)
So I supposed Xorg session is broken and I need yours suggestions how I can resolve this problem.

Related

Problems writing to USB drive from _www process

I have a macOS C program which is a helper app. It runs as root and has sticky permissions.
One of the jobs of this program is to backup files to an external USB drive.
When I run the program from a terminal window... it works perfectly.
However, when invoked via a web admin page (eg., via the web server), it fails to run with an "operation not permitted".
This is on the latest macOS. I've set the drive to be "ignore ownership on this volume". The drive in /Volumes is also 777.
So... when the process is invoked via the web, the user/group is both _www. It appears that no matter what, the process invoked via _www can't write to the USB stick.
To be more specific... it can't create any new files. It CAN overwrite existing ones. It can't mkdir either.
I've googled my brains out and no solutions seem to work.
Any help would be appreciated!
Ok, I found the solution here.
Open System Preferences and go to Security/Privacy and then click Full Disk Access from the left side and enable the httpd access from the right side.
Thanks!

Website not updating on one particular machine

Update
I tried the site on a guest user on my Mac and it flipping worked! So the issue has been narrowed down to my user alone
I have a react website I'm hosting on Netlify, and everything is perfect when I update it EXCEPT when I view it on the machine I made it on, it won't update.
I host 4 websites on this Netlify account that are built on this machine and this is the only one that has this issue.
Here is a list of things I have tried:
Empty Cache and Hard reload on Chrome
Clearing entire browsing hotory and cache
Different browsers (Chrome, Firefox, Safari, Brave)
Incognito windows
Flushing DNS using the following commands:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
and I have also tried
sudo killall -HUP mDNSResponder
All of the above with power downs inbetween!
I am at a complete loss! When I try the website on my wife's PC it works, 4 of my colleagues Macs it works, my Google Pixel and my colleagues iPhone, they all work, so I know the issue is my machine.
My Machine is a 2020 M1 Macbook Air
Any radical ideas? At this point I'll try most things!

Citrix remote desktop not working on new computer

I got a new computer at work and I need to work remotely using citrix receiver. It works on my old computer. I download a .ica, launch it, and a remote desktop opens where I can work. The old computer had windows 7.
On the new computer, I installed the last version of citrix and tried, but it doesnt work. I dont get any error, it actually seems to work, but needs like 1 minute to detect my mouseclicks, until it finally disconnects. The new computer has windows 10.
I tried to uninstall the lastest version of citrix receiver, and install the same I have on the old computer (4.6) but the same happens.
So, the problem is it works VERY slow (1 minute to detect each click) and then before I even log into the remote machine, it just disconnects.
Im using the same network and citrix receiver version than in my old computer. Any idea if it can be windows 10 related or how can I find out what it is causing it?
Maybe this info can help: Ive noticed a difference when opening the network central. On my old computer (where it works) I see: Terminal Server - Citrix receiver. And at the bottom it says: 1 server 0 remote applications
On the new computer (doesnt work) it says: MAD-BDCOT-PS-02 - Remote Desktop Connection. And at the bottom: 1 server 1 remote application
That's the only difference I see, but Ive done the same in both cases.
Thanks
Made it work.
After trying many things for 2 days, even installing almost every citrix receiver version, a coworker gave me a file called CitrixOnlinePluginWeb, Instead of CitrixReceiver.
I dont know what it is, and I cant post a link since he gave it to me, but Im sure knowing the name makes it easy to find in google. With this, it worked.
By the way, I think the problem was windows 10, since before knowing this other installable, I tried in several computers, and it always worked on win7 ones and didnt on win10 ones.

ADB says 'Device Not Found' at last stage of sideloading lollipop

I'm trying to sideload Lollipop onto my Nexus 5 from the OTA zip file.
At this point, the adb recognizes the device after I plug in the USB cable, and spits out the serial number.
As I understand the instructions for sideloading, once I get to this point, I just need to reboot into recovery mode, (which works as expected) and then bypass the red exclamation point icon using "volume up and power" simultaneously. That works too.
At the point where the screen on the Nexus 5 says, "Now send the package you want to apply to the device with 'adb sideload &ltfilename&gt' I type "adb sideload + the OTA image file name", which I renamed for convenience". The file is in the platform-tools folder.
At which point the command window reports: error: device not found
So... the device is seen by the adb, but somehow is no longer found after the device reboots in recovery mode.
I've replaced all the usb drivers, enabled usb debugging and developer mode on the Nexus device. I've tried this in windows 7 and also in Linux (both from the android sdk tool kit and from an installation of Eclipse). I'm unable to get the adb to talk to the Nexus 5.
I read the android-windows usb inf file, and there is no section specifically for the Nexus 5, but I added a line under the "generic android" section with USB\VID_18D1&PID_D001 as has been suggested elsewhere for people who couldn't get the OS to see their nexus at all. My issue is not that the OS can't see it... and the adb sees it, too, until I try to sideload the OTA file in Recovery Mode.
Anyone else having this issue, or better yet... any ideas on how to solve it?
Thanks
It turns out that I had not enabled USB debugging before I tried to do this using Linux Ubuntu / Eclipse / Android SDK. So my problem was really a windows USB driver problem, I guess (though I can't be sure, since windows did see the device until I tried to transfer the file. Maybe that message was really conveying a permissions problem, too...)
I rebooted into Ubuntu and tried again and was able to transfer the update file. The only hitch I encountered at that point was to issue the sideload command as root. I didn't do that the first time I tried it, and got a message about lacking permissions.
I suspect the posted reply with a link to a universal USB inf file would have worked, but, though I'm grateful for the tip, I can't testify to that, since I managed to transfer the file without Windows.
Thanks to all who looked at this and especially to Alex P., for posting a possible solution. FW
IW, I'm glad to have finally been able to do this, but for anyone struggling to get Lollipop ahead of the OTA update... well, it's nice, but hardly worth a lot of effort.

OsiriX will no longer launch. Console message

My OsiriX application will suddenly no longer launch. I then upgraded from Mountain Lion to Mavericks and installed the latest version, 5.8. It will still not launch.
The failure is accompanied by a message: "OsiriX is damaged and can't be opened. You should move it to the Trash."
Of course, this happens after I download the app. again.
Here is the Console message I found that appears to be relevant:
11/4/13 10:37:49.848 PM launchservicesd[55]: Someone attempted to start application App:"OsiriX" asn:0x0-7b07b pid:5959 refs=6 # 0x7fdd1ac590b0 but it still has _kLSApplicationLockedInStoppedStateKey=true, so it is is staying stopped. : LASApplication.cp #2468 SetApplicationInStoppedState() q=LSSession 100004/0x186a4 queue
11/4/13 10:37:52.873 PM CoreServicesUIAgent[5961]: Error SecAssessmentCreate: The operation couldn’t be completed. (OSStatus error -67054.)
11/4/13 10:38:05.147 PM com.apple.launchd.peruser.501[147]: ([0x0-0x7b07b].com.rossetantoine.osirix[5959]) Exited: Killed: 9
I'm not a programmer. I'd appreciate thoughts about what to do.
Thanks.
Howard
I just had this same issue. I was running 10.8 Mountain Lion. Tried upgrading to 10.9 Mavericks, but still no lock. Turns out it's Gatekeeper that is blocking the app. Here's how to fix it.
Go into System Preferences->Security&Privacy
Under the General tab, change Allow Downloaded Apps From to Anywhere
Launch Osirix
You will get a dialog about it being downloaded from the internet. Select Open.
Once Osirix has opened, quit the app.
Go back into System Preferences->Security&Privacy, and set Allow Downloaded Apps From to whatever it was set at previously (probably Mac App Store and identified developers).
That's it. Once you've gotten Osirix to open once, Gatekeeper won't bother you about it anymore.
Hope that helps. It fixed my issue, and it sounds like you have exactly the same situation.

Resources