Hot answers tagged

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 ...


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 ...


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" ...


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.


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 ...


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 ....


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 ...


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. ...


1

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


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 ...


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 ...


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


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"


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://...


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 ...


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible