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, 04:30 AM   #1
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Zorin 15
Posts: 108

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 04:33 AM.
 
Old 12-07-2019, 05:32 AM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,343

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, 07:53 AM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,927

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Quote:
sudo su -
this will put you in /root.
 
Old 12-07-2019, 08:11 AM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 19.2 MATE, MX-19, Manjaro
Posts: 2,753
Blog Entries: 14

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
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 01:31 AM.
 
Old 12-07-2019, 08:53 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,904

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
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 08:55 AM.
 
Old 12-07-2019, 05:29 PM   #6
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Zorin 15
Posts: 108

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, 06:02 PM   #7
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Zorin 15
Posts: 108

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
Why should I check the hash of a file that was downloaded or downloaded via ssh? cesarsj Linux - Security 5 12-15-2019 12:39 PM
[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 12 04-25-2019 08:33 AM
When is the superuser not a superuser? mrmazda Linux - General 2 05-09-2018 04:40 PM
Shouldn't "Slackware64" Become just "Slackware" and 32-bit Become "Slackware32"? foodown Slackware 6 06-23-2009 02:24 PM
downloaded package off web. install not in tree damoncf Debian 2 03-08-2006 05:49 PM

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

All times are GMT -5. The time now is 11:56 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration