Hot answers tagged

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

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")'


2

It looks like that the hook lvm2 run after the hook encrypt during Arch Linux's Initial RAM filesystem phase is not able to activate thinly provisioned logical volumes. With the same storage configuration as depicted in my question except for normal logical volumes instead of thinly provisioned ones the volume group containing these can be activated without ...


2

Warnings as errors are usually result of -Werror passed somewhere to the compiler. It can be intentional enforcement from developer to see how much mistakes are still there and being left only because it's still in development, or intentional enforcement in mission critical software. Anyway, you need to find out where -Werror is. grep is a nice tool for ...


2

SELinux context is stored in file's extended attributes (xattr, man 5 attr). Tools for working with them are available in core/attr package. Attributes, including SELinux context, can be retrieved with getfattr. There is a twist though: by default getfattr lists only attributes from user. namespace; and selinux attribute we need is in security namespace. So ...


2

TL;TR: FTP is a broken protocol and FTPS more so. Due to a combination of protocol design and encryption it plays very bad together with firewalls. Try to use SFTP (i.e. file transfer over SSH protocol) instead. FTP consists of a control connection (usually port 21) and the data connections. Which ports are used by the data connections are dynamically ...


2

I can now happily confirm that accessing the built-in flash drive works without problems using kernel 4.6.0-rc7 and manually binding the device using: echo 106b 2003 > /sys/bus/pci/drivers/nvme/new_id I'll submit a patch which will make the manual binding superfluous. During testing I had one episode of spurious timeouts which I was never able to ...


2

Okay, after joe pointed me the right direction in comments, this is how I did it: basicly just install pacman -S linux-lts (optional) check if kernel, ramdisk and fallback are available in ls -lsha /boot remove the standard kernel pacman -R linux update the grub config grub-mkconfig -o /boot/grub/grub.cfg reboot Note, for syslinux you'll need to edit the ...


2

According to the systemd.special man-page, you should use Before=poweroff.target. poweroff.target A special target unit for shutting down and powering off the system. Applications wanting to power off the system should start this unit. runlevel0.target is an alias for this target unit, for compatibility with SysV. Additionally, as I mentioned in my ...


2

They are on the two keys to the right of P: pressing the first with Alt Gr produces "«", the second produces "»".


2

The right tool for this job is paccache1: paccache -r -k 1 -c /path/to/cache/dir This deletes -r all cached versions of each package except for the most recent one -k 1 in the cache directory specified via -c You can always move the old packages to another dir instead of deleting them immediately and only delete them later on. Run paccache -h for more ...


1

I believe the Fn keys are mapped to X86... named keys. Therefore, I'm assuming you have to install the x-server first. As for the brightness issue, ArchWiki has some relevant information, among which is the possible systemd-backlight problem/workaround: Inverted Brightness (Intel i915 only) Symptoms: after installing xf86-video-intel ...


1

Run: sudo systemctl enable sshd.socket To enable service to run on boot.


1

It seems that kernel erroneously detected some device as floppy or just created a non existent reference because your machine does not have real floppy drive. So these blk_update_request for fd0 are completely unrelated to your hard drives. Many disk managing programs such as fdisk like to enumerate all available block devices, and definitely fdisk did hit ...


1

Your computer is not seeing the nearest wifi AP as it is in channel 13, which by definition should not be used in the US. I advise you to try and configure wpa_supplicant for your country code. In wpa_supplicant.conf please add the directive: country=CZ Then disable and enable wifi again. Hopefully if the card has not any other limitation, you might see ...


1

There is a component called Polkit that is used by many applications to request root permissions to do things (it can do so because it's a daemon running as root). Polkit can be configured to ask for a password (either your user account password or the root password) or to just allow it without a password prompt. That decision can be based on any number of ...


1

With the help above from Alexander Batischev, and some very useful information from Reddit user cookie_enthusiast on the /r/linuxquestions page on Reddit, I managed to get this working. It turns out that GRUB2 works well with UUIDs, and not so well with device names. With this knowledge in mind, we need the following 4 UUIDs at hand, before we can ...


1

You are not booted in EFI-mode. Can you disable Secure Boot -- it could be falling back to "Legacy" mode in the absence of a correctly signed kernel image and bootloader. And if you have already disabled Secure Boot, this means that you motherboard do not allow UEFI. The reason why this step is vital is that Legacy boot use MBR and UEFI mostly use ESP. So, ...


1

Most but not all files that are part of the system are owned by the root user. It's rare for system files not to be owned by root, because a user that owns system files can modify them and this is usually not desirable. It's a lot more common to have files that are owned by a group other than root, and that have mode 660 or 664 or 640. It's possible to ...


1

The answer is no. All files outside of home directories are not owned by root. There is a rich and complex set of users and groups, and permissions, on files outside of user home directories for a number of reasons, some historical, and some security related. However, tar implementations have two usual modes, they either, restore files and directories ...


1

I asked the same question in the Manjaro Forum and got the following solution: Those issues are related to the latest gtk3.20 changes, alot of themes are broken now. Also the manjaro xfce main theme switches from menda to maia, so your problems are solved when you switch to our new theme (available in dark and normal and just beautiful :)) sudo pacman ...


1

Before using Xorg on archlinux, it need to be configured. One way to do it is to run: Xorg :0 -configure cp ~/xorg.conf.new /etc/X11/xorg.conf


1

The menu fonts should change based on your GTK font, but the font used in web pages is a combination of firefox settings and fontconfig. To change the setting in Firefox for example, go to Edit > Preferences > 'Content' tab > and click the 'Advanced' button next to 'Default font'. Here you can change the setting for various languages. If you want to see ...


1

Fixing grub.cfg by hand (not recommended) Looking at your grub.cfg the Ubuntu entry is broken (and some of the following one as well) menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-eee18451-b607-4875-8a88-c9cb6c6544c8' { recordfail load_video gfxmode $linux_gfx_mode insmod ...


1

Take a look at https://wiki.archlinux.org/index.php/Dm-crypt/Specialties. You can switch the mkninitcpio encrypt hook for encryptssh and then add some things to your kernel bootline. I'm using the dropbear hook and it works pretty well.


1

This question has already been answered, but here's an additional piece of information. No matter if you're on Arch or another distribution like Fedora or Ubuntu, Docker uses a socket file to communicate. When you run docker commands, it uses this socket to talk to the Docker daemon. Of course, the daemon must be running (and it's often disabled by ...


1

MEGA is now offering a megasync package for ArchLinux. You can download it from: https://mega.nz/#sync. It will also configure their official repo, so that updates will work and you can install nautilus extension.



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