Consequence of blocking outgoing UDP 68->67 (DHCP client)? Posted: 16 Oct 2021 10:15 AM PDT I have a server that receives its IP address by DHCP. This seems to work and the connectivity is working (at the moment). However, I have not rebooted since installing a new /etc/sysconfig/iptables file so I could lose big upon the next reboot. I have noticed that my firewall blocks outgoing UDP DHCP connections like this one: [22994.373788] Firewall: *UDP_OUT Blocked* IN= OUT=enup0 SRC=$OUR_IP DST=$DHCP_SERVER_IP LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=53942 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0 This is presumably some DHCP client command like the request for a renewal of the DHCP lease? What happens if I block this outgoing request? If that is DHCP server implementation dependent: Does perhaps an RFC document demand I do not block this? Related: Does the firewall rules get initialised from /etc/sysconfig/iptables (by iptables.service ) before or after the network is brought up during boot? I wish to block as much as possible otherwise I would just allow it instead of asking here. |
Messed up my mouse config Posted: 16 Oct 2021 09:57 AM PDT I modified something in some config in May, then went to summer activities now I am back to my PC and I just found my mouse wheel behaves strangely. When I rotate it upwards everything is fine, it scrolls up, when I rotate it downwards it seems to be sending events for UP and for DOWN randomly and everything just randomly jumps on screen instead of scrolling in one direction. This behavior is the same for xterm, firefox, gnome programs, geany, mplayerc. For mplayerc and other players music/video scrolls randomly back and forth. So again, only rotate-wheel-dowm is broken, rotate-wheel-up is working perfectly. I tried to connect different mouses from various vendors, both USB and wireless, they all behave the same weird way so it is not a mouse hardware failure, neither it is an xinput setting for a particular device I believe because they are set per a specific hardware mouse, isn't it? The same mouses work fine when connected to my smart tv so mouses are OK as devices. Back in spring I was trying to make my Linux behave as if it had mouseimp Windows program installed, or like firefox extension drag-is-scroll, or more modern ScrollAnywhere for Firefox, to be precise I wanted this effect system wide when you press a mouse button and move the mouse something scrolls. I failed to achieve this but messed up my mouse instead. I do not remember what exact configs I touched because it was months ago, I remember googling for hours and trying random things, they did not enable drag-is-scroll behavior and at the time it seemed they caused no effect at all, now it's obvious my attempts broke my mouse behavior, and now it is too late I cannot remember what exactly I did so I cannot undo it. I remember sudo editing of files, trying something from github, clicking various buttons in the gnome preferences application maybe something else. Any advice how to fix this problem? I am already thinking about reinstalling my Ubuntu because it this, this is something I would like to avoid of course. My system is AMD based PC with Ubuntu 20.04. |
Linux "dialog" using --checklist option Posted: 16 Oct 2021 09:47 AM PDT How can I make dialog remember previous selections from --checklist and have it displayed the next time the dialog script is run without much complex script writing? Cannot find a simple way via dialog options. |
return row with max value on partition column Posted: 16 Oct 2021 09:35 AM PDT input files two columns 2020-12-23 1 2020-12-23 2 2020-12-23 3 2020-12-29 1 2020-12-31 1 2020-12-31 2 expected output 2020-12-23 3 2020-12-29 1 2020-12-31 2 how can it can be achieved in awk or other |
qemu: i specify 2 ide drives, but a third cdrom magically appear Posted: 16 Oct 2021 09:15 AM PDT Simple question: I specify 2 ide drives, one is cdrom, other is hard disk qemu-system-x86_64 -m 2048 -drive file=debian-10.0.0.iso,if=ide,index=1,media=cdrom -drive file=disk.img,if=ide,index=0,media=disk -boot d --enable-kvm -device pcnet,netdev=network0,mac=****** -netdev tap,id=network0,ifname=tap1,script=no,downscript=no the system run ok, but when I open a shell I see three block devices one is sda, is the hard disk, is ok two is sr0 and is the cdrom, is ok third is sr1 and is recognized as cdrom without medium! The question is: where the sr1 came from? I have tried Debian and Slackware cd, and both report the sr1 drive. |
Does pcregrep (or pcre2grep) have the equivalent of grep's --max-count option? Posted: 16 Oct 2021 10:18 AM PDT Take the following file : aaa bbb XXX ccc ddd eee XXX fff ggg I'd like to print, with pcregrep , all lines until the first one containing XXX : aaa bbb XXX Is it possible (with pcregrep or pcre2grep ) ? I achieved this : $ pcre2grep -nM '(.|\n)*?XXX' file 1:aaa bbb XXX 4:ccc ddd eee XXX Is there a way to quit after the first match ? It seems that pcre2grep doesn't have a --max-count option like grep has. Nota : I'm aware that there are better tools to get the desired result (sed , among others), but I'm not looking for alternate solutions here. My question is about pcregrep or pcre2grep , I'd like to know if there is a way to emulate grep 's --max-count option. |
isc-dhcp 4.2.5 -- does it have support of dhcp-client-identifier and vendor-class-identifier? Posted: 16 Oct 2021 08:03 AM PDT I have isc-dhcp-4.2.5 server and client installed on two CentOS-7.4 boxes. I know this is quite old distro, but I can't change it for various reasons. Dhcp server configuration: option domain-name "mydomain.org"; option domain-name-servers ns1.mydomain.org, ns2.mydomain.org; default-lease-time 600; max-lease-time 7200; log-facility local7; option space myspace; option myspace.node-ip code 1 = ip-address; # Tell the server to return vendor-specific information option dhcp-parameter-request-list 43; class "vendor-classes" { match option vendor-class-identifier; } subclass "vendor-classes" "my-vendor-class-ID" { vendor-option-space myspace; option myspace.node-ip 10.5.6.7; } subnet 10.0.0.0 netmask 255.255.255.0 { range 10.0.0.50 10.0.0.60; option routers 10.0.0.254; } Dhcp client configuration: interface "veth0" { send dhcp-client-identifier "my-client-ID"; send vendor-class-identifier "my-vendor-class-ID"; send dhcp-lease-time 900; } I'm seeing two problems: - The client fails to send options
dhcp-client-identifier and vendor-class-identifier , tcpdump does not show those - The server fails to send Option-43
It's almost that this version does not support dhcp-client-identifier and vendor-class-identifier at all? What am I doing wrong? PS. Latest ISC-dhcp (ver. 4.4.2) built from https://gitlab.isc.org/isc-projects/dhcp has no these problems. |
How to configure hping3 command in Kali Linux to achieve exact packet loss? Posted: 16 Oct 2021 07:22 AM PDT My lecturer has set up a test network environment for us students to Dos a HTTP server on Port 80. The website is vulnerable and is prone to a Dos attack obviously. So he wants us to configure the hping3 command such that the packet loss is 40%, 60%, and 85%. How do I achieve this? Note: We students are testing in a isolated environment our lecturer has set up and we are using VMware to carry out our tests. Also, if I have not used the correct terminology or if I sound incorrect, please correct me as I am still learning. Thanks :D Examples: hping3 -S -p 80 --interval u10 x.x.x.x -c 1000 Key: x.x.x.x = Target IP of web server |
I'm running kali on WSL and have problems updating Posted: 16 Oct 2021 06:49 AM PDT I try running sudo apt-get update and I get this error. Get:1 http://kali.download/kali kali-rolling InRelease [30.6 kB] Err:1 http://kali.download/kali kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org W: Some index files failed to download. They have been ignored, or old ones used instead. Then I try running sudo wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add I get this error. E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation Help please! |
Save all terminal output to a file, after the fact Posted: 16 Oct 2021 06:45 AM PDT This: Save all the terminal output to a file Except after the fact. Meaning that instead of preparing to record or pipe all output to a file, I am dealing with output that has already taken place, and that I omitted to record to a file. Rather than to spend minutes scrolling up 7000 lines of output, copying and pasting that to a document, I have to think there is an easier way to get the current output. Considering that this may depend upon the terminal emulator, I am using Konsole and zsh in this case. How can I save the terminal output to a file after the fact? |
Want to install MYSQL 5.7 in Ubuntu 20.04 : GET ERROR Start request repeated to quickly Posted: 16 Oct 2021 09:35 AM PDT I need to install MySQL 5.7 on an Ubuntu 20.04: I did this here. Before I did apt purge mysql-client mysql-server which removed the version 8.0.X from my system. But at installing the apt install mysql-community-server=5.7.35-1ubuntu18.04 I get the error: -- Automatic restarting of the unit mysql.service has been scheduled, as the result for -- the configured Restart= setting for the unit. Okt 16 13:17:11 walter-CLS systemd[1]: Stopped MySQL Community Server. -- Subject: A stop job for unit mysql.service has finished -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- A stop job for unit mysql.service has finished. -- -- The job identifier is 12725 and the job result is done. Okt 16 13:17:11 walter-CLS systemd[1]: mysql.service: Start request repeated too quickly. Okt 16 13:17:11 walter-CLS systemd[1]: mysql.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- The unit mysql.service has entered the 'failed' state with result 'exit-code'. Okt 16 13:17:11 walter-CLS systemd[1]: Failed to start MySQL Community Server. -- Subject: A start job for unit mysql.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- A start job for unit mysql.service has finished with a failure. Does anyone know what I could to to fix this? Edit: My Reason for Using MySQL 5.7 on 20.04 Ubuntu is my old System is a Bionic 18.04 and there is Typo3 {7.6.2] and that works only with MySQL 5.7 and not MySQL 8.0.X which is on Ubuntu 20.04. If now was to bing the MySQL 5.7 to run on my 20.04 computer, I would like to know How I could upgrade my Typo 7.6.20 MySQL-DBs on my new PC for working with that Typo3 suitable with MYSQL 8.0.X Here a list of compartibility: Typo3_vs_MySQL? THanks |
Finding duplicate aliases and functions in a script (.bashrc etc) Posted: 16 Oct 2021 06:13 AM PDT This site says that functions are faster than aliases, but he rightly points out that aliases are easier to understand - when you want something very simple and do not need to consider passing arguments, aliases are convenient and sensible. That being the case, my personal profile is about 1,000 lines and serves both as a source of functions and tools that I use a lot, and as a means of keeping techniques that I can refer to and reuse for other tasks, with both aliases and functions in there. A problem though is that aliases take precedence over functions, and re-definitions of aliases and functions can cause problems (e.g. if I have a function called gg and then later on in the script, by accident, I have an alias called gg - But also if a function is redefined later, again as a function, it overrides the previous definition). The profile loads, but I end up with problems. One solution could be to eliminate all aliases and only use functions (does anyone do that, I'd be curious to know, because if I want to do alias m=man that's more intuitive and sensible than function m() { man $@; } ?), but I still have the problem of function redefinitions in that case. Is there a way to parse a script with the goal of answering: "for each declaration of an alias or function, show me all lines that contain a re-declaration (either alias or function) of that item"? |
Colour distortion in new Fedora installations Posted: 16 Oct 2021 07:11 AM PDT I recently installed Fedora 34 (KDE) to a new computer. After a while, and very randomly the colors get very distorted, and text is harder to read. Black appears as greenish. Restarting the computer solves the issue temporarily. This has happened over both Wayland and X. The issue is replicated upon installations on two different computers, so I'm reasonably certain this is not purely a hardware issue, but I can provide any required further details about my machine. But I do not know how to even describe the problem clearly enough to find solutions. Any help would be appreciated. EDIT: I have attached the output of inxi -Fzx here |
Gnu sed can e execute a bash function increasing value Posted: 16 Oct 2021 08:52 AM PDT How gnu sed can e execute a bash function increasing a counter value as $ k(){ ((i++)); echo $i ;} ;export -f k $ i=; echo -e 'oAo\nooAo\nAo' | sed -E '/A/e k' 1 oAo 1 ooAo 1 Ao Fail instead of doing a counter correctly |
groff ms indentfirst and frenchspacing Posted: 16 Oct 2021 08:06 AM PDT I am typesetting drafts of my papers with the ms macro package, but in my language (Spanish) the custom is to indent all paragraphs and keep space regular after a period, contrary to US custom to noindent the first paragraph after a heading or a quotation and adding a space after a period. What is the ms equivalent to the TeX construct \usepackage{indentfirst} or \frenchspacing , to make the settings global? |
How is closing a terminal window different from killing/exiting? Posted: 16 Oct 2021 08:49 AM PDT I am trying to help a user at AskUbuntu with the following question, Exiting the terminal vs Closing the terminal Context:- I am running a process in bash with & appended i.e in background mode. The process has a while(1) i.e it will run forever. My bash is parent and my process becomes the child. I want to learn how Kernel handles the child when parent is terminated. Observations:- - If I exit the terminal (using
exit command from the terminal), /lib/systemd/systemd --user becomes the parent process of the child - If I kill the terminal process (using
kill ) from another terminal, same result as above - If I close the terminal using cross icon, child process gets terminated too
Question:- How is closing different from killing/exiting? I have written an answer, but feel that I do not really understand what is happening, and I think that several of you who help here at Unix & Linux know better than I and can explain what is happening. So please help us understand, by chipping in and write an answer (replacing my attempt at AskUbuntu). |
Error when trying compile kernel for OP5T Posted: 16 Oct 2021 07:18 AM PDT I'm trying to compile nethunter kernel for OP5T but when I try the command make I have the following error: root@kali:/# make oneplus5-stock_defconfig ./scripts/gcc-version.sh: line 25: /home/arter97/arm64-gcc/bin/aarch64-elf-gcc: No such file or directory ./scripts/gcc-version.sh: line 26: /home/arter97/arm64-gcc/bin/aarch64-elf-gcc: No such file or directory HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/bin2c HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf #configuration written to .config The path /home/arter97/arm64-gcc/bin/aarch64-elf-gcc doesn't exist on my computer. Does anyone knows what I'm doing wrong? |
Unable to install java on kali Posted: 16 Oct 2021 07:18 AM PDT I have a kali vm running with java 11 installed. I have tried to run sudo apt-get install openjdk-8-jdk . This gives me E: Unable to locate package openjdk-8-jdk . I have then looked around for a solutions, I found a few places showing something like this: sudo add-apt-repository ppa:openjdk-r/ppa but the add-apt-repository fails, it cannot find it. I then tried looking for fixes for this, and found: sudo apt-get install software-properties-common this works, and runs, but the former command still fails. What am I doing wrong? |
Sign and Publish Only if Syncronite.html Checksum Had Changed (Please share the fully written solution as I understand best this way) Posted: 16 Oct 2021 10:33 AM PDT #! /bin/sh USERNAME="styromaniac" ZERONET_ROOT_DIR="/home/${USERNAME}/ZeroNet" SITE_ADDRESS="15CEFKBRHFfAP9rmL6hhLmHoXrrgmw4B5o" V3_TRACKERS="127.0.0.1:43110/raw/13hNAdge5ntxJmcnKzAxeLCuyowJkdvFxF/trackers/v3_trackers.html" CLEARNET_TRACKERS="https://ngosang.github.io/trackerslist/trackers_all_ip.txt" OUTFILE="${ZERONET_ROOT_DIR}/data/${SITE_ADDRESS}/cache/1/_h_.html" TEMPFILE="${OUTFILE}.new" RESPONSE_CODE=$(curl --write-out "%{response_code}" "${CLEARNET_TRACKERS}" --output "${TEMPFILE}") # If something went wrong getting all-ip.txt if [[ ${RESPONSE_CODE} != 200 ]]; then # Erase the temporal file and exit rm -f "${TEMPFILE}" exit 1 fi # Replace the old file with the new one mv "${TEMPFILE}" "${OUTFILE}" # Download TORv3 trackers list curl ${V3_TRACKERS} > v3_trackers.html # Combine trackers lists _h_.html and v3_trackers into Syncronite.html cat v3_trackers.html _h_.html > Syncronite.html # Sign and publish ${ZERONET_ROOT_DIR}/zeronet.py siteSign "${SITE_ADDRESS}" --publish |
How do I make my wifi card available in Kali Linux [closed] Posted: 16 Oct 2021 07:18 AM PDT I am using Virtualbox to run a Kali Linux Virtual Machine. My network adapter is Intel (r) dual band wireless-ac 3168. When I start up my virtual machine, I am connected to the internet but Linux says I am using ethernet. I assume this is because I am connected on my host device. I have installed and extracted compact wireless and when I unload and then load it, wlan0 and wlan1 show. However, I am unable to connect them. In addition, when I scan using wlist wlan0 scanning and wlist wlan1 scanning , no results are found. Because of this, fern and other applications are near useless. I am using the wireless adapter on my host device, but when I disconnect on the host, nothing happens. I just lose connection on my VM. |
Return value vs return status of a coprocess Posted: 16 Oct 2021 07:45 AM PDT I don't understand this sentence about Coprocesses in the bash man page: Since the coprocess is created as an asynchronous command, the coproc command always returns success. The return status of a coprocess is the exit status of 'command'. What is the difference between a "success" return value and a "success/error" (0/non-0) exit status? How differently are they handled by the bash? And how can one catch them to see the difference? |
How change monitors from terminal ? "xrandr: Cant open display" Posted: 16 Oct 2021 10:03 AM PDT I'm booting Sparkylinux from a live-usb in a notebook with broken screen. There is a external monitor connected by VGA. The external monitor is booted dual with the notebook monitor And the external monitor resolution is booted with some issues. To fix it i need to put the external monitor as the primary monitor, or even better, shutdown the notebook monitor. In Ubuntu i can use Fn key to change monitors. In Lubuntu, even i cant see much, i can open the start menu, type monitor and change it manually. In Sparkylinux the special key dosen't work and start menu is tricky, so i cant access the monitor menu whithout seeing. So I'm trying xrandr to change it , but apearently i cant open the terminal ( ctrl+alt+t), the bad resolution sends it to another realm. So i used ctrl+alt+F1 to try xrandr , but for most but not all xrandr commands i get "xrandr: Cant open display". Like xrandr --listmonitors |
Timeshift trouble Posted: 16 Oct 2021 09:25 AM PDT I am running Mint 19.3, I need to restore my broken system. I booted up with a live usb and installed timeshift. When I pick a snapshot and click "restore" I get, "Error, Failed to mount devices". I have boot drive and home mounted. I tried several snapshots. |
Ansible lineinfile (white spaces and state changes) Posted: 16 Oct 2021 09:06 AM PDT We have a unique issue and we've spent some time understanding the problem but we are unsure with whether the approach we are taking is in fact correct. Our objective is to validate specific UNIX system files for example /etc/login.def and their specific values. For the purpose of our hardening requirements we would like to capture for example PASS_MAX_DAYS within the logins.def configuration file and report back its status as (Green Ok) or (Red or Yellow), meaning we need to check further. Our objective is not to make changes but to capture the state of such configuration files. Here is a code snippet: --- - name: My Machine hosts: localhost gather_facts: true tasks: - name: "PASS_MAX_DAYS - 90 Days - Validator" become: yes become_user: ansible tags: PASS_MAX_DAYS lineinfile: path: /etc/login.defs regex: '^PASS_MAX_DAYS\s+' line: 'PASS_MAX_DAYS 90' state: present check_mode: yes register: PASS_MAX_DAYS_output The idea behind this is simple: Check the file if PASS_MAX_DAYS is set to 90 days, and if so, report back as (Green OK) or Skip without issues. If the value deviates from the 90 day value proceed to flag it as an issue (Red or Orange) and capture the value (using register/debug), output a meaningful msg to the executor and capture the value to a file. Note: We looked at when conditions but weren't to sure if this would be possible to use. We always had issues with the state of the output being set to "changed" with the msg "line replaced". Note: We need to keep the regex as generic as possible (why, you may ask) because some sys admins use single spaces, others use tabs and others use multiple spaces. So we would like to not care about how many spaces between each value because we would only like to match the values. |
How do I diagnose a failing nix-build? Posted: 16 Oct 2021 09:32 AM PDT How do I diagnose a nix-build failing? Currently I see output as: nix build -v warning: dumping very large path (> 256 MiB); this may run out of memory building '/nix/store/fdrm6kbm68vld3bhfjizv684ck725lyf-blog.drv'... builder for '/nix/store/fdrm6kbm68vld3bhfjizv684ck725lyf-blog.drv' failed with exit code 1; last 5 log lines: unpacking sources unpacking source archive /nix/store/s7r5vlvp49ad6a9d5hqhsiaxw691iyhf-Blog source root is Blog patching sources configuring [0 built (1 failed), 0.0 MiB DL] error: build of '/nix/store/fdrm6kbm68vld3bhfjizv684ck725lyf-blog.drv' failed I'd expect to find some logs / errors of why it failed to build? Following from https://stackoverflow.com/a/47264375/1663462: I've tried adding build-cache-failures = true; to the default.nix however I still see no output from: nix-store --read-log And nix-store --query-failed-paths results in: error: no operation specified Try 'nix-store --help' for more information. |
CentOS 7: Job for httpd.service failed Posted: 16 Oct 2021 06:07 AM PDT I have a CentOS 7 VPS where I am trying to install virtual host following the instruction from https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7. I have completed step five of this tutorial. Then when I try to restart apache I failed: $ sudo apachectl restart [sudo] password for student01: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. $ sudo systemctl status httpd.service -l ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since বুধ 2018-04-11 14:29:55 +06; 4min 13s ago Docs: man:httpd(8) man:apachectl(8) Process: 11116 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 11115 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 11115 (code=exited, status=1/FAILURE) এপ্রি 11 14:29:55 localhost.localdomain systemd[1]: Starting The Apache HTTP Server... এপ্রি 11 14:29:55 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE এপ্রি 11 14:29:55 localhost.localdomain kill[11116]: kill: cannot find process "" এপ্রি 11 14:29:55 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1 এপ্রি 11 14:29:55 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server. এপ্রি 11 14:29:55 localhost.localdomain systemd[1]: Unit httpd.service entered failed state. এপ্রি 11 14:29:55 localhost.localdomain systemd[1]: httpd.service failed. Now, What can I do? Edit /var/log/httpd/error_log [Sun Apr 08 03:23:02.040472 2018] [auth_digest:notice] [pid 20339] AH01757: generating secret for digest authentication ... [Sun Apr 08 03:23:02.041376 2018] [lbmethod_heartbeat:notice] [pid 20339] AH02282: No slotmem from mod_heartmonitor [Sun Apr 08 03:23:02.094944 2018] [mpm_prefork:notice] [pid 20339] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations [Sun Apr 08 03:23:02.094956 2018] [core:notice] [pid 20339] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Sun Apr 08 05:35:00.720095 2018] [autoindex:error] [pid 30351] [client 66.102.6.114:59512] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Sun Apr 08 09:42:05.222459 2018] [autoindex:error] [pid 30347] [client 52.34.24.33:31614] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Sun Apr 08 11:06:56.497939 2018] [autoindex:error] [pid 30790] [client 54.145.188.132:22136] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Sun Apr 08 14:13:12.731870 2018] [autoindex:error] [pid 32239] [client 185.198.167.29:51750] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Sun Apr 08 19:06:12.521882 2018] [autoindex:error] [pid 30348] [client 180.234.211.210:57961] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Sun Apr 08 19:06:15.004820 2018] [autoindex:error] [pid 30790] [client 159.203.81.93:36934] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: http://csedu.cf/noindex/css/open-sans.css [Sun Apr 08 21:20:59.825782 2018] [autoindex:error] [pid 1338] [client 66.102.6.114:52716] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 00:25:17.935192 2018] [autoindex:error] [pid 30348] [client 178.73.215.171:58579] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 02:50:04.593613 2018] [autoindex:error] [pid 30351] [client 141.8.142.139:50790] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 03:17:12.517868 2018] [autoindex:error] [pid 30347] [client 222.186.173.47:3128] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 04:10:37.253275 2018] [autoindex:error] [pid 31639] [client 164.132.91.1:38580] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 05:38:34.833406 2018] [autoindex:error] [pid 30350] [client 66.249.70.23:49821] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 05:42:25.297309 2018] [autoindex:error] [pid 30790] [client 66.102.6.118:49432] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 08:37:04.505363 2018] [autoindex:error] [pid 1338] [client 66.249.64.17:47360] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 11:34:29.890432 2018] [autoindex:error] [pid 30349] [client 60.10.114.129:4892] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 12:21:16.013396 2018] [autoindex:error] [pid 30351] [client 66.249.64.147:61628] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 13:16:44.877416 2018] [autoindex:error] [pid 30348] [client 66.249.64.18:48720] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 13:28:05.782783 2018] [autoindex:error] [pid 31639] [client 54.67.59.131:47628] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 15:59:59.764704 2018] [autoindex:error] [pid 30349] [client 66.102.6.116:50307] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 20:48:48.419540 2018] [autoindex:error] [pid 30349] [client 211.23.154.138:44382] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 20:49:19.596952 2018] [autoindex:error] [pid 30790] [client 146.185.223.240:61291] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 20:49:25.365282 2018] [:error] [pid 32239] [client 146.185.223.240:53694] script '/var/www/html/xmlrpc.php' not found or unable to stat [Mon Apr 09 20:49:30.881307 2018] [autoindex:error] [pid 1338] [client 146.185.223.240:57697] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 21:59:59.860423 2018] [autoindex:error] [pid 30790] [client 52.41.211.72:54578] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 22:40:17.025377 2018] [autoindex:error] [pid 32239] [client 66.102.6.118:63371] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Mon Apr 09 23:54:26.754931 2018] [autoindex:error] [pid 30350] [client 141.8.142.139:44732] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 02:04:12.364159 2018] [autoindex:error] [pid 30350] [client 66.249.64.17:46304] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 04:31:13.380666 2018] [autoindex:error] [pid 30349] [client 66.249.79.21:45988] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 05:11:35.587141 2018] [autoindex:error] [pid 32239] [client 66.249.79.19:52379] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 05:41:26.176137 2018] [autoindex:error] [pid 1338] [client 66.102.6.118:51864] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 05:57:36.520454 2018] [autoindex:error] [pid 30347] [client 66.249.79.110:36194] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 12:44:25.251573 2018] [autoindex:error] [pid 32239] [client 52.34.24.33:60587] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 13:08:39.896323 2018] [autoindex:error] [pid 1338] [client 141.8.142.139:53710] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 13:31:14.603115 2018] [autoindex:error] [pid 30790] [client 180.234.211.210:44472] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 13:42:16.181640 2018] [autoindex:error] [pid 30351] [client 107.170.192.57:54176] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 16:31:20.752769 2018] [autoindex:error] [pid 30349] [client 196.52.43.109:6666] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 17:43:24.572519 2018] [autoindex:error] [pid 1338] [client 66.102.6.118:64283] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive [Tue Apr 10 23:32:45.653283 2018] [mpm_prefork:notice] [pid 20339] AH00170: caught SIGWINCH, shutting down gracefully (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file /var/www/example2.com/error.log. AH00015: Unable to open logs |
Need to check whether the CD-ROM is loaded or not Posted: 16 Oct 2021 08:46 AM PDT I checked the file /proc/sys/dev/cdrom/info $ cat /proc/sys/dev/cdrom/info CD-ROM information, Id: cdrom.c 3.20 2003/12/17 drive name: sr0 drive speed: 1 drive # of slots: 1 Can close tray: 1 Can open tray: 1 Can lock tray: 1 Can change speed: 1 Can select disk: 0 Can read multisession: 1 Can read MCN: 1 Reports media changed: 1 Can play audio: 1 Can write CD-R: 1 Can write CD-RW: 1 Can read DVD: 1 Can write DVD-R: 1 Can write DVD-RAM: 1 Can read MRW: 1 Can write MRW: 1 Can write RAM: 1 I was not able to find which column should I take into consideration to confirm the CD-ROM is loaded. And also google searches told me check the value of file /proc/sys/dev/cdrom/lock and this value was 1 in my case. How this should be interpreted as? Or is there any other way to get this information. |
Open Port 25 CentOS 6 with Plesk Posted: 16 Oct 2021 08:09 AM PDT I've bought an unmanaged dedicated server. Mainly to help me learn. My email isn't working and the host support have told me I that need to open port 25 to enable smtp. Note I can't send or receive email. I've used SSH to login and I've tried a few of the sample snippets of code from this forum but I just get a command not found back. My server is running centOS and it has a Plesk GUI. I've connected to the server using ssh root@myipaddress |
No comments:
Post a Comment