LinuxForum.Fans
Тема

Calculate & Slackware

Автор: BWR 54 сообщений 8660 просмотров
#223523
bormant написал:
Хм, всё же
root (hd0,8)
GRUB 1 считает разделы с 0, а GRUB 2 -- с 1.

Посмотрел, boot нужен только в командном режиме.

menu.lst

# Processing template files:
# /usr/share/calculate/templates/install/1system/grub/grub.conf
#------------------------------------------------------------------------------
timeout 2
default 0
fallback 1
splashimage=(hd0,5)/boot/grub/grub-calculate.xpm.gz

title Calculate Linux Desktop x86_64 11.12 GNOME
root (hd0,5)
kernel /boot/vmlinuz-9614baae root=UUID=9614baae-8293-4987-b178-c8dee66c21a5 video=uvesafb:ywrap,1280x1024-32,mtrr:3,splash=silent,theme:tty1 console=tty1 udev quiet real_resume=UUID=3dc301e9-b64f-4df0-b987-e9108c325a4b elevator=cfq doscsi calculate=video:radeon
initrd /boot/initrd-9614baae

title Slackware
root (hd0,9)
kernel /boot/vmlinuz root=/dev/sda9 ro
boot

# Uncomment if you have Windows on hard disk
# title Microsoft Windows
# rootnoverify (hd0,0)
# chainloader +1

#223524

А какой интернет? Как подключаетесь?

#223525
bormant написал:
А какой интернет? Как подключаетесь?

МегаФон. 3G модем.

#223526
BWR написал:
Также хотел спросить, как сделать пользователю в Calculate привилегии админа?

1. Добавить в группу wheel, если не ошибаюсь, и использовать команду su.
2. Установить, если не установлен пакет app-admin/sudo, настроить, использовать команду sudo.

#223527
Lupo Alberto написал:
[quote=BWR]Также хотел спросить, как сделать пользователю в Calculate привилегии админа?

1. Добавить в группу wheel, если не ошибаюсь, и использовать команду su.
2. Установить, если не установлен пакет app-admin/sudo, настроить, использовать команду sudo.[/quote]
Где все это находиться? Извините за нубские вопросы.

#223528
BWR написал:
Где все это находиться? Извините за нубские вопросы.

Скорее всего ваш пользователь уже состоит в группе wheel, проверьте

text

groups
#223530

Lupo Alberto,
[console]lp wheel audio cdrom video games cdrw users plugdev bwr[/console]
все верно? но почему выбивает ошибку, когда я выполняю команду к примеру:

[console]bwr@calculate ~ $ sudo nautilus
Пароль:
bwr is not in the sudoers file. This incident will be reported.
bwr@calculate ~ $
[/console]

#223531
BWR написал:
се верно? но почему выбивает ошибку, когда я выполняю команду к примеру:

Это для переключения на root'а с помощью команды su.

BWR написал:
bwr is not in the sudoers file. This incident will be reported.

sudo ещё нужно настроить.
P.S. Моё глубокое IMHO: на компьютере с одним пользователем вполне можно обойтись без sudo.

#223532
BWR написал:
sudo nautilus

Плохой пример oO

#223533

Там же написано почему: в /etc/sudoers не прописаны разрешения ни для пользователя, ни для группы.

#223534

Если всё же захотите настроить sudo, переключитесь на root с помощью команды su и покажите файл /etc/sudoers.

#223535

