LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2019, 03:30 AM   #1
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Question How to become a Superuser to install a package that is downloaded


Hi,

I am using Zorin 15. I found Xampp and downloaded it okay to the Downloads folder. Through the terminal I tried to run it but got this error.

Quote:
david@david-HP-Compaq-6000-Pro-MT-PC:~/Downloads$ sudo chmod +x xampp-linux-x64-7.3.10-1-installer.run
chmod: cannot access 'xampp-linux-x64-7.3.10-1-installer.run': No such file or directory
david@david-HP-Compaq-6000-Pro-MT-PC:~/Downloads$
I went to the terminal and made myself a Superuser (# at prompt) but it still keeps saying in the GUI that the installer needs Superuser privileges to install.

Quote:
root@david-HP-Compaq-6000-Pro-MT-PC:~/Downloads# sudo chmod +x xampp-linux-x64-7.1.33-1-installer.run
root@david-HP-Compaq-6000-Pro-MT-PC:~/Downloads#
According to the Terminal I am now a Superuser but it seems the GUI doesn't know it yet.

Any tips please?

Last edited by ozstar; 12-07-2019 at 03:33 AM.
 
Old 12-07-2019, 04:32 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
Maybe try ./xampp-linux-x64-7.1.33-1-installer.run in the folder that it is in(?).
 
Old 12-07-2019, 06:53 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Quote:
sudo su -
this will put you in /root.
 
Old 12-07-2019, 07:11 AM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,968
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
ozstar,

Check the version numbers.
You used two different ones including xampp-linux-x64-7.1.33-1-installer.run.

Use:

Code:
cd Downloads
sudo chmod +x xampp-linux-x64-7.3.10-1-installer.run
sudo ./xampp-linux-x64-7.3.10-1-installer.run

Last edited by beachboy2; 12-08-2019 at 12:31 AM.
 
Old 12-07-2019, 07:53 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
The second command you ran brought you back to the prompt in the terminal which would usually indicate success. Run ls -l on the file will tell you if it is executable. Running a command with sudo in a terminal isn't going to give you root/sudo privileges in a GUI, that's expected behavior. The link below is the Ubuntu documentation on using sudo which might be worth looking at, particularly the Graphical Sudo section on that page. As you can see on that page, the methods vary depending upon the Desktop environment. What are you trying to do in the GUI?

Last edited by yancek; 12-07-2019 at 07:55 AM.
 
Old 12-07-2019, 04:29 PM   #6
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Original Poster
Rep: Reputation: 15
Thanks again yancek I appreciate the help.

I was trying to install the Xampp package but as you can see it just didn't happen.

I am trying to get my head around the Linux coding but in the meantime found this link which I followed to the dot and it gave installed the package. When I checked localhost via FF it was okay except for phpMyadmin which gave this error.


Quote:
Welcome to phpMyAdmin

Error

MySQL said: Documentation
Cannot connect: invalid settings.
mysqli_real_connect(): (HY000/2002): No such file or directory
Connection for controluser as defined in your configuration failed.
mysqli_real_connect(): (HY000/2002): No such file or directory
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
 
Old 12-07-2019, 05:02 PM   #7
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Original Poster
Rep: Reputation: 15
OKAY GOT IT!

Needed to Start mySQL, so now have phpMyadmin okay.

Now to the next steps... :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
Why should I check the hash of a file that was downloaded or downloaded via ssh? cesarsj Linux - Security 5 12-15-2019 11:39 AM
When is the superuser not a superuser? mrmazda Linux - General 2 05-09-2018 03:40 PM
Shouldn't "Slackware64" Become just "Slackware" and 32-bit Become "Slackware32"? foodown Slackware 6 06-23-2009 01:24 PM
downloaded package off web. install not in tree damoncf Debian 2 03-08-2006 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration