Hot answers tagged

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


3

pacman -S os-prober grub-install /dev/sdX (do not use partition number) grub-mkconfig -o /boot/grub/grub.cfg And then you should be all set to go, as long as os-prober is installed, it will let grub detect and preserve the windows boot partition. Note this is NOT for EFI motherboards.


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


2

Curl uses your system's trust store to ascertain trust of certificate chains by default. This trust store contains a list of trusted CA certificates. Since you've self signed and are not using a chain that leads to a CA certificate in the trust store, curl fails your request because it doesn't trust your chain. Either: Get your CSR signed by a trusted ...


2

As jasonwryan notes this is not generally a wise approach, but simply pacman -S <pkg name> will install the latest version and anything that it depends on, though I'm not sure what your meaning: Without uninstalling it Are you attempting to keep multiple versions of the same package? if so, then no I do not think archlinux will support this ...


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

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

Using gparted remove the existing partitions from your usb , and fix the msdos partition table ( by going to the device menu then select create partition Table) . Then create a new partition fat32 by right click on the unallocated space and select new, make it as a primary FAT32 partition . Next step create your bootable usb: dd ...


1

If it is a archlinux bootable iso, you don't have to do anything special. Just dd if=somefile.iso of=/dev/sdx where sdx is the block device like /dev/sda and not a partition like /dev/sda1. This is possible as the iso already contains all that is needed. If you set some partition table, it will simply has no effect, as it will be overriden by dd, as ...


1

The -Ssq flag queries the sync database. Unless you have installed all the packaged in the repos, there should be things in the sync database that are not installed on your machine. To find packages that are installed locally, you need to query the local database with -Qsq.


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

The main point here is that pacman keep populating your /var/cache. Which means that if you don't do the cleaning yourself, it will indefinitely grow! Apart from that, you can imagine that some software will take more space, some may take less. If you do your housekeeping well, it shouldn't increase that much. With Arch, you are in charge and can really ...


1

Perhaps your upgrade replaced the locale alias you were using and did not provide a useful upgrade path to the new name(s). You can regenerate locale information on the server, but keep in mind that the problem may be in your /etc/locale.gen or locale.conf file. Further reading: Locale (Arch wiki) Why is almost every program complaining about my locale? ...


1

The same exact thing happened to me. Building on what Thomas said above, I was able to fix it by uncommenting en_US.UTF-8 UTF-8 in my /etc/locale.gen file (previously none of the lines had been uncommented), then running locale-gen.


1

The recent GTK 3.20 update has broken a lot of themes; until such time as they are updated to work with the new API, you will need to use a standard theme (like Adwaita) that is compatible with the new version.


1

It is important to note immediately that it is not just the video that has been disrupted. The modules/drivers were not permitted to load because of version-matching restraints. I would like to provide the direct cause of the problem, although I do not know the ultimate cause of the problem. I did indeed have kernel + module mismatch that led to the error ...


1

It seemed that the issue was my password contained symbols. In particular it contained the symbols "#" and "!". I'm assuming it was the "!" that was causing issues, but after changing the password to "hi" it seemed to let me log in. EDIT: I found out what the real issue was. My keymapping was set to something like "de-latin" instead of "us" and the "#" in ...


1

Yes, you would replace the UUIDs as you think. The backup filesystems all have unique UUIDs, just as the active ones do, so the entries you have in the bootable backup will all be unique. The article you reference presents a simplified example, with expanding it to multiple fstab entries "left as an exercise for the reader".


1

Since there doesn't seem to be an option for achieving that, I looked into pacman source code and created a patch to add a --yes option to pacman: https://bugs.archlinux.org/task/48835


1

Save a backup of your all your grub configuration files. There are two methods I have used in the past: 1) Install ntfs-3g (which should allow your installation to see the windows partition automatically) using your package manager. It was available in the EPEL repo for me, but you'll have to find a different repo for it on Arch. Then sudo grub2-mkconfig. ...


1

It turned out to be a configuration issue. Moving the ~/.ddd directory so that ddd used a fresh configuration, solved the problem. That explains why it worked with sudo, as it was executed as the root user which did not have a messed up configuration. Something worth mentioning is that my interpretation of the strace output was also not correct. It is ...


1

If you type rfkill list it will probably show that your wifi is blocked. Unblock it with sudo rfkill unblock wifi If rfkill is not installed on your system, you can install it with sudo pacman -S rfkill If you don't have internet access at all, you should still be able to do this by hand. See if you can find those files on your computer: ...


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

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

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

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



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