Tag Info

New answers tagged

0

The above didn't work for me, but I found this and it worked like a charm. My setup was Centos 7 as a VM in VMWare Fusion. http://www.itsprite.com/centos-7-change-network-interface-name-from/


0

Letting adduser choose a user ID is the right way to do it. This won't conflict with official packages because automatically-assigned UIDs and statically-assigned UIDs are in different ranges. Yes, this does lead to different user IDs across systems; there's no easy way to do that because you'd have to tell the whole world (every system administrator and ...


0

The RHEL6 migration guide documents that there's a list for statically-assigned UIDs in /usr/share/doc/setup-*/uidgid, which currently goes up to roughly 200, and dynamic system users count downwards from 499. I read that as "use adduser -r in this case and certainly don't worry if you stay above 300; you won't collide unless you have hundreds of system ...


3

It sounds like you created a key but you didn't configure the account on the server to authorize that key. Copy the contents of id_rsa.pub to the server and add it to ~/.ssh/authorized_keys. Do not copy id_rsa to the server, and keep it protected. This file contains the private key and the server doesn't need to see that. Note that if the key is stored in ...


1

In fact mkisofs 2.01 points to genisoimage: $ mkisofs --version mkisofs 2.01 is not what you see here. This line is only a fake for too clever GUIs and other frontend applications. In fact, this program is: genisoimage 1.1.11 (Linux) From man genisoimage you can try the -m option: -m glob Exclude files matching glob, a shell wildcard pattern, ...


0

You could add these lines in your /etc/rc.local : ip link set dev "eth1" down ip link set dev "eth2" down ip link set dev "eth3" down Unless it is a too basic or static solution...


1

Wyse60 is a completely different command set from the basic VT100-compatible ANSI command set that' used e.g. on the linux console or by xterm etc. so you probably have the correct terminfo files installed and have set the TERM environment variable to the correct value (probably wy60 I guess) when using TinyTerm (which I'm unfamiliar with). When using the ...


0

Finllay I had to download the Red Hat Enterprise Linux Server ISO and create a local repo with these instructions: # mkdir /media/rhel6 # mount -o loop rhel-server-6.5-x86_64-dvd.iso /media/rhel6/ # head -n1 /media/rhel6/.discinfo => Note down the number # nano /etc/yum.repos.d/rhel6.repo In rhel6.repo we have to add: [rhel6-Server] mediaid=(Number ...


2

The file logstash-forwarder_linux_386 is an executable. It's ready to run, there's no unzipping to be done. You can see that with the file command: $ file logstash-forwarder_linux_386 logstash-forwarder_linux_386: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped You need to make this file executable and place it in ...


1

find does not sort the files, it lists them out in the order it finds them. It also traverses directories in the order it finds them. You cannot make any assumptions about the order but I believe it will be repeatable in the sense that if you run find again, you'll get the same order. On Linux, files are not stored in alphabetical order. Maybe they are on ...


1

The equivalent command is yum groupinstall 'Development Tools'


2

It's not a great solution, but: make the directory writable only by you, or some designated user or pseudo-user, or, perhaps better yet, a group (that your users are not members of), carefully write a wrapper for mkdir, and install it setuid or setgid. If you choose the group / setgid option, it could be as simple as mkdir("root_scripts/<user's ...


32

And now, the systemd answer. You're using, per the tag on your question, Red Hat Enterprise Linux. Since version 7, that has used systemd. None of the other answers are correct for the world of systemd; nor even are some of the assumptions in your question. Forget about runlevels; they exist, but only as compatibility shims. The systemd documentation ...


2

halt, poweroff and shutdown -h are completely equivalent. In fact, halt and poweroff do nothing but call shutdown -h. From the halt/poweroff manpage: If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead (with the -h or -r flag). For more info see the shutdown(8) ...


16

halt instructs the hardware to stop all CPU functions, but leaves it in a powered-on state. This usually means someone has to reboot or shut the machine down manually by pressing the power button afterwards. The specific way to achieve this is architecture specific, but for instance the x86 instruction set provides the HLT instructions which halts the ...


1

In RHEL 7, you'll have to use nmcli command for permanent change. nmcli command uses /etc/sysconfig/network-scripts/ifcfg-con_name file first, also when you modify connection properties with nmcli it will write to ifcfg-con_name file. So, to automatically start connection, you need to use following: nmcli con mod enp0s3 connection.autoconnect yes It will ...


0

Following steps did the job for me: Run the rsync --dry-run first in order to get the list of files those would be affected. rsync -avzm --stats --safe-links --ignore-existing --dry-run --human-readable /data/projects REMOTE-HOST:/data/ > /tmp/transfer.log I fed the output of cat transfer.log to parallel in order to run 5 rsyncs in parallel, as ...


3

Try this with GNU find: echo "File Name,Modified Date"; find . -name '*.csv' -printf "%f,%TY-%Tm-%Td %TI:%TM\n"


1

As I am not sure it is possible in the 'Requires' part of the script to specify a repo as a dependency, it may be better to include the repo file in the package you are building, or add as a dependency a RPM that provides it. A existing solution for including the repo file is the one used in the Google Chrome package, which is to add the repo file and GPG ...


1

ifup enp0s3 should bring up the interface and configure it. You might want to review the Network Interfaces chapter of the RHEL manual. §10.3. “Interface Control Scripts” mentions using ifup. ifconfig enp0s3 up should not load any configuration from ifcfg-enp0s3, by the way. See e.g., What is the difference between 'ifconfig up eth0' and 'ifup eth0'? on ...


0

Is there a reason you can't use the yum command? Also, are you trying to install tigervnc-server? Either way, you can approach this by using either: rpm -q --whatprovides libXaw.so.7 or yum provides libXaw.so.7 to find out what packages provide this shared object. You should look into creating a repository from the RHEL 6.5 server install disc Create RHEL ...


0

You may want to put the following systemctl disable avahi-daemon.socket avahi-daemon.service into a cron script, as updating avahi may annoyingly reenable it. Why, oh why do vendors build packages that force dependencies on avahi?


0

As far as I know, Red Hat never supported DRBD. However, they will support your services running on top of DRBD if you have a support agreement through LINBIT (creators of DRBD). Source: https://access.redhat.com/solutions/32085 Also, GlusterFS is developed by Red Hat. Which may be why it seems they prefer it.


0

Your question is hard to understand, but whatever you're trying to do will probably involve the hwclock command. This is the command to read or set the harwdare clock. The main ways to use it are: hwclock --systohc: set the hardware clock to the system time hwclock --hctosys: set the system time to the hardware clock hwclock --set --date='…': set the ...


0

CentOS is the same of Redhat but without cost of support. CentOS is community driven, Redhat it supported by Redhat themselves. So, ideally CentOS is a perfect choice for poor Redhat lovers :)


0

You can convert the box in place to CentOS, which is (almost) a drop-in replacement for RHEL and free. Details are version-specific, see link below. Yum, rhel-release and the rhsm packages are yanked out and replaced with the CentOS bits. https://www.pickysysadmin.ca/2014/07/15/how-to-convert-rhel-6-x-to-centos-6-x/


-2

#!/bin/sh [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & gnome-session & Add gnome-seesion & at the end of xstartup file


2

If you use the -y option with yum, yum will automatically answer "yes" to any question prompt during the operation. For the example yum -y groupinstall gnome, yum may normally ask if you want to follow through with downloading the gnome group of packages. With -y present, yum automatically answers yes to this question. From the man page: -y ...


0

For future refference, the problem lay on the windows side. You must edit this key to get it to work: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\ DisableStrictNameChecking[REG_DWORD#32] = 1 Reboot and wahlah.


0

To monitor traffic on both directions between host_a and host_b you can use: # tcpdump -nli eth6 host host_a and host_b


0

Because they are arch dependent. Either rebuild the .src.rpm on the arch. you care about (the one in the source repos. is built on a random supported arch), or download and unpuck the .src.rpm and yum-buildep on the kernel.spec.


0

You should do ldd /lib64/libldap-2.4.so.2, check output for 'undefined references', find package which provides that undefined lib, find your repo, manually download the rpm which provides that lib, install it with rpm -i <missing>.rpm. Most probably your problem is due to bug in libldap or your manual intervention into packaging system. I happen to ...


3

Your choice of distribution really depends on what it will be used for, and who will be administering it. RHEL and CentOS are both based on same core, however RHEL comes as a paid, supported, enterprise-level product. If you need the support of an SLA and the amazing team at Red Hat, that would certainly be a good option. Personally, I am more familiar ...


0

Use GNU Parallel to parallelize your collection: parallel --slf rhel-nodes --tag --timeout 1000% --onall --retries 3 \ "rpm -q {}; rpm --queryformat '%{installtime:date} %{name}\n' -q {}" \ ::: bash bc perl Put the nodes in ~/.parallel/rhel-nodes. --tag will prepend the output with the name of the node. --timeout 1000% says that if a command takes 10 ...


1

CentOS 7 Security Hardening Document that I've just posted might help you out, it's based on OpenSCAP.


0

Thank you for your attempts to solve this. I have resolved the issue now, and the resolution needed was so simple, that I feel quite stupid now. In the code I had used previously, (ssh -q -o Batchmode=yes -o PasswordAuthentication=no -o ConnectTimeout=1 $i "rpm --queryformat '%{installtime:date} %{name}\n' -q \"kexec-tools\" | cut -d \" \" -f1,2,3,4|tr ...



Top 50 recent answers are included