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


16

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


13

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

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

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

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

sleep.target is specific to system services. The reason is, sleep.target is not a magic target that automatically gets activated when going to sleep. It's just a regular target that puts the system to sleep – so the 'user' instances of course won't have an equivalent. (And unfortunately the 'user' instances currently have no way to depend on systemwide ...


3

I'm not sure you will like this answer, but, in my experience too, using PTP has always caused a high WTF/min. Presumably the camera itself restricts writing in the root folder, or something equally sensical. I would suggest getting your hands on a CompactFlash reader, mounting the filesystem directly, and using that type of access to copy your firmware ...


3

You only choose audio card once when starting jackd. You can list cards available to alsa with aplay -l (aplay is part of alsa-utils). Then you can start the jack daemon, and pick the card to use with jackd -d alsa -d hw:<card>,<device>.


3

Debootstrap is in aur/debootstrap package. After installation process you will have to make a symlink in /usr/bin: cd /usr/bin ; ln -sf debootstrap qemu-debootstrap After that do what ouzmoutous suggests. Anyway I always advise to use downloaded templates. HTH


3

According to https://bugs.archlinux.org/task/23065 (credit to jasonwryan), adding shallow cloning functionality to AUR PKGBUILD was a wishlist item that was closed on Saturday, 05 March 2011 with the comment: Reason for closing: Won't implement This suggests that it is not going to happen unless someone submits a patch. As I suggested to the poster ...


3

If you are in arch-chroot mode you should run grub-mkconfig -o /boot/grub/grub.cfg other than grub-mkconfig -o /mnt/boot/grub/grub.cfg Because: When you are installing arch linux for the first time, you mount your file system in /mnt and install base system from outside. Once you're done with base packages, you can arch-chroot inside /mnt and all the ...


3

After some chat, I'm posting an answer summing up a few interesting leads to follow while facing such problems. Booting safely on a USB image As you can see here, it seems like your system went into some trouble when trying to boot from the USB drive: ERROR: '/dev/disk/by-label/ARCH_201409' device did not show up after 30 seconds... Falling back to ...



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