New answers tagged

1

Not really. In theory you could add a program to the %pre pre-install section. If this returns a non-zero exit code then install fails. However a user could always do an install with --no-script. And even if such enforcement was possible, an rpm is really a wrappered cpio file; a user could do rpm2cpio to convert it and then extract the files directly. ...


0

I dont think EDID data is cached anywhere, but you can play with sudo ddccontrol -p to see if you can read it at any time over the i2c bus in a vga cable. See doc. Also, use xrandr to control your monitors. It should list which ports of your graphics card have something connected to them and allow you to play with their settings. By default, the Xorg ...


0

There is a migration guide in the CentOs wiki https://wiki.centos.org/HowTos/MigrationGuide it has a section on Migrate an existing system from RHEL6 or SL6 to CentOS 6 I hope this helps


0

I installed gstreamer* and vlc, and ensured that VLC would read the mpeg files


0

https://extensions.gnome.org/extension/21/workspace-indicator/ is a part of core extensions and allows naming workspaces.


0

My understanding is that prior to RHEL 6, Red Hat were wary of the AT&T KornShell because of its licence, so they included the pdksh, which is a less complete implementation. I think David Korn was doing his best to get ksh accepted in as many places as possible and somewhere along the line the licence was clarified or changed. This quote is from the ...


0

Sudo is a popular command for raising a normal user's privileges. I'd guess that you are logging in directly as root, in which case there's no need to use sudo - everything you do is already sudoed, effectively.


2

To resolve the error message, you may need to install sudo using the steps below. Alternatively, you could run the command after logging in with the root account using su -. To install sudo: Log in with the root account using su -. Then, yum install sudo. After that is installed, add the user's account to the /etc/sudoers file. After the following ...


0

Does this already exist? No, because... \2. Is this possible or probable? ... computers do not work like this. You want to run something before the computer has booted, and then to modify the early boot process in some way. \3. Is this what a "custom" linux build would be? No — you want to do things that happen before Linux is involved. ...


0

I found a solution to systems error kernel not loading Use live cd to gain access to your existing installation. Once in reinstall Linux kernel : pacman -S Linux Then delete the fstab file from etc/fstab : rm /etc/fstab Now reinstall systemd: pacman -S systemd When reinstalling systemd it will automatically generate a new fstab file Now reinstall ...


0

Mysql 5.6.21 is not GA release because of that will not available officially on site. you can try out on other source using source or binary or third party repository.if you are going with officially repository you will get GA version of Mysql.


0

If the repository has got no rpms for the specific version you need, one could try downloading the specific rpm through any of the numerous repositories readily available on the web and then use the rpm manager to install it as, rpm -ivh packagename.rpm


0

Basically, you want to use GUI but with minimal packages. This is the action plan. if [access system through ssh == yes]; then tell your sysadmin to please create a new base template using just the minimal packages. RHEL gives this option at the time of installation. Also, tell him that you do not bother him with the installation of any new packages. ...


0

The solution is : # yum install zlib-devel


0

you don't have decompress tool,You should install zlib . Updated Answer first check if its installed yum list python-gzipstream If not then run the below to install yum install python-gzipstream.noarch I have this installed on my system yum list python-gzipstream Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ...


0

Got lucky on this one (thanks to this). Go to the folder "/tmp/.X11-unix/" and list content: $ cd /tmp/.X11-unix/ $ ll I found there several X0, X4, X5... files (one for each of my blocked user). Each one is associated to a session, and should be deleted when the session is closed, BUT it is not always. DELETE IT: $ sudo rm X4 and VNC session should ...


1

Perhaps a better way without having to re-install your OS would be to download the python package (and possibly any python modules package) and use rpm to install them over your upgraded Python. The python package for RHEL 6 should be python-2.6.6-64.el6.x86_64 which should be available from Red Hat or you can pull it off a RHEL6 .iso file. You will ...


0

