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.


12

In cups v. 2.0.0 the service name has been changed (see also the install file here). You'll have to disable the old service: systemctl disable cups.service before enabling and starting the new one: systemctl enable org.cups.cupsd.service systemctl daemon-reload systemctl start org.cups.cupsd.service


11

Besides uninstalling the appropriate drivers (which might fail to work since some devices act as usual mouse devices and only need specific drivers for more sophisticated features and your list of installed drivers suggests this) you can also disable the device via the xinput tool or by explicitly matching in xorg.conf. To disable the device using xinput, ...


11

You don't typically clear the journal yourself. That is managed by systemd itself and old logs are rotated out as new data comes in. The correct thing to do would be to schedule journald to only keep as much data as you are interested in. The most usual thing to adjust is the total disk space it is allowed to take up. Once it crosses this boundry it will ...


9

I had exactly the same problem. Have you killed the dhcpd? I completely killed dhcpd: $ sudo killall dhcpcd After I disabled my wireless interface ($ ip link set down $ should work too): $ sudo ifconfig wlp3s0 down and my wifi-menu is working again.


9

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.


8

Try this command to view the log from systemctl: journalctl -u sshd |tail -100


8

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


7

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


7

Yes, the distros are of similar, with both being set to satisfy more experienced users, and both aim to be fast and highly customizable. Th most technical similarity is that both are based upon the Linux Kernel. While most functions may seem similar, the two are different in many ways. 1) Apparently, Gentoo documentation is said to be very intimidating to ...


7

The browser files on disc just get replaced. The running program (if not completely in memory) keeps the old executable files open until the program closes (but until then those are no longer the executables files you get via the directory entries). On the next restart of the browser you get the version. No reboot necessary except for the program that gets ...


7

As you suspected, Unix-like systems prevent most files being executed from being overwritten. Here's what the standard says about the open system call: The open() function may fail if: [ETXTBSY] The file is a pure procedure (shared text) file that is being executed and oflag is O_WRONLY or O_RDWR. But a file being executed can still be unlinked, ...


6

journalctl --since=today Reference


6

I had the exact same problem when i was trying to install arch on virtualbox earlier today. The solution is to run depmod $ depmod 3.14.4-1-ARCH After running modprobe again, it should work. You can use uname -r to find your kernel version string. Source


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


6

Yes, it will work in the same way as other PKGBUILDs with binary sources - extract it and copy files. The only thing which should be mentioned is that deb-archive consists of 3 other files - debian-binary, control.tar.gz, data.tar.gz. makepkg will extract only first-level archive and then you should manually extract data.tar.gz. prepare() { tar -zxvf ...


5

Jasonwryan (as per usual) was right on the mark with his initial comment. Arch's packages are supposed to be as close to "vanilla" as possible. Now, while you could use rpmextract or alien, there isn't really a good reason to do so. What you should do is create a PKGBUILD that uses the RPM as the source file and then installs everything that's needed where ...


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

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

Just connected with the developers, and my problem is resolved. My customized kernel does not support the open by file handle syscall, so I enabled the CONFIG_FHANDLE option, and it boots again.


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 .


5

This can be done by using a custom dlagent. I do not really understand Arch packaging or how the dlagents work, so I only have a hack answer, but it gets the job done. The idea is to modify the PKGBUILD to use a custom download agent. I modified the source "${pkgname%-git}::git+http://github.com/Itseez/opencv.git" into ...


4

The rule syntax above may work on some distributions, but did not work on mine (Raspbian). Since I never found a single document that explains all the ins and outs, I wrote my own, to be found here. This is what it boils down to. 1. find out what's on ttyUSB: dmesg | grep ttyUSB 2. list all attributes of the device and pick out a unique identifier set, ...


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

I ran across the same issue just now, and found another workaround. Basically, it involves making the hosts /run directory available to the guest. First, we mount /run where it can be accessed by the guest. I will assume that your install partition is mounted at /mnt mkdir /mnt/hostrun mount --bind /run /mnt/hostrun Then, we chroot into the guest, and ...


4

When setting up a new Arch install I usually do the following: pacman -S alsa-utils Then fire up alsamixer with alsamixer Go to 'Master' then press M and then keep hitting the up key to bring the sound levels up. I do that for any other inputs I want like pcm etc. Then do speaker-test -c2 with the number being how many channels you want to test. ...


4

Doctoror Drive is correct, this can be done pretty simply with pulseaudio, but if you are using ALSA exclusively, it will be a much more difficult task. With pulse, there are a variety of options. Both pacmd and pactl are capable of this, but it may seem overly complicated because of the significant number of options. Alternatively, you could use a ...



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