RHEL

Linux RHEL - Find disk type

醉酒当歌 提交于 2019-12-08 13:04:13
问题 I have Oracle Linux Server release 5.6 (Red Hat Enterprise Linux Server release 5.6) and I want to check if the disk type is SATA, SCSI, ATA or SAS or any other disk type. I installed lshw (hardware lister) and executing "lshw -class storage" gives the below output description: SCSI storage controller product: 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI vendor: LSI Logic / Symbios Logic physical id: 10 bus info: pci@0000:00:10.0 logical name: scsi0 version: 01 width: 64 bits clock: 33MHz

Unable to set just year with Linux date command [closed]

 ̄綄美尐妖づ 提交于 2019-12-08 09:35:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . For some reason I fail to update year only using date command date Tue Mar 4 20:15:42 IST 2014 date '+%Y' -s '2013' date Tue Mar 4 20:13:01 IST 2014 I tried it on both RedHat and Ubuntu... NTP is not running... 回答1: Apparently to change the date you have to use the complete setting syntax. date --set="YYYYmmdd

can't install using yum in RHEL 7.1

拟墨画扇 提交于 2019-12-08 07:26:00
问题 I got a RHEL 7.1 instance on amazon aws, now i am trying to install softwares using yum, but even very common softwares aren't available. For example, $ sudo yum install lynx Loaded plugins: amazon-id, rhui-lb No package lynx available. Error: Nothing to do I am new to linux and yum . What's to be done so I can install softwares easily using yum . Should I be adding repos? Here, I tried doing what's said here -> Top 5 Yum Repositories for CentOS/RHEL 7/6/5 and Fedora, and here -> Install

Unable to set just year with Linux date command [closed]

喜欢而已 提交于 2019-12-08 07:16:27
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . For some reason I fail to update year only using date command date Tue Mar 4 20:15:42 IST 2014 date '+%Y' -s '2013' date Tue Mar 4 20:13:01 IST 2014 I tried it on both RedHat and Ubuntu... NTP is not running... Apparently to change the date you have to use the complete setting syntax. date --set="YYYYmmdd HH:MM" Here is a way to achieve your demand : date --set="$(date +'2013%m%d %H:%M')" This way you maintain

Cannot install rgdal package in R on RHEL6, unable to load shared object rgdal.so

ぐ巨炮叔叔 提交于 2019-12-08 02:15:11
问题 I have AWS RHEL6 server where I've installed (compiled) rgdal 1.9.2 and proj packages. Now in R I want to install rgdal package but it gives this error: ** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/home/Roel/R/x86_64-redhat-linux-gnu-library/3.3/rgdal/libs/rgdal.so': libgdal.so.1: cannot open shared object file: No such file or directory Error: loading failed Execution halted ERROR: loading failed * removing ‘

vmware下安装rhel6.7

北慕城南 提交于 2019-12-07 17:21:21
1. 在虚拟机中选择安装镜像、网络模式选着为“桥接”,并把“复制物理连接状态”勾上。 安装过程中,注意查看LAN网段,通过本机的ipconfig命令查看掩码、网关等。 2. 打开虚拟机后,一步步点击下一步安装,根据自定义选项,勾选需要的选项。等待安 装完成后,点击重启。 3. 配置静态IP地址 ┃ ┗━━ 修改 vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0C:29:19:E1:FF TYPE=Ethernet UUID=328befe6-6be0-4c2d-a068-14f4a203484d ONBOOT=yes // 系统启动时激活 NM_CONTROLLED=yes BOOTPROTO=static // 静态IP IPADDR=192.168.0.107 // 局域网内IP地址 NETMASK=255.255.255.0 GATEWAY=192.168.0.1 // 默认网关 DNS1=8.8.8.8 DNS2=192.168.0.1 禁用防火墙 chkconfig iptables off service iptables stop 重启网络服务 service network restart 或 /etc/init.d/network restart OK,ping mirrors

浅析 Linux 初始化 init 系统:sysvinit

邮差的信 提交于 2019-12-07 17:10:38
从 sysvinit 到 systemd 近年来, Linux 系统的 init 进程经历了两次重大的演进,传统的 sysvinit 已经淡出历史舞台,新的 init 系统 UpStart 和 systemd 各有特点,而越来越多的 Linux 发行版采纳了 systemd。本文简要介绍了这三种 init 系统的使用和原理,每个 Linux 系统管理员和系统软件开发者都应该了解它们,以便更好地管理系统和开发应用。本文是系列的第一部分,主要讲述 sysvinit 的特点和使用。 什么是 Init 系统,init 系统的历史和现状 Linux 操作系统 的启动首先从 BIOS 开始,接下来进入 boot loader ,由 bootloader 载入 内核 ,进行 内核初始化 。 内核初始化 的最后一步就是启动 pid 为 1 的 init 进程。这个进程是系统的第一个进程。它负责产生其他所有用户进程。 init 以守护进程方式存在,是所有其他进程的祖先。init 进程非常独特,能够完成其他进程无法完成的任务。 Init 系统能够定义、管理和控制 init 进程的行为。它负责组织和运行许多独立的或相关的始化工作(因此被称为 init 系统),从而让计算机系统进入某种用户预订的运行模式。 仅仅将内核运行起来是毫无实际用途的,必须由 init 系统将系统代入可操作状态。比如启动外壳

Approach for installing system service implemented as Ruby gem

ε祈祈猫儿з 提交于 2019-12-07 15:24:23
问题 After years of being away from Ruby, I'm back full-force and have just cut my first gem, which includes an executable. Everything works like a charm. The problem I am facing, however, is that I ALSO have a startup script (not part of the gem istelf) that daemonizes the executable. Additionally, I'd also like for the startup script to point the executable at configuration in a place like /var/ To the best of my knowledge, there's no way with rubygems, gemspec, etc., to specify files getting

git push over sshfs failing with “error when closing sha1 file: Bad file descriptor”

雨燕双飞 提交于 2019-12-07 14:20:12
问题 We are mounting a filesystem over SSH using sshfs and are using it as a remote storage for git repository collaboration. Mac OSX 10.6.6 to a RHEL 3 server SSHFS version 2.2 (MacFUSE SSHFS 2.2.0) MacFUSE library version: FUSE 2.7.3 / MacFUSE 2.0.3 sshfs -o workaround=rename gituser@gitserver.ourdomain.com:/path/to/directory ~/git Here's how we're creating our repo's, working with them locally, then trying to push back to the server: cd ~/git/mypersonaluser git init --bare --share mynewrepo.git

使用Xmanager远程连接Linux RedHat 6.4图形桌面

青春壹個敷衍的年華 提交于 2019-12-07 12:11:49
使用Xmanager远程连接Linux RedHat 6.4图形桌面 2016年08月01日 14:50:35 大脸猫爱东东 阅读数:4236更多 个人分类: Linux Xmanager 1、安装Xmanager 2、打开Xstart,填写主机IP(即你需要远程连接的桌面地址),协议选择SSH,填写用户名,身份认证选择password,命令里面填写/etc/gdm/Xsession,点击运行 3、成功用Xmanager打开Linux图形桌面 来源: oschina 链接: https://my.oschina.net/u/2653883/blog/2236665