Try this runlevel --> will give you your current runlevel to list all currently loaded targets we ca use the following command: systemctl list-units -t target Next, we can list all available runlevel targets using a below command: systemctl list-units -t target -a for activating the runlevel 5 run this systemctl enable graphical.target --...


0

solution: that e-mail had two enters in the subject that made the window name too long.. :D great..


2

A lot depends on what the supplied ppd for the printer proposes. List the options, and their current settings shown by an asterisk next to that option. The options and values are entirely arbitrary, but fairly conventional so you might see eg: $ lpoptions -l PageSize/Media Size: Photo4x6tab A6 8x10 Legal Letter EnvDL ... InputSlot/Media Source: *Auto Main ....


3

The ADD command needs the filename to be relative to the current directory. See https://docs.docker.com/engine/reference/builder/ The path must be inside the context of the build; you cannot ADD ../something /something, because the first step of a docker build is to send the context directory (and subdirectories) to the docker daemon. This means you ...


0

When trying to forward to XQuartz on macOS, I fixed the issue by running the ssh command (ssh -Y in my case) from the XQuartz terminal (opened by right-clicking the XQuartz icon in the dock and clicking Applications > Terminal).


0

rpmbuild adds Python requiremenst automatically from the version of python used. As such, it was adding python(abi)=2.7 to the requires list of the RPM. However, when using the python27 that scl was using provides python27-python. The issue was resolved by adding the line AutoReqProv: no to the spec file in the RPM. The machine that was having the rpm ...


3

From OpenVPN's man page: --server network netmask ['nopool'] A helper directive designed to simplify the configuration of OpenVPN's server mode. This directive will set up an OpenVPN server which will allocate addresses to clients out of the given network/netmask. The server itself will take the ".1" ...


1

In RedHat 6 there is an upstart script /etc/init/serial.conf that will ensure the console is designated a secure terminal before starting the getty process, and so ensuring root can login on the console. You may be better off setting the root password to something unknown, thus forcing people to always login as a non-root user and then using sudo to switch ...


0

