Can't login to fedora 29 - fedora

I can't login to system. I wrote good login and password but i got back to logging panel. That happend when I install jdk 11.0.2 and set /etc/environment. This file include 2 lines:
export JAVA_HOME=/usr/local/jdk-11.0.2
export PATH=$PATH:/usr/local/jdk-11.0.2/bin
I logged via ctrl+alt+F2, but when I logged, I saw a lot of errors and currently have got only basic commands, but can't install others. Can't use Sudo, su, rm, and so on commands.
What shlodu I do in that case?
https://m.imgur.com/gallery/n0Iy34V

Related

Can't install phpmyadmin to AlmaLinux 8.7 via Putty (Can't find phpmyadmin, when installing)

I am trying to get phpmyadmin installed with yum. I am a beginner regarding this and I have sofar managed to install the EPEL repo and also remi. But when I try to execute yum install phpMyAdmin it tells me it can't be found. I am thankful for any response!
I have tried many different things including what is shown in the picture, but also here it tells me that the php72w-fpm and php72w-opcache cannot be found.
enter image description here
php72w package are from webtatic which is a dead project for 3 years and does not provide anything for EL-8 or EL-9
For a proper configuration / usage of "remi" repository, follow the wizard instructions.
phpMyAdmin is in "remi" repository, which is not enabled by default as it replace some base packages.
So, once PHP is installed
dnf --enablerepo=remi install phpMyAdmin

Unable to install MySQL on Windows 10 - Installer hangs indefinitely

