Hot answers tagged

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


12

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.


7

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


7

You need to add yourself to the docker group and activate the group (by logging out and in again or running newgrp docker) to run docker commands. The error message is simply misleading.


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

dm-crypt is a transparent disk encryption subsystem. That being said, it's better suited to encrypt disks and partitions. It can encrypt files, but they have to be mapped as devices for this to work. If you want to encrypt only one file, GnuPG could be a better tool. Example: gpg -c filename See Also: nixCraft: Linux: HowTo Encrypt And Decrypt Files ...


4

If you want to be supported by any contingent of the Arch Linux community, there are only two guides you can use to install Arch: The Beginners' Guide and The Official Installation Guide. Any other guide/script/tutorial used is not supported and never will be. Now then, that is not to say that you cannot use those scripts, but if you do, you are ...


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

Libncurses was recently updated from /usr/lib32/libncursesw.so.5 to /usr/lib32/libncursesw.so.6. There would have been a matching bash update, but you don't have it. In fact, I just found this in my own pacman.log: [2015-09-19 23:45] [ALPM] upgraded ncurses (5.9-7 -> 6.0-3) [2015-09-19 23:45] [ALPM] upgraded readline (6.3.008-1 -> 6.3.008-3) ...


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


4

This is easier to do with awk than grep and sed: ip addr show eth0 | awk '/inet / {print $2}' If you want to strip the CIDR netmask from the IP: ip addr show eth0 | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' Note that an interface may have more than one IP address - e.g. ip addr show br0 | awk '/inet / {print $2}' on my system has 11 IPv4 addresses, ...


4

As pointed out by Earnestly and demonicmaniac3 over at #archlinux irc channel, this is because pacman won't re-download anything if it's already locally installed. But it will download whatever it is you're specifically instructing it to, which make a whole lot of sense come to think of it. This means if you're trying to download packages intended for a ...


4

I finally solved it by nuking the Arch partition and its boot files in my Ubuntu's /boot directory from orbit. Ubuntu is fine again now, all remaining GRUB entries are working again. Here's a list of what I did: Delete Arch's initramfs files: sudo rm /boot/initranfs-linux* Delete Arch's vmlinuz file: sudo rm vmlinuz-linux Format the Arch partition ...


4

Process substitution <(…) creates a pipe, uses /dev/fd to give a path that's equivalent to the file descriptor where the pipe is, and passes the file name as an argument to the program. Here the program is sudo, and it passes that argument (which is just a string, as far as it's concerned) to wpa_supplicant, which treats it as a file name. The problem is ...


3

I've recently installed ArchLinux + GNOME 3 on the ThinkPad Helix 2, and mostly everything works out of the box. My biggest remaining issue is suspend; a bug report has been filed to fix it but they're still seeking more information. (So perhaps trying it yourself will help! ;)) The pen works wonderfully, palm rejection is perfect in Xournal. A few things ...


3

A very brute force method to clean the entire log: $ sudo journalctl --vacuum-time=1seconds You can also use --vacuum-size as Michael mentoined.


3

The correct way to delete a package is pacman -R package-name. To delete everything, including modified configuration files and dependencies you may have pulled in with a tool such as yaourt or packer, run pacman -Rns package-name. In this respect, AUR packages are no different from native packages.


3

This is pretty complicated. Let's explain the commands in order you've enumerated them. telinit Various arguments to telinit directly translate to various (different) subcommands of systemctl. As per telinit(8) (documentation from systemd package): 2, 3, 4, 5 Change the SysV runlevel. This is translated into an activation request for ...


3

You will have to download and install OpenBLAS. Download latest stable version from https://github.com/xianyi/OpenBLAS/zipball/master. Extract and run make and make install. You will need gfortran to compile. Make sure you have numpy installed as well, you should be able to install that from an archive.


3

Seems like an HW component is the best idea. There are some HW generator IC out there, but you have to trust them as they come. Two probably good solution are to induce component to create noise; two major solution seems to be temperature bias and the avanche noise created with a diode (see ...


3

First of all, using /dev identifiers for these purposes is generally a BadIdea™ since the disk letter can change (if you have more than one disk). See the Arch wiki entry on persistent block device naming. Second, Gummiboot is a dead project and while it is still an option to use it, you should consider moving to systemd-bootd (which is actually just ...


3

Sadly, the AUR packages have been very broken for some time. The easiest way to do it is just to install cabal-install and then install pandoc in your home directory with (as non-root): cabal update cabal install pandoc Then you end up with pandoc in ~/.cabal/bin/pandoc. It would be great if someone fixes the AUR packages, but until then, using cabal to ...


3

If you just need screen regions, use import, part of ImageMagick. If you call it without any arguments except the output filename, e.g. import ss.png it will change your cursor into a crosshair and when you click and drag to form a box, that box will be saved as ss.png. You can also use it to grab screenshots of the whole display as import -window root ...


3

arch-chroot does more than create a chroot: it also creates a PID namespace. unshare --fork --pid chroot "$chrootdir" "$@" As the name suggests, a PID namespace has its own set of process IDs, distinct from the rest of the system. This means that processes inside the namespace can't see the processes outside the namespace (and in particular can't kill ...


3

There are two common sources for this kind of problem (i.e. affecting multiple unrelated programs) Faulty memory. Use memtester or memtest86 to test your memory. Replace any bad DIMMs. If your motherboard supports it, buy ECC RAM - it's usually only 10-30% more expensive. Note that some distros (e.g. debian) are conveniently configured to add a grub ...


3

It's a btrfs-specific issue: /home is a subvolume. btrfs subvolume list -a /parent shows all subvolumes and btrfs subvolume delete dirname deletes them.


3

The best starting point are logs. Since you say that the application log didnt show anything helpfull, you should exame system logs like dmesg and cron jobs. A common entry in dmesg would be an OOM (out of memory)-error but you said there was plenty of free memory. To get the time of a crash, my preferred way is to run date; time command where command is ...


3

After trying all sorts of things, none of which made any difference, I finally figured out that what I had to do was disable fastboot in my BIOS. In my case, it was: Changing that from "Minimal" to "Thorough" let me go straight to my bootloader without needing to hit F12.


3

This is a bug in systemd. The entry in systemd bug tracker is issue #2242, the one in Arch Linux' flyspray is FS#47557.


3

Execute your command with exec command to replace your bash with your script and when your script interpret exit command it will close your terminal. Run your command like: exec ./myscript.sh NOTE: Your script must have execute permission.



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