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.


8

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.


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


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

A solution can be made with a simple script: Open file $ vim yaourt-helper.sh Create script #!/bin/bash _update="yaourt -Syua --noconfirm" if ! which $1 2>/dev/null 1>&2; then echo 'Package not installed, installing' $_update $1 exit $?; fi echo 'Already installed, checking for upgrade' $_update Set permissions and execute $ chmod +...


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) [2015-09-...


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

The … situation :) … here is that pacman doesn't clean its package cache. This is by design. Quoting the Arch Wiki: pacman stores its downloaded packages in /var/cache/pacman/pkg/ and does not remove the old or uninstalled versions automatically, therefore it is necessary to deliberately clean up that folder periodically to prevent such folder to ...


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


4

There is no need to uninstall anything. You simply need to install Ubuntu and once you chose the partition to install on (your current ArchLinux partition), the installer will give you the option to format it.


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

You can use this to temporarily disable lid-switch events: systemd-inhibit --what=handle-lid-switch sleep 1d


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

I would advise to use a solid proxying tool for all (or most) of your proxy needs. $ proxychains4 yaourt -S application proxychains-ng works well - but be sure to configure proxychains.conf before using.


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

You should download the archlinux-2015.08.01-dual.iso, or better yet, the archlinux-2015.08.01-dual.iso.torrent file and download Arch Linux via a P2P application. The 'dual' says that the ISO file is compatible for both x86_64 and i686 architecture computers. The bootstrap image in the mirror is used for installing Arch Linux on an existing Linux ...


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



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