date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,463,327,505,000
when I try to list directories through Options Indexes-option with SetHandler application/x-httpd-php enabled in my apache-config I get a attempt to invoke directory '/srv/http' as script error in the apache-error-log or a less verbose 403 Forbidden error when I try to access a directory from the browser. This see...
Two things: You need a <FilesMatch> around the SetHandler directive: <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> It appears you can make just about anything into a "PHP file" with the <FilesMatch> directive. After that, I don't think you need an asterisk on the AddHander cgi directive: Ad...
"attempt to invoke directory '/srv/http' as script" error with "SetHandler application/x-httpd-php" enabled in apache config on archlinux
1,463,327,505,000
I am using CentOs-6.7 (Installed Java latest version) and downloaded the solr-5.3.2.tgz from http://a.mbbsindia.com/lucene/solr/5.3.2/. Then i unziped to my directory /opt/solr-5.3.2 and then i started solr using the command bin/solr start -e cloud -noprompt After that solr started fine without any issue and then ...
You need to add the IP address in the firewall (e.g. iptables in CentOS machines). Once you configure the IP in that table, you are able to access the machine.
Solr Running fine but am getting "SolrCore Initialization Failures" when i tried to open my console "localhost:8983"
1,463,327,505,000
Will VyOS still work right if I install Shorewall-lite on it? Shorewall seems like an easier way to setup a network, but VyOS seems pretty great for day-to-day management of a router / firewall. So I was wondering if they are compatible. From what I understand about Shorewall, it just generates a bunch of iptables ...
Shorewall-lite is a very light weight tool to manage a firewall configuration generated on another server. It is not suitable for setting up the configuration, but does manage the generated configuration. It runs quite well on OpenWRT, which is a distribution intended for routers. The current version of Shorewall ...
Can Shorewall be used on VyOS?
1,463,327,505,000
How can I reliably find the location of httpd.conf? I am looking for a solution, or if necessary a combination of things that will find the location of httpd.conf quickly and reliably on as many Operating Systems as possible. Thanks!
For me, apachectl -V works on both OSX and FreeBSD. If anybody has a better answer or a continuation of this answer for other operating systems, feel free to share.
Where is httpd.conf?
1,463,327,505,000
This is my .gitconfig as it stands now :- $ cat .gitconfig [user] name = Shirish Agarwal email = [email protected] [credential] helper = cache --timeout=3600 This is in - $ pwd /home/shirish Obviously I have obfuscated my mail id a bit to prevent spammers etc. from harvesting my mail id here. But let'...
I don't think that's possible. There are global configuration options and per-repository-options. If you use different email addresses in different repositories, you need to set them on a per-repository basis. You can configure an individual repo to use a specific user / email address which overrides the global config...
How to have a global .gitconfig for 2 or more git repos?
1,463,327,505,000
I have an apache2.4 server. On some page, I have a link to a log file. I would like to show the file content in a browser when the link is clicked, rather that serving the file do download.
You can try this in .htaccess or apache config. AddType text/plain .log
Apache2.4- how to serve file as html
1,463,327,505,000
What config file stores the settings for KDE window settings, sizes, etc.?
Some common ones for KDE4 are in ~/.kde4/share/config/kwinrc. But some configs are app-controlled. Many apps have their config files in the same dir.
KDE config file for window settings, sizes, etc.?
1,463,327,505,000
Using Ubuntu 14.04LTS and having a problem with changing DNS. I can change servers in the /etc/resoolvconf/resolv.conf.d/base and head files and restart resolvconf using sudo resolvconf -u and it will update /etc/resolv.conf with the changes I made. I can then dig for a hostname and it tells me its using the servers I...
My /etc/dhcp/dhclient.conf file uses the following configuration, notice the supercede line # Configuration file for /sbin/dhclient, which is included in Debian's # dhcp3-client package. # # This is a sample configuration file for dhclient. See dhclient.conf's # man page for more information about the syntax of t...
How to force nm-tool to update its DNS servers
1,463,327,505,000
I have a CentOS 6 server here in our IT dept. and I want to install Nagios on it for some more network and enterprise insight. It has a internal IP that matches the network scheme as well as a hostname "Nagios". I installed httpd services to get apache and after I restarted the server and try to go look for the test l...
k, so in /etc/sysconfig/network, you want to change HOSTNAME=Nagios to be HOSTNAME=Nagios.yr.domain.name (reboot) and then in /etc/hosts, you want to remove the line nagios.localhost.com 172.16.22.249 and change the line 172.16.22.249 nagios.localhost.com to read 172.16.22.249 nagios nagios.ur.domain.na...
CentOS server to be used to internally issues
1,463,327,505,000
I have Raspberry Pi B+ with Arch Linux installed and at boot time, apache web server does not start: [xxx@rpi ~]# systemctl status -l httpd * httpd.service - Apache Web Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 197...
There's a pretty simple fix to this that worked for me. It requires editing the /etc/hosts file, which is always to be avoided if possible, but it fixed all problems that I have. This error will occur if anything tries to access the internet and get back information, including Apache, Eclipse, and other applications. ...
arch linux apache start at boot crash
1,463,327,505,000
On httpd 2.4 alias /repo /repos <Location /repos> Require ip 192.168.0.7 </Location> I can reach repos but not repo (403 forbidden). If I use directory instead of location nothing changes. Why?
Solution found. Need options indexes correct syntax alias /repo /var/www/htdocs/repos <Location /repos> Require ip 192.168.0.7 </Location> <Location /repo> options indexes Require ip 192.168.0.7 </Location>
HTTPD/apache 2.4: strange problem with alias
1,463,327,505,000
I have installed MySQL 5.1.73-community edition in my Oracle LINUX 5 server. I am able to start / stop and execute MySQL commands. But, I am unable to locate the MySQL installation directory as well as my.cnf file where I can change the configuration as per my requirements.
#locate my.cnf This command will help you to find the path of the file.
MySQL 5.1.73 - community edition : Where is MySQL configuration file?
1,463,327,505,000
I 'm trying to configure kernel via make menuconfig [Angstrom distribution] on BeagleBoard-xM, but I get these errors: make: Warning: File `/usr/src/linux-2.6.32.61/arch/arm/Makefile' has modification time 11647 s in the future make[1]: Warning: File `scripts/Makefile.host' has modification time 11529 s in the future ...
Problem solved after installing cpp: opkg install cpp cpp-symlinks.
cc1 not in the PATH
1,463,327,505,000
I need a script that detects the computer joined the same home network and standardize its folder structure. For example If there's A, B and C computers in a network which are configured to have a standard folder structure and connected to a NAS to store the downloaded files. It does not matter I downloaded a file fro...
At this point I would start looking at configuration management software, such as e.g. puppet, cfengine or chef. These programs are built to solve that problem even in large server parks. They may be a bit of overkill when you're only using it for your home environment, but if you're interested in unix from a programm...
Prepare a computer for being firstly used in my home network with a BASH script is possible?
1,463,327,505,000
I have a following setup: 1 postfix server: a.example.com that needs to accept all emails for any subdomain on example.com (*@*.example.com) and delivers to mailman account and also send emails to any email account (gmail, yahoo, etc) including *@example.com. 1 hosted exchange: exch11.hosted.com for example.com email...
First of all i am not sure if this will work but i hope it will help get you started: Remove example.com from mydomains as this postfix instance does not handle the mail for it directly. Add virtual_alias_domains = .example.com this should solve your subdomain issue Add relay_domains = example.com and specify an expl...
Postfix Configuration - different servers for subdomains and domain
1,463,327,505,000
after attempting sudo apt upgrade on a fresh install of parrot os, new kernel update is present but trying to boot into it from grub gives gives me a kernel panic. here is what i tried and with what errors ive been getting: The following partially installed packages will be configured: apache2 linux-headers-6.5.0-13...
Non-configured linux-image and linux-headers are solved by: Booting the previous kernel Removing dkms Upgrading the kernel Reinstalling dkms Building the rtl8188eus To solve the following error: dpkg: error processing package apache2 (--configure): installed apache2 package post-installation script subprocess retur...
kernel panic after after parrotOS upgrade
1,463,327,505,000
I downloaded vsftpd-3.0.5.tar.gz and successfully compiled it to generate vsftpd on computer A. Then I copied vsftpd to another computer B and created a new file called vsftpd.conf on computer A. Then, I started vsftpd and could hear the service start through the command netstat -tulnp | grep 21. However, at this poin...
My problem has been superficially solved by me, but I am still confused. I just want to log in with the username root or other newly added username. Why do I have to execute adduser nobody before adding a new username? # adduser nobody Changing password for nobody New password: Bad password: too weak Retype password: ...
Would vsftpd not default to using the system username and password?
1,694,680,815,000
My PC is running EndeavourOS Linux with KDE Plasma as the DE. I have recently discovered the concept of a compose key while skimming through the colemak website. In the section where it's being introduced the author mentions: You can edit the tables and add pretty much anything though! While after a bit of searching...
Thank you all very much for the plentiful advice... Found it out myself. For future reference in case anyone else has the same issue, check this out: https://userbase.kde.org/Tutorials/ComposeKey#Optional_Tweaking_of_XCompose_Map In summary, or in case that guide is ever unavailable: Create the file ~/.XCompose Paste...
Changing compose Tables to add new entries?
1,694,680,815,000
switched from windows to linux yesterday after 10yrs Trying to learn linux and it's damn hard just to do normal things my poor 3 brain cells . I literally can say I'm going insane. Build: Intel i3 530,DH55TC MB no graphic/sound card. OS Debian 12| PulseAudio 16.1 Mapped my line in ,line out, Mic from pc to 5.1 surroun...
Hope this helps for someone. First make sure copy /etc/pulse/daemon.conf & default.pa files to ~/.config/pulse folder go to daemon.conf in config/pulse folder, uncomment only default channel map and set it as following for 5.1: front-left,front-right,rear-left,rear-right,front-center,lfe for 7.1: front-left,front-r...
Front center mapped as LFE, LFE as front center on my 5.1 Debian 12
1,694,680,815,000
When solving a problem, requires enabling kernel options e.g. with menuconfig. How do I know which to enable/disable?
I normally Google for it. Sometimes I even check the corresponding patches to understand what the option is about. There's no central place or authority which has this information. The kernel GIT tree, GIT logs and LKML are the primary means/sources of getting information about kernel options/features: https://git.ke...
How should I know which kernel options to use?
1,694,680,815,000
No matter what I do, my i3 config keeps displaying different colors on active windows. This is what it looks like (notice the lighter sidebar compared to the title bar): And this is the relevant part of my config file: set $r "#b60000" set $w "#f4f6ff" set $g "#23252e" set $l "#555555" set $y "#ffff00" set $b "#00000...
Accidentally discovered the issue is caused by compton's inactive-dim option. Anything higher than zero will cause the issue, so setting inactive-dim = 0.0 solved it. Perhaps this can be worked around by adding the borders to fade-exclude, but I won't bother with this for now.
i3: Title bar and border colors not matching
1,694,680,815,000
There are a lot of configuration files in /etc. Some of them are used by installed applications like samba, but is there confs that are directly looked up by the kernel? For example passwd, groups, hostname and so on? And if so which of them are directly for the kernel?
A few words about the Linux kernel and its role. By itself the kernel does literally nothing. I'm not joking. When you load it, it tries to initialize your hardware and then it tries to execute /sbin/init from the root filesystem (something which is mounted at /), that's it. There's a caveat though. The kernel itself ...
What configuration files does linux kernel lookup directly in root filesystem?
1,694,680,815,000
I had installed tigervnc for my RHEL 7. After that I forgot the password when was trying to connect via VNC viewer, so I uninstalled the package and removed the /usr/bin/vncpasswd file along with it. I tried to re-install the package and run the command vncserver. It it keeps on failing saying vncserver: couldn't find...
After digging around I found this. I found the link this. You have to uninstall the tigervnc-server Using the following command # sudo yum remove tigervnc-server After the uninstallation of the package is complete Re-install the tigerVNC # sudo yum install tigervnc-server # systemctl daemon-reload # vncpasswd root ...
VNC server fails to start with an error vncserver: couldn't find "/usr/bin/vncpasswd
1,694,680,815,000
I want to configure my Zathura so that when I open a document automatically the size of the page of pdf adjusts to the size of the window. Practical example If i close the Zathura like this: When i open it again it stays the same size. I want that when I open it again it automatically adjusts to the width of the wind...
I was also looking for a solution to this, and like you, I couldn't get adjust-open to work either. I also couldn't find any discussion about this in the Zathura issue tracker. The other answer mentioning set adjust_window width doesn't work. Unfortunately, I couldn't find a solution within Zathura itself, but after s...
Make Zathura open by default a document with the window size
1,694,680,815,000
O.k. Due to my cable company mistakenly cutting the line for my internet connection I am stuck with using my phone tether to get internet access. They say it will be two to three weeks before they can fix it. A month is longer than I'm really willing to wait. my only other option is DSL and I don't have a phone line i...
As I have been informed that a comment is not an answer... I solved my issue with the terminal, not sure about the Software Manager as I know how to install software with the Terminal making that piece irrelevant as I have access to the whole system. The solution I used is located here; this has only been tested with ...
Tethering android phone
1,694,680,815,000
I have a pc with debian 9 stretch and a router (Nano Pi r4s with openwrt) both with bind9. I have set the min-cache-ttl parameter of 80000 seconds on debian stretch, and when i try to set it also on the nano pi, it tells me that the maximum can reach 90 seconds !! How is it possible? How can I set a higher value ?? Th...
How can I set a higher value ? Get bind-9.14 sources, change the value of the MAX_MIN_CACHE_TTL and compile the bind package for yourself How is it possible? Debian Before bind-9.13 Debian had their own patch 0003-Add-min-cache-ttl-and-min-ncache-ttl-keywords.patch that added min-cache-ttl feature to their bind pa...
bind9 configuration file PROBLEM
1,694,680,815,000
I am trying to emulate an mtp device with virt-manager. I see at https://qemu-project.gitlab.io/qemu/system/devices/usb.html that usb-mtp,rootdir=dir as in -device usb-mtp,rootdir=dir could be used to do this with qemu. How can I configure virt-manager to do this (custom xml welcome)?
I wasn't able to find an xml equivalent of the command, but I was able to change the xml to run the command directly. I needed to insert xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" in the beginning <domain> element and kept the existing type="kvm" and put <qemu:commandline> <qemu:arg value="-device"/...
How to emulate usb-mtp device with virt-manager?
1,694,680,815,000
I created a partition called sdb1 in fat32 and created 3 folders within a main folder however I wanted the 3 folders to have different permissions. I tried to make an ana folder with all permissions, the marco with permissions for the user and group to execute and the opencloud with permissions for everything but the ...
First, you are using the FAT32 filesystem, which does not support Unix-style file ownerships and permissions. But because Unix-like operating systems assume that all files must have an owner, group and permissions, the vfat filesystem driver fakes it - by assigning all files and all directories in the filesystem the s...
Fstab permissions
1,694,680,815,000
I reinstalled my Debian 11 and try configure it but everything goes wrong. I need to reset it as fresh new. What i tried :- dconf-cli command replace user .config with root .config but things didn't effect that much.
Best solution I found was from https://www.publish0x.com/a-bit-of-everything/restore-default-panel-in-lubuntu-2004-xmdjogv : $ sudo cp /usr/share/lxqt/panel.conf ~/.config/lxqt/ $ reboot This solution only modifies the relevant config file, and avoids re-creating the user.
how to reset debian 11 lxqt desktop configuration
1,694,680,815,000
I'm working on replacing remotes by using ir-keytable and ir-ctl commands, and rc_keymap TOML config files, as they have replaced lirc. I'm using Raspberry OS bullseye One of my remotes use an unknown protocol, so I decided to store the raw signals. I started by storing each button signal using ir-ctl -rMY_KEY.txt --m...
I had to read the C code of ir-ctl to take a guess, and found the answer. We can simply add a carrier field in he TOML file, to set this value. So, this does work [[protocols]] name = "MY_REMOTE" protocol = "raw" carrier = 38000
IR: Specifying a carrier value with rc_keymap
1,694,680,815,000
Using a script I want to modify the /etc/pam.d/common-session file based on the existing value: if session required pam_mkhomedir.so exist, then add skel=/etc/skel/ umask=0022 if it's not present, add entire line session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 if it's commented (#), uncomm...
Here's the solution with GNU sed. I don't know if it's the simplest, but I've reduced your logic a bit: #!/bin/bash if [[ $(grep "session required pam_mkhomedir.so" $1) ]] then $(sed -i 's/#\?session required pam_mkhomedir\.so.*/session required pam_mkhomedir.so skel=\/etc\/skel\/ umask=0022...
Add parameter to existing config file if present
1,643,600,211,000
I have a custom command line script that I want the users to access over SSH. For example when the user logs in with ssh user@server the user should be able to interact with the command line application instead of directly accessing /bin/bash (or any other shell). Are there any configuration changes that should be don...
sshd_config's ForceCommand is what you're looking for. Also, caveat: you say it's a shell script, so no matter what you do, it will still be executed by a shell. This need not be problematic, but it certainly means you need to think about what you do with user input – e.g. eval'ing it should be out of the question.
Using ssh authentication with a custom application
1,643,600,211,000
You will find that echo can't be disabled. It's ignored and it and does not throw any error either when you restart the php-fpm service. There's probably no real reason that would lead you to disabling echo but extra knowledge is always welcome. A test config can be: php_admin_value[disable_functions] = echo,exec,shel...
The reason ECHO is not affected is because ECHO is not a function. Info found in https://www.php.net/manual/en/function.echo.php echo is not a function but a language construct. Its arguments are a list of expressions following the echo keyword, separated by commas, and not delimited by parentheses. Unlike some other...
Why can't ECHO be disabled (disable_functions) in PHP-FPM pools or php.ini?
1,643,600,211,000
I have several squid issues, but one at a time: WARNING! Your cache is running out of filedescriptors This can happen when the proxy are getting a lot of calls, and can be fixed by increasing the limit, but mine isn't even "open" yet.. I found out that it's squid somehow constantly connecting to it self? (from my acce...
The bad guy in this scenario was actually a disabled option.. #tcp_outgoing_address 10.10.66.1 For some kind of reasons, the squid server didn't apparently know where to send the out-data, and sent it to itself, causing an neverending loop. by enabling this command, and point it to my external ip, by doing this, a loo...
Squid (proxy) is eating up its own resources (and other issues)
1,643,600,211,000
Is there a way to generate the default gpg.conf file? I can't find one in my fs with find / -name gpg.conf. I also tried checking gpgconf to see if it had an option for generating one, and looked for other gpg utils that come with the standard gnupg2 installation, but nothing stood out.
Note that the contents of gpg.conf are only used to set options that are not the default. So if you want the default options, there's no reason to have a gpg.conf file. That said, the correct placement for gpg.conf is in the .gnupg folder and it is easily created with touch ~/.gnupg/gpg.conf.
Generating default gpg.conf with default gnupg2 utils
1,643,600,211,000
Hello and thanks for clicking into this for a look. I noticed that in the arch wiki, under cryptdevice in dm-crypt you have this: cryptdevice This parameter will make the system prompt for the passphrase to unlock the device containing the encrypted root on a cold boot. It is parsed by the encrypt hook to identify wh...
You can use whatever you want for the dmname parameter, just make sure to use the same name when referring to the device at other places (e.g. in fstab) or use UUID. When opening the device manually using cryptsetup (cryptsetup luksOpen <device> <name>), you'll also need to specify a name, which also can be whatever y...
What is "dmname" in Arch linux grub config
1,643,600,211,000
(see update below) Using KDevelop 5.6.0 under Fedora with Plasma desktop. I pressed a wrong keyboard shortcut with Ctrl+Shift instead of Ctrl+Alt (or vice versa) and this "damaged" the bottom pane of the window where Konsole, compiling report, find across files, … display their results. Since I was in an editing task,...
I finally backed up all valuable files and directory and deleted my account. I recreated it and reloaded my files making sure that no .config/, .kde/, .cache/, .kdevelop/ or other hidden directory was restored. Of course, I lost my custom configurations but Plasma KDE and KDevelop are now behaving as expected. Just fo...
KDE Plasma or KWin: configuration file damaged - how to reset?
1,643,600,211,000
In HLWM unfocused windows have their opacity reduced to something like 80%-90%. I would like to remove this feature and I can't seem to find the correct config options for this. herbstlufwm version 0.8.3
Herbstluftwm doesn't handle window opacity, this is handled by the compositor, in my case picom. In picom.conf I have set inactive-opacity = 1 to obtain the desired outcome.
How to set herbstluftwm window transparency?
1,643,600,211,000
Here I have installed packetbeat. So in the time learning the configuration for packetbeat I saw a file fields.yml in the directory /etc/packetbeat. I tried to get any information about that file but do not get source..... Please can anybody tell me how work that file, or send any documentation?
To preface this, I'm not a packetbeat user, but I have used heartbeat, winlogbeat, filebeat, etc... Generally speaking fields.yml contains fields that your beat specifically uses. Some of these fields are configured to certain values by default, for example "name" which defaults to your server's hostname, @timestamp w...
What is fields.yml file
1,643,600,211,000
I installed fail2ban but When I enter fail2ban-client status in the Linux terminal, I get the following warnings: fail2ban.configreader [1616]: ERROR Found no accessible config files for 'filter.d/murmur' under /etc/fail2ban fail2ban.configreader [1616]: ERROR No section: 'Definition' fail2ban.configreader [1616]: ER...
I solved the problem. The problem was that the fail2ban folder was empty in the path / etc / fail2ban. I downloaded the pack from the official site fail2ban.org and transferred the contents of this pack to / etc / fail2ban.
How to configure fail2ban file?
1,643,600,211,000
I would like to have auto-completion on the geany text editor (no, it's not an IDE) and for that you use .tags files. There's a plugin that creates .tags files for your programs, but I need to make one for an external C++ library (SFML, more specifically). The goal is to have geany display all the possible classes whe...
Ok I found the solution. After searching a bit through my folders and reading some geany documentation, I could figure out the following steps to create a library's .tags file. Go to /usr/include/ and search for the library. In my case, it was SFML so I found the folder SFML and in there I saw all the files related t...
How can I make a geany .tags file for a C++ library?
1,643,600,211,000
I have a system with both a public (e.g server1.foo.bar) and privately-resolvable (e.g. server1.internal.foo.bar) DNS name. SSH connections are only possible via the private IP, but I always think of these hosts in terms of their public name. I would like to: connect to the right IP regardless of whether I remember t...
I figured out a working method. It's a bit ugly, but it does work. This leverages the ProxyCommand directive (see manpage) combined with a small bash helper script. Add sections like this to ~/.ssh/config — one for each domain you want remapped: Match final host="!*.corp.foo.com,*.foo.com" ProxyCommand ssh_ext2i...
How can I configure ~/.ssh/config such that `ssh foo.bar` results in a connection to `foo.internal.bar`?
1,643,600,211,000
I want to customize my Zathura to allow me to type #name_of_a_bookmark, hit Enter and get sent to this bookmark. Based on the answer of another question on this site I figured out that this can be done using the map command in the zathurarc file and the command should be similar to this: map # focus_inputbar ":blist "...
Simply escaping it with a backslash works. map \# focus_inputbar ":blist "
How to bind a command to the # symbol in zathura
1,643,600,211,000
I'm trying to script changes in a config file (/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla), which boils down to: [Update already installed software] Identity=unix-group:admin;unix-group:sudo Action=org.debian.apt.upgrade-packages ResultActive=yes [Printer administration] Identity=unix-group:...
Sed is line-based by default - to do multi-line matches you would need to add lines to the pattern space explicitly (using the N command for example). Instead you could do something like this which is still line-based but steps forward to load the line of interest: $ sed '/^\[Disable hibernate/{n;n;n;/^ResultActive/s/...
Unable to change config file with sed using groups and multiple lines
1,643,600,211,000
My PC freezes a third time and I have to shut it down forcibly. Why doesn't journalctl save the boot logs before forced shutdown? When I do journalctl --list-boots I only get the boot after crash. I'm not sorting well or misconfiguration? System: ArchLinux (5.4.8-arch1-1)
It depends on the freeze, and it's not clear to me what do you mean by "shut it down forcibly". If this means a power off, definitely, there is no way for your PC to sync data in a proper way. The recommended way to force reboot, is by using the magic SysRq key and the REISUBsequence. More details are at https://wiki....
Why journalctl don't save my logs of the boot before forced shutdown?
1,643,600,211,000
I've installed pgadmin4 through software manager in Linux Mint Tricia. Also I've installed Postgres10. But when I create a new database and try to restore newly created database. This error message is showing: /usr/bin/pg_restore file not found. Please correct the Binary Path in the Preferences dialog" I dont' know ...
You mention Linux Mint, which I believe uses Ubuntu packaging. According to the file list for the postgresql-client-10 Ubuntu Bionic package, the location of that program is /usr/lib/postgresql/10/bin/pg_restore. If you are using the Debian based Linux Mint, I think they use the same locations. If you installed postg...
'/usr/bin/pg_restore' file not found. Please correct the Binary Path in the Preferences dialog
1,574,272,699,000
Lets say I have 4 java instances running on my linux system, in separate directories, all of which have a config file named config.yml. I want to be able to edit 1 config.yml and have it copy across the multiple directories in real time. For example: ../dir1/config.yml ../dir2/config.yml ../dir3/config.yml ../dir4/co...
Use symbolic links Keep your /path/dir1/config.yml file and link the others ln -s /path/dir1/config.yml /path/dir2/config.yml ln -s /path/dir1/config.yml /path/dir3/config.yml ln -s /path/dir1/config.yml /path/dir4/config.yml those 3 lines are making "shortcuts" to the dir1 config. Then if you edit the file from any ...
Sync 1 config file amongst multiple directories
1,574,272,699,000
BusyBox v1.28.4 () built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M --------------------------...
# cd /etc/config # uci export 2>&1 | grep -C5 '^uci:' option ports '5190' option comment 'AOL, iChat, ICQ' config default option target 'Express' uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23 option proto 'udp' option pktsize '-500' confi...
uci: Parse error (section of different type overwrites prior section with same name) at line 12, byte 23
1,574,272,699,000
Recently I've downloaded SuperCat but I can't get it to work. There is always a message: can't find a config file Although I've created it in ~/.spcrc/spcrc. Anyone knows what's going on?
The name of your config file is incomplete. The associated file type is missing. Here is an excerpt from https://www.linuxjournal.com/node/1005732 All rules for colorizing text are stored in files with names of the form spcrc-ext, where "ext" is the file type. These files are stored in the configured "system dire...
SuperCat can't find configuration
1,574,272,699,000
I want to simulate geographic distance, so I need to add delay to each receive/transfer package. I read that squid could work, however, playing with its configuration haven't given me the right results. If I'm pinging from my own PC to squid server I'm getting ~0.5 time, it's okay (would prefer ~1 time) If I'm pinging...
You can use tc to manually add latency to packages. There are ready-made packages to emulate wide-area networks including delays, dropped packages etc., e.g. netem.
simulate geographic distance between servers
1,574,272,699,000
Here it is in context: [ 0.507474] i8042: PNP: No PS/2 controller found. [ 0.507568] mousedev: PS/2 mouse device common for all mice [ 0.507683] device-mapper: uevent: version 1.0.3 [ 0.507809] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: [email protected] [ 0.508081] hidraw: raw HID eve...
The message(Magic number: 1:252:3141) is gone if I merge all these options on top of these base ones. The message Magic number: 1:252:3141 appears only when kernel .config option CONFIG_PM_TRACE_RTC=y: CONFIG_PM_TRACE_RTC: This enables some cheesy code to save the l...
Which kernel .config option causes "Magic number: 1:252:3141" on dmesg?
1,574,272,699,000
Evolution 3.28.0-4 on Debian Testing. I did a restore of my evolution-config, copied ~/.config/evolution from backup to my machine. The email-accounts and all the emails are fine. For each account there is a signature assigned - I can see this in settings. But the signatures are not attached to the emails I write. In ...
Solved! The signature-files had wrong file-permissions. They had 755 instead of 644! Just did a chmod 644 056xxxxxxxxxxxxxxxxxxx and the signature worked immedently. Best regards
Evolution - imported signatures not used
1,574,272,699,000
On my CentOS virtual machine I set up an Apache server. I followed this link: How to set up Apache server. Then everything worked fine as expected; however, when I removed the example.com entry from the /etc/hosts file, I expected it to reach for /var/www/html instead of example.com still however it still reached onl...
Well i got what happened in case anyone faces the same issue, In the /etc/httpd/conf/httpd.conf i included the virtual hosts file in /etc/httpd/conf.d which specified the listen id for <VirtualHost *:80> Which means by this documentation VirtualHosts Common Questions that it will listen on all the ips, not letting...
CentOS Apache server question [closed]
1,574,272,699,000
I'm using the Version 2 of freeRADIUS. I've successfully changed the default eap type. Now I'm trying to change the inner auth because I need pap as default. I've tried to change the inner auth for ttls but then this happens:    ttls {     default_eap_type = "pap"     copy_request_to_tunnel = no     use_tunneled_reply...
The issue is that PAP isn't an EAP type. PAP is an authentication type. EAP-TTLS is the only widely used EAP type which can use a PAP inner, so I'm assuming you're using that. When the server processes EAP-TTLS, it extracts the attributes inside EAP-TTLS' TLS tunnel and creates RADIUS attributes from them. It then '...
freeRADIUS: Error when changing inner auth
1,574,272,699,000
I am running a sendmail server on CentOS 6.8. For MTA connections on port25 I want to use tcpwrappers to reject host with no PTR DNS record. so my hosts.allow looks like : sendmail: ALL EXCEPT UNKNOWN My problem is the mail submission port on 587 seems to share this setting. The result is that roaming users (mostly ...
tcp_wrappers (last stable release: 1997) dates to an awkward phase of the Internet when OS and applications generally lacked suitable protections; since then OS now ship with firewalls by default and applications have all sorts of business logic available (features and milters in the case of sendmail) to keep the spam...
Sendmail 8.14.4 on CentOS 6.8 tcpwrappers problem
1,484,847,588,000
I've been using Hosting cloud-config using nginx as an example: There's a config that you need to put into nginx config file: location ~ ^/user_data { root /path/to/cloud/config/files; sub_filter $public_ipv4 '$remote_addr'; sub_filter $private_ipv4 '$http_x_forwarded_for'; # sub_filter $private_ipv4 '$http_x_re...
Right...so I really don't know who writes docs for CoreOS, but how can you make such a mistake, when the problem's been around for ages! Basically, google 'nginx escape variable' and you'll get there. https://github.com/openresty/nginx-tutorials/blob/master/en/01-NginxVariables01.tut Here's a copy if the site goes dow...
CoreOS - Hosting cloud-config using nginx
1,484,847,588,000
I'm on Arch Linux and using i3 as DE. I have an Elantech touchpad, shown on the list below. My computer is the Asus E403SA-WX0004T. The touchpad just stops working. Suddenly, at any given time, it may be disabled and can't be used anymore until the next reboot (if I plug in a mouse, this one works fine, but does not r...
This problem has disappeared since long ago now, I assume it has been corrected in a previous kernel version.
Touchpad stops working (Arch)
1,484,847,588,000
I'm working on a embedded system. I have multiple SD cards to save copy of Linux rootfs on (kernel saved in nand). On a original SD card, where is located a system, and from this card the system is copied to another - everything works nice. Init service is working as it should. But there is a problem on copied system ...
Had to do some copy/paste things. First, I've downloaded minimal ELDK distribution (i'm using it), copied all with rsync. Next i've rsynced copy of system and copied it on SD card on fresh system. All worked.
Embedded Linux and Init problem - Init won't start
1,484,847,588,000
I use packages to configure my system. Each package depends on the application packages that it configures, and contains the configuration files. (The repository lives at https://github.com/majewsky/system-configuration.) My impression is that building configuration packages using the native packaging tools (in my cas...
For the sake of not leaving unanswered questions lying around, I shall note that I wrote https://github.com/holocm/holo-build and https://github.com/majewsky/art which together make for a nice package building workflow.
Is there a nice packaging tool for configuration packages?
1,484,847,588,000
How do I get a graphic display of my current KDE 5 configuration to help send a report? One with a graphic display which allows me to copy a text report for mailing will be fine.
The kinfocenter command pops up a screen which details the system configuration. It doesn't have a copy to file option, but it gives enough details to be typed up and sent.
How do I get a graphic display of my current KDE 5 configuration to help send a report?
1,484,847,588,000
What is the right way to extend MANPATH in Solaris? Currently it is empty for a user session, so I get to do it manually in $HOME/.bash_profile: MANPATH=/usr/man:/usr/share/man:/usr/sfw/man:/opt/solarisstudio12.3/man export MANPATH But is this right? On linux, for instance I could update /etc/manpath.config and this ...
http://docs.oracle.com/cd/E23824_01/html/E24456/userenv-1.html Looks like we don't really need MANPATH at all, simply adjust PATH and the man commands would do the rest.
OracleSolaris 11.2 - setting MANPATH variable
1,484,847,588,000
I am trying to change the default root directory in Apache webserver but having trouble accessing it from webbrowser. Disabled SELinux Stopped IPTables Trying to make : "/var/www/test/" as default folder In cd /etc/httpd/conf/httpd.conf : I am making following changes: 292 DocumentRoot "/var/www/test" 302 <Directory ...
I would like to write this as a comment instead of an answer, but I can't yet so please don't ding me, community. There is nothing wrong with the pieces you have posted so far. The error logs show the normal notices from restarting apache and the 304 return codes in the access logs you posted are normal as well; they ...
how to change default root in apache web server?
1,484,847,588,000
I've been searching around on Google, but I cannot find my answers to doing a specific thing with IRC and in Irssi, so I've come here to see if I can get any answers. Okay first… in IRC using Irssi, when I'm connected to a IRC network, how can I display what channels are currently available on that network I'm connect...
How to determine which #channels are available on a server /list How to set a vhost vhosts are server-specific. You will need to check the documentation for the server on which you're interested in setting a vhost. vhosts can also be referred to as cloaks. You do not set this up on your machine, but instead request...
IRC and Irssihelp
1,484,847,588,000
I installed Apache through yum install httpd in Fedora. When I try to start the service it shows the following error: [root@localhost ~]# systemctl enable httpd.service ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service' [root@localhost ~]# systemctl start http...
Obviously there is a syntax error in Apache's configuration file.
httpd start fails and shows up error
1,484,847,588,000
I am giving Elementary OS a try but trying to configure it a bit I see lesser options than supposed in dconf-editor. Following this source, they should look like this: Mine look like this: So, I can neither follow the instructions from here. Why is that? Is this related to the latest release? A remedy?
I found a relevant question on the Elementary OS help pages, one of their moderators said that the current version cannot draw the Desktop and that the suggested workaround is to install nautilus and then activate the Desktop through the dconf-editor pretty much as you have attempted to do. I presume that installing ...
Why my dconf-editor has fewer options in Elementary OS Luna than supposed to?
1,484,847,588,000
I've recently switched to using Slackware 14 on my laptop, so far I'm quite happy with the distro, except for 1 really annoying little thing: I can surf using hotspots, and all sorts of public wifi-access-points, but I can't seem to get on-line at home. Prior to running Slackware, I was using Debian, so yes, my laptop...
I've added: network={ ssid="HomeSweetHome" psk=0123464sdasd4d56agr6 key_mgmt=WPA2-PSK #and so on } To the wpa_supplicant.conf file, what I should've done is just add the raw output of wpa_passphrase HomeSweetHome mypasspharse to the file, not bothering with manually adding settings like key_mgmt and other...
Wifi connection works but can't connect to internet
1,484,847,588,000
I would like to disable the following warning for the root user. You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended, please add the argument `--no-sandbox` and specify an alternate user data directory using the `--user-data-dir` argument. I do not want to have to...
I created this python3 workaround. #!/usr/bin/python import os import sys if __name__ == "__main__": if len(sys.argv) <= 1: print("No snap specified") exit(-1) else: os.system(sys.argv[1] + " --no-sandbox " + ' '.join(sys.argv[2:])) exit(0) Add ...
How to disable snap package warning for root user? [closed]
1,484,847,588,000
Why is 50-redhat.conf listed twice with different file sizes for this directory with this ls: ls -la /etc/ssh/ssh* -rw-r--r--. 1 root root 1921 Aug 2 02:58 /etc/ssh/ssh_config -rw-------. 1 root root 3667 Aug 2 02:58 /etc/ssh/sshd_config -rw-r-----. 1 root ssh_keys 480 May 20 02:38 /etc/ssh/ssh_...
The two files are different. The one occurring in ssh_config.d contains SSH client configuration. The one found in sshd_config.d contains SSH server configuration.
Why does ls show this file twice with different sizes?
1,484,847,588,000
I've read on ssh, and I have my setup to use ssh with OpenWrt, I use key in .ssh + my config file in .ssh but if I want to use also ssh server as localhost, what I've read is that I should setup also in .ssh/config. I'm not sure how to use both? could you help me? thank you
.ssh/config in your home directory has normally nothing to do with the SSH server (sshd), only with the SSH client. The SSH server will normally read .ssh/authorized_keys under your home directory if it exists. This pathname can be changed in the system-wide SSH server configuration file (usually /etc/ssh/sshd_config,...
SSH config /localhost and remote?
1,484,847,588,000
I've recently installed the raw virtual image of FreeBSD 12.1-STABLE onto a VPS provided through OVH. I'm able to login via the KVM on my control panel, but the machine is unreachable by SSH. It turns out that's because the machine isn't able to connect to the internet. I'm able to ping the interface vtnet0 at its g...
OVH configuration is actually quite simple, and is the same for IPv4 and IPv6: You apply the given IPv4 address with a /32 prefix length, or the given IPv6 address with a /64 prefix length, to the network interface, statically. You set the default IPv4 and IPv6 gateways to the IPv4/IPv6 addresses that OVH specifies, ...
FreeBSD on VPS unable to connect to the internet; interface appears configured
1,484,847,588,000
From bash manual Invoked by remote shell daemon Bash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the remote shell daemon, usually rshd, or the secure shell daemon sshd. If Bash determines it is being run in this fashion, it reads and...
SSH starts a login shell, as alluded to in its manpage: If a command is specified, it is executed on the remote host instead of a login shell. You can verify this within Bash with shopt login_shell which will show whether it is running as a login shell. Bash’s behaviour when started remotely, whether as a login she...
Is a shell provided by `ssh username@server` login, and does it execute ~/.profile or ~/.bashrc? [closed]
1,514,334,085,000
Because the ISP blocks port 80 this prevents my running a web server. As a work-around it's possible to specify a different port for Apache? I believe I've seen mention of using port 81, or some lower ports. Not for production, just mucking around.
Assuming a recent version of Linux and Apache. To accomplish this configuration change, modify /etc/httpd/conf/httpd.conf replacing the Listen 80 directive with a different port. As far as ports go, I'd recommend higher. Check a list of TCP and UDP port numbers, go high and stay away from known ports.
running apache web server on an arbitrary port?
1,514,334,085,000
I want someone from windows to log in into my server using SSH, so he can edit files and install things. Is there a step to step how to do it? I need to: Create his user account. Configure it, giving him access to a single folder and nothing else (how?) Generate a public key for him on Windows (how?) Add his public ...
(2) You may configure sshd to chroot() for this user. See man 5 sshd_config, search for ChrootDirectory and ForceCommand. (3) You must create a key pair. The public key is used on the server, the private key is used by the client. See ssh-keygen. You may need ssh-keygen -e ... for converting the key so that it is usab...
How to enable someone to SSH to my server from Windows? [closed]
1,514,334,085,000
I'm looking for a listing of general purpose configuration storage subsystems on Linux. I have tried looking for it in the documentation but I got no further then the standard configuration storage subsystems (file-system, environment variables). As an example on Windows I know of: file-system environment variables w...
In Linux plain text files are normally used for storing applications and services configuration. /etc is used for system services. $HOME/.config/{appname|appname/} is preferred for applications run by a normal user though old apps and utils may use $HOME/{.appname|.appname/}. Gnome 2 used a system similar to Windows ...
Which subsystems exist in Linux for general purpose configuration storage?
1,514,334,085,000
I put "source /etc/profile" in /etc/bash.bashrc and unable to open terminal window in ubuntu 16.04, and now, whenever I try to open a terminal window, it closes after a few seconds. During those few seconds, there is no prompt and it does not except commands. My /etc/bash.bashrc looks like # System-wide .bashrc file ...
The problem is indeed the infinite loop. The shell reads /etc/profile, sees that it needs to read /etc/bash.bashrc and does so, sees that it needs to read /etc/profile and does so, etc. Eventually the shell decides that it's recursing too deeply and gives up. Press Ctrl+C while the shell is still working its way throu...
put "source /etc/profile" in /etc/bash.bashrc and unable to open terminal window in ubuntu 16.04
1,514,334,085,000
Where can I find what characters are valid in an X11 config file Identifier name? I'd like to name my identifier libinput touchpad disable tap-to-click but I don't know if hyphens are valid. I'm running Manjaro Linux.
I don’t think there are any particular restrictions, apart from the use of quotes; the configuration file manpage doesn’t mention anything specific. Looking at the parser source code, a string can contain anything apart from double quotes, carriage returns, newlines and the null byte. You should certainly be able to u...
What are valid characters in an X11 .conf Identifier name?
1,514,334,085,000
My structure is this cdn - node_modules/ - build/ -- bower_components/ -- css/ -- templates/ -- sst/ --- index.html How can I configure apache2/symlink/.htaccess to use www.app.com instead of www.app.com/build/sst/ in order to access index.html and maintain folder structure My current setup is <VirtualHost *:80> D...
Have you tried DirectoryIndex directive ? DirectoryIndex index.html index.txt /app/www/vhosts/www.app.no/cdn/build/sst/index.html from https://httpd.apache.org/docs/current/mod/mod_dir.html (The drawback is that it will use this index for all directory under www.app.no, unless they have a local index.html or index...
My index.html not in DocumentRoot
1,514,334,085,000
Let's edit this theme's gtkrc file: vi vi /usr/share/themes/industrial/gtk-2.0/gtkrc gtk-color-scheme = "bg_color: #000000000000\ nfg_color: #ffffff\nbase_color: #000000000000\ ntext_color: #ffffff\nselected_bg_color: #ffffff\ nselected_fg_color: #000000000000\ ntooltip_bg_color: #000000000000\ ntooltip_fg_color: #ff...
Every element combination of a RGB, if you want to retrieve a RGB of red , blue or another color, you can open gimp, and choose color and retrieve the given RGB.
gtk-color-scheme = "bg_color: red\ results in red bg + red scroll bar bg + red scroll bar ? where is the logic?
1,514,334,085,000
Without changing the configuration my fish shell started to be really slow, like between 1 and 5 seconds to a simple ls command. Note that the slow behaviour started suddenly. I have a local install and no admin rights. I have no set -U var in my config files or other “add to path” problem that could give long (path) ...
Turns out fish was not at fault, even if I don't know what was. I'm gessing a call in the prompt that is not on the vanilla prompt. I'll accept this answer after a while in case anyone has a better idea of what might have happened.
Troubleshooting Oh-My-Fish configuration making fish really slow
1,514,334,085,000
I am trying to install the stress package on CentOS 7 virtual machine running on vmware player on windows 7 laptop. I have tried many packages and have updated yum but whenever I run sudo yum install stress it tells me that there is no such package stress available and there is nothing to do. When I run it from the fo...
Why are you trying to add an OpenSuSE repo? zypper and yum aren't compatible. If you're trying to get the stress application installed it's in EPEL so you'll have to add the EPEL repo even if you're on CentOS.
"No package stress available, nothing to do" and "bash: yum-config-manager:command not found
1,514,334,085,000
I am setting up a Debian server through DigitalOcean, which I initialized with a SSH-key. Currently I can log onto the server as root or as a user. Normally when I do this type of configuration, I uncomment PermitRootLogin yes from /etc/ssh/ssh_config, and change it to PermitRootLogin no. This time, however, I saw a ...
The ssh_config file is the default configuration for SSH clients. The server configuration will be found in sshd_config. The PermitRootLogin is a server setting (it modifies the behaviour of the SSH server) that should go in the server configuration file.
Does OpenSSH no longer support the "PermitRootLogin" keyword? [closed]
1,514,334,085,000
Where are the following configuration files located (e.g., Redhat)? network settings (static/DHCP/DNS) timezone proxy for network default language
Check out the /etc directory. All the config files for your entire system should be there with quite logical names like 'timezone'. Some of the subdirectories are also important such as /etc/sysconfig/ so be sure to browse that. The network stuff is also usually buried in there in a folder called 'interfaces' with one...
Linux configuration settings
1,514,334,085,000
I just had a question regarding the attached part of my /var/log/auth.log file. (Raspberry Pi 2B, running Raspbian Jessy, fully updated / upgraded) First of all I got rid of the root user all together, but i seem to see a bunch of log-ins for that user (displaying root and/or uid=0), which seem to be locally, as there...
The first two and the last one are CRONs, which is needed for some automated tasks (depend on what is running on your machine sudo crontab -e? The third is probably you running the tail -f /var/log/auth.log through sudo. There is nothing to be concerned about. You can't get rid of root user, otherwise you would not be...
suspicious entries in /var/log/auth.log
1,514,334,085,000
I've modified my ~/.xinitrc and now the X11 startup fails. I just see a message on the screen saying something like Failed to execute. I don't have a recovery option in my grub, so I cannot boot into a terminal session. How can I open a terminal and repair my .xinitrc?
Switch to a different virtual console, e.g. by pressing Ctrl+Alt+F2; most distributions provide a terminal login on virtual console 2. If there is no such login, then use any installation live CD/DVD/USB, mount the home partition, and edit your .xinitrc from there.
Failed to execute, How to enter terminal before login [closed]
1,341,916,713,000
I have a cron job that is scheduled to run every day. Other than changing the schedule, is there any other way to do a test run of the cron job right now to see if it works as intended? I know the command works fine when enter it in my shell, but I want to know if it works correctly when cron runs it - it could be aff...
As far as I know there is no way to directly do that as cron has a special purpose - running schedules commands at a specific time. So the best thing is to either to manually create a (temporary) crontab entry or write a script which removes and resets the environment. Explanation of "removes and resets the environme...
How can I make cron run a job right now (for testing/debugging), without changing the schedule?
1,341,916,713,000
I have a script that works when I run it from the command line, but when I schedule it with cron I get errors that it cannot find files or commands. My question is twofold: When I schedule a cron job using crontab -e, does it use my user ID as the basis for its permissions? Or does it use a cron user ID of some sor...
Add cd /home/xxxx/Documents/Scripts/ if you want your job to run in that directory. There's no reason why cron would change to that particular directory. Cron runs your commands in your home directory. As for ssmtp, it might not be in your default PATH. Cron's default path is implementation-dependent, so check your ma...
What is the 'working directory' when cron executes a job?
1,341,916,713,000
My sysadmin has set up a bunch of cron jobs on my machine. I'd like to know exactly what is scheduled for what time. How can I get that list?
Depending on how your linux system is set up, you can look in: /var/spool/cron/* (user crontabs) /etc/crontab (system-wide crontab) also, many distros have: /etc/cron.d/* These configurations have the same syntax as /etc/crontab /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly, /etc/cron.monthly These are simpl...
How can get a list of all scheduled cron jobs on my machine?
1,341,916,713,000
I want to create a log file for a cron script that has the current hour in the log file name. This is the command I tried to use: 0 * * * * echo hello >> ~/cron-logs/hourly/test`date "+%d"`.log Unfortunately I get this message when that runs: /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh:...
Short answer: Escape the % as \%: 0 * * * * echo hello >> ~/cron-logs/hourly/"test$(date +\%d).log" This also uses $(...) instead of the deprecated `...` syntax for command substitution and quotes the expansion of said command substitution. Long answer: The error message suggests that the shell which executes your co...
How can I execute `date` inside of a crontab job?
1,341,916,713,000
I have a backup script which I need to run at a particular time of a day so I am using cron for this task and from within cron am also trying to redirect the output of backup script to a logfile. crontab -e */1 * * * * /home/ranveer/backup.sh &>> /home/ranveer/backup.log In the above cron entry I am redirecting both ...
I solved the problem. There are two ways: M1 Change the redirection from &>> to 2>&1. So now crontab -e looks like */1 * * * * /home/ranveer/vimbackup.sh >> /home/ranveer/vimbackup.log 2>&1 I believe the above works because by default cron is using sh to run the task instead of bash so &>> is not supported by sh. M2 ...
How to redirect output to a file from within cron?
1,341,916,713,000
I am reading an article about crontab There is something about disabling automatically sending emails. Disable Email By default cron jobs sends an email to the user account executing the cronjob. If this is not needed put the following command At the end of the cron job line. >/dev/null 2>&1 What is the detail...
> is for redirect /dev/null is a black hole where any data sent, will be discarded 2 is the file descriptor for Standard Error > is for redirect & is the symbol for file descriptor (without it, the following 1 would be considered a filename) 1 is the file descriptor for Standard Out Therefore >/dev/null 2>&1 redirects...
What does '>/dev/null 2>&1' mean in this article of crontab basics? [duplicate]
1,341,916,713,000
How can I run a cron command with existing environmental variables? If I am at a shell prompt I can type echo $ORACLE_HOME and get a path. This is one of my environmental variables that gets set in my ~/.profile. However, it seems that ~/.profile does not get loaded fron cron scripts and so my scripts fail because the...
In the crontab, before you command, add . $HOME/.profile. For example: 0 5 * * * . $HOME/.profile; /path/to/command/to/run Cron knows nothing about your shell; it is started by the system, so it has a minimal environment. If you want anything, you need to have that brought in yourself.
How can I run a cron command with existing environmental variables?
1,341,916,713,000
Day-of-week: Allowed range 0 – 7. Sunday is either 0 or 7. I found this after Googling, my question is why should both values (0,7) correspond to Sunday?
This is a matter of portability. In early Unices, some versions of cron accepted 0 as Sunday, and some accepted 7 as Sunday -- this format is an attempt to be portable with both. From man 5 crontab in vixie-cron (emphasis my own): When specifying day of week, both day 0 and day 7 will be considered Sunday. BS...
Day of week {0-7} in crontab has 8 options, but we have only 7 days in a week
1,341,916,713,000
Is it possible to make commands in crontab run with bash instead of sh? I know you can pass commands to bash with -c, but that's annoying and I never use sh anyway.
You should be able to set the environment variable prior to the cron job running: SHELL=/bin/bash 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
How to change cron shell (sh to bash)?
1,341,916,713,000
I entered crontab -r instead of crontab -e and all my cron jobs have been removed. What is the best way (or is there one) to recover those jobs?
crontab -r removes the only file containing the cron jobs. So if you did not make a backup, your only recovery options are: On RedHat/CentOS, if your jobs have been triggered before, you can find the cron log in /var/log/cron. The file will help you rewrite the jobs again. Another option is to recover the file usin...
Recover cron jobs accidently removed with crontab -r
1,341,916,713,000
I have a script being run automatically that I can't find in the crontab for the expected users, so I'd like to search all users' crontabs for it. Essentially I want to run a crontab -l for all users.
Well depends on the script but easily you can find your crontab as root with crontab -l -u <user> Or you can find crontab from spool where is located file for all users cat /var/spool/cron/crontabs/<user> To show all users' crontabs with the username printed at the beginning of each line: cd /var/spool/cron/crontabs...
As root, how can I list the crontabs for all users?
1,341,916,713,000
as many (most?) others, I edit my crontab via crontab -e, where I keep all routine operations such as incremental backup, ntpdate, various rsync operations, as well as making my desktop background christmas themed once a year. From what I've understood, on a fresh install or new user, this also automatically creates t...
The location of cron files for individual users is /var/spool/cron/crontabs/. From man crontab: Each user can have their own crontab, and though these are files in /var/spool/cron/crontabs, they are not intended to be edited directly.
Location of the crontab file
1,341,916,713,000
On my Ubuntu-Desktop and on my debian-server I have a script which needs to be executed each minute (a script that calls the minute-tic of my space online browsergame). The problem is that on debian derivates cron is logging to /var/log/syslog each time it executes. I end up seeing repeated the message it was execu...
Make the line this: * * * * * root /usr/local/sbin/mycommand.sh > /dev/null 2>&1 This will capture both STDOUT (1) and STDERR (2) and send them to /dev/null. MAILTO You can also disable the email by setting and then resetting the MAILTO="" which will disable the sending of any emails. Example MAILTO="" * * *...
How do I completely silence a cronjob to /dev/null/?
1,341,916,713,000
Once upon a time, DISPLAY=:0.0 totem /path/to/movie.avi after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop. Now it gives the error: No protocol specified Cannot open display: I reinstalled Debian squeeze when it went stable on both computers, and I guess I broke the con...
(Adapted from Linux: wmctrl cannot open display when session initiated via ssh+screen) DISPLAY and AUTHORITY An X program needs two pieces of information in order to connect to an X display. It needs the address of the display, which is typically :0 when you're logged in locally or :10, :11, etc. when you're logged i...
Open a window on a remote X display (why "Cannot open display")?
1,341,916,713,000
I need my script to be executed a minute after each reboot. When I apply @reboot in my crontab it is too early for my script - I want the script to be executed after all other tasks that are routinely run on reboot. How might I run the script sometime after reboot?
Is the script only ever intended to run one minute after boot up, or can it be used at other times, too? In the former case, you can add sleep 60 to the beginning of your script, or in the latter case, add it to the crontab file: @reboot sleep 60 && my_script.sh As has been pointed out by sr_, though, perhaps you are...
How do I start a Cron job 1 min after @reboot?
1,341,916,713,000
I have defined "SHELL" variable in /etc/crontab file: [martin@martin ~]$ grep SHELL /etc/crontab SHELL=/usr/local/bin/bash [martin@martin ~]$ file /usr/local/bin/bash /usr/local/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), stri...
You can source the file you want at the top of the script or beginning of the job for the user that is executing the job. The "source" command is a built-in. You'd do the same thing if you made edits to those files to load the changes. * * * * * source /home/user/.bash_profile; <command> or #!/bin/bash source /home/u...
cron ignores variables defined in ".bashrc" and ".bash_profile"