I am trying to install MySQL on a Windows 10 PC. I downloaded the installer package and followed those steps
Went to https://dev.mysql.com/downloads/windows/
clicked on "MySQL Installer"
Scrolled to Generally Available(GA) Releases section
Clicked on "Windows (x86, 32-bit), MSI Installer" (mysql-installer-community-5.7.21.0.msi) and it started the download.
Once the download was complete, I double clicked on the installer and it gave a usual pop-up for any installation like,"Do you want this app to make changes to your device?" after clicking on "yes" for the answer to this question, it shows "Please wait while Windows configures MySQL-Installer-community" like below screenshot.
And then it keeps showing this installation progress bar for a very long time. Like more than 7-8 hours and the installation never completes
So it seems something is wrong as I don't think MySQL installation needs this long time. I tried to restart my computer and then delete any files related to MySQL from my computer and then started the whole process of installation again. But no luck yet
Anyone has any suggestion on this or did anyone face this kind of issue before? If so, is there a fix or a work around for this?
ok. So finally this is how I resolved my issue. And I found the solution at https://bugs.mysql.com/bug.php?id=82004 . The solution to this problem is to close an open "Windows installer" (the one using 0 memory and CPU) via task manager and the installation should begin running as expected.
Alternative solution: Use an administrator command prompt to run the MySQL installer on Windows 10. Details:
(Note: if you have any problems in the following steps, you can try to restart your computer. Then restart the steps.)
Right-click the Start/Windows icon in the bottom-left corner of Windows.
Click: Windows PowerShell (Admin).
A window asks: Do you want to allow this app to make changes to your device? Click: Yes.
Change to the directory with the MySQL installer. For example, if you downloaded the MySQL installer, type something like:
cd C:\Users\my_username\Downloads\
(Note: To save some typing, you can type a few characters, and then press the tab key, to make Windows show you various auto-completion options.)
Run the MySQL installer. Type something like the following command---make sure to include the period and backslash at the beginning---and press Enter.
.\mysql-installer-community-8.0.11.0.msi
Note: The idea of using an administrator command prompt came from John Geffe, in the link below, which was cited in the answer written by the original poster (user8425592):
https://bugs.mysql.com/bug.php?id=82004
Bug #82004 MySQL Installer freezes during "Please wait while Windows configures..." phase
[6 Feb 3:58] John Geffe
To get past this problem I had to run the .msi installer from an the
Administrator command prompt. Hopefully this helps someone in the
future.
[19 Apr 18:14] Jim McCauley
John Geffe: Thanks! Your note on installing as an administrator seems
to have taken care of the problem.
this did the trick for me: https://ao.ms/mysql-community-server-msi-installer-hangs-on-windows-10/
run cmd (commandline) as Administrator
cd to your location that you downloaded the .MSI to
run the “msiexec” commandline tool with option “/i” as follows:
msiexec /i [replace with file name]
example: msiexec /i mysql-installer-community-5.7.20.0.msi
Another thing that worked for me was running the installer in compatibility mode for previous version of Windows. You can try that as well.
Go to the link you provided (the first one) and try installing MySql Workbench. That is the version that is commonly used, and one that I verified works in Windows 10. Here is the link: https://dev.mysql.com/downloads/workbench/
Obviously, make sure you choose the right architecture, have the correct permissions to install software, and have enough space on your hard drive, or on the machine you are installing to.
Please install "Update for Visual C++ 2013 and Visual C++ Redistributable Package" from Microsoft Site "http://download.microsoft.com/download/0/5/6/056DCDA9-D667-4E27-8001-8A0C6971D6B1/vcredist_x64.exe"
Please look here at https://support.microsoft.com/en-in/help/3179560/update-for-visual-c-2013-and-visual-c-redistributable-package
Yes, I also got the same problem on my Windows 10.
Followed the Powershell solution and it worked.
Just repeat the above:
Click Start on bottom left corner
Scroll down the application list until Windows Powershell
Select Windows Powershell again on sub-menu
Type in cd (to change to your .msi folder)
Type .\xxxxx.msi (this is the installer file name)
All good.
Once you install the above package run the installer again and do the steps. You will be able to install the mysql-installer-community-5.7.21.0 for 64 bit windows 10
closing Windows Installer instances using 0 memory and CPU helps me to get past this problem.
For me on Window-10 machine, there was a problem with the "mysql-connector-net-8.0.11.msi". I was not able to uninstall this and hence all my subsequent efforts to install MySQL were failing. I did the following to overcome this issue.
Re-installed "mysql-connector-net-8.0.11.msi" Get it here and used the 'Repair' option
Installed the "mysql-installer-web-community-8.0.11.0.msi"
These two things solved my problem. Hope this helps.
The reson is your antivirus didn't allow the mysql, so Disable protection(until restart),( in your task bar right side click the arrow and right click to antivirus,to select (Disable protection(until restart)).then restart your computer again install mysql installer it will work.
For this issue just run .msi file in command administration like
E:\mysql-installer-community-8.0.20.0.msi\
follow this link:
https://kb.foxitsoftware.com/hc/en-us/articles/360040660611-How-to-install-MSI-from-command-line-with-administrator
In my case, an upgrade to 5.7.29 on Windows 10 via mysql-installer-web-community-8.0.20.0.msi, the install froze "backing up the database". The log tab showed no activity for 8 minutes. I clicked on cancel, then at the "are you sure" prompt I declined to cancel, and all of a sudden the install was working again. Very strange...
I encountered the same problem, preparing but can never get started. Tried to close other installation programs with no use, but I took the inspiration and proceeded with restart the computer and it worked nicely. So, I think the issue is to get rid of everything that could be in the background running that somehow interferes the installation.
You should run the installer as an administrator but this specific installation may not provide an option for this. Some might have it but it's most likely that it's unavailable for many users. So you should run it in cmd or powershell. And don't forget to run these shells as an administrator coz that's the whole point here. Once there, navigate to the installer's location which usually is in the downloads directory and run it using this command ./name.msi
Make sure no other ongoing installation of this instance. Close it if there exists one and undo the changes made by uninstalling it from the panel. If still facing difficulties, try restarting your machine and repeat this procedure...
Have fun
I had the same Problem, A simple solution is to give access the "SYSTEM" to the msiserver...I know, this is hard to understand what I am saying....You can Simply see this Video and you will definitely find the answer https://www.youtube.com/watch?v=6SdXMjXmnUk, It is a matter of just 3 minutes...
I encountered the same issue of taking too much time to install mysql community installer.I tried 3 times by cancelling the installation and restarting to perform a new installation.But had same issue. I tried 2 things
First to end all tasks associated with installation which I performed for installing mysql using Task Manager
Reinitiated the installation but didn't solved my issue.
Secondly tried to install through Windows Powershell as admin, which solved the problem.
Click on the Windows icon/start on the bottom left corner.
Right click and select the option Windows Powershell (Admin).
A pop up window will ask Do you want to allow this app to make changes to your device?....Click Yes.
Now cd to your downloads folder/wherever you downloaded the .msi file (For example cd C:\Users\MYPC\Downloads).
Once you reach to the folder where the .msi file is kept, run the following command.
.\mysql-installer-web-community-8.0.23.0.msi (Note: this is the version which I have downloaded, modify as your version).

