Tag Info

Hot answers tagged

16

Is this not how to set up a swap file? I think you missed a step in between chmod and swapon: mkswap /mnt/sda2/swapfile As for the oxymoromic error... swapon: /mnt/sda2/swapfile: read swap header failed: Success What this literally means is there's a bug in the swapon code, but not necessarily one related to its primary functioning. C library ...


12

That's not a conflict, its a reflection of the fact that the new version of X (1.16) has hit the repos and, as the news makes clear, glamour-egl is deprecated. Follow pacman's advice and select Y.


8

A window manager is what runs after you've logged in. A graphical login screen is called a display manager. To set up a display manager in Arch, consult the wiki. It boils down to installing a display manager with pacman, and then systemctl enable [your chosen display manager]


7

I'm guessing the real problem is that you don't know what a SSID is. It's the technical term for the network's name, i.e. the thing that shows up in a listing of available networks. If you don't know what network you're supposed to connect to, you'll have to ask somebody at your location. As the Arch wiki explains, you can get a list of available networks ...


7

It isn't writing anything to the disk; it is reading from it. Swap is only used to hold data that is not backed by another file. Data, including program code, that is backed by another file can simply be discarded when it has not been modified. So what you are seeing is your programs being discarded to free up some ram, then having to be read in from the ...


7

As it's states in usage section, -p will skip pseudofs mounts (tmpfs, autofs and others): usage: genfstab [options] root Options: -L Use labels for source identifiers (shortcut for -t LABEL) -p Avoid printing pseudofs mounts -t TAG Use TAG for source identifiers -U Use UUIDs for source identifiers (shortcut for ...


6

To get system where your locale is en-US.UTF-8 (assuming you want utf-8, which is recommended) and keyboard layout in both X.Org and virtual consoles is de-latin1-nodeadkeys, do these steps: uncomment line "en-US.UTF-8" from /etc/locale.gen (e.g. sed -i 's/#en-US.UTF-8/en-US.UTF-8/' /etc/locale.gen) locale-gen echo LANG=en-US.UTF-8 > /etc/locale.conf ...


6

The problem was simply that the efivars kernel module was not loaded. This can be confirmed by: sh-4.2# efivar-tester UEFI variables are not supported on this machine. If you are chrooted in to your new install, exit out, and then enable efivars: exit modprobe efivars ...and then chroot back in. In my case, this means: chroot /mnt but you should ...


6

You probably want to do something like: screen -p 0 -X hardcopy this generates a file hardcopy.0 with the content of the screen session. The argument to -p determines which session. The files are dumped in screens current working directory or to the directory set set with the hardcopydir command. Check the screen configuration file for hardcopydir ...


6

The typo inside libX11 has been fixed upstream with commit 5dcb40f28d59587597d2ff6e6ac64c71cfe6ff7b and date 2013-09-17, and if you look at the commit log you'll see that this commit is above the last commit which got into release 1.6.2 of libX11. (2013-09-13) The 1.6.2 release is currently used in the extra repository on ArchLinux: ...


6

You have not explained what your actual goal is, beyond just using a computer that runs linux -- which apparently you've already been doing anyway for ~10 years. To be totally honest (since this is definitely an "opinion based" question), all the fussing with different distros borderline absurd. This is not to say they aren't different in superficial ways, ...


6

You can use systemd timers to execute script a minute after boot. First, create service file (/etc/systemd/system/myscript.service): [Unit] Description=MyScript [Service] Type=simple ExecStart=/usr/local/bin/myscript Then create timer (/etc/systemd/system/myscript.timer): [Unit] Description=Runs myscript every hour [Timer] # Time to wait after booting ...


5

Systemd manages dbus sessions in Arch. If you have an active logind session, then you can shutdown or reboot using systemd, without root privileges. See the power management section of the systemd page on the Arch Wiki: systemctl poweroff If there are other active seats, you will be prompted for a password.


5

Q#1: Or, to be more general, what pieces of software are common amongst all Linux distributions, i.e. define a Linux distribution? If we are talking about a GNU/Linux distribution, I can surely guess that the userland is pretty much the same among distributions. I can't think of one that get's away without using GNU Coreutils, GNU Binutils, GNU Bash, ...