У меня с английским проблемы(

#223536
Lupo Alberto написал:
Если всё же захотите настроить sudo, переключитесь на root с помощью команды su и покажите файл /etc/sudoers.

[console]calculate bwr # cd /etc/sudoers
bash: cd: /etc/sudoers: Это не каталог
calculate bwr # cd ~/etc/sudoers
bash: cd: /root/etc/sudoers: Нет такого файла или каталога
calculate bwr # cd /etc/sudoers
bash: cd: /etc/sudoers: Это не каталог
calculate bwr # cd /etc/sudoers.d
calculate sudoers.d # cd /etc/sudoers.
bash: cd: /etc/sudoers.: Нет такого файла или каталога
calculate sudoers.d #
[/console]

В папке пусто.

#223537

BWR, скорее всего для работы sudo в самом простейшем случае достаточно раскомментировать строку в файле /etc/sudoers

text

wheel ALL=(ALL) ALL
#223538
Lupo Alberto написал:
покажите файл /etc/sudoers.
Показать
text

gentoo-laptop lupo # cat /etc/sudoers
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##

## ## Host alias specification ## ## Groups of machines. These may include host names (optionally with wildcards), ## IP addresses, network numbers or netgroups. # Host_Alias WEBSERVERS = www1, www2, www3

## ## User alias specification ## ## Groups of users. These may consist of user names, uids, Unix groups, ## or netgroups. # User_Alias ADMINS = millert, dowdy, mikef

## ## Cmnd alias specification ## ## Groups of commands. Often used to group related commands together. # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \ # /usr/bin/pkill, /usr/bin/top

## ## Defaults specification ## ## You may wish to keep some of the following environment variables ## when running commands via sudo. ## ## Locale settings # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET" ## ## Run X applications through sudo; HOME is used to find the ## .Xauthority file. Note that other programs use HOME to find ## configuration files and this may lead to privilege escalation! # Defaults env_keep += "HOME" ## ## X11 resource path settings # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH" ## ## Desktop path settings # Defaults env_keep += "QTDIR KDEDIR" ## ## Allow sudo-run commands to inherit the callers' ConsoleKit session # Defaults env_keep += "XDG_SESSION_COOKIE" ## ## Uncomment to enable special input methods. Care should be taken as ## this may allow users to subvert the command being run via sudo. # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER" ## ## Uncomment to enable logging of a command's output, except for ## sudoreplay and reboot. Use sudoreplay to play back logged sessions. # Defaults log_output # Defaults!/usr/bin/sudoreplay !log_output # Defaults!/usr/local/bin/sudoreplay !log_output # Defaults!/sbin/reboot !log_output

## ## Runas alias specification ##

## ## User privilege specification ## root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command # %wheel ALL=(ALL) ALL

## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command # %sudo ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password ## of the user they are running the command as (root by default). # Defaults targetpw # Ask for the password of the target user # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d ## (the '#' here does not indicate a comment) #includedir /etc/sudoers.d

#223539

Выполните от root'а

text

nano -w /etc/sudoers

Уберите комментарий с указанной ранее строки, сохраните файл — Ctrl+o и выйдите из редактора Ctrl+x.

#223540
Lupo Alberto написал:
[quote=Lupo Alberto]покажите файл /etc/sudoers.

Показать
text

gentoo-laptop lupo # cat /etc/sudoers
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##

## ## Host alias specification ## ## Groups of machines. These may include host names (optionally with wildcards), ## IP addresses, network numbers or netgroups. # Host_Alias WEBSERVERS = www1, www2, www3

## ## User alias specification ## ## Groups of users. These may consist of user names, uids, Unix groups, ## or netgroups. # User_Alias ADMINS = millert, dowdy, mikef

## ## Cmnd alias specification ## ## Groups of commands. Often used to group related commands together. # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \ # /usr/bin/pkill, /usr/bin/top

## ## Defaults specification ## ## You may wish to keep some of the following environment variables ## when running commands via sudo. ## ## Locale settings # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET" ## ## Run X applications through sudo; HOME is used to find the ## .Xauthority file. Note that other programs use HOME to find ## configuration files and this may lead to privilege escalation! # Defaults env_keep += "HOME" ## ## X11 resource path settings # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH" ## ## Desktop path settings # Defaults env_keep += "QTDIR KDEDIR" ## ## Allow sudo-run commands to inherit the callers' ConsoleKit session # Defaults env_keep += "XDG_SESSION_COOKIE" ## ## Uncomment to enable special input methods. Care should be taken as ## this may allow users to subvert the command being run via sudo. # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER" ## ## Uncomment to enable logging of a command's output, except for ## sudoreplay and reboot. Use sudoreplay to play back logged sessions. # Defaults log_output # Defaults!/usr/bin/sudoreplay !log_output # Defaults!/usr/local/bin/sudoreplay !log_output # Defaults!/sbin/reboot !log_output

## ## Runas alias specification ##

## ## User privilege specification ## root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command # %wheel ALL=(ALL) ALL

## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command # %sudo ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password ## of the user they are running the command as (root by default). # Defaults targetpw # Ask for the password of the target user # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d ## (the '#' here does not indicate a comment) #includedir /etc/sudoers.d

[/quote]
Ладно, проверю, не получиться, оставлю на потом. Спасибо. Думаю лучше послушать опытного человека, пока не натворил что-нибудь :D

#223541

Тему пожалуйста не закрывайте. Хочу сразу здесь попросить решение как подключить 3G модем в Slackware. Я kppp ни разу не пользовался.

#223542

Прежде всего подключить модем, подождать секунд 20 и показать вывод команды

text

ls -l /dev/ttyUSB*
#223543

BWR, если не возражаете, я чуть заголовок темы поправлю, так как vs == versus == против.
P.S. Лучше уж Calculate & Slackware wink

Войдите или зарегистрируйтесь, чтобы ответить.