Tag Info

Hot answers tagged

17

autofs can do this for you. You can configure any number of mountpoints with various options, and the corresponding filesystems are mounted whenever the mountpoint is accessed. After a given amount of inactivity the filesystems are unmounted again. There are no doubt various ways of using autofs, but here's one way of doing what you're trying to do, based ...


15

In cups v. 2.0.0 the service name has been changed (see also the install file here). You'll have to disable the old service: systemctl disable cups.service before enabling and starting the new one: systemctl enable org.cups.cupsd.service systemctl daemon-reload systemctl start org.cups.cupsd.service


10

The self maintenance method is to vacuum the logs by size or time. Retain only the past two days: journalctl --vacuum-time=2d Retain only the past 500 MB: journalctl --vacuum-size=500M man journalctl for more information.


9

You can do this with systemd, so you don't have to install extra software and just have a small amount of extra configuration. Simply add noauto,x-systemd.automount to the options in fstab. noauto to not mount automatically on boot and x-systemd.automount to let systemd mount it on access. Source: ArchWiki - fstab


7

The browser files on disc just get replaced. The running program (if not completely in memory) keeps the old executable files open until the program closes (but until then those are no longer the executables files you get via the directory entries). On the next restart of the browser you get the version. No reboot necessary except for the program that gets ...


7

From the btrfs gotchas page: Files with a lot of random writes can become heavily fragmented (10000+ extents) causing trashing on HDDs and excessive multi-second spikes of CPU load on systems with an SSD or large amount a RAM. On servers and workstations this affects databases and virtual machine images. The nodatacow mount option may be ...


6

