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


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

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


5

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.


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

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

The problem here is that by default Arch boots up with kernel modesetting for the display (and console), using the open source nouveau driver. It seems that the driver included in this kernel doesn't support your graphics chipset, and rather than fallback, it simply gives you no console display. To disable kernel modesetting you can edit the boot options in ...


3

It is printed to the journal. You can read it with journalctl | grep Suspend: Mar 31 15:28:29 Shiv systemd[1]: Started Suspend.


2

Make can read a makefile from stdin, so you can give it a here document that is a makefile. The following is a makefile that includes your kernel makefile and adds a new wildcard target, %.var, whose recipe will output the value of the given make variable. (This assumes you don't have any files or other targets that end in .var, of course). showvar() { make ...


2

This is a known error in Samsung SSDs: The drives do not properly implement queued trim commands. However, Ubuntu (and probably most other Linux distributions) now implement trim as a cronjob to improve performance, so this is not of any practical concern. For more details, see the kernel bug on this: https://bugzilla.kernel.org/show_bug.cgi?id=72341 ...


2

Based on don_crissti answer, I have created a bash script for automating this task. Here is the script: #!/bin/bash if [ -z $1 ]; then echo "usage: screencast <outfile>" exit 1 fi fname=$1 audio=$(pacmd list-sources | sed -n 's/\s*name: <\(.*\.monitor\)>/\1/p') pacmd set-default-source "$audio" echo "Screencast started, to stop it ...


2

You may try to extract the values with grep and sed. For example: filename="$HOME/kernelbuild/linux-3.14.37/Makefile" version=$(grep -m 1 VERSION $filename | sed 's/^.*= //g') This greps for first occurrence of "VERSION" in Makefile


2

As the error message states, your filesystem is mounted read-only. If you are using kernel NTFS driver, it does not mount filesystem read/write, as that is considered unsafe. Your best bet is to use ntfs-3g, which IIRC, does read/write mount by default and is considered safe for writing.


2

Most probably /etc/ppp/ip-up.d is the location you are looking for. My example is valid on Gentoo Linux but the same directory structure seems to exist on Arch. Every time a VPN connection is made /etc/ppp/ip-up is run, which typically executes /etc/ppp/ip-up.d/* in turn. Its first argument is the attached pppn device. Put this script under ...


1

It seems that you haven't loaded the kernel module "vboxdrv". Use 'modprobe' to load the module and then try. In case if something goes wrong try installing again the required packages. There is a pretty good documentation on arch linux.


1

It looks like pacaur supports --noconfirm: --noconfirm do not prompt for any confirmation The following may also be useful: --noedit do not prompt to edit files


1

Something is obviously wrong with the installation. Perhaps you're ignoring an important warning? Make a full console log of the installation process, adding df and ls root before umount boot root. Analize each warning you see, add warnings you don't understand to your post. If there are no warnings during installation, check the output of dmesg, mount, df ...


1

It's possible, although it's not a good idea to mix package management systems... An Arch package is an xz-compressed tarball containing the package's files and some meta-data, stored in .PKGINFO, .INSTALL and .MTREE. To extract a package, simply run tar xf on it in a temporary directory; if you then decide you want to install the contents you can move them ...


1

DAD is inherently slow because it has to work without feedback. The way DAD works is that before an address is activated on an interface, a neighbor discovery request is sent asking for the MAC address of the host which has that IP address. If the address is duplicated the host which already has the address will respond, and DAD will fail quickly. But ...


1

Yes, there is a new mirror for it now. You need to add this to your pacman config: [haskell-core] Server = http://orbitalfox.com/haskell/core/$arch Information about the mirrors here: https://wiki.archlinux.org/index.php/ArchHaskell#Available_repositories Also consider changing the download command use to curl or wget, as they are more persistent at ...



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