Fish Shell causes Login Loop when is default (Fedora 26)

I have installed a fresh Fedora 26, when I install fish (comes with 2.3.1 but I upgraded to 2.6) and I set it as default shell (chsh -s /usr/local/bin/fish) works as expected... until I restart the PC and I try to login; gdm successfully logs me in, but after a few screen flashes it returns me to login screen, leaving me unable to login to my user.
I temporary solved this by login in another tty (Ctrl+Alt+F2) with my user and changed the shell back to bash: chsh -s /bin/bash.
Have someone else had this same issue? I've installed Gnome Ubuntu 17.04 and I couldn't reproduce this. Also, this is a common symptom for buggy nvidia drivers with wayland, mutter package buggy version, and incorrect home folder permissions. It was hard for me to find that fish was the actual culprit.
Update
After installing Fedora 27 and having the same issue, I started from scratch, and basically, to reproduce this is following these steps:
Install grc
Install Fish
Install Oh-My-Fish
Install Oh-My-Fish grc plugin-in

Stuff not included in RailsReady?

I tried to install RoR on Ubuntu 12.0.4 using RailsReady(https://github.com/joshfng/railsready). Afterwards I restarted my computer and while typing ruby -v works, typing rails -v returns unrecognized, as does mysql in the terminal. What do I have to do to be able to launch rails and mysql? Do I have to install them individually using sudo even though I've already installed RailsReady? Thanks.
A quick glance at the README and the script itself shows that it gets you ready to install Rails by installing typical packages needed in order to create a Rails-based development environment, and then attempts to install it.
Per #madth3's comment below, lines 176 to 182 of railsready.sh does attempt to install Rails, so look for any error messages when you run that script.
MySQL appears to require separate installation using standard methods appropriate for your system.

Exception with MySQL gem for Rails installing in Win 7

Good times for everyone.
I have such problem, feeling that it's simple, but due to I'm beginner I don't know the way to solve it: I'm trying to install mysql-gem for Ruby on Rails project in Windows. I've installed RubyGems succesfully, then command
RubyGems installed the following executables:
c:/Ruby19/bin/gem
D:\temp\ruby_sites\rubygems-1.8.10>
D:\temp\ruby_sites\rubygems-1.8.10>gem install mysql
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - C:/Users/Джестон/.gem/specs/rubygems.org%80/quick/Marshal.4.8/mysql-2.8.1.gemspec
D:\temp\ruby_sites\rubygems-1.8.10>
Please, hint me how to solve this problem. Turning off the antivirus software doesn't help.
Thanks for help!
gem installs stuff for admin user on your machine, so you need to start the command prompt as admin. (type cmd and instead of hitting enter, press ctrll+shift+enter to start command prompt as admin)
even if your account on windows (through which you logged in) is of type admin, it won't be enough. this is analogous to mac, wherein you use a "sudo" before doing similar stuff. hope this helps!