question_id int64 88 79.9M | title_clean stringlengths 14 150 | body_clean stringlengths 41 26.5k | full_text stringlengths 63 26.6k | tags stringlengths 4 105 | score int64 3 7.71k | view_count int64 46 12.2M | answer_count int64 0 79 | link stringlengths 56 125 |
|---|---|---|---|---|---|---|---|---|
24,288,616 | Permission denied on accessing host directory in Docker | I am trying to mount a host directory in Docker, but then I cannot access it from within the container, even if the access permissions look good. I am doing sudo docker run -i -v /data1/Downloads:/Downloads ubuntu bash and then ls -al It gives me: total 8892 drwxr-xr-x. 23 root root 4096 Jun 18 14:34 . drwxr-xr-x. 23 root root 4096 Jun 18 14:34 .. -rwxr-xr-x. 1 root root 0 Jun 18 14:34 .dockerenv -rwx------. 1 root root 9014486 Jun 17 22:09 .dockerinit drwxrwxr-x. 18 1000 1000 12288 Jun 16 11:40 Downloads drwxr-xr-x. 2 root root 4096 Jan 29 18:10 bin drwxr-xr-x. 2 root root 4096 Apr 19 2012 boot drwxr-xr-x. 4 root root 340 Jun 18 14:34 dev drwxr-xr-x. 56 root root 4096 Jun 18 14:34 etc drwxr-xr-x. 2 root root 4096 Apr 19 2012 home and a lot more lines like that (I think this is the relevant portion). If I do cd /Downloads ls the result is ls: cannot open directory .: Permission denied The host is Fedora 20, with Docker 1.0.0 and go1.2.2. What is going wrong? | Permission denied on accessing host directory in Docker I am trying to mount a host directory in Docker, but then I cannot access it from within the container, even if the access permissions look good. I am doing sudo docker run -i -v /data1/Downloads:/Downloads ubuntu bash and then ls -al It gives me: total 8892 drwxr-xr-x. 23 root root 4096 Jun 18 14:34 . drwxr-xr-x. 23 root root 4096 Jun 18 14:34 .. -rwxr-xr-x. 1 root root 0 Jun 18 14:34 .dockerenv -rwx------. 1 root root 9014486 Jun 17 22:09 .dockerinit drwxrwxr-x. 18 1000 1000 12288 Jun 16 11:40 Downloads drwxr-xr-x. 2 root root 4096 Jan 29 18:10 bin drwxr-xr-x. 2 root root 4096 Apr 19 2012 boot drwxr-xr-x. 4 root root 340 Jun 18 14:34 dev drwxr-xr-x. 56 root root 4096 Jun 18 14:34 etc drwxr-xr-x. 2 root root 4096 Apr 19 2012 home and a lot more lines like that (I think this is the relevant portion). If I do cd /Downloads ls the result is ls: cannot open directory .: Permission denied The host is Fedora 20, with Docker 1.0.0 and go1.2.2. What is going wrong? | docker, file-permissions, fedora, mount, permission-denied | 424 | 575,961 | 13 | https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker |
24,729,024 | Open firewall port on CentOS 7 | I am using CentOS 7 and I have to ensure that ports 2888 and 3888 are open. I read this article but this did not work because on CentOS 7 OS there is no iptables save command. Someone told me that the above URL is not valid for CentOS 7. and I should follow this . But this article is not clear to me on exactly what command I need to execute. I also found firewall-cmd --zone=public --add-port=2888/tcp but this does not survive reboots. So how can I open the ports and make it survive reboots? | Open firewall port on CentOS 7 I am using CentOS 7 and I have to ensure that ports 2888 and 3888 are open. I read this article but this did not work because on CentOS 7 OS there is no iptables save command. Someone told me that the above URL is not valid for CentOS 7. and I should follow this . But this article is not clear to me on exactly what command I need to execute. I also found firewall-cmd --zone=public --add-port=2888/tcp but this does not survive reboots. So how can I open the ports and make it survive reboots? | centos, port, firewall | 382 | 1,085,010 | 12 | https://stackoverflow.com/questions/24729024/open-firewall-port-on-centos-7 |
104,055 | How can I list the contents of a package using YUM? | I know how to use rpm to list the contents of a package ( rpm -qpil package.rpm ). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM . How can YUM be used to achieve this? | How can I list the contents of a package using YUM? I know how to use rpm to list the contents of a package ( rpm -qpil package.rpm ). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM . How can YUM be used to achieve this? | linux, fedora, rpm, yum, package-managers | 363 | 433,299 | 7 | https://stackoverflow.com/questions/104055/how-can-i-list-the-contents-of-a-package-using-yum |
36,685,980 | Why is Docker installed but not Docker Compose? | I have installed docker on CentOS 7 by running following commands, curl -sSL [URL] | sh systemctl enable docker && systemctl start docker docker run hello-world NOTE: helloworld runs correctly and no issues. however when I try to run docker-compose (docker-compose.yml exists and valid) it gives me the error on CentOS only (Windows version works fine for the docker-compose file) /usr/local/bin/docker-compose: line 1: {error:Not Found}: command not found | Why is Docker installed but not Docker Compose? I have installed docker on CentOS 7 by running following commands, curl -sSL [URL] | sh systemctl enable docker && systemctl start docker docker run hello-world NOTE: helloworld runs correctly and no issues. however when I try to run docker-compose (docker-compose.yml exists and valid) it gives me the error on CentOS only (Windows version works fine for the docker-compose file) /usr/local/bin/docker-compose: line 1: {error:Not Found}: command not found | docker, docker-compose, dockerfile, centos | 335 | 740,373 | 28 | https://stackoverflow.com/questions/36685980/why-is-docker-installed-but-not-docker-compose |
37,585,758 | How to redirect output of systemd service to a file | I am trying to redirect output of a systemd service to a file but it doesn't seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server StandardOutput=/var/log1.log StandardError=/var/log2.log Restart=always [Install] WantedBy=multi-user.target Please correct my approach. | How to redirect output of systemd service to a file I am trying to redirect output of a systemd service to a file but it doesn't seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server StandardOutput=/var/log1.log StandardError=/var/log2.log Restart=always [Install] WantedBy=multi-user.target Please correct my approach. | linux, centos7, systemd, rhel, rhel7 | 312 | 426,333 | 10 | https://stackoverflow.com/questions/37585758/how-to-redirect-output-of-systemd-service-to-a-file |
8,296,710 | How to ignore xargs commands if stdin input is empty? | Consider this command: ls /mydir/*.txt | xargs chown root The intention is to change owners of all text files in mydir to root The issue is that if there are no .txt files in mydir then xargs thows an error saying there is no path specified. This is a harmless example because an error is being thrown, but in some cases, like in the script that i need to use here, a blank path is assumed to be the current directory. So if I run that command from /home/tom/ then if there is no result for ls /mydir/*.txt and all files under /home/tom/ have their owners changed to root. So how can I have xargs ignore an empty result? | How to ignore xargs commands if stdin input is empty? Consider this command: ls /mydir/*.txt | xargs chown root The intention is to change owners of all text files in mydir to root The issue is that if there are no .txt files in mydir then xargs thows an error saying there is no path specified. This is a harmless example because an error is being thrown, but in some cases, like in the script that i need to use here, a blank path is assumed to be the current directory. So if I run that command from /home/tom/ then if there is no result for ls /mydir/*.txt and all files under /home/tom/ have their owners changed to root. So how can I have xargs ignore an empty result? | bash, centos, xargs | 307 | 80,242 | 7 | https://stackoverflow.com/questions/8296710/how-to-ignore-xargs-commands-if-stdin-input-is-empty |
20,454,199 | How can I use a different version of python during NPM install? | I have terminal access to a VPS running CentOS 5.9 and default Python 2.4.3 installed. I also installed Python 2.7.3 via these commands (I used make altinstall instead of make install ): wget [URL] tar -xf Python-2.7.3.tgz cd Python-2.7.3 ./configure make make altinstall Then I installed Node.js from source code via these commands: python2.7 ./configure make make install The problem is, when I use npm install and try to install a Node.js package which requires Python 2.4.3 (or later), I get this error: gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v2.4.3, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:125:14) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:9 How should I "pass the --python switch to point to Python >= v2.5.0" ? | How can I use a different version of python during NPM install? I have terminal access to a VPS running CentOS 5.9 and default Python 2.4.3 installed. I also installed Python 2.7.3 via these commands (I used make altinstall instead of make install ): wget [URL] tar -xf Python-2.7.3.tgz cd Python-2.7.3 ./configure make make altinstall Then I installed Node.js from source code via these commands: python2.7 ./configure make make install The problem is, when I use npm install and try to install a Node.js package which requires Python 2.4.3 (or later), I get this error: gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v2.4.3, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:125:14) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:9 How should I "pass the --python switch to point to Python >= v2.5.0" ? | python, node.js, centos, npm | 282 | 273,053 | 6 | https://stackoverflow.com/questions/20454199/how-can-i-use-a-different-version-of-python-during-npm-install |
15,622,328 | How to grep a string in a directory and all its subdirectories? | How to grep a string or a text in a directory and all its subdirectories'files in LINUX ?? | How to grep a string in a directory and all its subdirectories? How to grep a string or a text in a directory and all its subdirectories'files in LINUX ?? | linux, unix, grep, centos | 273 | 696,317 | 2 | https://stackoverflow.com/questions/15622328/how-to-grep-a-string-in-a-directory-and-all-its-subdirectories |
21,820,715 | How to install latest version of git on CentOS 8.x/7.x/6.x | I used the usual: yum install git It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer versions of CentOS such as CentOS 7. | How to install latest version of git on CentOS 8.x/7.x/6.x I used the usual: yum install git It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer versions of CentOS such as CentOS 7. | linux, git, installation, centos, yum | 269 | 279,758 | 15 | https://stackoverflow.com/questions/21820715/how-to-install-latest-version-of-git-on-centos-8-x-7-x-6-x |
17,413,526 | nginx missing sites-available directory | I installed Nginx on Centos 6 and I am trying to set up virtual hosts. The problem I am having is that I can't seem to find the /etc/nginx/sites-available directory. Is there something I need to do in order to create it? I know Nginx is up and running because I can browse to it. | nginx missing sites-available directory I installed Nginx on Centos 6 and I am trying to set up virtual hosts. The problem I am having is that I can't seem to find the /etc/nginx/sites-available directory. Is there something I need to do in order to create it? I know Nginx is up and running because I can browse to it. | nginx, centos, virtualhost | 264 | 250,645 | 3 | https://stackoverflow.com/questions/17413526/nginx-missing-sites-available-directory |
36,394,101 | pip install - locale.Error: unsupported locale setting | Full stacktrace: ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 215, in main locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/python3.4/locale.py", line 592, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting On the same server, I successfully ran pip install virtualenv with python 2.7.x. Now, I've just installed python3.4 using curl [URL] | python3.4 . ~ pip --version pip 8.1.1 from /usr/lib/python3.4/site-packages (python 3.4) pip uninstall virtualenv throws the same error too | pip install - locale.Error: unsupported locale setting Full stacktrace: ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 215, in main locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/python3.4/locale.py", line 592, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting On the same server, I successfully ran pip install virtualenv with python 2.7.x. Now, I've just installed python3.4 using curl [URL] | python3.4 . ~ pip --version pip 8.1.1 from /usr/lib/python3.4/site-packages (python 3.4) pip uninstall virtualenv throws the same error too | python, python-3.x, centos, pip | 256 | 217,527 | 10 | https://stackoverflow.com/questions/36394101/pip-install-locale-error-unsupported-locale-setting |
1,133,495 | How do I find which rpm package supplies a file I'm looking for? | As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package, but the file appears to not to be installed on my filesystem. How do I find out which package installs a specific file? I'm looking for where I have not necessarily already locally downloaded the package which may include the file that I'm looking for. I'm using CentOS 5. | How do I find which rpm package supplies a file I'm looking for? As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package, but the file appears to not to be installed on my filesystem. How do I find out which package installs a specific file? I'm looking for where I have not necessarily already locally downloaded the package which may include the file that I'm looking for. I'm using CentOS 5. | centos, rpm, yum | 246 | 391,159 | 9 | https://stackoverflow.com/questions/1133495/how-do-i-find-which-rpm-package-supplies-a-file-im-looking-for |
15,255,070 | How do you scroll up/down on the console of a Linux VM | I recognize that Up / Down will give you the command history. But, how do you look at past output by scrolling up and down? I have used Shift + Page Up / Page Down , Alt + Shift + Up / Down and Page Up / Page Down but none of these seem to work. It is a Redhat Linux box. | How do you scroll up/down on the console of a Linux VM I recognize that Up / Down will give you the command history. But, how do you look at past output by scrolling up and down? I have used Shift + Page Up / Page Down , Alt + Shift + Up / Down and Page Up / Page Down but none of these seem to work. It is a Redhat Linux box. | linux, terminal, rhel | 242 | 564,262 | 15 | https://stackoverflow.com/questions/15255070/how-do-you-scroll-up-down-on-the-console-of-a-linux-vm |
6,795,350 | Nginx 403 forbidden for all files | I have nginx installed with PHP-FPM on a CentOS 5 box, but am struggling to get it to serve any of my files - whether PHP or not. Nginx is running as www-data:www-data, and the default "Welcome to nginx on EPEL" site (owned by root:root with 644 permissions) loads fine. The nginx configuration file has an include directive for /etc/nginx/sites-enabled/*.conf, and I have a configuration file example.com.conf , thus: server { listen 80; Virtual Host Name server_name www.example.com example.com; location / { root /home/demo/sites/example.com/public_html; index index.php index.htm index.html; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /home/demo/sites/example.com/public_html$fastcgi_script_name; include fastcgi_params; } } Despite public_html being owned by www-data:www-data with 2777 file permissions, this site fails to serve any content - [error] 4167#0: *4 open() "/home/demo/sites/example.com/public_html/index.html" failed (13: Permission denied), client: XX.XXX.XXX.XX, server: www.example.com, request: "GET /index.html HTTP/1.1", host: "www.example.com" I've found numerous other posts with users getting 403s from nginx, but most that I have seen involve either more complex setups with Ruby/Passenger (which in the past I've actually succeeded with) or are only receiving errors when the upstream PHP-FPM is involved, so they seem to be of little help. Have I done something silly here? | Nginx 403 forbidden for all files I have nginx installed with PHP-FPM on a CentOS 5 box, but am struggling to get it to serve any of my files - whether PHP or not. Nginx is running as www-data:www-data, and the default "Welcome to nginx on EPEL" site (owned by root:root with 644 permissions) loads fine. The nginx configuration file has an include directive for /etc/nginx/sites-enabled/*.conf, and I have a configuration file example.com.conf , thus: server { listen 80; Virtual Host Name server_name www.example.com example.com; location / { root /home/demo/sites/example.com/public_html; index index.php index.htm index.html; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /home/demo/sites/example.com/public_html$fastcgi_script_name; include fastcgi_params; } } Despite public_html being owned by www-data:www-data with 2777 file permissions, this site fails to serve any content - [error] 4167#0: *4 open() "/home/demo/sites/example.com/public_html/index.html" failed (13: Permission denied), client: XX.XXX.XXX.XX, server: www.example.com, request: "GET /index.html HTTP/1.1", host: "www.example.com" I've found numerous other posts with users getting 403s from nginx, but most that I have seen involve either more complex setups with Ruby/Passenger (which in the past I've actually succeeded with) or are only receiving errors when the upstream PHP-FPM is involved, so they seem to be of little help. Have I done something silly here? | nginx, centos, http-status-code-403, php | 232 | 303,513 | 13 | https://stackoverflow.com/questions/6795350/nginx-403-forbidden-for-all-files |
12,952,913 | How do I install g++ for Fedora? | How do I install g++ for Fedora Linux? I have been searching the dnf command to install g++ but didn't find anything. How do I install it? I have already installed gcc | How do I install g++ for Fedora? How do I install g++ for Fedora Linux? I have been searching the dnf command to install g++ but didn't find anything. How do I install it? I have already installed gcc | c++, linux, g++, fedora, dnf | 218 | 228,114 | 11 | https://stackoverflow.com/questions/12952913/how-do-i-install-g-for-fedora |
13,385,029 | Automatically start forever (node) on system restart | I am using node's forever module to keep my node server running. Forever however terminates when there is a system restart. Is there any way I can automatically start the node server (with forever) when the system restarts? | Automatically start forever (node) on system restart I am using node's forever module to keep my node server running. Forever however terminates when there is a system restart. Is there any way I can automatically start the node server (with forever) when the system restarts? | node.js, centos, forever | 199 | 163,000 | 16 | https://stackoverflow.com/questions/13385029/automatically-start-forever-node-on-system-restart |
28,328,775 | VirtualBox: mount.vboxsf: mounting failed with the error: No such device | I'm using VirtualBox with OS X as host and CentOS on the guest VM. In OS X I created folder myfolder , added it as shared folder to the VM, turned on the VM, in CentOS created folder /home/user/myfolder and typing: sudo mount -t vboxsf myfolder /home/user/myfolder and have output: /sbin/mount.vboxsf: mounting failed with the error: No such device What I'm doing wrong? UPDATED: Guest Additions installed. | VirtualBox: mount.vboxsf: mounting failed with the error: No such device I'm using VirtualBox with OS X as host and CentOS on the guest VM. In OS X I created folder myfolder , added it as shared folder to the VM, turned on the VM, in CentOS created folder /home/user/myfolder and typing: sudo mount -t vboxsf myfolder /home/user/myfolder and have output: /sbin/mount.vboxsf: mounting failed with the error: No such device What I'm doing wrong? UPDATED: Guest Additions installed. | macos, centos, virtual-machine, virtualbox | 191 | 288,699 | 21 | https://stackoverflow.com/questions/28328775/virtualbox-mount-vboxsf-mounting-failed-with-the-error-no-such-device |
9,541,460 | httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName | I tried to restart my Apache server on CentOS 5.0 and got this message: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Here is the /etc/hosts file: 127.0.0.1 server4-245 server4-245.com localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 Here is the /etc/sysconfig/network file: NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=server4-245 I also have this in the Apache httpd.conf file: ServerName localhost However, I still get the first error message when I restart Apache. | httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName I tried to restart my Apache server on CentOS 5.0 and got this message: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Here is the /etc/hosts file: 127.0.0.1 server4-245 server4-245.com localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 Here is the /etc/sysconfig/network file: NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=server4-245 I also have this in the Apache httpd.conf file: ServerName localhost However, I still get the first error message when I restart Apache. | linux, apache, centos | 189 | 540,992 | 12 | https://stackoverflow.com/questions/9541460/httpd-could-not-reliably-determine-the-servers-fully-qualified-domain-name-us |
8,328,250 | CentOS 64 bit bad ELF interpreter | I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory How do I resolve this? | CentOS 64 bit bad ELF interpreter I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory How do I resolve this? | linux, centos, 32bit-64bit, elf, centos6 | 186 | 389,894 | 9 | https://stackoverflow.com/questions/8328250/centos-64-bit-bad-elf-interpreter |
12,906,351 | ImportError: No module named psycopg2 | In installation process of OpenERP 6, I want to generate a config file with these commands: cd /home/openerp/openerp-server/bin/ ./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg But it always showed the message: ImportError: No module named psycopg2 When I checked for psycopg2 package, it's already installed. Package python-psycopg2-2.4.5-1.rhel5.x86_64 is already installed to its latest version. Nothing to do. What's wrong with this? My server is CentOS, I've installed Python 2.6.7. | ImportError: No module named psycopg2 In installation process of OpenERP 6, I want to generate a config file with these commands: cd /home/openerp/openerp-server/bin/ ./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg But it always showed the message: ImportError: No module named psycopg2 When I checked for psycopg2 package, it's already installed. Package python-psycopg2-2.4.5-1.rhel5.x86_64 is already installed to its latest version. Nothing to do. What's wrong with this? My server is CentOS, I've installed Python 2.6.7. | python, centos, odoo, centos5 | 185 | 623,185 | 24 | https://stackoverflow.com/questions/12906351/importerror-no-module-named-psycopg2 |
30,770,155 | ffprobe or avprobe not found. Please install one | I want to add tags to mp3 converted by youtube-dl & ffmpeg: youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 I have this error in the output result: [youtube] qpgTC9MDx1o: Downloading webpage [youtube] qpgTC9MDx1o: Extracting video information [youtube] qpgTC9MDx1o: Downloading js player en_US-vfluGO3jj [youtube] qpgTC9MDx1o: Downloading DASH manifest [download] /var/www/vhosts/mp3-y.com/httpdocs/Mp3_Output/quick-mp3.com-JALAL-EL-HAMDAOUI-2007-ARRASSIATES-VOL2-F1P-9CDoxlQ.mp3 has already been downloaded [download] 100% of 13.43MiB WARNING: qpgTC9MDx1o: writing DASH m4a. Only some players support this container. Install ffmpeg or avconv to fix this automatically. [fromtitle] parsed artist: Maroon 5 [fromtitle] parsed title: Animals ERROR: ffprobe or avprobe not found. Please install one. | ffprobe or avprobe not found. Please install one I want to add tags to mp3 converted by youtube-dl & ffmpeg: youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 I have this error in the output result: [youtube] qpgTC9MDx1o: Downloading webpage [youtube] qpgTC9MDx1o: Extracting video information [youtube] qpgTC9MDx1o: Downloading js player en_US-vfluGO3jj [youtube] qpgTC9MDx1o: Downloading DASH manifest [download] /var/www/vhosts/mp3-y.com/httpdocs/Mp3_Output/quick-mp3.com-JALAL-EL-HAMDAOUI-2007-ARRASSIATES-VOL2-F1P-9CDoxlQ.mp3 has already been downloaded [download] 100% of 13.43MiB WARNING: qpgTC9MDx1o: writing DASH m4a. Only some players support this container. Install ffmpeg or avconv to fix this automatically. [fromtitle] parsed artist: Maroon 5 [fromtitle] parsed title: Animals ERROR: ffprobe or avprobe not found. Please install one. | youtube, ffmpeg, centos, ffprobe | 184 | 271,137 | 17 | https://stackoverflow.com/questions/30770155/ffprobe-or-avprobe-not-found-please-install-one |
17,850,787 | Where is the php.ini file on a Linux/CentOS PC? | I can't find PHP.ini location on my server. I've checked all Stack Overflow answers but I can't find my php.ini location. I have Linux, Cent OS, zPanel. Last version of PHP. My computer: Linux Mint 15 KDE. | Where is the php.ini file on a Linux/CentOS PC? I can't find PHP.ini location on my server. I've checked all Stack Overflow answers but I can't find my php.ini location. I have Linux, Cent OS, zPanel. Last version of PHP. My computer: Linux Mint 15 KDE. | php, linux, centos | 164 | 547,836 | 5 | https://stackoverflow.com/questions/17850787/where-is-the-php-ini-file-on-a-linux-centos-pc |
540,603 | How can I find the version of the Fedora I use? | sudo find /etc | xargs grep -i fedora > searchFedora gives: /etc/netplug.d/netplug: # At least on Fedora Core 1 ... But see the Fedora version in the /etc/netplug.d/netplug file. Is it serious? | How can I find the version of the Fedora I use? sudo find /etc | xargs grep -i fedora > searchFedora gives: /etc/netplug.d/netplug: # At least on Fedora Core 1 ... But see the Fedora version in the /etc/netplug.d/netplug file. Is it serious? | linux, fedora | 161 | 351,038 | 15 | https://stackoverflow.com/questions/540603/how-can-i-find-the-version-of-the-fedora-i-use |
8,087,184 | Installing Python 3 on RHEL | I'm trying to install python3 on RHEL using the following steps: yum search python3 Which returned No matches found for: python3 Followed by: yum search python None of the search results contained python3. What should I try next? | Installing Python 3 on RHEL I'm trying to install python3 on RHEL using the following steps: yum search python3 Which returned No matches found for: python3 Followed by: yum search python None of the search results contained python3. What should I try next? | python, python-3.x, rhel | 156 | 366,118 | 19 | https://stackoverflow.com/questions/8087184/installing-python-3-on-rhel |
24,756,240 | How can I use iptables on centos 7? | I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for httpd service, but something wrong with my iptables service ... what's wrong with it? What am I doing wrong? # ifconfig/sbin/service iptables save bash: ifconfig/sbin/service: No such file or directory # /sbin/service iptables save The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. # sudo service iptables status Redirecting to /bin/systemctl status iptables.service iptables.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) # /sbin/service iptables save The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. # sudo service iptables start Redirecting to /bin/systemctl start iptables.service Failed to issue method call: Unit iptables.service failed to load: No such file or directory. | How can I use iptables on centos 7? I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for httpd service, but something wrong with my iptables service ... what's wrong with it? What am I doing wrong? # ifconfig/sbin/service iptables save bash: ifconfig/sbin/service: No such file or directory # /sbin/service iptables save The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. # sudo service iptables status Redirecting to /bin/systemctl status iptables.service iptables.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) # /sbin/service iptables save The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. # sudo service iptables start Redirecting to /bin/systemctl start iptables.service Failed to issue method call: Unit iptables.service failed to load: No such file or directory. | network-programming, centos, iptables, systemd | 153 | 427,923 | 9 | https://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7 |
394,984 | Best practice to run Linux service as a different user | Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d . What do you think is the best way to instead have the processes run as a (static) user of my choosing? The only method I'd arrived at was to use something like: su my_user -c 'daemon my_cmd &>/dev/null &' But this seems a bit untidy... Is there some bit of magic tucked away that provides an easy mechanism to automatically start services as other, non-root users? EDIT: I should have said that the processes I'm starting in this instance are either Python scripts or Java programs. I'd rather not write a native wrapper around them, so unfortunately I'm unable to call setuid() as Black suggests. | Best practice to run Linux service as a different user Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d . What do you think is the best way to instead have the processes run as a (static) user of my choosing? The only method I'd arrived at was to use something like: su my_user -c 'daemon my_cmd &>/dev/null &' But this seems a bit untidy... Is there some bit of magic tucked away that provides an easy mechanism to automatically start services as other, non-root users? EDIT: I should have said that the processes I'm starting in this instance are either Python scripts or Java programs. I'd rather not write a native wrapper around them, so unfortunately I'm unable to call setuid() as Black suggests. | linux, system-administration, rhel, init.d | 142 | 266,515 | 8 | https://stackoverflow.com/questions/394984/best-practice-to-run-linux-service-as-a-different-user |
19,256,127 | Two versions of python on linux. how to make 2.7 the default | I've got two versions of python on my linuxbox: $python Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ /usr/local/bin/python2.7 Python 2.7.3 (default, Oct 8 2013, 15:53:09) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ which python /usr/bin/python $ ls -al /usr/bin/python -rwxr-xr-x. 2 root root 4864 Jul 10 22:49 /usr/bin/python How can I make 2.7 be the default version so when I type python it puts me in 2.7? | Two versions of python on linux. how to make 2.7 the default I've got two versions of python on my linuxbox: $python Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ /usr/local/bin/python2.7 Python 2.7.3 (default, Oct 8 2013, 15:53:09) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ which python /usr/bin/python $ ls -al /usr/bin/python -rwxr-xr-x. 2 root root 4864 Jul 10 22:49 /usr/bin/python How can I make 2.7 be the default version so when I type python it puts me in 2.7? | python, linux, centos | 136 | 478,749 | 8 | https://stackoverflow.com/questions/19256127/two-versions-of-python-on-linux-how-to-make-2-7-the-default |
2,247,977 | What does "zend_mm_heap corrupted" mean | All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an error message saying "zend_mm_heap corrupted". What does this mean. OS: Fedora Core 8 Apache: 2.2.9 PHP: 5.2.6 | What does "zend_mm_heap corrupted" mean All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an error message saying "zend_mm_heap corrupted". What does this mean. OS: Fedora Core 8 Apache: 2.2.9 PHP: 5.2.6 | php, fedora, heap-corruption, php-internals | 134 | 190,750 | 41 | https://stackoverflow.com/questions/2247977/what-does-zend-mm-heap-corrupted-mean |
5,856,205 | Could not reliably determine the server's fully qualified domain name | I have just installed Apache 2.2.17, and I am using it for the first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName Now I think I have to set ServerName and the IP address as I search through Google. But I don't know in which file I have to set. How can I fix this problem? | Could not reliably determine the server's fully qualified domain name I have just installed Apache 2.2.17, and I am using it for the first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName Now I think I have to set ServerName and the IP address as I search through Google. But I don't know in which file I have to set. How can I fix this problem? | apache2, fedora | 134 | 503,881 | 15 | https://stackoverflow.com/questions/5856205/could-not-reliably-determine-the-servers-fully-qualified-domain-name |
5,407,703 | javac : command not found | I have installed java in my CentOS release 5.5 machine using the command yum install java . But I am unable to compile a class using javac. Do I need to install any other package? I have tried to locate the javac executable but i am unable to locate it. /usr/bin/java is linked as follows: /usr/bin/java -> /etc/alternatives/java /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java I have seen the following output by yum list installed |grep java : java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.16.b17.el5 installed tzdata-java.x86_64 2011b-1.el5 installed | javac : command not found I have installed java in my CentOS release 5.5 machine using the command yum install java . But I am unable to compile a class using javac. Do I need to install any other package? I have tried to locate the javac executable but i am unable to locate it. /usr/bin/java is linked as follows: /usr/bin/java -> /etc/alternatives/java /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java I have seen the following output by yum list installed |grep java : java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.16.b17.el5 installed tzdata-java.x86_64 2011b-1.el5 installed | java, compilation, centos, javac | 131 | 369,574 | 12 | https://stackoverflow.com/questions/5407703/javac-command-not-found |
2,384,423 | index.php not loading by default | I have just installed CentOS, Apache and PHP. When I visit my site [URL] , it says "forbidden". By default it's not loading the index.php file. When I visit [URL] , it works fine. Any idea how to fix that issue? | index.php not loading by default I have just installed CentOS, Apache and PHP. When I visit my site [URL] , it says "forbidden". By default it's not loading the index.php file. When I visit [URL] , it works fine. Any idea how to fix that issue? | php, apache, centos, apache-config | 127 | 498,976 | 10 | https://stackoverflow.com/questions/2384423/index-php-not-loading-by-default |
11,014,584 | EC2 Can't resize volume after increasing size | I have followed the steps for resizing an EC2 volume Stopped the instance Took a snapshot of the current volume Created a new volume out of the previous snapshot with a bigger size in the same region Deattached the old volume from the instance Attached the new volume to the instance at the same mount point Old volume was 5GB and the one I created is 100GB Now, when i restart the instance and run df -h I still see this Filesystem Size Used Avail Use% Mounted on /dev/xvde1 4.7G 3.5G 1021M 78% / tmpfs 296M 0 296M 0% /dev/shm This is what I get when running sudo resize2fs /dev/xvde1 The filesystem is already 1247037 blocks long. Nothing to do! If I run cat /proc/partitions I see 202 64 104857600 xvde 202 65 4988151 xvde1 202 66 249007 xvde2 From what I understand if I have followed the right steps xvde should have the same data as xvde1 but I don't know how to use it How can I use the new volume or umount xvde1 and mount xvde instead? I cannot understand what I am doing wrong I also tried sudo ifs_growfs /dev/xvde1 xfs_growfs: /dev/xvde1 is not a mounted XFS filesystem By the way, this a linux box with centos 6.2 x86_64 | EC2 Can't resize volume after increasing size I have followed the steps for resizing an EC2 volume Stopped the instance Took a snapshot of the current volume Created a new volume out of the previous snapshot with a bigger size in the same region Deattached the old volume from the instance Attached the new volume to the instance at the same mount point Old volume was 5GB and the one I created is 100GB Now, when i restart the instance and run df -h I still see this Filesystem Size Used Avail Use% Mounted on /dev/xvde1 4.7G 3.5G 1021M 78% / tmpfs 296M 0 296M 0% /dev/shm This is what I get when running sudo resize2fs /dev/xvde1 The filesystem is already 1247037 blocks long. Nothing to do! If I run cat /proc/partitions I see 202 64 104857600 xvde 202 65 4988151 xvde1 202 66 249007 xvde2 From what I understand if I have followed the right steps xvde should have the same data as xvde1 but I don't know how to use it How can I use the new volume or umount xvde1 and mount xvde instead? I cannot understand what I am doing wrong I also tried sudo ifs_growfs /dev/xvde1 xfs_growfs: /dev/xvde1 is not a mounted XFS filesystem By the way, this a linux box with centos 6.2 x86_64 | amazon-ec2, centos, image-resizing, snapshot | 124 | 148,078 | 20 | https://stackoverflow.com/questions/11014584/ec2-cant-resize-volume-after-increasing-size |
13,855,463 | bash: mkvirtualenv: command not found | After following the instructions on Doug Hellman's virtualenvwrapper post , I still could not fire up a test environment. [mpenning@tsunami ~]$ mkvirtualenv test -bash: mkvirtualenv: command not found [mpenning@tsunami ~]$ It should be noted that I'm using WORKON_HOME that is not in my $HOME . I tried looking for /usr/local/bin/virtualenvwrapper.sh as shown in the virtualenvwrapper installation docs , but it does not exist. I'm running CentOS 6 and python 2.6.6, if this matters. # File: ~/.bash_profile # ... export WORKON_HOME="/opt/virtual_env/" source "/opt/virtual_env/bin/virtualenvwrapper_bashrc" | bash: mkvirtualenv: command not found After following the instructions on Doug Hellman's virtualenvwrapper post , I still could not fire up a test environment. [mpenning@tsunami ~]$ mkvirtualenv test -bash: mkvirtualenv: command not found [mpenning@tsunami ~]$ It should be noted that I'm using WORKON_HOME that is not in my $HOME . I tried looking for /usr/local/bin/virtualenvwrapper.sh as shown in the virtualenvwrapper installation docs , but it does not exist. I'm running CentOS 6 and python 2.6.6, if this matters. # File: ~/.bash_profile # ... export WORKON_HOME="/opt/virtual_env/" source "/opt/virtual_env/bin/virtualenvwrapper_bashrc" | python, bash, centos, virtualenv, virtualenvwrapper | 123 | 271,404 | 14 | https://stackoverflow.com/questions/13855463/bash-mkvirtualenv-command-not-found |
70,963,985 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist | I am trying to download java using yum on centOs which I specified in a Dockerfile. After pulling centOs image the run crashed and threw this error!? also to mention that my server instance is AWS EC2! Step 2/9 : RUN yum install java -y ---> Running in 39fc233aa965 CentOS Linux 8 - AppStream 184 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist The command '/bin/sh -c yum install java -y' returned a non-zero code: 1 | Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist I am trying to download java using yum on centOs which I specified in a Dockerfile. After pulling centOs image the run crashed and threw this error!? also to mention that my server instance is AWS EC2! Step 2/9 : RUN yum install java -y ---> Running in 39fc233aa965 CentOS Linux 8 - AppStream 184 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist The command '/bin/sh -c yum install java -y' returned a non-zero code: 1 | docker, centos, devops, yum | 123 | 319,353 | 13 | https://stackoverflow.com/questions/70963985/error-failed-to-download-metadata-for-repo-appstream-cannot-prepare-internal |
9,422,461 | Check if directory mounted with bash | I am using mount -o bind /some/directory/here /foo/bar I want to check /foo/bar though with a bash script, and see if its been mounted? If not, then call the above mount command, else do something else. How can I do this? CentOS is the operating system. | Check if directory mounted with bash I am using mount -o bind /some/directory/here /foo/bar I want to check /foo/bar though with a bash script, and see if its been mounted? If not, then call the above mount command, else do something else. How can I do this? CentOS is the operating system. | linux, bash, centos, mount | 122 | 200,733 | 8 | https://stackoverflow.com/questions/9422461/check-if-directory-mounted-with-bash |
36,300,446 | ssh : Permission denied (publickey,gssapi-with-mic) | i'm use centos 5.9. after installing gitlab by this link ssh not working. before install gitlab ssh correctly working. i'm using this server localy and other services such as elastix and apache,mysql installed on server. appeare this error : OpenSSH_6.9p1 Ubuntu-2ubuntu0.1, OpenSSL 1.0.2d 9 Jul 2015 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.88.23 [192.168.88.23] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.9p1 Ubuntu-2ubuntu0.1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH_4* compat 0x00000000 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to 192.168.88.23:22 as 'root' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss debug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug1: kex: server->client aes128-ctr hmac-sha1 none debug1: kex: client->server aes128-ctr hmac-sha1 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<7680<8192) sent debug1: got SSH2_MSG_KEX_DH_GEX_GROUP debug2: bits set: 3111/6144 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: got SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: ssh-rsa SHA256:7J6JOe94H9PedNKlx6yG/wMy6ZYC8iB74WdOVGDgY7A debug1: Host '192.168.88.23' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:1 debug2: bits set: 3102/6144 debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /root/.ssh/id_rsa ((nil)), debug2: key: /root/.ssh/id_dsa ((nil)), debug2: key: /root/.ssh/id_ecdsa ((nil)), debug2: key: /root/.ssh/id_ed25519 ((nil)), debug1: Authentications that can continue: publickey,gssapi-with-mic debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available debug1: Unspecified GSS failure. Minor code may provide more information debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available debug2: we did not send a packet, disable method debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Trying private key: /root/.ssh/id_ecdsa debug1: Trying private key: /root/.ssh/id_ed25519 debug2: we did not send a packet, disable method debug1: No more authentication methods to try. Permission denied (publickey,gssapi-with-mic). | ssh : Permission denied (publickey,gssapi-with-mic) i'm use centos 5.9. after installing gitlab by this link ssh not working. before install gitlab ssh correctly working. i'm using this server localy and other services such as elastix and apache,mysql installed on server. appeare this error : OpenSSH_6.9p1 Ubuntu-2ubuntu0.1, OpenSSL 1.0.2d 9 Jul 2015 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.88.23 [192.168.88.23] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.9p1 Ubuntu-2ubuntu0.1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH_4* compat 0x00000000 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to 192.168.88.23:22 as 'root' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss debug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug1: kex: server->client aes128-ctr hmac-sha1 none debug1: kex: client->server aes128-ctr hmac-sha1 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<7680<8192) sent debug1: got SSH2_MSG_KEX_DH_GEX_GROUP debug2: bits set: 3111/6144 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: got SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: ssh-rsa SHA256:7J6JOe94H9PedNKlx6yG/wMy6ZYC8iB74WdOVGDgY7A debug1: Host '192.168.88.23' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:1 debug2: bits set: 3102/6144 debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /root/.ssh/id_rsa ((nil)), debug2: key: /root/.ssh/id_dsa ((nil)), debug2: key: /root/.ssh/id_ecdsa ((nil)), debug2: key: /root/.ssh/id_ed25519 ((nil)), debug1: Authentications that can continue: publickey,gssapi-with-mic debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available debug1: Unspecified GSS failure. Minor code may provide more information debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available debug2: we did not send a packet, disable method debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Trying private key: /root/.ssh/id_ecdsa debug1: Trying private key: /root/.ssh/id_ed25519 debug2: we did not send a packet, disable method debug1: No more authentication methods to try. Permission denied (publickey,gssapi-with-mic). | ssh, centos, gitlab | 121 | 740,828 | 38 | https://stackoverflow.com/questions/36300446/ssh-permission-denied-publickey-gssapi-with-mic |
2,960,339 | Unable to install pyodbc on Linux | I am running Linux (2.6.18-164.15.1.el5.centos.plus) and trying to install pyodbc. I am doing pip install pyodbc and get a very long list of errors, which end in error: command 'gcc' failed with exit status 1 I looked in /root/.pip/pip.log and saw the following: InstallationError: Command /usr/local/bin/python -c "import setuptools; file ='/home/build/pyodbc/setup.py'; execfile('/home/build/pyodbc/setup.py')" install --single-version-externally-managed --record /tmp/pip-7MS9Vu-record/install-record.txt failed with error code 1 Has anybody had a similar issue installing pyodbc? | Unable to install pyodbc on Linux I am running Linux (2.6.18-164.15.1.el5.centos.plus) and trying to install pyodbc. I am doing pip install pyodbc and get a very long list of errors, which end in error: command 'gcc' failed with exit status 1 I looked in /root/.pip/pip.log and saw the following: InstallationError: Command /usr/local/bin/python -c "import setuptools; file ='/home/build/pyodbc/setup.py'; execfile('/home/build/pyodbc/setup.py')" install --single-version-externally-managed --record /tmp/pip-7MS9Vu-record/install-record.txt failed with error code 1 Has anybody had a similar issue installing pyodbc? | python, linux, centos, pyodbc | 119 | 180,466 | 20 | https://stackoverflow.com/questions/2960339/unable-to-install-pyodbc-on-linux |
27,152,943 | How can I view the complete httpd configuration? | I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd configuration? Like the whole running setup configuration in a single file? | How can I view the complete httpd configuration? I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd configuration? Like the whole running setup configuration in a single file? | apache, centos, apache2, webserver, server | 117 | 192,186 | 6 | https://stackoverflow.com/questions/27152943/how-can-i-view-the-complete-httpd-configuration |
16,809,134 | How to get a list of programs running with nohup | I am accessing a server running CentOS (linux distribution) with an SSH connection. Since I can't always stay logged in, I use "nohup [command] &" to run my programs. I couldn't find how to get a list of all the programs I started using nohup. "jobs" only works out before I log out. After that, if I log back again, the jobs command shows me nothing, but I can see in my log files that my programs are still running. Is there a way to get a list of all the programs that I started using "nohup" ? | How to get a list of programs running with nohup I am accessing a server running CentOS (linux distribution) with an SSH connection. Since I can't always stay logged in, I use "nohup [command] &" to run my programs. I couldn't find how to get a list of all the programs I started using nohup. "jobs" only works out before I log out. After that, if I log back again, the jobs command shows me nothing, but I can see in my log files that my programs are still running. Is there a way to get a list of all the programs that I started using "nohup" ? | linux, shell, centos, nohup | 114 | 242,952 | 7 | https://stackoverflow.com/questions/16809134/how-to-get-a-list-of-programs-running-with-nohup |
20,270,879 | What's the default password of mariadb on fedora? | I installed mysql through yum just now and the OS fedora installed mariadb for me. I know mariadb is a new branch of mysql, but I can't understand why it does not ask me for setting the password. I have tried for 123456 and so on, but I failed. My fedora is new, and this is the first time to install mysql/mariadb. What should I do for it? | What's the default password of mariadb on fedora? I installed mysql through yum just now and the OS fedora installed mariadb for me. I know mariadb is a new branch of mysql, but I can't understand why it does not ask me for setting the password. I have tried for 123456 and so on, but I failed. My fedora is new, and this is the first time to install mysql/mariadb. What should I do for it? | mysql, passwords, fedora, mariadb | 114 | 367,835 | 13 | https://stackoverflow.com/questions/20270879/whats-the-default-password-of-mariadb-on-fedora |
31,583,646 | cannot find autoconf. please check your autoconf installation Xampp in CentOS | Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. How to resolved it ? | cannot find autoconf. please check your autoconf installation Xampp in CentOS Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. How to resolved it ? | php, centos, xampp, memcached, autoconf | 113 | 102,765 | 7 | https://stackoverflow.com/questions/31583646/cannot-find-autoconf-please-check-your-autoconf-installation-xampp-in-centos |
5,984,217 | Vagrant's port forwarding not working | I'm running into a small problem at the end of the Getting Started guide for vagrant . I'm working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I've set up port forwarding for web requests using the following line in Vagrantfile : config.vm.forward_port "web", 80, 4567 But when I make requests to that port, they fail. The error reported by Safari is 'Safari can't open the page " [URL] " because the server unexpectedly dropped the connection.' I did a vagrant reload and saw "[default] -- web: 80 => 4567 (adapter 1)" in the scroll, so where should I begin to troubleshoot this? Thanks. | Vagrant's port forwarding not working I'm running into a small problem at the end of the Getting Started guide for vagrant . I'm working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I've set up port forwarding for web requests using the following line in Vagrantfile : config.vm.forward_port "web", 80, 4567 But when I make requests to that port, they fail. The error reported by Safari is 'Safari can't open the page " [URL] " because the server unexpectedly dropped the connection.' I did a vagrant reload and saw "[default] -- web: 80 => 4567 (adapter 1)" in the scroll, so where should I begin to troubleshoot this? Thanks. | apache, http, centos, portforwarding, vagrant | 112 | 103,958 | 5 | https://stackoverflow.com/questions/5984217/vagrants-port-forwarding-not-working |
18,422,140 | Apache is downloading php files instead of displaying them | OS and server information: CentOS 6.4 (Final) Apache 2.2.15 PHP 5.5.1 I previously had php 5.3.x installed but decided to upgrade. I first uninstalled the php 5.3.x and then installed php 5.5.1 but after the installation completed apache did not parse the php files it just downloaded them. I have checked similar questions here in stackoverflow but none of them have helped me so far. For the record I have the following lines in my httpd.conf and php.conf that should make php work but don't: AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml AddType application/x-httpd-php-source .phps AddHandler php5-script .php I would really appreciate any help. Thank you. EDIT: I have these lines in the php.conf <IfModule !worker.c> LoadModule php5_module modules/libphp5.so </IfModule> <IfModule worker.c> LoadModule php5_module modules/libphp5-zts.so </IfModule> EDIT: By removing the AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml apache no longer downloads the file. Now apache is showing the source code, but not all of it just part. I added AddType text/html .php but no luck. | Apache is downloading php files instead of displaying them OS and server information: CentOS 6.4 (Final) Apache 2.2.15 PHP 5.5.1 I previously had php 5.3.x installed but decided to upgrade. I first uninstalled the php 5.3.x and then installed php 5.5.1 but after the installation completed apache did not parse the php files it just downloaded them. I have checked similar questions here in stackoverflow but none of them have helped me so far. For the record I have the following lines in my httpd.conf and php.conf that should make php work but don't: AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml AddType application/x-httpd-php-source .phps AddHandler php5-script .php I would really appreciate any help. Thank you. EDIT: I have these lines in the php.conf <IfModule !worker.c> LoadModule php5_module modules/libphp5.so </IfModule> <IfModule worker.c> LoadModule php5_module modules/libphp5-zts.so </IfModule> EDIT: By removing the AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml apache no longer downloads the file. Now apache is showing the source code, but not all of it just part. I added AddType text/html .php but no luck. | php, apache, centos | 112 | 358,311 | 27 | https://stackoverflow.com/questions/18422140/apache-is-downloading-php-files-instead-of-displaying-them |
30,464,980 | How to check all versions of Python installed on OS X and CentOS | I just started setting up a CentOS server today and noticed that the default version of Python on CentOS is set to 2.6.6. I want to use Python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper with it. Then I opened up a terminal on my Mac and found that I had Python 2.6.8 and 2.7.5 and 3.3.3 installed. Sorry for the long story. In short I just want to know how to look up all the versions of Python installed on CentOS so I don't accidentally install it twice. | How to check all versions of Python installed on OS X and CentOS I just started setting up a CentOS server today and noticed that the default version of Python on CentOS is set to 2.6.6. I want to use Python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper with it. Then I opened up a terminal on my Mac and found that I had Python 2.6.8 and 2.7.5 and 3.3.3 installed. Sorry for the long story. In short I just want to know how to look up all the versions of Python installed on CentOS so I don't accidentally install it twice. | python, linux, macos, centos, version | 112 | 430,660 | 15 | https://stackoverflow.com/questions/30464980/how-to-check-all-versions-of-python-installed-on-os-x-and-centos |
21,488,357 | Use sudo with .vimrc | I'm using CentOS and created a .vimrc file in my /home directory. I tested it out by creating a txt file and yes, that worked fine. Now, I have my project files in my /srv directory with SELinux turned on. I tried opening a file: vim README.txt and yes, my .vimrc settings are still being applied. Now, since I'm in the /srv directory, simply doing vim means that my file is read only. So, I do sudo vim README.txt in order to be able to edit files. Now, the problem lies that once I do sudo , none of my .vimrc settings are applied. I tried creating a copy of .vimrc in the /srv folder but that didn't work either. How do I apply .vimrc settings while using sudo ? | Use sudo with .vimrc I'm using CentOS and created a .vimrc file in my /home directory. I tested it out by creating a txt file and yes, that worked fine. Now, I have my project files in my /srv directory with SELinux turned on. I tried opening a file: vim README.txt and yes, my .vimrc settings are still being applied. Now, since I'm in the /srv directory, simply doing vim means that my file is read only. So, I do sudo vim README.txt in order to be able to edit files. Now, the problem lies that once I do sudo , none of my .vimrc settings are applied. I tried creating a copy of .vimrc in the /srv folder but that didn't work either. How do I apply .vimrc settings while using sudo ? | vim, centos | 106 | 38,224 | 4 | https://stackoverflow.com/questions/21488357/use-sudo-with-vimrc |
5,104,817 | How to install Java SDK on CentOS? | I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat . Or is there any ready-made package for all? | How to install Java SDK on CentOS? I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat . Or is there any ready-made package for all? | java, sdk, centos | 103 | 279,445 | 12 | https://stackoverflow.com/questions/5104817/how-to-install-java-sdk-on-centos |
24,967,855 | curl: (6) Could not resolve host: google.com; Name or service not known | when I try to load a web page to terminal it gives curl: (6) Could not resolve host error. I have internet in my PC and trying from my home internet connection. So as I there is no any proxy involve here. [root@localhost kevin]# curl [URL] curl: (6) Could not resolve host: google.com; Name or service not known clean all and tried again but no lucky. But if I use IP instead of the domain name, it works fine. [root@localhost kevin]# curl [URL] any clue please? | curl: (6) Could not resolve host: google.com; Name or service not known when I try to load a web page to terminal it gives curl: (6) Could not resolve host error. I have internet in my PC and trying from my home internet connection. So as I there is no any proxy involve here. [root@localhost kevin]# curl [URL] curl: (6) Could not resolve host: google.com; Name or service not known clean all and tried again but no lucky. But if I use IP instead of the domain name, it works fine. [root@localhost kevin]# curl [URL] any clue please? | linux, curl, terminal, fedora | 102 | 747,454 | 10 | https://stackoverflow.com/questions/24967855/curl-6-could-not-resolve-host-google-com-name-or-service-not-known |
20,162,176 | Centos/Linux setting logrotate to maximum file size for all logs | we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we would like to set a maximum filesize to the logs .... can I just add this to the logrotate.conf? size 50M and would it then apply to all log files? Or do I need to set this on a per log basis? Or any other advice? (ps. I understand that if you want to be notified is the log grows like described and what we want to do is not ideal - but it is better than not being able to logon anymore because there is no space available) thanks, Sean | Centos/Linux setting logrotate to maximum file size for all logs we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we would like to set a maximum filesize to the logs .... can I just add this to the logrotate.conf? size 50M and would it then apply to all log files? Or do I need to set this on a per log basis? Or any other advice? (ps. I understand that if you want to be notified is the log grows like described and what we want to do is not ideal - but it is better than not being able to logon anymore because there is no space available) thanks, Sean | linux, centos, logrotate | 100 | 274,707 | 3 | https://stackoverflow.com/questions/20162176/centos-linux-setting-logrotate-to-maximum-file-size-for-all-logs |
11,587,343 | Difference between $HOME and '~' (tilde)? | I had always thought that $HOME and ~ were exactly the same and thus could be used interchangeably. Today, when I tried to install pylibmc , a python binding to memcached, on my shared server the use of ~ gave me error but not $HOME . I would like to reason out why. libmemcached is a requirement for pylibmc . I have libmemcached installed under my home directory because I have no root on the server. As a result, to install pylibmc , I need to make sure the installation script knows where to find libmemcached . When executing python setup.py install --with-libmemcached=~ , the installation script runs gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall \ -Wstrict-prototypes -fPIC -DUSE_ZLIB -I~/include \ -I/usr/local/include/python2.7 -c _pylibmcmodule.c \ -o build/temp.linux-i686-2.7/_pylibmcmodule.o -fno-strict-aliasing which gives the errors that libmemcached can't be found. If I change to --with-libmemcached=$HOME , the script runs gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall \ -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/home/waterbotte/include \ -I/usr/local/include/python2.7 -c _pylibmcmodule.c \ -o build/temp.linux-i686-2.7/_pylibmcmodule.o -fno-strict-aliasing without any problem. It looks like the problem is that tilde doesn't get resolved. But why? | Difference between $HOME and '~' (tilde)? I had always thought that $HOME and ~ were exactly the same and thus could be used interchangeably. Today, when I tried to install pylibmc , a python binding to memcached, on my shared server the use of ~ gave me error but not $HOME . I would like to reason out why. libmemcached is a requirement for pylibmc . I have libmemcached installed under my home directory because I have no root on the server. As a result, to install pylibmc , I need to make sure the installation script knows where to find libmemcached . When executing python setup.py install --with-libmemcached=~ , the installation script runs gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall \ -Wstrict-prototypes -fPIC -DUSE_ZLIB -I~/include \ -I/usr/local/include/python2.7 -c _pylibmcmodule.c \ -o build/temp.linux-i686-2.7/_pylibmcmodule.o -fno-strict-aliasing which gives the errors that libmemcached can't be found. If I change to --with-libmemcached=$HOME , the script runs gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall \ -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/home/waterbotte/include \ -I/usr/local/include/python2.7 -c _pylibmcmodule.c \ -o build/temp.linux-i686-2.7/_pylibmcmodule.o -fno-strict-aliasing without any problem. It looks like the problem is that tilde doesn't get resolved. But why? | linux, bash, centos | 99 | 32,652 | 5 | https://stackoverflow.com/questions/11587343/difference-between-home-and-tilde |
64,010,263 | AttributeError: module 'importlib' has no attribute 'util' | I've just upgraded from Fedora 32 to Fedora 33 (which comes with Python 3.9). Since then gcloud command stopped working: [guy@Gandalf32 ~]$ gcloud Error processing line 3 of /home/guy/.local/lib/python3.9/site-packages/XStatic-1.0.2-py3.9-nspkg.pth: Traceback (most recent call last): File "/usr/lib64/python3.9/site.py", line 169, in addpackage exec(line) File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 562, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader' Remainder of file ignored Traceback (most recent call last): File "/usr/lib64/google-cloud-sdk/lib/gcloud.py", line 104, in <module> main() File "/usr/lib64/google-cloud-sdk/lib/gcloud.py", line 62, in main from googlecloudsdk.core.util import encoding File "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/__init__.py", line 23, in <module> from googlecloudsdk.core.util import importing File "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/util/importing.py", line 23, in <module> import imp File "/usr/lib64/python3.9/imp.py", line 23, in <module> from importlib import util File "/usr/lib64/python3.9/importlib/util.py", line 2, in <module> from . import abc File "/usr/lib64/python3.9/importlib/abc.py", line 17, in <module> from typing import Protocol, runtime_checkable File "/usr/lib64/python3.9/typing.py", line 26, in <module> import re as stdlib_re # Avoid confusion with the re we export. File "/usr/lib64/python3.9/re.py", line 124, in <module> import enum File "/usr/lib64/google-cloud-sdk/lib/third_party/enum/__init__.py", line 26, in <module> spec = importlib.util.find_spec('enum') AttributeError: module 'importlib' has no attribute 'util' | AttributeError: module 'importlib' has no attribute 'util' I've just upgraded from Fedora 32 to Fedora 33 (which comes with Python 3.9). Since then gcloud command stopped working: [guy@Gandalf32 ~]$ gcloud Error processing line 3 of /home/guy/.local/lib/python3.9/site-packages/XStatic-1.0.2-py3.9-nspkg.pth: Traceback (most recent call last): File "/usr/lib64/python3.9/site.py", line 169, in addpackage exec(line) File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 562, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader' Remainder of file ignored Traceback (most recent call last): File "/usr/lib64/google-cloud-sdk/lib/gcloud.py", line 104, in <module> main() File "/usr/lib64/google-cloud-sdk/lib/gcloud.py", line 62, in main from googlecloudsdk.core.util import encoding File "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/__init__.py", line 23, in <module> from googlecloudsdk.core.util import importing File "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/util/importing.py", line 23, in <module> import imp File "/usr/lib64/python3.9/imp.py", line 23, in <module> from importlib import util File "/usr/lib64/python3.9/importlib/util.py", line 2, in <module> from . import abc File "/usr/lib64/python3.9/importlib/abc.py", line 17, in <module> from typing import Protocol, runtime_checkable File "/usr/lib64/python3.9/typing.py", line 26, in <module> import re as stdlib_re # Avoid confusion with the re we export. File "/usr/lib64/python3.9/re.py", line 124, in <module> import enum File "/usr/lib64/google-cloud-sdk/lib/third_party/enum/__init__.py", line 26, in <module> spec = importlib.util.find_spec('enum') AttributeError: module 'importlib' has no attribute 'util' | python, gcloud, fedora, python-3.9 | 98 | 49,374 | 6 | https://stackoverflow.com/questions/64010263/attributeerror-module-importlib-has-no-attribute-util |
14,300,794 | How do I download a file from the internet to my linux server with Bash | I recently had to upgrade to a VPS server (HostGator Linux) because I wanted to run a script that was a bit more complicated than the regular PHP db manipulation. I'm trying to install a JDK and Apache Ant (if it matters, for compiling Android Apps on server). I watched tutorials on Linux Bash and started using it. I am currently trying to install Java (with JDK and JRE) on to the server. I am following the tutorial on this page: [URL] However, I don't know what to do at this line: Download and check the download file size. You can download to any directory that you can write to. How do I download Java from the command line? If it matters, I am running CentOS v5.8 | How do I download a file from the internet to my linux server with Bash I recently had to upgrade to a VPS server (HostGator Linux) because I wanted to run a script that was a bit more complicated than the regular PHP db manipulation. I'm trying to install a JDK and Apache Ant (if it matters, for compiling Android Apps on server). I watched tutorials on Linux Bash and started using it. I am currently trying to install Java (with JDK and JRE) on to the server. I am following the tutorial on this page: [URL] However, I don't know what to do at this line: Download and check the download file size. You can download to any directory that you can write to. How do I download Java from the command line? If it matters, I am running CentOS v5.8 | linux, centos | 95 | 248,682 | 3 | https://stackoverflow.com/questions/14300794/how-do-i-download-a-file-from-the-internet-to-my-linux-server-with-bash |
45,272,827 | Docker CE on RHEL - Requires: container-selinux >= 2.9 | I am trying to install Docker CE on RHEL using this link . This is my RHEL version: Red Hat Enterprise Linux Server release 7.3 (Maipo) When I execute this: sudo yum -y install docker-ce I am getting this error: Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I tried using --skip-broken and rpm -Va --nofiles --nodigest but again getting the same error. Please let me know how to resolve this issue and install Docker CE in RHEL 7.3. | Docker CE on RHEL - Requires: container-selinux >= 2.9 I am trying to install Docker CE on RHEL using this link . This is my RHEL version: Red Hat Enterprise Linux Server release 7.3 (Maipo) When I execute this: sudo yum -y install docker-ce I am getting this error: Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I tried using --skip-broken and rpm -Va --nofiles --nodigest but again getting the same error. Please let me know how to resolve this issue and install Docker CE in RHEL 7.3. | docker, unix, rhel | 95 | 192,995 | 21 | https://stackoverflow.com/questions/45272827/docker-ce-on-rhel-requires-container-selinux-2-9 |
26,266,437 | how to use python2.7 pip instead of default pip | I just installed python 2.7 and also pip to the 2.7 site package. When I get the version with: pip -V It shows: pip 1.3.1 from /usr/lib/python2.6/site-packages (python 2.6) How do I use the 2.7 version of pip located at: /usr/local/lib/python2.7/site-packages | how to use python2.7 pip instead of default pip I just installed python 2.7 and also pip to the 2.7 site package. When I get the version with: pip -V It shows: pip 1.3.1 from /usr/lib/python2.6/site-packages (python 2.6) How do I use the 2.7 version of pip located at: /usr/local/lib/python2.7/site-packages | python, linux, django, centos, pip | 94 | 278,186 | 4 | https://stackoverflow.com/questions/26266437/how-to-use-python2-7-pip-instead-of-default-pip |
1,465,036 | Install python 2.6 in CentOS | I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt which is where I want it to end up. Can I now just make, make install ? Or is there more? | Install python 2.6 in CentOS I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt which is where I want it to end up. Can I now just make, make install ? Or is there more? | python, centos, rpath | 88 | 193,037 | 15 | https://stackoverflow.com/questions/1465036/install-python-2-6-in-centos |
9,083,408 | Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist | I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any errors or conflicts. Then I tried to start mysql with the following commands: chkconfig --levels 235 mysqld on service mysqld start And get Timeout error occurred trying to start MySQL Daemon. I checked my logs and see this error: [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist I'm not sure where to go from here. For reference I am using RHEL 5 and installed the latest versions of PHP 5 and Apache. | Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any errors or conflicts. Then I tried to start mysql with the following commands: chkconfig --levels 235 mysqld on service mysqld start And get Timeout error occurred trying to start MySQL Daemon. I checked my logs and see this error: [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist I'm not sure where to go from here. For reference I am using RHEL 5 and installed the latest versions of PHP 5 and Apache. | mysql, linux, rhel, rhel5 | 86 | 304,842 | 19 | https://stackoverflow.com/questions/9083408/fatal-error-cant-open-and-lock-privilege-tables-table-mysql-host-doesnt-ex |
11,584,426 | How do I enable --enable-soap in php on linux? | That's much the question. I have PHP 5.2.9 on Apache and I cannot upgrade PHP. Is there a way for me to enable SOAP in PHP 5.2.9? The PHP manual did not help at all when it said, "To enable SOAP support, configure PHP with --enable-soap ." How do I configure? | How do I enable --enable-soap in php on linux? That's much the question. I have PHP 5.2.9 on Apache and I cannot upgrade PHP. Is there a way for me to enable SOAP in PHP 5.2.9? The PHP manual did not help at all when it said, "To enable SOAP support, configure PHP with --enable-soap ." How do I configure? | php, linux, soap, fedora | 86 | 286,907 | 3 | https://stackoverflow.com/questions/11584426/how-do-i-enable-enable-soap-in-php-on-linux |
24,671,621 | No space left on device | I am getting the error "No space left on device" when i tried to scp some files to a centos machine, tried to check: [root@...]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol01 18G 18G 0 100% / And when I do du -sh / -> it gives only 5G [... ~]$ df -i / Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/VolGroup00-LogVol01 4685824 209516 4476308 5% / seems like file system is full. How can i find which one is taking these much size? | No space left on device I am getting the error "No space left on device" when i tried to scp some files to a centos machine, tried to check: [root@...]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol01 18G 18G 0 100% / And when I do du -sh / -> it gives only 5G [... ~]$ df -i / Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/VolGroup00-LogVol01 4685824 209516 4476308 5% / seems like file system is full. How can i find which one is taking these much size? | linux, filesystems, centos | 86 | 424,750 | 4 | https://stackoverflow.com/questions/24671621/no-space-left-on-device |
19,233,529 | Run bash script as daemon | I have a script, which runs my PHP script each X times: #!/bin/bash while true; do /usr/bin/php -f ./my-script.php echo "Waiting..." sleep 3 done How can I start it as daemon? | Run bash script as daemon I have a script, which runs my PHP script each X times: #!/bin/bash while true; do /usr/bin/php -f ./my-script.php echo "Waiting..." sleep 3 done How can I start it as daemon? | linux, centos, centos6, daemons | 85 | 214,685 | 5 | https://stackoverflow.com/questions/19233529/run-bash-script-as-daemon |
25,485,047 | Hourly rotation of files using logrotate? | I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /etc/logrotate.conf /tmp/hr_logs { daily rotate 4 With this config, file will rotate on daily basis and system will keep 4 copies of the log file appended with date [format: -YYYYMMDD] Now, I trying to set up a different set of log files which I need to make rotate on hourly basis and for it, i have done the configuration in logrotate.conf: /tmp/last_logs { hourly rotate 4 But this is not at all working? Can anyone please guide me on this please? | Hourly rotation of files using logrotate? I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /etc/logrotate.conf /tmp/hr_logs { daily rotate 4 With this config, file will rotate on daily basis and system will keep 4 copies of the log file appended with date [format: -YYYYMMDD] Now, I trying to set up a different set of log files which I need to make rotate on hourly basis and for it, i have done the configuration in logrotate.conf: /tmp/last_logs { hourly rotate 4 But this is not at all working? Can anyone please guide me on this please? | linux, cron, rhel, logrotate | 82 | 142,922 | 2 | https://stackoverflow.com/questions/25485047/hourly-rotation-of-files-using-logrotate |
21,802,223 | How to install crontab on Centos | I am familiar to setup the cron scheduler using crontab -e command on my centos . But today I found one of my centos servers doesn't have this command I have tried to install this using yum install crontab but no luck. Then I tried yum install crontabs and it installed something ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: crontabs noarch 1.10-11.el5 base 7.0 k Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 7.0 k Is this ok [y/N]: But still the crontab command doesn't work. If I do cat /etc/crontab then it shows below thing SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 40 * * * * root run-parts /etc/cron.hourly 54 1 * * * root run-parts /etc/cron.daily 14 3 * * 0 root run-parts /etc/cron.weekly 38 1 16 * * root run-parts /etc/cron.monthly What should I do to have crontab on that particular server? I am using CentOS release 5.2 (Final) . grep on cron shows: [root~]# ps -ef | grep cron root 24022 24001 0 19:07 pts/1 00:00:00 grep cron starting cron service returns: [root~]# service cron start cron: unrecognized service | How to install crontab on Centos I am familiar to setup the cron scheduler using crontab -e command on my centos . But today I found one of my centos servers doesn't have this command I have tried to install this using yum install crontab but no luck. Then I tried yum install crontabs and it installed something ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: crontabs noarch 1.10-11.el5 base 7.0 k Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 7.0 k Is this ok [y/N]: But still the crontab command doesn't work. If I do cat /etc/crontab then it shows below thing SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 40 * * * * root run-parts /etc/cron.hourly 54 1 * * * root run-parts /etc/cron.daily 14 3 * * 0 root run-parts /etc/cron.weekly 38 1 16 * * root run-parts /etc/cron.monthly What should I do to have crontab on that particular server? I am using CentOS release 5.2 (Final) . grep on cron shows: [root~]# ps -ef | grep cron root 24022 24001 0 19:07 pts/1 00:00:00 grep cron starting cron service returns: [root~]# service cron start cron: unrecognized service | linux, centos, cron | 79 | 182,730 | 1 | https://stackoverflow.com/questions/21802223/how-to-install-crontab-on-centos |
12,313,384 | How to view unallocated free space on a hard disk through terminal | I want to view the unallocated free space on my hard disk through terminal. I've burned my brains searching the internet for a possible solution, but all in vain. I used all sorts of commands like df , du , fdisk , parted , etc. It tells me about the disks that are mounted and unmounted, but what about the unallocated space that I've left free? Of course I can view it using the 'Disk Utility' app provided by Fedora, but since I LOVE being in the terminal I'd like to view in it. Can anyone please help me with a solution? | How to view unallocated free space on a hard disk through terminal I want to view the unallocated free space on my hard disk through terminal. I've burned my brains searching the internet for a possible solution, but all in vain. I used all sorts of commands like df , du , fdisk , parted , etc. It tells me about the disks that are mounted and unmounted, but what about the unallocated space that I've left free? Of course I can view it using the 'Disk Utility' app provided by Fedora, but since I LOVE being in the terminal I'd like to view in it. Can anyone please help me with a solution? | linux, terminal, fedora, hard-drive | 78 | 260,963 | 13 | https://stackoverflow.com/questions/12313384/how-to-view-unallocated-free-space-on-a-hard-disk-through-terminal |
25,664,323 | GIT get the commit hash prior to a specific commit | git 1.7.1 git show <hash>:<file> gives me the file based on the commit hash provided I am trying to figure out how to get the file of the previous commit before the one whose hash I have. I know I can always use the log to get all hashes and figure out which one I need, but that's not a good solution as I am trying to minimise the number of commands I need to do for performance issues. I was wondering if there is a simple way. | GIT get the commit hash prior to a specific commit git 1.7.1 git show <hash>:<file> gives me the file based on the commit hash provided I am trying to figure out how to get the file of the previous commit before the one whose hash I have. I know I can always use the log to get all hashes and figure out which one I need, but that's not a good solution as I am trying to minimise the number of commands I need to do for performance issues. I was wondering if there is a simple way. | git, shell, centos | 76 | 57,296 | 3 | https://stackoverflow.com/questions/25664323/git-get-the-commit-hash-prior-to-a-specific-commit |
36,651,091 | How to install packages in Linux (CentOS) without root user with automatic dependency handling? | Is it possible to use RPM or YUM or any other package manager in Linux, specifically CentOS, to install a package either already downloaded or from repo to a custom location without admin/root access? I tried building from sources, using cmake, configure, make, make install etc, but, it ended up having so many dependencies one after other. Or are there any better alternatives? | How to install packages in Linux (CentOS) without root user with automatic dependency handling? Is it possible to use RPM or YUM or any other package manager in Linux, specifically CentOS, to install a package either already downloaded or from repo to a custom location without admin/root access? I tried building from sources, using cmake, configure, make, make install etc, but, it ended up having so many dependencies one after other. Or are there any better alternatives? | linux, centos, rpm, yum, package-managers | 76 | 112,477 | 5 | https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen |
41,150,975 | How to display list of running processes Python? | How to display list of running processes Python with full name and active status? I tried this command: pgrep -lf python | How to display list of running processes Python? How to display list of running processes Python with full name and active status? I tried this command: pgrep -lf python | python, linux, centos | 76 | 222,341 | 6 | https://stackoverflow.com/questions/41150975/how-to-display-list-of-running-processes-python |
61,657,707 | BTF: .tmp_vmlinux.btf: pahole (pahole) is not available | Getting this error while compiling the kernel version :5.7-rc4 BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Failed to generate BTF for vmlinux Try to disable CONFIG_DEBUG_INFO_BTF make: *** [Makefile:1106: vmlinux] Error 1 | BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Getting this error while compiling the kernel version :5.7-rc4 BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Failed to generate BTF for vmlinux Try to disable CONFIG_DEBUG_INFO_BTF make: *** [Makefile:1106: vmlinux] Error 1 | compilation, kernel, fedora | 76 | 73,326 | 8 | https://stackoverflow.com/questions/61657707/btf-tmp-vmlinux-btf-pahole-pahole-is-not-available |
18,774,568 | Installing PHP Zip Extension in CentOS | I'm attempting to install the PHP Zip extension in CentOS. My server does not have external internet access, so I downloaded it myself from PECL: [URL] . I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran: pear install zip-1.10.2.tgz and added extension=zip.so to php.ini as instructed. I can see that zip.so was created and placed in the right extension_dir folder as well. I restarted apache and then checked to see if it was loaded by running: php -m Despite all of this, "zip" is still not in that list. Am I missing a step or doing something wrong? I thought this should be really simple, and I'm starting to feel pretty dumb, haha. Other probably important stuff: CentOS Apache 2.2.3 PHP 5.2.16 | Installing PHP Zip Extension in CentOS I'm attempting to install the PHP Zip extension in CentOS. My server does not have external internet access, so I downloaded it myself from PECL: [URL] . I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran: pear install zip-1.10.2.tgz and added extension=zip.so to php.ini as instructed. I can see that zip.so was created and placed in the right extension_dir folder as well. I restarted apache and then checked to see if it was loaded by running: php -m Despite all of this, "zip" is still not in that list. Am I missing a step or doing something wrong? I thought this should be really simple, and I'm starting to feel pretty dumb, haha. Other probably important stuff: CentOS Apache 2.2.3 PHP 5.2.16 | php, centos, zip, pear, php-extension | 75 | 424,788 | 13 | https://stackoverflow.com/questions/18774568/installing-php-zip-extension-in-centos |
33,510,184 | How to change the MySQL root account password on CentOS 7? | I have installed mySQL on a CentOS 7 VM but I have problems logging in with root. I tried logging in without password or tried any default ones (like mysql , admin etc) I looked in the my.cnf file and there's no password. I tried changing the password by stopping the service and restarting it with: mysqld_safe --skip-grant-tables & But I get this message: mysqld_safe:command not found I have no idea what else to do. | How to change the MySQL root account password on CentOS 7? I have installed mySQL on a CentOS 7 VM but I have problems logging in with root. I tried logging in without password or tried any default ones (like mysql , admin etc) I looked in the my.cnf file and there's no password. I tried changing the password by stopping the service and restarting it with: mysqld_safe --skip-grant-tables & But I get this message: mysqld_safe:command not found I have no idea what else to do. | mysql, centos | 74 | 211,276 | 7 | https://stackoverflow.com/questions/33510184/how-to-change-the-mysql-root-account-password-on-centos-7 |
14,594,151 | Methods to detect a public IP address in Bash | As part of an installation script, I want to make an "educated guess" about the machines public IP address. It should be as robust as possible, working on a variety of hosts and platforms. Here is an example: [URL] This script uses three methods and then defaults to the value of /etc/hostname . I have only tested this on Ubuntu so far. Will this be likely to work on other distributions? And are there additional methods that I could add? | Methods to detect a public IP address in Bash As part of an installation script, I want to make an "educated guess" about the machines public IP address. It should be as robust as possible, working on a variety of hosts and platforms. Here is an example: [URL] This script uses three methods and then defaults to the value of /etc/hostname . I have only tested this on Ubuntu so far. Will this be likely to work on other distributions? And are there additional methods that I could add? | linux, bash, shell, ubuntu, centos | 72 | 98,681 | 14 | https://stackoverflow.com/questions/14594151/methods-to-detect-a-public-ip-address-in-bash |
17,131,048 | Error when using scp command "bash: scp: command not found" | I want to use scp command to copy a local file to remote server, but I get an error message after input the password of user in remote server. ~]$ scp gitadmin.pub git@123.150.207.18: git@123.150.207.18's password: bash: scp: command not found lost connection I checked on server using the git user and it seems the scp command can be found and openssh-clinets were installed too. git@... ~]$ scp usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 git@... ~]$ su root ...... root@... ~]# yum info openssh-clients Loaded plugins: product-id, subscription-manager Updating Red Hat repositories. Installed Packages Name : openssh-clients Arch : x86_64 Version : 5.3p1 Release : 52.el6 Size : 1.0 M Repo : installed From repo : anaconda-RedHatEnterpriseLinux-201105101844.x86_64 Summary : An open source SSH client applications URL : [URL] License : BSD Description : OpenSSH is a free version of SSH (Secure SHell), a program for : logging into and executing commands on a remote machine. This : package includes the clients necessary to make encrypted : connections to SSH servers. I'm confused for the situation. Did I missing some configuration on server? (We are using RHEL6 as server.) It's my fault in path setting. I added 'custom.sh' in /etc/profile.d and added following lines in it to add /usr/local/node/bin directory to PATH. export PATH="/usr/local/node/bin:$PATH" But the format is wrong. I removed the pair of '"' and it works OK now. It should be: export PATH=$PATH:/usr/local/node/bin A probe mistake...^_^ | Error when using scp command "bash: scp: command not found" I want to use scp command to copy a local file to remote server, but I get an error message after input the password of user in remote server. ~]$ scp gitadmin.pub git@123.150.207.18: git@123.150.207.18's password: bash: scp: command not found lost connection I checked on server using the git user and it seems the scp command can be found and openssh-clinets were installed too. git@... ~]$ scp usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 git@... ~]$ su root ...... root@... ~]# yum info openssh-clients Loaded plugins: product-id, subscription-manager Updating Red Hat repositories. Installed Packages Name : openssh-clients Arch : x86_64 Version : 5.3p1 Release : 52.el6 Size : 1.0 M Repo : installed From repo : anaconda-RedHatEnterpriseLinux-201105101844.x86_64 Summary : An open source SSH client applications URL : [URL] License : BSD Description : OpenSSH is a free version of SSH (Secure SHell), a program for : logging into and executing commands on a remote machine. This : package includes the clients necessary to make encrypted : connections to SSH servers. I'm confused for the situation. Did I missing some configuration on server? (We are using RHEL6 as server.) It's my fault in path setting. I added 'custom.sh' in /etc/profile.d and added following lines in it to add /usr/local/node/bin directory to PATH. export PATH="/usr/local/node/bin:$PATH" But the format is wrong. I removed the pair of '"' and it works OK now. It should be: export PATH=$PATH:/usr/local/node/bin A probe mistake...^_^ | scp, openssh, rhel | 72 | 169,619 | 3 | https://stackoverflow.com/questions/17131048/error-when-using-scp-command-bash-scp-command-not-found |
43,153,503 | Docker on CentOS 7.2: kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 | I'm running Docker on CentOS 7, from time to time there's the following message displayed: Message from syslogd@dev-master at Mar 29 17:23:03 ... kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 I've googled a lot, read a lot of resources found and tried many ways like keeping my system updated, upgrading kernel etc, but the message still keeps showing up, it's not too often but sooner or later I'll see it. Also I found issue for this problem on docker github is still open, then my questions are: What does this message mean? Could somebody give me a simple explanation why docker causes it? Is there any workaround for this? If it could not be fixed yet(the issue is still open), will it affect the server or services running inside docker container? Will it be a serious performance issue because it also happens on our production servers? Docker version: Client: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Wed Apr 27 00:34:42 2016 OS/Arch: linux/amd64 Server: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Wed Apr 27 00:34:42 2016 OS/Arch: linux/amd64 OS info: CentOS 7, with kernel version: 4.6.0-1.el7.elrepo.x86_64 I really appreciate for any info/tips or resources, thanks a lot. | Docker on CentOS 7.2: kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 I'm running Docker on CentOS 7, from time to time there's the following message displayed: Message from syslogd@dev-master at Mar 29 17:23:03 ... kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 I've googled a lot, read a lot of resources found and tried many ways like keeping my system updated, upgrading kernel etc, but the message still keeps showing up, it's not too often but sooner or later I'll see it. Also I found issue for this problem on docker github is still open, then my questions are: What does this message mean? Could somebody give me a simple explanation why docker causes it? Is there any workaround for this? If it could not be fixed yet(the issue is still open), will it affect the server or services running inside docker container? Will it be a serious performance issue because it also happens on our production servers? Docker version: Client: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Wed Apr 27 00:34:42 2016 OS/Arch: linux/amd64 Server: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Wed Apr 27 00:34:42 2016 OS/Arch: linux/amd64 OS info: CentOS 7, with kernel version: 4.6.0-1.el7.elrepo.x86_64 I really appreciate for any info/tips or resources, thanks a lot. | network-programming, docker, centos, centos7, loopback | 72 | 40,587 | 1 | https://stackoverflow.com/questions/43153503/docker-on-centos-7-2-kernelunregister-netdevice-waiting-for-lo-to-become-free |
53,084,955 | Why does Slack return a Segmentation fault after Fedora 29 upgrade? | I have upgraded Fedora from 28 to the latest 29 and Slack doesn't work anymore. It returns a Segmentation fault (core dumped) . Edit: The issue has been fixed on Slack 3.3.4 | Why does Slack return a Segmentation fault after Fedora 29 upgrade? I have upgraded Fedora from 28 to the latest 29 and Slack doesn't work anymore. It returns a Segmentation fault (core dumped) . Edit: The issue has been fixed on Slack 3.3.4 | linux, fedora, slack, fedora-29 | 72 | 12,420 | 4 | https://stackoverflow.com/questions/53084955/why-does-slack-return-a-segmentation-fault-after-fedora-29-upgrade |
24,646,320 | nohup:ignoring input and appending output to 'nohup.out' | I want to start my server through nohup.php but the command is not running and displays following error nohup:ignoring input and appending output to 'nohup.out' I am using ssh through putty, this is what i am doing nohup php server1.php | nohup:ignoring input and appending output to 'nohup.out' I want to start my server through nohup.php but the command is not running and displays following error nohup:ignoring input and appending output to 'nohup.out' I am using ssh through putty, this is what i am doing nohup php server1.php | php, linux, centos, centos6, centos5 | 71 | 188,533 | 2 | https://stackoverflow.com/questions/24646320/nohupignoring-input-and-appending-output-to-nohup-out |
46,419,607 | How to automatically install required packages from a Python script as necessary? | Is there anything in Python or Linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doing a sudo pip or an apt-get or dnf anyway. Why not automate that within the script itself. Wherever a 'no package found' error crops up, pass the library name to the install statement. Is this there ? PS: I know docker exists, but am talking at a Python/script level or a direct system level for purely execution purposes. | How to automatically install required packages from a Python script as necessary? Is there anything in Python or Linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doing a sudo pip or an apt-get or dnf anyway. Why not automate that within the script itself. Wherever a 'no package found' error crops up, pass the library name to the install statement. Is this there ? PS: I know docker exists, but am talking at a Python/script level or a direct system level for purely execution purposes. | python, linux, ubuntu, pip, fedora | 71 | 162,453 | 7 | https://stackoverflow.com/questions/46419607/how-to-automatically-install-required-packages-from-a-python-script-as-necessary |
20,389,193 | How do I check my gcc C++ compiler version for my Eclipse? | I'm using Eclipse release version 3.7.0, but I can't find the gcc anywhere. How and where can I see the version of gcc I'm currently using? | How do I check my gcc C++ compiler version for my Eclipse? I'm using Eclipse release version 3.7.0, but I can't find the gcc anywhere. How and where can I see the version of gcc I'm currently using? | linux, eclipse, fedora | 70 | 210,716 | 5 | https://stackoverflow.com/questions/20389193/how-do-i-check-my-gcc-c-compiler-version-for-my-eclipse |
17,079,670 | httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88 | I am trying to start httpd server on centos 6. It throws following error : [root@machine ~]# service httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:88 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:88 no listening sockets available, shutting down Unable to open logs [FAILED] I have also checked for port 88, It is not is use. I also checked with semanage , but it didn't help. Any help will be appreciated. | httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88 I am trying to start httpd server on centos 6. It throws following error : [root@machine ~]# service httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:88 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:88 no listening sockets available, shutting down Unable to open logs [FAILED] I have also checked for port 88, It is not is use. I also checked with semanage , but it didn't help. Any help will be appreciated. | apache, centos | 69 | 212,735 | 17 | https://stackoverflow.com/questions/17079670/httpd-server-not-started-13permission-denied-make-sock-could-not-bind-to-ad |
19,034,542 | How to open port in Linux | I have installed and web application which is running on port 8080 on RHEL (centOS). I only have command line access to that machine. I have tried to access that application from my windows machine from which I am connected to server via command-line, but it is giving connection time out error. Then I have tried to open port 8080. I have added following entry into the iptables. -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT After adding this into the iptables I have restarted it with - /etc/init.d/iptables restart But still I am not able to access that application from my windows machine. Am I doing any mistake or missing something? | How to open port in Linux I have installed and web application which is running on port 8080 on RHEL (centOS). I only have command line access to that machine. I have tried to access that application from my windows machine from which I am connected to server via command-line, but it is giving connection time out error. Then I have tried to open port 8080. I have added following entry into the iptables. -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT After adding this into the iptables I have restarted it with - /etc/init.d/iptables restart But still I am not able to access that application from my windows machine. Am I doing any mistake or missing something? | linux, tcp, centos, port | 69 | 314,269 | 2 | https://stackoverflow.com/questions/19034542/how-to-open-port-in-linux |
30,328,506 | Check if service exists with Ansible | I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both Ansible and Linux I'm having trouble to conditionally execute tasks on a host based on the host's status. Namely I have some hosts having the service already present and running where I want to stop it before doing anything else. And then there might be new hosts, which don't have the service yet. So I can't simply use service: name={{service_name}} state=stopped , because this will fail on new hosts. How I can I achieve this? Here's what I have so far: - name: Check if Service Exists shell: "if chkconfig --list | grep -q my_service; then echo true; else echo false; fi;" register: service_exists # This should only execute on hosts where the service is present - name: Stop Service service: name={{service_name}} state=stopped when: service_exists register: service_stopped # This too - name: Remove Old App Folder command: rm -rf {{app_target_folder}} when: service_exists # This should be executed on all hosts, but only after the service has stopped, if it was present - name: Unpack App Archive unarchive: src=../target/{{app_tar_name}} dest=/opt | Check if service exists with Ansible I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both Ansible and Linux I'm having trouble to conditionally execute tasks on a host based on the host's status. Namely I have some hosts having the service already present and running where I want to stop it before doing anything else. And then there might be new hosts, which don't have the service yet. So I can't simply use service: name={{service_name}} state=stopped , because this will fail on new hosts. How I can I achieve this? Here's what I have so far: - name: Check if Service Exists shell: "if chkconfig --list | grep -q my_service; then echo true; else echo false; fi;" register: service_exists # This should only execute on hosts where the service is present - name: Stop Service service: name={{service_name}} state=stopped when: service_exists register: service_stopped # This too - name: Remove Old App Folder command: rm -rf {{app_target_folder}} when: service_exists # This should be executed on all hosts, but only after the service has stopped, if it was present - name: Unpack App Archive unarchive: src=../target/{{app_tar_name}} dest=/opt | centos, ansible | 69 | 145,557 | 9 | https://stackoverflow.com/questions/30328506/check-if-service-exists-with-ansible |
42,001,338 | Install ONLY mongo shell, not mongodb | As mentioned above, I need to install only the mongo shell on a RHEL instance (machine A). I have a mongodb server on a separate instance (machine B) and need to connect to that from A to run mongodump and mongorestore commands. I tried looking it up on the web but all I got was instructions to install the complete mongodb package. Any help appreciated. | Install ONLY mongo shell, not mongodb As mentioned above, I need to install only the mongo shell on a RHEL instance (machine A). I have a mongodb server on a separate instance (machine B) and need to connect to that from A to run mongodump and mongorestore commands. I tried looking it up on the web but all I got was instructions to install the complete mongodb package. Any help appreciated. | mongodb, shell, rhel | 69 | 86,280 | 6 | https://stackoverflow.com/questions/42001338/install-only-mongo-shell-not-mongodb |
4,609,933 | How to list installed packages from a given repo using yum | I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something" . But now I am faced with a problem. The repo I am interested in does not have that "something" for me to grep. The packages from that repo do not have any distinctive characteristics. How do I list them? I looked through yum man pages but did not find anything. I wonder if there are other commands I could use. | How to list installed packages from a given repo using yum I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something" . But now I am faced with a problem. The repo I am interested in does not have that "something" for me to grep. The packages from that repo do not have any distinctive characteristics. How do I list them? I looked through yum man pages but did not find anything. I wonder if there are other commands I could use. | centos, fedora, yum | 68 | 158,523 | 2 | https://stackoverflow.com/questions/4609933/how-to-list-installed-packages-from-a-given-repo-using-yum |
6,151,695 | EC2 instance on Amazon and I am greeted with "No space left on the disk" | I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk". I did df -f . with output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 15G 0 100% / none 312M 0 312M 0% /dev/shm I want to increase the space for ec2 instance on amazon. Can someone help me with it? | EC2 instance on Amazon and I am greeted with "No space left on the disk" I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk". I did df -f . with output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 15G 0 100% / none 312M 0 312M 0% /dev/shm I want to increase the space for ec2 instance on amazon. Can someone help me with it? | amazon-ec2, amazon-web-services, fedora, ec2-ami | 68 | 104,596 | 9 | https://stackoverflow.com/questions/6151695/ec2-instance-on-amazon-and-i-am-greeted-with-no-space-left-on-the-disk |
23,137,637 | linker error while linking boost log tutorial (undefined references) | I have installed boost on Fedora 20 via yum and am trying some simple examples. However I have trouble to compile the first example from the logging tutorial . Compiling with g++ -c boosttest.cc works fine, but I get lot's of errors when I try to link it with g++ boosttest.o -o boosttest -lboost_log -lpthread the full error-log: boosttest.o: In function main': boosttest.cc:(.text+0x44): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x9a): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x167): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x1bd): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x28a): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.o:boosttest.cc:(.text+0x2e0): more undefined references to boost::log::v2s_mt_posix::trivial::logger::get()' follow boosttest.o: In function boost::log::v2s_mt_posix::record::reset()': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix6record5resetEv[_ZN5boost3log12v2s_mt_posix6record5resetEv]+0x18): undefined reference to boost::log::v2s_mt_posix::record_view::public_data::destroy(boost::log::v2s_mt_posix::record_view::public_data const*)' boosttest.o: In function boost::log::v2s_mt_posix::record boost::log::v2s_mt_posix::sources::basic_composite_logger<char, boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>, boost::log::v2s_mt_posix::sources::multi_thread_model<boost::log::v2s_mt_posix::aux::light_rw_mutex>, boost::log::v2s_mt_posix::sources::features<boost::log::v2s_mt_posix::sources::severity<boost::log::v2s_mt_posix::trivial::severity_level>, void, void, void, void, void, void, void, void, void> >::open_record<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> >(boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> const&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources22basic_composite_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEENS2_8featuresINS2_8severityIS6_EEvvvvvvvvvEEE11open_recordINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_[_ZN5boost3log12v2s_mt_posix7sources22basic_composite_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEENS2_8featuresINS2_8severityIS6_EEvvvvvvvvvEEE11open_recordINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_]+0x1e): undefined reference to boost::log::v2s_mt_posix::core::get_logging_enabled() const' boosttest.o: In function boost::log::v2s_mt_posix::aux::record_pump<boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level> >::~record_pump()': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEED2Ev[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEED5Ev]+0x2c): undefined reference to boost::log::v2s_mt_posix::aux::unhandled_exception_count()' boosttest.o: In function boost::log::v2s_mt_posix::aux::record_pump<boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level> >::record_pump(boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>&, boost::log::v2s_mt_posix::record&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC2ERS8_RNS1_6recordE[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC5ERS8_RNS1_6recordE]+0x1d): undefined reference to boost::log::v2s_mt_posix::aux::stream_provider<char>::allocate_compound(boost::log::v2s_mt_posix::record&)' boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC2ERS8_RNS1_6recordE[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC5ERS8_RNS1_6recordE]+0x28): undefined reference to boost::log::v2s_mt_posix::aux::unhandled_exception_count()' boosttest.o: In function boost::log::v2s_mt_posix::aux::record_pump<boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level> >::auto_release::~auto_release()': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEE12auto_releaseD2Ev[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEE12auto_releaseD5Ev]+0xf): undefined reference to boost::log::v2s_mt_posix::aux::stream_provider<char>::release_compound(boost::log::v2s_mt_posix::aux::stream_provider<char>::stream_compound*)' boosttest.o: In function boost::log::v2s_mt_posix::sources::aux::severity_level<boost::log::v2s_mt_posix::trivial::severity_level>::set_value(boost::log::v2s_mt_posix::trivial::severity_level)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources3aux14severity_levelINS1_7trivial14severity_levelEE9set_valueES6_[_ZN5boost3log12v2s_mt_posix7sources3aux14severity_levelINS1_7trivial14severity_levelEE9set_valueES6_]+0x7): undefined reference to boost::log::v2s_mt_posix::sources::aux::get_severity_level()' boosttest.o: In function boost::log::v2s_mt_posix::record boost::log::v2s_mt_posix::sources::basic_logger<char, boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>, boost::log::v2s_mt_posix::sources::multi_thread_model<boost::log::v2s_mt_posix::aux::light_rw_mutex> >::open_record_unlocked<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> >(boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> const&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20open_record_unlockedINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_[_ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20open_record_unlockedINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_]+0x2a): undefined reference to boost::log::v2s_mt_posix::core::open_record(boost::log::v2s_mt_posix::attribute_set const&)' boosttest.o: In function boost::log::v2s_mt_posix::sources::basic_logger<char, boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>, boost::log::v2s_mt_posix::sources::multi_thread_model<boost::log::v2s_mt_posix::aux::light_rw_mutex> >::push_record_unlocked(boost::rv<boost::log::v2s_mt_posix::record>&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20push_record_unlockedERNS_2rvINS1_6recordEEE[_ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20push_record_unlockedERNS_2rvINS1_6recordEEE]+0x36): undefined reference to boost::log::v2s_mt_posix::core::push_record_move(boost::log::v2s_mt_posix::record&)' collect2: error: ld returned 1 exit status What am I missing? What am I doing wrong? EDIT 1: The order of -lboost_log -lpthread makes no difference in the output. There is also a very similar question , but the solution does not work for me. The following also fails with the same errors: g++ -DBOOST_LOG_DYN_LINK boosttest.o -o boosttest -lboost_log -lpthread | linker error while linking boost log tutorial (undefined references) I have installed boost on Fedora 20 via yum and am trying some simple examples. However I have trouble to compile the first example from the logging tutorial . Compiling with g++ -c boosttest.cc works fine, but I get lot's of errors when I try to link it with g++ boosttest.o -o boosttest -lboost_log -lpthread the full error-log: boosttest.o: In function main': boosttest.cc:(.text+0x44): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x9a): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x167): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x1bd): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x28a): undefined reference to boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.o:boosttest.cc:(.text+0x2e0): more undefined references to boost::log::v2s_mt_posix::trivial::logger::get()' follow boosttest.o: In function boost::log::v2s_mt_posix::record::reset()': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix6record5resetEv[_ZN5boost3log12v2s_mt_posix6record5resetEv]+0x18): undefined reference to boost::log::v2s_mt_posix::record_view::public_data::destroy(boost::log::v2s_mt_posix::record_view::public_data const*)' boosttest.o: In function boost::log::v2s_mt_posix::record boost::log::v2s_mt_posix::sources::basic_composite_logger<char, boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>, boost::log::v2s_mt_posix::sources::multi_thread_model<boost::log::v2s_mt_posix::aux::light_rw_mutex>, boost::log::v2s_mt_posix::sources::features<boost::log::v2s_mt_posix::sources::severity<boost::log::v2s_mt_posix::trivial::severity_level>, void, void, void, void, void, void, void, void, void> >::open_record<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> >(boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> const&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources22basic_composite_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEENS2_8featuresINS2_8severityIS6_EEvvvvvvvvvEEE11open_recordINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_[_ZN5boost3log12v2s_mt_posix7sources22basic_composite_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEENS2_8featuresINS2_8severityIS6_EEvvvvvvvvvEEE11open_recordINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_]+0x1e): undefined reference to boost::log::v2s_mt_posix::core::get_logging_enabled() const' boosttest.o: In function boost::log::v2s_mt_posix::aux::record_pump<boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level> >::~record_pump()': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEED2Ev[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEED5Ev]+0x2c): undefined reference to boost::log::v2s_mt_posix::aux::unhandled_exception_count()' boosttest.o: In function boost::log::v2s_mt_posix::aux::record_pump<boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level> >::record_pump(boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>&, boost::log::v2s_mt_posix::record&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC2ERS8_RNS1_6recordE[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC5ERS8_RNS1_6recordE]+0x1d): undefined reference to boost::log::v2s_mt_posix::aux::stream_provider<char>::allocate_compound(boost::log::v2s_mt_posix::record&)' boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC2ERS8_RNS1_6recordE[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEEC5ERS8_RNS1_6recordE]+0x28): undefined reference to boost::log::v2s_mt_posix::aux::unhandled_exception_count()' boosttest.o: In function boost::log::v2s_mt_posix::aux::record_pump<boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level> >::auto_release::~auto_release()': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEE12auto_releaseD2Ev[_ZN5boost3log12v2s_mt_posix3aux11record_pumpINS1_7sources18severity_logger_mtINS1_7trivial14severity_levelEEEE12auto_releaseD5Ev]+0xf): undefined reference to boost::log::v2s_mt_posix::aux::stream_provider<char>::release_compound(boost::log::v2s_mt_posix::aux::stream_provider<char>::stream_compound*)' boosttest.o: In function boost::log::v2s_mt_posix::sources::aux::severity_level<boost::log::v2s_mt_posix::trivial::severity_level>::set_value(boost::log::v2s_mt_posix::trivial::severity_level)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources3aux14severity_levelINS1_7trivial14severity_levelEE9set_valueES6_[_ZN5boost3log12v2s_mt_posix7sources3aux14severity_levelINS1_7trivial14severity_levelEE9set_valueES6_]+0x7): undefined reference to boost::log::v2s_mt_posix::sources::aux::get_severity_level()' boosttest.o: In function boost::log::v2s_mt_posix::record boost::log::v2s_mt_posix::sources::basic_logger<char, boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>, boost::log::v2s_mt_posix::sources::multi_thread_model<boost::log::v2s_mt_posix::aux::light_rw_mutex> >::open_record_unlocked<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> >(boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::severity, boost::log::v2s_mt_posix::trivial::severity_level const> const&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20open_record_unlockedINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_[_ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20open_record_unlockedINS_9parameter3aux15tagged_argumentINS1_8keywords3tag8severityEKS6_EEEENS1_6recordERKT_]+0x2a): undefined reference to boost::log::v2s_mt_posix::core::open_record(boost::log::v2s_mt_posix::attribute_set const&)' boosttest.o: In function boost::log::v2s_mt_posix::sources::basic_logger<char, boost::log::v2s_mt_posix::sources::severity_logger_mt<boost::log::v2s_mt_posix::trivial::severity_level>, boost::log::v2s_mt_posix::sources::multi_thread_model<boost::log::v2s_mt_posix::aux::light_rw_mutex> >::push_record_unlocked(boost::rv<boost::log::v2s_mt_posix::record>&)': boosttest.cc:(.text._ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20push_record_unlockedERNS_2rvINS1_6recordEEE[_ZN5boost3log12v2s_mt_posix7sources12basic_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEEE20push_record_unlockedERNS_2rvINS1_6recordEEE]+0x36): undefined reference to boost::log::v2s_mt_posix::core::push_record_move(boost::log::v2s_mt_posix::record&)' collect2: error: ld returned 1 exit status What am I missing? What am I doing wrong? EDIT 1: The order of -lboost_log -lpthread makes no difference in the output. There is also a very similar question , but the solution does not work for me. The following also fails with the same errors: g++ -DBOOST_LOG_DYN_LINK boosttest.o -o boosttest -lboost_log -lpthread | c++, boost, fedora, ld | 68 | 51,731 | 15 | https://stackoverflow.com/questions/23137637/linker-error-while-linking-boost-log-tutorial-undefined-references |
18,338,322 | How to find files recursively by file type and copy them to a directory? | I would like to find all the pdf files in a folder. It contains pdf files inside and more directories that contain more as well. The folder is located on a remote server I have ssh access to. I am using the mac terminal but I believe the server I am connecting to is Centos. I need to find all the pdfs and copy them all to one directory on the remote server. I've tried about 10 variations with no luck. Both mine and the remote systems do not seem to recognise -exec as a command though exec is fine so thats a problem. Im not sure what the problem is here but the command does not fail it just sits there and stalls forever so I do not have any useful errors to post. cp $(find -name "*.pdf" -type f; exec ./pdfsfolder {} \; | sed 1q) find: ./tcs/u25: Permission denied find: ./tcs/u68: Permission denied -bash: /var/www/html/tcs_dev/sites/default/files/pdfsfolder: is a directory -bash: exec: /var/www/html/tcs_dev/sites/default/files/pdfsfolder: cannot execute: Success cp: target `./runaways_parents_guide_2013_final.pdf' is not a directory This is the last one I tried, I think I can ignore the permission denied errors for now but im not sure about the rest. | How to find files recursively by file type and copy them to a directory? I would like to find all the pdf files in a folder. It contains pdf files inside and more directories that contain more as well. The folder is located on a remote server I have ssh access to. I am using the mac terminal but I believe the server I am connecting to is Centos. I need to find all the pdfs and copy them all to one directory on the remote server. I've tried about 10 variations with no luck. Both mine and the remote systems do not seem to recognise -exec as a command though exec is fine so thats a problem. Im not sure what the problem is here but the command does not fail it just sits there and stalls forever so I do not have any useful errors to post. cp $(find -name "*.pdf" -type f; exec ./pdfsfolder {} \; | sed 1q) find: ./tcs/u25: Permission denied find: ./tcs/u68: Permission denied -bash: /var/www/html/tcs_dev/sites/default/files/pdfsfolder: is a directory -bash: exec: /var/www/html/tcs_dev/sites/default/files/pdfsfolder: cannot execute: Success cp: target `./runaways_parents_guide_2013_final.pdf' is not a directory This is the last one I tried, I think I can ignore the permission denied errors for now but im not sure about the rest. | linux, bash, centos | 67 | 122,584 | 3 | https://stackoverflow.com/questions/18338322/how-to-find-files-recursively-by-file-type-and-copy-them-to-a-directory |
70,926,799 | CentOS through a VM - no URLs in mirrorlist | I am trying to run a CentOS 8 server through VirtualBox (6.1.30) ( Vagrant ), which worked just fine yesterday for me, but today I tried running a sudo yum update . I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum update CentOS Linux 8 - AppStream 71 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist I already tried to change the namespaces on /etc/resolve.conf , remove the DNF folders and everything. On other computers, this works just fine, so I think the problem is with my host machine. I also tried to reset the network settings (I am on a Windows 10 host), without success either. It's not a DNS problem; it works just fine. After I reinstalled Windows, I still have the same error in my VM. File dnf.log : 2022-01-31T15:28:03+0000 INFO --- logging initialized --- 2022-01-31T15:28:03+0000 DDEBUG timer: config: 2 ms 2022-01-31T15:28:03+0000 DEBUG Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync 2022-01-31T15:28:03+0000 DEBUG YUM version: 4.4.2 2022-01-31T15:28:03+0000 DDEBUG Command: yum update 2022-01-31T15:28:03+0000 DDEBUG Installroot: / 2022-01-31T15:28:03+0000 DDEBUG Releasever: 8 2022-01-31T15:28:03+0000 DEBUG cachedir: /var/cache/dnf 2022-01-31T15:28:03+0000 DDEBUG Base command: update 2022-01-31T15:28:03+0000 DDEBUG Extra commands: ['update'] 2022-01-31T15:28:03+0000 DEBUG User-Agent: constructed: 'libdnf (CentOS Linux 8; generic; Linux.x86_64)' 2022-01-31T15:28:05+0000 DDEBUG Cleaning up. 2022-01-31T15:28:05+0000 SUBDEBUG Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 574, in load ret = self._repo.load() File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load return _repo.Repo_load(self) libdnf._error.Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main return cli_run(cli, base) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run cli.run() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1050, in run self._process_demands() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 740, in _process_demands load_available_repos=self.demands.available_repos) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 394, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 137, in _add_repo_to_sack repo.load() File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 581, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist 2022-01-31T15:28:05+0000 CRITICAL Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist | CentOS through a VM - no URLs in mirrorlist I am trying to run a CentOS 8 server through VirtualBox (6.1.30) ( Vagrant ), which worked just fine yesterday for me, but today I tried running a sudo yum update . I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum update CentOS Linux 8 - AppStream 71 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist I already tried to change the namespaces on /etc/resolve.conf , remove the DNF folders and everything. On other computers, this works just fine, so I think the problem is with my host machine. I also tried to reset the network settings (I am on a Windows 10 host), without success either. It's not a DNS problem; it works just fine. After I reinstalled Windows, I still have the same error in my VM. File dnf.log : 2022-01-31T15:28:03+0000 INFO --- logging initialized --- 2022-01-31T15:28:03+0000 DDEBUG timer: config: 2 ms 2022-01-31T15:28:03+0000 DEBUG Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync 2022-01-31T15:28:03+0000 DEBUG YUM version: 4.4.2 2022-01-31T15:28:03+0000 DDEBUG Command: yum update 2022-01-31T15:28:03+0000 DDEBUG Installroot: / 2022-01-31T15:28:03+0000 DDEBUG Releasever: 8 2022-01-31T15:28:03+0000 DEBUG cachedir: /var/cache/dnf 2022-01-31T15:28:03+0000 DDEBUG Base command: update 2022-01-31T15:28:03+0000 DDEBUG Extra commands: ['update'] 2022-01-31T15:28:03+0000 DEBUG User-Agent: constructed: 'libdnf (CentOS Linux 8; generic; Linux.x86_64)' 2022-01-31T15:28:05+0000 DDEBUG Cleaning up. 2022-01-31T15:28:05+0000 SUBDEBUG Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 574, in load ret = self._repo.load() File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load return _repo.Repo_load(self) libdnf._error.Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main return cli_run(cli, base) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run cli.run() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1050, in run self._process_demands() File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 740, in _process_demands load_available_repos=self.demands.available_repos) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 394, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 137, in _add_repo_to_sack repo.load() File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 581, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist 2022-01-31T15:28:05+0000 CRITICAL Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist | linux, centos, vagrant, virtualbox, redhat | 67 | 90,290 | 2 | https://stackoverflow.com/questions/70926799/centos-through-a-vm-no-urls-in-mirrorlist |
10,325,982 | How to solve jenkins 'Disk space is too low' issue? | I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours? | How to solve jenkins 'Disk space is too low' issue? I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours? | hudson, jenkins, centos, diskspace | 65 | 149,524 | 10 | https://stackoverflow.com/questions/10325982/how-to-solve-jenkins-disk-space-is-too-low-issue |
36,651,680 | Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment | I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file contains following code start() { echo -n "Starting quokkacms: " python3 /var/www/quokka/manage.py runserver --host 0.0.0.0 --port 80 touch /var/lock/subsys/quokkacms return 0 } stop() { echo -n "Shutting down quokkacms: " rm -f /var/lock/subsys/quokkacms return 0 } case "$1" in start) start ;; stop) stop ;; status) ;; restart) stop start ;; *) echo "Usage: quokkacms {start|stop|status|restart}" exit 1 ;; esac exit $? But I get error when running sudo service quokkacms start RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Either switch to Python 2 or consult [URL] for mitigation steps. It seems to me that it is the bash script. How come I get different results? Also I followed instructions in the link in the error message but still had no luck. [update] I had already tried the solution provided by Click before I posted this question. Check the results below (i run in root): [root@webserver quokka]# python3 Python 3.4.3 (default, Jan 26 2016, 02:25:35) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> import codecs >>> print(locale.getpreferredencoding()) UTF-8 >>> print(codecs.lookup(locale.getpreferredencoding()).name) utf-8 >>> locale.getdefaultlocale() ('en_US', 'UTF-8') >>> locale.CODESET 14 >>> | Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file contains following code start() { echo -n "Starting quokkacms: " python3 /var/www/quokka/manage.py runserver --host 0.0.0.0 --port 80 touch /var/lock/subsys/quokkacms return 0 } stop() { echo -n "Shutting down quokkacms: " rm -f /var/lock/subsys/quokkacms return 0 } case "$1" in start) start ;; stop) stop ;; status) ;; restart) stop start ;; *) echo "Usage: quokkacms {start|stop|status|restart}" exit 1 ;; esac exit $? But I get error when running sudo service quokkacms start RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Either switch to Python 2 or consult [URL] for mitigation steps. It seems to me that it is the bash script. How come I get different results? Also I followed instructions in the link in the error message but still had no luck. [update] I had already tried the solution provided by Click before I posted this question. Check the results below (i run in root): [root@webserver quokka]# python3 Python 3.4.3 (default, Jan 26 2016, 02:25:35) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> import codecs >>> print(locale.getpreferredencoding()) UTF-8 >>> print(codecs.lookup(locale.getpreferredencoding()).name) utf-8 >>> locale.getdefaultlocale() ('en_US', 'UTF-8') >>> locale.CODESET 14 >>> | python-3.x, centos, locale, redhat, python-click | 65 | 62,204 | 2 | https://stackoverflow.com/questions/36651680/click-will-abort-further-execution-because-python-3-was-configured-to-use-ascii |
13,227,162 | Automatically install build dependencies prior to building an RPM package | I am trying to build a .rpm package. I have just followed the steps to do that. Till now all steps were gone fine but now i just stuck with this step. I just ran the following command and got this error: rpmbuild -ba asterisk.spec error: Failed build dependencies: gtk2-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 libsrtp-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 [... more ...] freetds-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 uw-imap-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 I am using fedora-15. How to resolve this error? How I do install all depencencies during installation of src.rpm package. Is it possible? | Automatically install build dependencies prior to building an RPM package I am trying to build a .rpm package. I have just followed the steps to do that. Till now all steps were gone fine but now i just stuck with this step. I just ran the following command and got this error: rpmbuild -ba asterisk.spec error: Failed build dependencies: gtk2-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 libsrtp-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 [... more ...] freetds-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 uw-imap-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 I am using fedora-15. How to resolve this error? How I do install all depencencies during installation of src.rpm package. Is it possible? | fedora, rpmbuild | 63 | 56,478 | 3 | https://stackoverflow.com/questions/13227162/automatically-install-build-dependencies-prior-to-building-an-rpm-package |
10,624,511 | Upgrade python without breaking yum | I recently installed Python 2.7.3 on a CentOS machine by compiling from source. Python 2.7.3 is installed at /opt/python2.7 and when I installed it I just changed /usr/bin/python to point to the new version. This apparently is wrong though because when I did it it broke yum. I would get the following. There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.3 (default, May 15 2012, 17:45:42) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] If you cannot solve this problem yourself, please go to the yum faq at: [URL] I changed /usr/bin/python to point back to the python 2.6.6 but now 2.6.6 is the default version of python. Any idea how to fix this? | Upgrade python without breaking yum I recently installed Python 2.7.3 on a CentOS machine by compiling from source. Python 2.7.3 is installed at /opt/python2.7 and when I installed it I just changed /usr/bin/python to point to the new version. This apparently is wrong though because when I did it it broke yum. I would get the following. There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.3 (default, May 15 2012, 17:45:42) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] If you cannot solve this problem yourself, please go to the yum faq at: [URL] I changed /usr/bin/python to point back to the python 2.6.6 but now 2.6.6 is the default version of python. Any idea how to fix this? | python, centos, yum | 62 | 155,026 | 10 | https://stackoverflow.com/questions/10624511/upgrade-python-without-breaking-yum |
33,362,904 | Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7 | I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with "yum remove mariadb mariadb-server", after that I reinstalled it with "yum install mariadb mariadb-server". Unfortunately, the configuration remains. It seems as if yum remove don't delete all MariaDB Config-Files. How can I remove MariaDB completely from CentOS 7? | Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7 I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with "yum remove mariadb mariadb-server", after that I reinstalled it with "yum install mariadb mariadb-server". Unfortunately, the configuration remains. It seems as if yum remove don't delete all MariaDB Config-Files. How can I remove MariaDB completely from CentOS 7? | mysql, centos, mariadb, yum, rhel | 62 | 297,065 | 3 | https://stackoverflow.com/questions/33362904/completely-remove-mariadb-or-mysql-from-centos-7-or-rhel-7 |
44,622,182 | Python 3.6 No module named pip | I have just installed Python 3.6 on Fedora 25 (64 bits) by running dnf install python36 and I can't use any modules Python 3.5 can otherwise use just fine, for example, PyCharm complains about setup tools not being installed, also I can run python3 and issue: import aiohttp However, if run python36 and then: import aiohttp I instead get: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'aiohttp' Pip is also not present on python36, as python36 -m pip throws: /usr/bin/python36: No module named pip I have to note that I've got python 3.4, 3.5 and 3.6 installed at the same time, both 3.4 and 3.5 working just fine | Python 3.6 No module named pip I have just installed Python 3.6 on Fedora 25 (64 bits) by running dnf install python36 and I can't use any modules Python 3.5 can otherwise use just fine, for example, PyCharm complains about setup tools not being installed, also I can run python3 and issue: import aiohttp However, if run python36 and then: import aiohttp I instead get: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'aiohttp' Pip is also not present on python36, as python36 -m pip throws: /usr/bin/python36: No module named pip I have to note that I've got python 3.4, 3.5 and 3.6 installed at the same time, both 3.4 and 3.5 working just fine | python, pip, python-3.6, fedora | 62 | 121,386 | 3 | https://stackoverflow.com/questions/44622182/python-3-6-no-module-named-pip |
10,389,988 | Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 | CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) When I debug a simple c++ code with GDB, I saw the following warning: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 I have tried the following methods and none of them fix the problems: Search SO yum install glibc debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 In fact, when I install those RPM one by one, I just realized that they are installed already. [root@localhost Excluded]# rpm -ivh glibc-2.12-1.47.el6_2.9.i686.rpm Preparing... ########################################### [100%] package glibc-2.12-1.47.el6_2.9.i686 is already installed [root@localhost Excluded]# ls *.rpm glibc-2.12-1.47.el6_2.9.i686.rpm libgcc-4.4.6-3.el6.i686.rpm [root@localhost Excluded]# rpm -ivh libgcc-4.4.6-3.el6.i686.rpm Preparing... ########################################### [100%] package libgcc-4.4.6-3.el6.i686 is already installed [root@localhost Excluded]# rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm warning: libstdc++-4.4.6-3.el6.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY Preparing... ########################################### [100%] package libstdc++-4.4.6-3.el6.i686 is already installed file /usr/lib/libstdc++.so.6.0.13 from install of libstdc++-4.4.6-3.el6.i686 conflicts with file from package libstdc++-4.4.6-3.el6.i686 Why GDB cannot find it? Question : Do I have to worry about this issue? If not, how to turn it off? If yes, how to fix it? Thank you | Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) When I debug a simple c++ code with GDB, I saw the following warning: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 I have tried the following methods and none of them fix the problems: Search SO yum install glibc debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 In fact, when I install those RPM one by one, I just realized that they are installed already. [root@localhost Excluded]# rpm -ivh glibc-2.12-1.47.el6_2.9.i686.rpm Preparing... ########################################### [100%] package glibc-2.12-1.47.el6_2.9.i686 is already installed [root@localhost Excluded]# ls *.rpm glibc-2.12-1.47.el6_2.9.i686.rpm libgcc-4.4.6-3.el6.i686.rpm [root@localhost Excluded]# rpm -ivh libgcc-4.4.6-3.el6.i686.rpm Preparing... ########################################### [100%] package libgcc-4.4.6-3.el6.i686 is already installed [root@localhost Excluded]# rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm warning: libstdc++-4.4.6-3.el6.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY Preparing... ########################################### [100%] package libstdc++-4.4.6-3.el6.i686 is already installed file /usr/lib/libstdc++.so.6.0.13 from install of libstdc++-4.4.6-3.el6.i686 conflicts with file from package libstdc++-4.4.6-3.el6.i686 Why GDB cannot find it? Question : Do I have to worry about this issue? If not, how to turn it off? If yes, how to fix it? Thank you | gdb, centos | 61 | 96,234 | 3 | https://stackoverflow.com/questions/10389988/missing-separate-debuginfos-use-debuginfo-install-glibc-2-12-1-47-el6-2-9-i686 |
10,729,247 | apache not accepting incoming connections from outside of localhost | I've booted up a CentOS server on rackspace and executed yum install httpd 'd. Then services httpd start . So, just the barebones. I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I think...), but when I try to connect on port 80 (via a browser or something) I get connection refused. From localhost, however, I can use telnet (80), or even lynx on itself and get served with no problem. From outside (my house, my school, a local coffee shop, etc...), telnet connects on 22, but not 80. I use netstat -tulpn (<- I'm not going to lie, I don't understand the -tulpn part, but that's what the internet told me to do...) and see tcp 0 0 :::80 :::* LISTEN - as I believe I should. The httpd.conf says Listen 80 . I have services httpd restart 'd many a time. Honestly I have no idea what to do. There is NO way that rackspace has a firewall on incoming port 80 requests. I feel like I'm missing something stupid, but I've booted up a barebones server twice now and have done the absolute minimum to get this functioning thinking I had mucked things up with my tinkering, but neither worked. Any help is greatly appreciated! (And sorry for the long winded post...) Edit I was asked to post the output of iptables -L . So here it is: Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT) target prot opt source destination REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination | apache not accepting incoming connections from outside of localhost I've booted up a CentOS server on rackspace and executed yum install httpd 'd. Then services httpd start . So, just the barebones. I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I think...), but when I try to connect on port 80 (via a browser or something) I get connection refused. From localhost, however, I can use telnet (80), or even lynx on itself and get served with no problem. From outside (my house, my school, a local coffee shop, etc...), telnet connects on 22, but not 80. I use netstat -tulpn (<- I'm not going to lie, I don't understand the -tulpn part, but that's what the internet told me to do...) and see tcp 0 0 :::80 :::* LISTEN - as I believe I should. The httpd.conf says Listen 80 . I have services httpd restart 'd many a time. Honestly I have no idea what to do. There is NO way that rackspace has a firewall on incoming port 80 requests. I feel like I'm missing something stupid, but I've booted up a barebones server twice now and have done the absolute minimum to get this functioning thinking I had mucked things up with my tinkering, but neither worked. Any help is greatly appreciated! (And sorry for the long winded post...) Edit I was asked to post the output of iptables -L . So here it is: Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT) target prot opt source destination REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination | linux, apache, webserver, centos | 61 | 170,530 | 11 | https://stackoverflow.com/questions/10729247/apache-not-accepting-incoming-connections-from-outside-of-localhost |
23,070,245 | Get all files modified in last 30 days in a directory | CentOS. Need to find files modified in last 30 days to see if any of them have been infected with malware. I tried this: root@server [/home/someuser/public_html/]# find . -mtime +30 -exec ls -l {} > last30days.txt \; But instead of the last 30 days, it seems to have found everything. 22,000 files. | Get all files modified in last 30 days in a directory CentOS. Need to find files modified in last 30 days to see if any of them have been infected with malware. I tried this: root@server [/home/someuser/public_html/]# find . -mtime +30 -exec ls -l {} > last30days.txt \; But instead of the last 30 days, it seems to have found everything. 22,000 files. | find, centos | 61 | 208,381 | 2 | https://stackoverflow.com/questions/23070245/get-all-files-modified-in-last-30-days-in-a-directory |
29,380,344 | docker exec -it returns "cannot enable tty mode on non tty input" | docker exec -it command returns following error "cannot enable tty mode on non tty input" level="fatal" msg="cannot enable tty mode on non tty input" I am running docker(1.4.1) on centos box 6.6. I am trying to execute the following command docker exec -it containerName /bin/bash but I am getting following error level="fatal" msg="cannot enable tty mode on non tty input" | docker exec -it returns "cannot enable tty mode on non tty input" docker exec -it command returns following error "cannot enable tty mode on non tty input" level="fatal" msg="cannot enable tty mode on non tty input" I am running docker(1.4.1) on centos box 6.6. I am trying to execute the following command docker exec -it containerName /bin/bash but I am getting following error level="fatal" msg="cannot enable tty mode on non tty input" | centos, docker | 61 | 52,178 | 8 | https://stackoverflow.com/questions/29380344/docker-exec-it-returns-cannot-enable-tty-mode-on-non-tty-input |
4,112,151 | How to send list of file in a folder to a txt file in Linux | I'm fairly new to Linux (CentOS in this case). I have a folder with about 2000 files in it. I'd like to ideally execute a command at the command prompt that would write out the name of all the files into a single txt file. If I have to, I could write an actual program to do it too, I was just thinking there might be a way to simply do it from the command prompt. | How to send list of file in a folder to a txt file in Linux I'm fairly new to Linux (CentOS in this case). I have a folder with about 2000 files in it. I'd like to ideally execute a command at the command prompt that would write out the name of all the files into a single txt file. If I have to, I could write an actual program to do it too, I was just thinking there might be a way to simply do it from the command prompt. | linux, bash, shell, centos | 60 | 168,028 | 2 | https://stackoverflow.com/questions/4112151/how-to-send-list-of-file-in-a-folder-to-a-txt-file-in-linux |
4,149,361 | On linux SUSE or RedHat, how do I load Python 2.7 | Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface. | On linux SUSE or RedHat, how do I load Python 2.7 Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface. | python, linux, rhel, suse | 60 | 111,881 | 11 | https://stackoverflow.com/questions/4149361/on-linux-suse-or-redhat-how-do-i-load-python-2-7 |
10,278,561 | How to install PHP mbstring on CentOS 6.2 | How do I install mbstring with PHP on CentOS 6.2 I've tried: $ sudo yum install php-mbstring Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.net.cen.ct.gov * extras: centos.aol.com * updates: mirrors.seas.harvard.edu Setting up Install Process No package php-mbstring available. Error: Nothing to do But no packages were found? | How to install PHP mbstring on CentOS 6.2 How do I install mbstring with PHP on CentOS 6.2 I've tried: $ sudo yum install php-mbstring Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.net.cen.ct.gov * extras: centos.aol.com * updates: mirrors.seas.harvard.edu Setting up Install Process No package php-mbstring available. Error: Nothing to do But no packages were found? | php, linux, centos, mbstring | 59 | 219,874 | 11 | https://stackoverflow.com/questions/10278561/how-to-install-php-mbstring-on-centos-6-2 |
13,169,154 | Cannot change permissions of folders within vagrant home folder | When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But cannot change permissions for folders under the vagrant user folder. I have the same problem whether logged in as the vagrant user and root. Is there some sort of restriction on changing permissions in the vagrant user's folder? The vagrant user folder is not shared with the host OS, but the capistrano deploy folder and the docRoot are. Guest is CentOS 6, Host is OS X 10.7. Vagrant is 1.0.5. Virtualbox is 4.2.1. | Cannot change permissions of folders within vagrant home folder When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But cannot change permissions for folders under the vagrant user folder. I have the same problem whether logged in as the vagrant user and root. Is there some sort of restriction on changing permissions in the vagrant user's folder? The vagrant user folder is not shared with the host OS, but the capistrano deploy folder and the docRoot are. Guest is CentOS 6, Host is OS X 10.7. Vagrant is 1.0.5. Virtualbox is 4.2.1. | centos, virtualization, virtualbox, chmod, vagrant | 59 | 58,642 | 7 | https://stackoverflow.com/questions/13169154/cannot-change-permissions-of-folders-within-vagrant-home-folder |
22,952,287 | How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source? | How do I upgrade OpenSSL in CentOS 6.5? I have used these commands, but nothings happens: cd /usr/src wget [URL] tar -zxf openssl-1.0.1g.tar.gz cd openssl-1.0.1g ./config make make test make install cd /usr/src rm -rf openssl-1.0.1g.tar.gz rm -rf openssl-1.0.1g After using this command, I get the old version openssl version | How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source? How do I upgrade OpenSSL in CentOS 6.5? I have used these commands, but nothings happens: cd /usr/src wget [URL] tar -zxf openssl-1.0.1g.tar.gz cd openssl-1.0.1g ./config make make test make install cd /usr/src rm -rf openssl-1.0.1g.tar.gz rm -rf openssl-1.0.1g After using this command, I get the old version openssl version | linux, security, ssl, openssl, centos | 59 | 151,875 | 11 | https://stackoverflow.com/questions/22952287/how-to-upgrade-openssl-in-centos-6-5-linux-unix-from-source |
16,420,092 | How to make Python script run as service? | I want to run a python script in a CENTOS server: #!/usr/bin/env python import socket try: import thread except ImportError: import _thread as thread #Py3K changed it. class Polserv(object): def __init__(self): self.numthreads = 0 self.tidcount = 0 self.port = 843 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self.sock.bind(('100.100.100.100', self.port)) self.sock.listen(5) def run(self): while True: thread.start_new_thread(self.handle, self.sock.accept()) def handle(self,conn,addr): self.numthreads += 1 self.tidcount += 1 tid=self.tidcount while True: data=conn.recv(2048) if not data: conn.close() self.numthreads-=1 break #if "<policy-file-request/>\0" in data: conn.sendall(b"<?xml version='1.0'?><cross-domain-policy><allow-access-from domain='*' to-ports='*'/></cross-domain-policy>") conn.close() self.numthreads-=1 break #conn.sendall(b"[#%d (%d running)] %s" % (tid,self.numthreads,data) ) Polserv().run() Im using $ python flashpolicyd.py and it works fine... The question is: How to keep this script running even after I close the terminal(console)? | How to make Python script run as service? I want to run a python script in a CENTOS server: #!/usr/bin/env python import socket try: import thread except ImportError: import _thread as thread #Py3K changed it. class Polserv(object): def __init__(self): self.numthreads = 0 self.tidcount = 0 self.port = 843 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self.sock.bind(('100.100.100.100', self.port)) self.sock.listen(5) def run(self): while True: thread.start_new_thread(self.handle, self.sock.accept()) def handle(self,conn,addr): self.numthreads += 1 self.tidcount += 1 tid=self.tidcount while True: data=conn.recv(2048) if not data: conn.close() self.numthreads-=1 break #if "<policy-file-request/>\0" in data: conn.sendall(b"<?xml version='1.0'?><cross-domain-policy><allow-access-from domain='*' to-ports='*'/></cross-domain-policy>") conn.close() self.numthreads-=1 break #conn.sendall(b"[#%d (%d running)] %s" % (tid,self.numthreads,data) ) Polserv().run() Im using $ python flashpolicyd.py and it works fine... The question is: How to keep this script running even after I close the terminal(console)? | python, linux, centos | 58 | 150,895 | 5 | https://stackoverflow.com/questions/16420092/how-to-make-python-script-run-as-service |
14,802,807 | compare file's date bash | I'm working on a tiny dropbox-like bash script, how can I compare the dates of 2 files and replace the old one(s) with the new one without using rsync is there any simple way to process this? can the SHA1 help me with knowing the newer? | compare file's date bash I'm working on a tiny dropbox-like bash script, how can I compare the dates of 2 files and replace the old one(s) with the new one without using rsync is there any simple way to process this? can the SHA1 help me with knowing the newer? | linux, bash, centos | 57 | 48,843 | 4 | https://stackoverflow.com/questions/14802807/compare-files-date-bash |
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 12