标签: scientific-linux

Anaconda kickstart 和 rootpw 选项

我尝试了几种在 SL 6.5 上生成加密密码的不同方法,但似乎对我没有任何作用。我在各种 /var/log/anaconda* 文件中的任何地方都没有发现任何错误,但我无法登录,因此它显然无法正常工作。

/root/anaconda-ks.cfg我用作模板的原始自动创建文件如下所示:

rootpw  --iscrypted $6$...(about 100 characters)
authconfig --enableshadow --passalgo=sha512
Run Code Online (Sandbox Code Playgroud)

接下来我尝试了openssl passwd -1这给了我:

rootpw  --iscrypted $1$...(about 30 characters)
authconfig --enableshadow --passalgo=sha512
Run Code Online (Sandbox Code Playgroud)

我意识到这不是 SHA-512,所以我尝试了一个 Python one-liner 我发现在几个地方重复

rootpw  --iscrypted $6...(about 10 characters)
authconfig --enableshadow --passalgo=sha512
Run Code Online (Sandbox Code Playgroud)

没有任何效果;我无法登录,最终不得不在单用户模式下重置 root 密码。

kickstart anaconda rhel6 scientific-linux

5
推荐指数
1
解决办法
1万
查看次数

SL6:非标准主目录,错误:登录时无法 chdir 到主目录,但 cd $HOME 有效?

我有一个全新的 Scientific Linux 6 实例(类似于 RHEL6 和 CentOS6),在 Parallels 上运行。

主目录位于非标准位置,我将其称为 /homedir

当我 ssh 进入这个框时,我收到一个错误:

laptop $ ssh 192.168.1.100
stefanl@192.168.1.100's password: 
Could not chdir to home directory /homedir/stefanl: Permission denied
Run Code Online (Sandbox Code Playgroud)

但紧接着我就可以 chdir 到那个目录,没有错误:

[stefanl@localhost /]$ cd /homedir/stefanl
[stefanl@localhost ~]$ touch foo
[stefanl@localhost ~]$ ls -la
total 28
drwx------. 3 stefanl wheel   4096 Sep 14 17:53 .
drwxr-xr-x. 5 root    root    4096 Sep 14 17:16 ..
-rw-------. 1 stefanl stefanl  303 Sep 14 18:16 .bash_history
-rw-r--r--. 1 stefanl stefanl   18 May …
Run Code Online (Sandbox Code Playgroud)

rhel6 scientific-linux

4
推荐指数
1
解决办法
4328
查看次数

Scientific linux:如何使用rpm安装yum?

在 Scientific linux 6.0(RH like linux)上我不小心删除了 python,所以 yum 也删除了。µ

如何用rpm安装yum?

编辑

我尝试安装 python,但它以某种方式循环依赖:

rpm -Uvh http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-libs-2.6.5-3.el6.x86_64.rpm
    Retrieving http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-libs-2.6.5-3.el6.x86_64.rpm
    error: Failed dependencies:
            python = 2.6.5-3.el6 is needed by python-libs-2.6.5-3.el6.x86_64
Run Code Online (Sandbox Code Playgroud)

然后:

 rpm -Uvh http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python
-2.6.5-3.el6.x86_64.rpm
Retrieving http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-2.6.5-3.el6.x86_64.rpm
error: Failed dependencies:
        libpython2.6.so.1.0()(64bit) is needed by python-2.6.5-3.el6.x86_64
Run Code Online (Sandbox Code Playgroud)

linux yum rpm scientific-linux

3
推荐指数
1
解决办法
2万
查看次数

Kickstart 虚拟控制台:Alt-F2 没有“Shell 提示”

我正在通过 kickstart 安装 Scientific Linux 6.1,我正在尝试调试一个问题。

根据anaconda 和 kickstart 的提示和技巧,我应该有几个可用的虚拟控制台:

What the different terminals display

Alt-F1    The installation dialog when using text or cmdline
Alt-F2    A shell prompt
Alt-F3    The install log displaying messages from install program
Alt-F4    The system log displaying messages from kernel, etc.
Alt-F5    All other messages
Alt-F7    The installation dialog when using the graphical installer
Run Code Online (Sandbox Code Playgroud)

虚拟控制台Alt- F1F3F4&F5都可以工作并显示各种日志信息。但是,位于Alt-的虚拟控制台F2不执行任何操作。

我真的可以使用对 shell 提示 ( …

redhat kickstart rhel6 scientific-linux

2
推荐指数
1
解决办法
1万
查看次数

Linux Kickstart Scipts

我一直在为 Scientific Linux 安装编写 kickstart 脚本。我的目标是创建一个 CD ISO,以便有人可以轻松地在服务器上安装它。我已经能够用它做相当多的事情,但我仍然遇到一些需要帮助的问题。

  1. 当启动菜单启动并且我选择“安装”或“安装(文本模式)”时,它永远不会直接进入安装。它进入命令提示符,我必须在其中输入 root 并运行“liveinst”。
  2. 安装开始时,我想删除一些选项。前任。- 我在 kickstart 脚本中定义了时区、语言等,所以我不希望任何人能够修改它。
  3. 它没有提示我输入网络信息。我不想运行 firstboot,我只是想让它在初始设置期间询问我的网络。我在 kickstart 脚本中尝试了各种方法,例如“asknet”、“network --query”,但似乎都不起作用。
  4. iptables 设置不起作用。我试过在 kickstart 脚本的顶部添加“iptables --ssh --http --port:514”,我试过将命令回显到 /etc/sysconfig/iptables 中,我试过完全重写文件,它似乎都不起作用。

任何帮助或指示将不胜感激。

######################################################
## Custom Kickstart Script
######################################################

######################################################
## Include another kickstart script
######################################################

%include sl62-livecd-gnome.ks

######################################################
## Basic Settings
######################################################

cdrom
install
autopart
autostep
xconfig --startxonboot
rootpw testpassword

lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
auth --useshadow --enablemd5
selinux --disabled
services --enabled=iptables,rsyslog,sshd,ntpd,NetworkManager,network --disabled=sendmail,cups,firstboot,ip6tables

clearpart --all

######################################################
## Repos
######################################################
repo …
Run Code Online (Sandbox Code Playgroud)

linux iso kickstart scientific-linux

2
推荐指数
1
解决办法
1万
查看次数

如何检查它正在运行的 cron 任务?

我放了一个 cron 脚本/etc/cron.d

[root@node ~]# cat /etc/cron.d/reconfig
0 */6 * * * root /root/bin/reconfig.pl
Run Code Online (Sandbox Code Playgroud)

但是我没有得到 root 的 cron 任务列表:

[root@node ~]# crontab -l
no crontab for root
Run Code Online (Sandbox Code Playgroud)

我如何检查它是否运行正常?

它是一个 Scientific Linux 6.4 节点。

linux cron scientific-linux

0
推荐指数
1
解决办法
4万
查看次数

标签 统计

scientific-linux ×6

kickstart ×3

linux ×3

rhel6 ×3

anaconda ×1

cron ×1

iso ×1

redhat ×1

rpm ×1

yum ×1