User not allowed sudo access

Post here if you are a new Porteus member and you're looking for some help.
Jovian
White ninja
White ninja
Posts: 5
Joined: 27 Jul 2020, 05:59
Distribution: Porteus Cinnamon

User not allowed sudo access

Post#1 by Jovian » 27 Jul 2020, 06:02

Hello
I'm a complete beginner to linux and chose porteus as my first distro. I was trying to install python idle and used this command:

Code: Select all

sudo apt-get install idle
When I used this command, it asked me to enter my password. I did, and then it replied:
Username is not in the sudoers list.

Could someone here help me?
Thanks in advance

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

User not allowed sudo access

Post#2 by Blaze » 27 Jul 2020, 06:13

Hi Jovian,
open terminal and run

Code: Select all

su
toor
getpkg python3
Don't forget to activate python3 module.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Jovian
White ninja
White ninja
Posts: 5
Joined: 27 Jul 2020, 05:59
Distribution: Porteus Cinnamon

User not allowed sudo access

Post#3 by Jovian » 27 Jul 2020, 07:03

Hello Blaze
Thanks a lot, that worked nicely :D

Shadow0815
Black ninja
Black ninja
Posts: 33
Joined: 16 Jul 2015, 03:50
Distribution: Porteus,Xubuntu,Arch
Location: DE

User not allowed sudo access

Post#4 by Shadow0815 » 27 Sep 2020, 13:11

there is no pip3 :(

so i did:

Code: Select all

getpkg openssl
wget "https://bootstrap.pypa.io/get-pip.py"
python3 get-pip.py
but i don't know how to package python module stuff the right way into an xzm

Shadow0815
Black ninja
Black ninja
Posts: 33
Joined: 16 Jul 2015, 03:50
Distribution: Porteus,Xubuntu,Arch
Location: DE

User not allowed sudo access

Post#5 by Shadow0815 » 27 Sep 2020, 14:45

I did create an xzm package using the manual installed pip3:

Code: Select all

########  run as root
run()
{
cd /tmp
D="pip3-tmp-dirname"
mkdir $D
pip3 install --upgrade pip
pip3 install --root $D --no-deps --no-warn-script-location --ignore-installed pip

# finding out version names
pipvers=$(find $D |grep -o -m 1 'pip-.*dist-info'); pipvers=${pipvers%.dist-info}
pyvers=$(find $D | grep -o -m 1 'python.*/site-packages'); pyvers=${pyvers%/site-packages};
name="$pyvers-$pipvers"
mv $D $name
dir2xzm $name $name.xzm
}
run
########

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

User not allowed sudo access

Post#6 by ncmprhnsbl » 28 Sep 2020, 07:31

just pointing out:
slackware do package pip:

Code: Select all

getpkg python-pip
will also do the trick..
there's also: menu/system/bundles, but that version is a little out of date..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply