Tag Info

New answers tagged

0

Technically, they are the same in the sense that Red Hat Enterprise Linux makes use of the GPL, meaning that the source code must be made available and that the CentOS project uses that source code to make CentOS. However, this is a simplification. Red Hat Enterprise Linux is tied to Red Hat's business model. CentOS is a community project. This means that ...


0

Read the Centos FAQ one question that has the answer: How is CentOS different from Red Hat Enterprise Linux? CentOS is a community project that is developed, maintained, and supported by and for its users and contributors. Red Hat Enterprise Linux is a subscription product that is developed, maintained, and supported by Red Hat for its subscribers. ...


1

Besides booting into single user mode you could attach a virtual CD-ROM containing an installation or rescue system image, boot that, mount the root filesystem of the machine and edit the boot scripts. This may be more comfortable to use than using single user mode.


0

How about Dream Studio? But I also think its based on Ubuntu... so, as you mentioned you wouldn't like that a kinda distro... you could try it out though... via LIVE from an USB boot... I used both, Dream Studio and Ubuntu Studio, but - kernel is the base of the problem, cuz even Windows is not that 'good' regarding professional work, cuz these tools that ...


2

You can expand your range by editing the config file: vi /etc/dnsmasq.conf Look for the dhcp-range line: dhcp-range=192.168.0.10,192.168.0.50,12h will issue from 192.168.0.10 to 192.168.0.50 with a lease time of 12 hours. You can see your current leases with: cat /var/lib/dnsmasq/dnsmasq.leases That path might differ, depending on your distro. If ...


1

Try removing ntfs-3g-2:2011.4.12-5.el6.x86_64 package by: yum remove ntfs-3g See which packages depends on this package. If there is only one package appeared in list of removing package by yum, you can confidently remove this package. (Note: Don't press 'Y' for removing packages if you don't know which are they.) After this go for yum update.


1

Tidy up the yum cache directory: # yum clean all Then, try downgrading the package with: # yum downgrade fuse-ntfs-3g From the man page: downgrade Will try and downgrade a package from the version currently installed to the previously highest version (or the specified version). The depsolver will not necessarily work, ...


2

Take a backup first. Run: # cd <directory where new RPM is located> # yum install java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.rpm If things don't go well and the previous version's RPM is available to the system, you can roll back with: # yum history undo last If it's not on the system, you can downgrade by re-installing the previous version ...


2

Boot into single user mode by going into the Grub menu and select the kernel version and press e to edit press space and type single


0

Reboots are documented in the system journal on systems using systemd (e.g. RHEL 7, Fedora). You can look them up via: # journalctl --list-boots [..] 0 51545e9739db4eb1ab602dd338a937b1 Wed 2014-08-06 10:58:04 CEST—Mon 2014-08-18 22:31:43 CEST Traditionally, reboots are also documented via wtmp, i.e. you can display them with the last command: # last [..] ...


0

figure out the solution for remote login : ==> if the terminal from which the process with nohup has been started and if the terminal has been killed then also the process will keep running , however if you simply log out with exit or ctrl+d then it doesn't but the logout will also work if you have logged out of the graphical login .


0

As you get the slow down after login, technically, you need to check what can happen between login and the first shell prompt. A custom setup of the shell could do a lot of creative things that can fail in miserable ways under some special conditions - like at login before actually entering interactive mode, or while DISPLAY is not yet defined. In this ...


0

It's quite a minimal config for a basic virtual host. Create a new config file in /etc/httpd/conf.d/ and name it (for example) after your domain. It has to end in .conf though: # nano /etc/httpd/conf.d/example.net.conf <VirtualHost example.net:80> DocumentRoot /var/www/example.net/ </VirtualHost> Make sure there's viewable content in ...


7

There are no more dedicated flush threads anymore. The Linux kernel has moved on to a worker thread model, where several generic worker threads can handle a variety of different tasks. You will see these in the process list as [kworker/#.##] Unfortunately this new design makes it a bit difficult to tell exactly what any given kworker thread is doing at any ...


0

First of all you should try #chkconfig --add /sbin/iptables this will recognize the "iptables". then you should create a script for your iptables configuration and then make that scrip to start on boot. create a script: #!/bin/bash # iptables -I INPUT 5 -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT 5 -i eth0 -p tcp ...


1

init scripts are gone. Now its systemctl. Its out there in all CentOS7 docs. To chkconfig ipatables or to start iptables service at startup you need to use this:- systemctl enable iptables You should checkout simple things to be known about systemctl at the Cyberciti docs on iptables.


0

Install create repo # cd /media/(dvd-label) # cd /Packages # rpm -ivh createrepo*.rpm Copy all contents from dvd or just the packges If whole dvd is copied, no need to run createrepo. Because repository is inbuilt in dvd. (To check, see if there is a repodata directory) If package dir is only copied, run # createrepo <dir where the packages are ...


2

hostname returns the configured hostname or nodename. In practice, it can either be a short name (in most configurations) or a long name (normally the FQDN in this case). The short name is given by hostname --short. hostname --fqdn returns the FQDN, which is gethostbyname on the nodename (as returned by the uname system call, see uname(2) man page). ...


0

CentOS uses the source packages of RHEL to create the CentOS OS. So OS versions are the same in both the cases. CentOS is the carbon copy version of RHEL with better support for drivers and packages which RHEL cannot support due to its policies. You get a lot of packages from EPEL for CentOS. You can use a rpm package for CentOS, keep in mind your ...


0

As you are using RHEL5/6 and subscribed to RHN [Red hat Network] you can run "yum update all" in all the machines. Please test run this in a non production environment. Also would advised, if server is production, letz say u have a FTP server and it's update package is vsfptd, plan for a downtime and upgrade it in a planned manner. keep backup of config ...


0

Try installing rpm provided by CentOS/Scientific Linux. You can also search on rpm.pbone.net site. This package may be compatible for your system. Also check availability and install all other Required packages.


0

You can install the wireshark-gnome package from the installation DVD or go to the official wireshark website and download the rpm package. other resolutions are register with RHN or add a EPEL repository to yum and the try.


0

As a general way to investigate a slow authentication, check /etc/pam.conf and /etc/pam.d/su (and /etc/pam.d/sshd etc.) to see what kind of authentication the login services perform. Check the system logs to see if anything is logged (look for log entries dating from the time of the authentication). In your case, it's the kernel logs that reveal the ...


0

You can run up2date --configure from a Gnome or KDE desktop (X-Windows) display, and will open a GUI. From there, configure all of your desktops/workstations/servers to auto-update. At the moment, it appears it is not set to auto update, which is why you get a list of what would happen if you updated, but nothing is actually updating. Alternately, you ...


2

Converting to an answer to address piecemeal. We have bought a "Redhat Enterprise Linux 5 Server" license Red Hat doesn't use licensing, it uses an entitlement system for managing sales. You buy access for x number of nodes for a particular base channel. The base channels are specific to a particular RHEL version (such as "rhel6-x86_64" or ...


0

Run this command in a terminal, /bin/sleep 1000 & In a different terminal, check the process is running: pgrep -fa sleep (process shown) Now close the first terminal, or log out. Check again: pgrep -fa sleep (nothing shown) Repeat the steps adding nohup to the first command: nohup /bin/sleep 1000 & You will see the second check shows the ...


-1

nohup doesn't "kill" (prevents signal hangup aka SIGHUP amd see man 7 signal) a process that tries to write to terminal when there is no terminal. When a process doesn't write to terminal, it doesn't need nohup - it will live until terminated or completed. However many processes try to write to the terminal during execution, and if there is no terminal ...


-1

Well, here is one example. Type this: nohup find -size +100k > log.txt and logout. Then log in again and check the log.txt file. More info: Linux and Unix nohup command


1

Try the script below: #!/bin/sh FILE=/opt/dailydbscriptoutput.txt TO=myemailid@domain.com (cat - $FILE <<END) | /usr/sbin/sendmail -i $TO TO: $TO END Sendmail expects headers and body separated by an empty line in "raw" format. To get better debug info execute the above script as root with -Am -v command line options passed to sendmail. ...


2

Disabling SELinux without reboot is not possible. But I guess making it in permissive mode is going to satifsy your requirement. The output of sestatus shows SELinux is enabled but also shows it is in Permissive mode, which is what you just did with the setenforce command.


3

sestatus is showing the current mode as permissive. In permissive mode, SELinux will not block anything, but merely warns you. The line will show enforcing when it's actually blocking. I don't believe it's possible to completely disable SELinux without a reboot.


2

from wikipedia On Linux, netstat (part of "net-tools") is deprecated, ss (part of iproute2) should be used instead. The net-tools package has not seen a Linux release in more than a decade. That's a long time to go without an update for a program suite designed to manage and monitor an ever-evolving kernel's communications interfaces - especially when ...


0

Sorry, I have found the reason. This is totally because of the SSL CERT problem. Not really because of above notices. How do I do was that I enabled the Apache Detailed Logs and then that's the real move. It shows what really is happening, by showing the Failure at the loading of mod_ssl module, while starting the Apache. Then I realized it is because of ...


0

I would put some work into seeing if you can actually have one version with command that work on both systems. I had this issue with my .bashrc file which I keep in my dotfiles repository. I want it to work on both OSX and Ubuntu and there were a few command I had to modify to do that. In this case it was mostly which switches worked for certain command or ...


0

The easiest way by far is to use the same shell on both systems. Just because one shell is preinstalled (there's no such thing as a “default shell” for scripts, the shell is whatever the shebang line says) doesn't mean that you can't install others. You can install bash on AIX (from the toolbox, for example), or ksh93 for Linux (with your distribution's ...


1

It would probably be easier to have two separate versions of the script. Since it is short it may not be worth adding extra code to handle the differences between the two formats as jw013 suggested. On the other hand if you had a larger script it would probably be easier to have one and make the script execute different commands depending on where it is ...


2

It looks like you have an invalid GATEWAY value in /etc/sysconfig/network for server1. So, change it to your gateway ip address: GATEWAY=129.XXX.XXX.1 Save file, restart networking service to make the change.


0

Only Few Packages which needs to be Installed and You are done. Install and configure the EPEL Repository wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6-8.noarch.rpm Install the packages related to NTFS Mount: yum -y install ntfs-3g ntfsprogs Attach NTFS drive and find and mount partition: mount ...


3

Ethernet cards might have (supposedly) unique MAC addresses, but what about virtual interfaces like aliases (e.g. eth0:0), bridges or VPNs? They need an ID too, so an UUID would be a good fit. By the way, since the question is about NetworkManager and NetworkManager deals with connections, there are scenarios where you can have multiple connections for a ...


1

That is probably a device file permission problem. pinentry doesn't use the inherited file descriptors but tries to access the passed TTY directly which doesn't work. You may run tty in the shell and afterwards ls -l /dev/pts/1 with the result and you will probably notice that apache does not have access to it. You may also run strace -o gpg.strace -f -e ...


1

First, there are two rather different versions of Grub. The older version can be referred to as "Grub" or "Grub legacy". The newer version is Grub2. In the places where a user typically wants to make changes they work very differently (Grub legacy is simpler, Grub2 offers finer control). When booting, execution jumps from BIOS to the first boot device. On a ...


1

Have you tried creating a new user and invoking the command with sudo instead? If fear this might be some permission issue and the easier way would be removing the agent node from /var/www to somewhere we know is accessible to the gpg user, maybe the /tmp directory. You can manually specify the agent node location changing the env variable GPG_AGENT_INFO.


1

If you tested RHEL 7, you should know that RHEL is not a useful OS now. Linux is only kernel and (best!) GCC compiler and open source. There are many free distributions of OS Linux and the number of them is groving. Let Centos and SL thrive on the achievements of Centos 6 and SL 6.


3

I did find this method for installing Spotify which I've confirmed does install cleanly on my Fedora 20 system. Given the method this install utilizes it should be adaptable to other RHEL based distros. There are 2 RPMs that you need to download from this URL: http://sourceforge.net/projects/postinstaller/files/fedora/releases/20/x86_64/updates/ These ...


3

Since you do not specify which shell, I'll just cheat. You can find the following and much else on grml.org's zsh-lover's command reference man page. $ zmodload zsh/zpty $ zpty PW passwd $1 $ zpty PW passwd $1 # ``-r'': read the output of the command name. # ``z'' : Parameter $ zpty -r PW z '*password:' # send the to command name the given strings ...


1

Strings sent to the standard output go to /dev/console (most often you can see them on your screen, but not always). To log these messages, you can use bootlogd, which, as described in its man page, "runs in the background and copies all strings sent to the /dev/console device to a logfile", and the default logfile is /var/log/boot.


1

I have to give this one to my co-worker who discovered that the permissions on /tmp were incorrect: [user@host01 ~]$ ls -ld /tmp drwxr-xr-x 7 root root 4096 Jul 28 18:44 /tmp And we know they should be set with 1777: [root@host01 ~]# ls -ld /tmp drwxrwxrwt 7 root root 4096 Jul 28 18:44 /tmp Found this out when I tried to run nroff. [user@host01 ~]$ nroff ...


0

I made a stupid mistake. We had few machines provisioned identically, but one (with this problem) was changed by one of my colleagues. The bad_dir was mounted NFS, which explains all problems. Thanks to Joel Davis which suggest me to check this again I solved my issue.


1

The directories need x permission to open. You can probably do, chmod 755 bad_dir and then try your chown command. According to here, the dot at end means, According to ls.c (line 3785), . means an SELinux ACL. (+ means a general ACL.) If it is SELinux messing, use setenforce to modify its mode. Run setenforce 0 to put SELinux in permissive mode and ...


3

It indicates that those files are with SELinux security context. From info ls: Following the file mode bits is a single character that specifies whether an alternate access method such as an access control list applies to the file. When the character following the file mode bits is a space, there is no alternate access method. When it is a printing ...



Top 50 recent answers are included