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


9

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

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

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


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


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

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

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

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


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.


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

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


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

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

You can probably install XFCE without uninstalling Gnome first -- there are no package conflicts. Then log out, and select the XFCE desktop session at the GDM login screen. As far as I know, XFCE doesn't have it's own login screen ("display manager"), so be careful when you remove Gnome that you don't also remove GDM (or that you replace it with something ...


3

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


3

What a sad thing having a VM without internet access :( I think that you should talk to your boss and tell him that without internet access you can't properly update your linux distro, and this can lead to potential security issues. Anyway, you can browse the Arch Linux official package list from here: https://www.archlinux.org/packages/ You can download a ...


3

Read through this helpful page of the Arch Wiki: Systemd Targets. Systemd targets are roughly equivalent to the old runlevels when everything used the init system. Change your target from 5(multi-user graphical) to 3(multi-user no graphics). This should drop you into a terminal login screen upon boot. If you want to go graphical just type "startx."


3

Quoting the ArchLinux wiki: Note: Because of the process substitution, you cannot run this command with sudo - you will need a root shell. You should be able to use su -c under sudo like so: $ sudo su -c 'wpa_supplicant -D nl80211,wext -i wlp4s0 -c \ <(wpa_passphrase "some ssid" "password")'


3

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

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

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

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

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

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



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