LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-19-2024, 03:03 AM   #1
HaroldHamer
LQ Newbie
 
Registered: Jan 2024
Posts: 1

Rep: Reputation: 0
Installing via SU Root vs Running via SU Root? Help Please :(


Complete linux noob.Running debian and so far, absolutely love it, but scared because I don't understand much yet.

I'm trying to install wine on Debian so I may install Photoshop.

When I am using terminal, the installation process will not work unless I use SU ROOT and then proceed, i have used SU root to install all programs on Debian. (tell me if this is wrong/stupid) as otherwise it prompts for a password which doesn't work.

Part of the installation process that follows then says "running wine with sudo is highly discouraged". Am I doing something wrong? My understanding is that you need to use SU ROOT to install, but I am guessing there's a difference between using it to install and running a program?


Help would be awesome! Thanks
 
Old 01-19-2024, 05:58 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,706

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Quote:
running wine with sudo is highly discouraged
su and sudo are different commands.

The debian installer does not enable sudo by default.

su (switch user) allows you to run commands with another user's privileges in a shell, by default the root user. su requires you to know the password of that user.

sudo (superuser do) allows you to run commands without switching users using root's privileges. sudo usually only requires that user's password. You can also configure sudo to only allow certain commands to be run by a regular user.

When sudo is enabled, to run commands as root:
sudo apt install whatever (you will be prompted for your password)
 
Old 01-19-2024, 10:26 AM   #3
michaelsavage
Member
 
Registered: Apr 2019
Distribution: Linux Mint
Posts: 59

Rep: Reputation: 11
A different way to resolve this would be to use Gimp. Photoshop works well on a Windows based OS, while Gimp works well on a Linux based OS.
 
Old 01-19-2024, 10:31 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by michaelsavage View Post
A different way to resolve this would be to use Gimp. Photoshop works well on a Windows based OS, while Gimp works well on a Linux based OS.
GIMP runs on Windows and Mac as well. And between GIMP and Darktable, I'd be hard pressed to find a real reason to use Photoshop especially through WINE.

OP, if you need Windows programs you really just need to use Windows. Dual-booting is an option, as well as loading Windows in a virtual machine.
 
Old 01-19-2024, 10:36 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
yes, root is used to manage the host, but not to use it. So you install apps, configure it as root, but run those apps as yourself (regular user).
And also, would be nice to use linux software on linux (so instead of photoshop something written for linux).
Using linux + wine + windows software is possible, but inefficient and not really suggested if there is another way
 
Old 01-19-2024, 11:12 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
In Linux the "principle of least privilege" is very important . This means that you do not ever give yourself privileges or powers unless you actually need to use them at that particular moment. And you drop those privileges again as soon as you have done whatever it was that you needed them for. This ensures that you cannot accidentally damage your system, which in turn allows you to explore the system safely. So, for example, you need root powers to update your system, but you should not normally log in as root. If you do, sooner or later you will forget that you are root and do something silly. Become root (by using either su or sudo), do the update, then go back to being your unprivileged self.

Another good rule in Linux is to try to avoid using Windows programs in wine. Find out what the equivalent Linux program is and use that natively. It will run much faster. So do image creation and processing with the gimp, word processing with libreoffice write, read pdfs with evince or some other native document viewer. Wine is for those rare occasions when only the Windows program will do the job.

Last edited by hazel; 01-19-2024 at 11:14 AM.
 
  


Reply



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
I need help setting up my vms, hypervisor is KVM. I'm new to netowrking please help. Please Help. I need all the smart guys here!!! fromwin2lin Linux - Server 3 04-09-2024 08:16 PM
Please Please Please Help!!!!!!!!! austinramsay Linux - Wireless Networking 6 07-07-2007 06:10 AM
Please, Please,Please help with HD Cloning... knichel Linux - Software 7 09-16-2006 10:19 PM
please please please help :'( ach1lles SUSE / openSUSE 2 02-28-2005 05:03 AM
Samba Help Please!!!! Please !!!! Please!!! Snake007uk Linux - Networking 18 07-10-2002 01:22 PM

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

All times are GMT -5. The time now is 12:11 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