Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 482  / 1 Year ago, fri, december 2, 2022, 1:36:51

I tryied to set the JAVA_HOME environmet variable in the ~/.profile file
and I made a mistake



    JAVA_HOME="/usr/lib/jvm/jdk1.6.0_37"
PATH=$JAVA_HOME:PATH


the error is in the PATH referencing. I put PATH rather than $PATH.
this prevents me from login.



I tried to edit the file using the recovery mode but it says that the file system is read only.
so any suggestions how to deal with this issue.



thanks


More From » login

 Answers
5

Log in as another user that can sudo, or failing that start back up in resuce more, then before you edit the file remount the partition read write



mount / -o remount -w should work just fine.



Take a look at this question for more information on remounting.


[#34260] Sunday, December 4, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dresuitable

Total Points: 69
Total Questions: 116
Total Answers: 122

Location: Honduras
Member since Sun, Dec 26, 2021
2 Years ago
dresuitable questions
Sat, May 15, 21, 04:38, 3 Years ago
Fri, Apr 14, 23, 09:53, 1 Year ago
Tue, May 16, 23, 18:13, 1 Year ago
Sun, Apr 24, 22, 12:59, 2 Years ago
;