Hi all,
I've been using Debian on my main laptop and PC for some time so I decided I wanted to try something new on my even older laptop. Looked around and Salix OS XFCE seemed like a good choice. Never used Slackware or anything based on it before so I figured using Salix would be a good place to start.
This is distro is FAST! I loved it. Congrats to the developers and the community!
The problem I'm facing is this:
Edited sudoers to allow my regular account to run slapt-get but it simply won't run it. If I run "sudo /usr/sbin/slapt-get" or run slapt-get as root, then it works.
How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
Thanks in advance.
sudo: slapt-get: command not found
Re: sudo: slapt-get: command not found
And what happens if you run Gslapt from the regular system menu?
Otherwise the usual procedure from the command line is to issue:
Give your root password when asked and then:
which should give you the help menu if you do not specify any options.
Otherwise the usual procedure from the command line is to issue:
Code: Select all
$ su -Code: Select all
# slapt-get 
What really matters is where you are going, not where you come from.
Re: sudo: slapt-get: command not found
You can add a line to set it in your ~/.bashrc. You might also want to add /sbin and /usr/local/sbinharroxelas wrote:How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
Code: Select all
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH-
harroxelas
- Posts: 4
- Joined: 8. Jan 2012, 23:09
Re: sudo: slapt-get: command not found
Thanks for the responses.
Well, I'll just use sourcery. Thanks!
gapan, that didn't work. Googling around, I saw different syntaxes of this command.gapan wrote:You can add a line to set it in your ~/.bashrc. You might also want to add /sbin and /usr/local/sbinharroxelas wrote:How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
Code: Select all
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
Well, I'll just use sourcery. Thanks!
Re: sudo: slapt-get: command not found
There is no way it couldn't work. Since you're not providing any information on how it didn't work, I can't offer any more help. Just a guess: you didn't open a new terminal window after you changed that, did you?
-
harroxelas
- Posts: 4
- Joined: 8. Jan 2012, 23:09
Re: sudo: slapt-get: command not found
gapan,
Sorry for not making myself clear. Here's what I did:
1) Logged as root
2) Edited .bashrc on the root dir
3) Added the line you provided on the end of the .bashrc
4) Closed the terminal and opened a new one (as .bashrc is executed on every new terminal session)
5) Got the same error message
6) Rebooted the system
7) Tried again and got the same error
I'm starting to think that the problem is on the sudores edit. I did what I had done on Debian:
1) Logged as root
2) visudo
3) just below the root permission (root ALL=(ALL) ALL) I added the line "myusername ALL=(ALL) ALL"
4) saved and quit
5) typed visudo again just to check if it saved correctly, and it did.
I don't know what else to do (except using sourcery) but I'd much prefer using the slapt-get, as I'm very used to apt-get.
Thanks for the help.
Sorry for not making myself clear. Here's what I did:
1) Logged as root
2) Edited .bashrc on the root dir
3) Added the line you provided on the end of the .bashrc
4) Closed the terminal and opened a new one (as .bashrc is executed on every new terminal session)
5) Got the same error message
6) Rebooted the system
7) Tried again and got the same error
I'm starting to think that the problem is on the sudores edit. I did what I had done on Debian:
1) Logged as root
2) visudo
3) just below the root permission (root ALL=(ALL) ALL) I added the line "myusername ALL=(ALL) ALL"
4) saved and quit
5) typed visudo again just to check if it saved correctly, and it did.
I don't know what else to do (except using sourcery) but I'd much prefer using the slapt-get, as I'm very used to apt-get.
Thanks for the help.
Re: sudo: slapt-get: command not found
You need to edit the .bashrc in your user's home directory, not root's .bashrc. That's why I wrote ~/.bashrc and not /root/.bashrc.
-
harroxelas
- Posts: 4
- Joined: 8. Jan 2012, 23:09
Re: sudo: slapt-get: command not found
/me taps his forehead. *Stupid!*
Cheers, gapan. Thanks for the help.
Cheers, gapan. Thanks for the help.