Yes, it will work in the same way as other PKGBUILDs with binary sources - extract it and copy files. The only thing which should be mentioned is that deb-archive consists of 3 other files - debian-binary, control.tar.gz, data.tar.gz. makepkg will extract only first-level archive and then you should manually extract data.tar.gz. prepare() { tar -zxvf ...


6

As you suspected, Unix-like systems prevent most files being executed from being overwritten. Here's what the standard says about the open system call: The open() function may fail if: [ETXTBSY] The file is a pure procedure (shared text) file that is being executed and oflag is O_WRONLY or O_RDWR. But a file being executed can still be unlinked, ...


5

On Arch linux, the closest I got was: Edit /etc/systemd/journald.conf to set SystemMaxUse=1M Restarting journal: sudo systemctl restart systemd-journald Resetting SystemMaxUse=200M Re-Restarting the journal On my system, each journal file is 8MB, and the above cleared all but 3, bringing the total size to ~25MB. My use-case was disabling CoW for BTRFS ...


5

I ran across the same issue just now, and found another workaround. Basically, it involves making the hosts /run directory available to the guest. First, we mount /run where it can be accessed by the guest. I will assume that your install partition is mounted at /mnt mkdir /mnt/hostrun mount --bind /run /mnt/hostrun Then, we chroot into the guest, and ...


5

When setting up a new Arch install I usually do the following: pacman -S alsa-utils Then fire up alsamixer with alsamixer Go to 'Master' then press M and then keep hitting the up key to bring the sound levels up. I do that for any other inputs I want like pcm etc. Then do speaker-test -c2 with the number being how many channels you want to test. ...


5

The rule syntax above may work on some distributions, but did not work on mine (Raspbian). Since I never found a single document that explains all the ins and outs, I wrote my own, to be found here. This is what it boils down to. 1. find out what's on ttyUSB: dmesg | grep ttyUSB 2. list all attributes of the device: udevadm info --name=/dev/ttyUSBx ...


5

Edit /etc/security/limits.conf and add the following lines mysql soft nofile 65535 mysql hard nofile 65535 then reboot. Then edit /usr/lib/systemd/system/mysqld.service or /usr/lib/systemd/system/mariadb.service and add LimitNOFILE=infinity LimitMEMLOCK=infinity Then restart the db service: systemctl reload mariadb.service


5

This can be done by using a custom dlagent. I do not really understand Arch packaging or how the dlagents work, so I only have a hack answer, but it gets the job done. The idea is to modify the PKGBUILD to use a custom download agent. I modified the source "${pkgname%-git}::git+http://github.com/Itseez/opencv.git" into ...


5

You can change this behaviour if you edit secure tmp option in /lib/systemd/system/mariadb.service. systemctl stop mariadb next edit /lib/systemd/system/mariadb.service as you change PrivateTmp to false: # Place temp files in a secure directory, not /tmp PrivateTmp=false # default is true and finally: systemctl daemon-reload systemctl start mariadb ...


4

That key/schema was removed in gnome-shell ≥ 3.10 so the solutions you found on the internet no longer work. Ray Strode, gnome dev1: I've had a couple of people ask me if there's a way to do this in gnome-shell 3.10 and later and I haven't had a good answer. It's complicated by the fact that g-s-d now handles starting things and the ...


4

I recently solved this problem myself on Arch Linux. I used the program xss-lock from the AUR found here. I was trying to set up a service to lock the screen on sleep but for some reason I couldn't get it to work. I ended up using xss-lock and it worked very easily. Install xss-lock from the AUR. Add one of the commands below to your .xprofile or ...


4

Gilles is correct; this is due to the changes in xorg-server 1.16 which were announced on the Arch News. To work around the permissions issue, you can use a Xorg.wrap config file to pass root rights, using: needs_root_rights = yes See man Xorg.wrap for the details. You could also try using xf86-video-modesetting instead of xf86-video-fbdev until the ...


4

You can either reconfigure MySQL to look for the data directory in a different location, or bind mount a new location over the original. Make sure that the mysql service is stopped before you carry out these changes. Then, move all the files and sub-directories from the original location into your new location. Reconfigure MySQL edit /etc/my.cnf and ...


4

You only need the grml-zsh-config package like: pacman -S grml-zsh-config ...and maybe to set your default shell to zsh like: chsh -s /usr/bin/zsh [username] You might also want to check what else you can get like: pacman -Ss zsh


4

Personally I modified the makepkg script and it's working like a charm: # vim `which makepkg` +/clone ... 541 msg2 "$(gettext "Cloning %s %s repo...")" "${repo}" "git" 542 if ! git clone --mirror "$url" "$dir"; then 543 error "$(gettext "Failure while downloading %s %s repo")" "${repo}" "git" ... Appending "--mirror ...


4

First of all, I had to use another kernel, kernel-qemu that I found here. Then, I could make it work using QEMU 1.7.1: With Raspbian: ./qemu-system-arm -kernel /path/to/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -hda /path/to/2013-12-20-wheezy-raspbian.img With Arch ...


4

Just create a configuration file that unsets that parameter. mkdir -p /etc/systemd/system/systemd-timesyncd.service.d echo -e "[Unit]\nConditionVirtualization=" > /etc/systemd/system/systemd-timesyncd.service.d/allow_virt.conf systemctl daemon-reload systemctl start systemd-timesyncd.service This technique is described in the systemd.unit man page: ...


4

If you want to keep pacman from up/down grading some package(s), you put a line in /etc/pacman.conf: # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup #IgnorePkg = #IgnoreGroup = I think you want to have a line like this in pacman.conf: IgnorePkg = linux linux-headers linux-api-headers As you point out, that just keeps ...


4

After reading more on the internets I found out that a newer version of systemd requires a kernel with configuration option CONFIG_FHANDLE=y - however, this option is not present on the kernel version included in the official banana-pi ArchLinux image (3.4.90). I recompiled the kernel with the option included and now the login prompt appears as expected -> ...


4

Arch uses two tiers of mirrors; the first, Tier 1, syncs directly from archlinux.org every hour. Tier 2 mirrors sync from Tier 1. Synching from archlinux.org directly is prohibited. This ensures that bandwidth charges are equitably distributed amongst the various mirrors and that people in diverse geographic locations are not penalized with slow downloads ...


4

The question has little sense. "To start during boot" means precisely "to start as dependency of the default target". Note that systemd starts everything in parallel, so the 1.5-second NetworkManager startup does not delay anything except services which explicitly wait for network (apparently, you have none; otherwise they would have been shown in the ...


4

You CPU is slow. A score of 760 for a dual core CPU is bad. If you take a look at the single-core performance for that CPU on the site it's on par with a good Pentium III. The GPU should be good enough for YouTube but together with the CPU it could be not enough. I can watch 760p YouTube in HTML5 on a Pentium M with a much slower AMD GPU. Be sure to have ...


4

If you need just simple things like your example, just grep them out of the Makefile. For more complicated things, GNU Make has a -p option which prints the database after running Make, which includes all the variable definitions (and a lot more). You can use it together with -n, which causes the actions to not actually run (so nothing gets built). You can ...


3

I don't believe tmpfiles.d is the proper way to go here. You really should do the udev rules. Look: udevadm info -a -p /sys/class/scsi_host/host* Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, ...



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