Hot answers tagged

24

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.


19

This is a security risk because file ownership in the FS is stored not by symbolic name, but by UID and GID. If a user is removed and files remain owned by that user, they become inaccessible under owner permission. However, if a different user is later created that is allocated the same UID, that user will gain ownership of the files. This is potentially a ...


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

same problem here, rpc-stad failed since the last update (all my computers had the problem after the update). But to solve the pb I just enable/start rpcbind.service sudo systemctl enable rpcbind.service # for the next reboot sudo systemctl start rpcbind.service sudo systemctl restart rpcbind.service Voila


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


6

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


6

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


5

I have the same problem using Arch Linux + GNOME Shell 3.16. I also use the PyDev plugin in Eclipse Mars. I fixed the issue by enabling the option "Show vertical scrollbar?" in Window->Preferences->PyDev->Editor-> Overview Rule Minimap.


5

The easiest way to set this up would be to have a cleartext system partition (on the SD card, I presume) and an encrypted data partition. Use dmcrypt to encrypt the data partition, with a key stored in a key file that's downloaded from the server. First set up the server infrastructure, then download the key file and create the encrypted volume with ...


5

tl;dr: Uninstall the conflicting application before running pacman. pacman (and other package managers) keep an index of packages and files that they manage (pacman --query --list). Some files, such as configuration, will be marked as modifiable and will not be overwritten during upgrade (except in special circumstances, where the package manager will ...


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


4

The dynamic linked pandoc package just entered [community] on Oct 13, 2015. For now the installation is huge, but we will try to improve.


4

The AUR is an unsupported repository: the quality of the PKGBUILDS varies from the very good through to the abominably bad or outright negligent. You should always read the PKGBUILD before attempting to install anything and look at the comments on the package page to satisfy yourself that there won't be any unforseen "surprises" when running makepkg. You ...


3

I have similar problem on Ubuntu. The workaround I use is: echo never > /sys/kernel/mm/transparent_hugepage/defrag echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag The source of the workaround can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=879801. The bug was never fixed. This is less drastic then disabling entire ...


3

In the case of gnome - please use the following as a support in getting where you want to be. Security Disable access to any command line https://help.gnome.org/admin/system-admin-guide/stable/lockdown-command-line.html.en Ensure that the installation works as wanted before activating this or ensure that one can log in as root with the right password. ...


3

This Configuration uses randomly generated keys at boot and will not support Hibernation to hard disk! You Should Disable Hibernation through your respectie DE Power Management Utility and set it to Shutdown on Critical to avoid Data Loss! Make sure to run sudo -s or su before running the following. Disable Swap: # swapoff -a Locate the existing Swap ...


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

It would apear that the rpcbind systemd unit files went missing: $ find /usr/lib/systemd -name 'rpcbind*' # no output Reinstalling this solved the issue: $ pacman -S rpcbind # [...] $ find /usr/lib/systemd -name 'rpcbind* /usr/lib/systemd/system/rpcbind.service /usr/lib/systemd/system/rpcbind.target /usr/lib/systemd/system/rpcbind.socket $ systemd ...


3

Copy .xinitrc from /root/ to /etc/skel/ and when you add users it will be automatically in their homes. For the existing users just copy /root/.xinitrc to their homes and chown it to their user:group.


3

This is a bug. The actual root cause is somewhat deeper: systemd's reload logic is flawed. That's why you saw it only when you had actually enabled a unit (i. e. a "disabled -> enabled" transition had taken place): in this case systemd implicitly reloads the units. I'm working on fixing the bug; in the meantime, if this manifestation (spontaneous volume ...


3

In UNIX, only root can change the owner of files. As a consequence, we can conclude that the owner of the file is not changing when you edit it. Instead what must be happening is that your editor is writing out the edited contents into a new file and replacing the old file with the new one. Because it is a brand new file, the file ends up being tagged with ...


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.


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

This scheme is certainly workable. You are right, the best solution is to transform your current layout as little as it is possible. If you don't ask Arch Linux to install his Grub bootloader, you'll have to run grub-mkconfig -o /boot/grub/grub.cfg in Ubuntu (if you have os-prober installed, it will find your Arch installation and update all the config ...


3

Sources: here and here. Skype is in multilib repo. Enable it first by editing pacman.conf. In Terminal: sudo gedit /etc/pacman.conf Edit file by uncommenting below lines [multilib] Include = /etc/pacman.d/mirrorlist Then, to update sources and install Skype: sudo pacman -S skype


3

See man yes. Try if yes| your-pacman-command will do.


3

This should work with gdm ≥ 3.12 (tested on archlinux w. gdm 3.16.1): switch to a VT (e.g. Ctrl+Alt+F3), login as root and run: su - gdm -s /bin/sh to switch user to gdm. then run: export $(dbus-launch) and: GSETTINGS_BACKEND=dconf gsettings set org.gnome.login-screen disable-user-list true run exit or hit Ctrl+D to return to root account. restart ...



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