5

Try mplayer (or a frontend like smplayer). The issue is related to OpenGL hardware GPU accleration reference It would be helpful to know which GPU you have. Arch recently enabled SNA acceleration by default for Intel GPUs. If it's an older GPU (intel/nvidia/ati) it likely doesn't have support, so disable hw accel.


5

First of all, the network persists even when you arch-chroot. But if you still want the answer, just use pacman --root /wherever/your/install/is/mounted. See also man pacstrap.


5

renice does affect the priority of a process. But as you've experienced, just because a process has higher priority doesn't imply that it will have all the resources it needs. A higher priority merely gives the process a bigger chance to grab resources. renice only affects CPU time. So it only has an effect if two or more processes are competing for CPU ...


5

You generally don't want to write the filesystem on the entire block device (ie. /dev/sdd), you want to create a partition and then put the filesystem in there (ie. /dev/sdd1). That is also what your mkfs complained about. If you are sure you only want to have one filesystem on this disk at a time, and you don't need a bootloader, you can safely ignore this ...


5

The equivalent is in /srv/http. You can find some discussion about its use in Arch in this mailing list post and this bug report (albeit only tangentially, those links discuss using it as a location for installed packages).


5

The option you are looking for is --noconfirm . It is available in pacman's 8 man page and is also available here however, it is best to avoid using it and is highly recommended to always read and understand pacman's output.


5

If you just want to launch a program at startup, a login script is the wrong place to do it. Instead, write a systemd unit file (since Arch seems to use systemd). Create /etc/systemd/system/scanner.service (or whatever.service) : [Unit] Description=(description of your program) [Service] ExecStart=/usr/bin/mono /path/to/scannerSoftware.exe 127.0.0.1 ...


5

Two comments. First, try to mount by Label or UUID instead of device. Device names can sometimes change. Otherwise, btrfs requires brtfs device scan call before it knows about btrfs filesystems on your machine. I expected arch to handle this but somehow it didn't work until I created a service file for this and put it in ...


5

Initial ramdisks use Busybox to save space. Essentially, utilities like mv and cp all share a lot of common logic - open a file descriptor, read buffers into memory, etc. Busybox basically puts all the common logic into one binary which changes the way it behaves depending on the name with which it was called. Let's take a look at that ramdisk. ...


5

You can switch the memory unit by pressing e. E will select the memory unit in the top summary bar. Use W to permanently write your configuration to /home/user/.toprc and see also ? for more configuration options.


5

Your hooks are all here: % ls /usr/lib/initcpio/{hooks,install} /usr/lib/initcpio/hooks: btrfs dmraid keymap mdadm mhwd-fb miso_loop_mnt net shutdown udev v86d consolefont encrypt lvm2 memdisk miso miso_pxe_nbd resume sleep usr /usr/lib/initcpio/install: autodetect consolefont fw mdadm_udev miso_loop_mnt ...


5

No, pacman doesn't remove old packages from your cache (/var/cache/pacman/pkg) so, over time, it can fill up. You can adopt two approaches to clearing the cache: the brute force one with pacman -Sc: -c, --clean Remove packages that are no longer installed from the cache as well as currently unused sync databases to free up disk space. ...


5

Spoofing your MAC-Address is relatively simple: General steps: Save your MAC for a future reset Temporary disable your interface to change your MAC Set your new, arbirtray MAC Enable your interface again Using different tools: With ip: ip link show <interface> &> ip_savehafen.log sudo ip link set dev <interface> down sudo ip ...


5

This has more to do with systemd rather than the kernel, and in short, it means you just had a clean shutdown. See here : https://bbs.archlinux.org/viewtopic.php?id=174495 .


4

I started my Linux journey with Ubuntu lucid, and currently use Arch. I've written a handful of Arch packages, and I'll say its far easier than writing Debian packages. But, I'd like to point out to @gentledevil that Arch does have a hooks system for packages, known as an install file. Basically, its named ${pkgname}.install, and contains a few functions ...


4

Page handling is determined by the application, not the printer. If this functionality is important to you and not present in Zathura you could use a more fully-featured .pdf reader like Evince.



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