The problem is the wrong context (postgresql_exec_t). The solution: semanage fcontext -a -t bin_t "usr/pgsql-9.5/bin(/.*)?" restorecon -vR /usr/pgsql-9.5/bin Note the new context bin_t. I thought reading this that `postgresql_exec_t was the correct context.


0

man console_codes lists the escape sequences recognised by the console. You can set a timeout of 0 with sudo sh -c 'echo -e "\033[9;0]" >/dev/console'


1

To disable Wireless N in the module echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwl-opt.conf Reboot But I would suggest enabling Wireless N on the router and trying this option echo "options iwlwifi 11n_disable=8" | sudo tee /etc/modprobe.d/iwl-opt.conf This command enables aggressive TX on Wireless-N and fixes a lot of issues


0

What you installed is Python packaged as Software Collection. This way you can have system python and python27 side by side. If you open one terminal and you run: scl enable python27 bash then it will start new bash where python is used from /opt/rh/python27/root/usr/bin/python But if you open another terminal, then python will be used from /usr/bin/...


1

It is only there for network interfaces no more. Well explained in the older man page below. man udev NAME The name to use for a network interface. The name of a device node can not be changed by udev, only additional symlinks can be created. Even with an older release 175 NAME What a network interface should be named. Also, as a ...


2

CentOS 5.5 is pretty old. It came out back in 2010. EPEL targets the latest release in a major, meaning it targets 5.11. You're pretty far behind and expecting EPEL to support you. My guess is that you need to update. There may be some packages you depend on that ship only with newer versions of 5.x. A reminder that 5.x stopped getting fixes in 2014 and ...


0

rsyslogd is the rsyslog daemon, an open source implementation of syslog, and has replaced syslogd in newer systems. Here the final d means indeed daemon. /etc/rsyslog.d/ is just the directory where rsyslog's configuration files are kept. Rsyslog, just like the majority of the services nowadays, uses split configuration files (one file for each source) as ...


0

$ sudo grubby --info=ALL | grep -B1 '^kernel=' | grep -B1 `cat /proc/cmdline | awk -v RS=" " '/^BOOT_IMAGE=/ {print substr($0,12)}'`$ | head -n1 index=0 $ Reference: http://superuser.com/questions/462737/where-can-i-find-the-linux-kernel-file http://stackoverflow.com/questions/30524468/how-to-extract-value-of-root-variable-from-kernel-commandline http:...


1

You can try to execute the command that is stored in variable with eval "$updateSubProject" so remove the double & from varable and go for: cd project-dir && eval "$updateSubProject"


6

Better would be to make a function to do it like updateSubProject() { pushd "$1" svn checkout "$svnUrl" "$checkoutDir" --username "$username" --password "$password" --non-interactive --depth immediates --no-auth-cache popd } updateSubProject project-dir updateSubProject path/to/another-project this way you aren't trying to store code in a ...


0

Does cat /boot/grub/grub.conf work? In those days the LILO bootloader was also a common choice to boot a UNIX machine.


2

Try running fsck -N /dev/sdc1 If that doesn't work you can try with the mount auto option to see if it gets mounted but looking at your file output it could be just no filesystem on it.


0

For example ls /boot/config-* will print you all the installed kernel versions. But there will be a lot more possibilities how to achieve the same. yum info 'kernel*' should do the job too on all the RHEL's


0

You could follow this chapter of the official RHEL Installation Guide and prepare an ISO bootable image containing your .ks file, then boot of this image your VM


0

Your question doesn't specify if you are exporting the variables or not, so I'm operating on the assumption that you haven't exported them. Set your variables as you normally do, but before running the command you need to run, export each one. export LD_LIBRARY_PATH export CFLAGS In this way, you make the variable available to everything you run in that ...


1

Your sed command only matches color control sequences. ^[(B is for setting the font/character set mapping (see console_codes(4)). If the only control characters in your logfile are color sequences and ^[(B, you can remove them all with sed -e 's/\x1b\(\[[0-9;]*m\|(B\)//g' For an expression that matches all possible control sequences, see eg. http://...


-2

Install it with sudo apt-get install dnsutils


0

Thanks to @Ankidaemon's help. Finally I found the issue was caused by upgrade of OpenSSL which miss 2 import libraries, one is libssl.so.10, another one is libcrypto.so.10. Then I checked my /usr/lib64 and find different version of my above mentioned libraries. The solution is soft link them by: # ln -s /usr/lib64/libssl.so.1.0.0 libssl.so.10 # ln -s /...


1

I did it! I did it! I fixed it properly (I think). Here's the story: After some time the server turned out to be faulty and had to be scrapped. I kept disks and got everything else new. Then I reinstalled CentOS again on the SSD and then I attached the HDDs. LVM worked nicely, the disks were recognized, the configuration kept. But the same problem came up ...


0

This slightly modified code works for me: rsync -avhu -e ssh --delete /home/user/ remote_user@remote_host:/home/user/. If your production code really does reference home/user/ instead of /home/user/ then that could easily be a reason it's failing. You would also be getting an error rsync: change_dir "/home/user//home/user" failed: No such file or ...


0

This issue was related to a hardware firewall that was not configured correctly for IPv6. Some additional steps I followed to help troubleshoot were to look at both iptables and ip6tables on both systems, even though IPv4 and IPv6 were working I needed to verify both protocols and the ports for both protocols. In this instance IPv4 and NFSv4 worked but not ...


0

When you set a static ip address for a connection, you are creating a connection method for network manager to use. This is not a new interface rather a method of using the interface "eth0". Though you have a static ip address assigned to it, DHCP is still an option. This I believe is done out of convenience. Take the scenario that you often setup a ...


1

I believe there is no way of doing this using just standard UNIX privileges. The problem here is that (as far as I know) a newly created file is always owned by its creator — and if you are able to create the file, you have write privileges to the parent directory, and can therefore delete the file as well. You can use the sticky bit to prevent users from ...



Top 50 recent answers are included