Tag Info

Hot answers tagged

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


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


4

The question has little sense. "To start during boot" means precisely "to start as dependency of the default target". Note that systemd starts everything in parallel, so the 1.5-second NetworkManager startup does not delay anything except services which explicitly wait for network (apparently, you have none; otherwise they would have been shown in the ...


3

This is not going to be straightforward so bear with me. I cannot give you specific instructions as each system is a bit different but here are the major steps you need to do to fix your issue. The first thing you need to do is boot the system from a live medium. Any Linux distro should work as long as it has the same architecture of the installed distro. ...


3

By default, tmux spawns a login shell for all new windows. This would then source your ~/.zprofile or wherever your start your ssh-agent. As man tmux makes clear, you can avoid this behaviour by explicitly setting a default command in your ~/.tmux.conf: default-command shell-command Set the command used for new windows (if not ...


3

Hmm ... apparently this line was the clue: grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet.. Previously I had installed btrfs directly on /dev/sda and /dev/sdb. That's why both of them had a FSTYPE and LABEL attached (as shown in lsblk). Solution: I have now wiped both /dev/sda and ...


3

Pacman 4.2 was officially released just a few days ago. One of its changes is the removal of the option --asroot from makepkg, which means that you cannot build packages as the root user anymore. The recommended solution now is to build packages with a non-root account. You can read more about this change in one of Allan's post (he is a developer of ...


2

It seems that Arch Linux no longer places the default config files in /etc/X11/xorg.conf.d, it now leaves that wholly to system-specific (user-made) config files. Note: Arch supplies default configuration files in /usr/share/X11/xorg.conf.d, and no extra configuration is necessary for most setups. Xorg uses a configuration file called xorg.conf ...


2

You can't tell what each partition is for from /proc/partitions, that only tells you the partition numbers and their sizes. Given the numbering, with a one-sector sda3 and no partition numbered 4, this is an MBR-type partition table where sda3 is an extended partition; since Windows needs to boot from a primary partition, the Windows partition has to be ...


2

You can use watch command to constantly running w (every some time defined in -n parameter). For example: watch -n 1 w will run w every second. Output of w will be kept on top of the terminal window.


2

When you start butterfly from shell, it removes quotes around 0.0.0.0. On the other hand, systemd doesn't do quote expansion in this situation, because it is not a shell. Actually, systemd is capable of stripping quotes around arguments, but not in middle of them. So, try to remove quotes around 0.0.0.0 in your service file and see what changes. Do not ...


2

You can try to use nmon instead of htop. The reason for it might be a program, that has high amount of HDD traffic, so that the CPU isn't actually used, but waiting for device sync. Or maybe it isn't actually a processes but a old/damaged HDD. In nmon this is showed seperated in the CPU usage. I don't know if htop does.


1

Manually: ifconfig $DEVICE 0.0.0.0 up should remove the IP and leave the interface up and running. Some distributions allow such a configuration statically, others do not. Perhaps you can set up a bridge-device instead.


1

You can probably fix this problem by reinstalling grub. You need to mount your existing root directory to /mnt and then arch-chroot /mnt. Then you can follow the instructions at GRUB- Arch Linux Wiki to reinstall grub. If you absolutely cannot get grub to work, you can always try a different bootloader.


1

You can install dpkg from AUR which will provide a probability to install .deb packages if needed You have no guarantee that there is an equivalent for every Ubuntu package, or that it will work correctly after you install it with dpkg. I, personally, switched from Ubuntu to Fedora and than to Arch, and never had a problem with availability of some ...


1

Since Arch is not a Debian-derivative Linux, is cannot use apt-get. There is no tool to install Ubuntu packages on Arch and there is no guarantee that every Ubuntu package has an Arch equivalent. Arch has its own official repositories with thousand of packages, and besides that the Arch User Repository, that allows you to compile a package from source.


1

In either your .bashrc or .zshrc, depending whether you use bash or zsh respectively, export these two environment variables: export EDITOR=vim export VISUAL=vim Adittionally, you might want to associate vim to the mimetype of text files: xdg-mime default vim.desktop text/plain Now you'll have to create a vim.desktop file in /usr/share/applications, ...


1

First turn up logging level. Change the "LogLevel" directive to LogLevel debug. Use systemctl to stop/start httpd. Mark the perl script executable with chmod ugo+x whatever Next, change the script a little. You need a "blank line" between headers and body: print "Content-type: text/html\r\n"; print "\r\n"; Note that each line in the headers is ...


1

You haven't informed apache when to use the mod_perl extension. Add the following: AddHandler perl-script .pl .cgi to your config instead of the cgi-script handler. Also see How do I make Apache handle .pl (Perl) files, using mod_perl?


1

So you probably overwrote the beginning of your hard drive, I guess you're lucky anything it booting from it. I'd expect it's written it's own partition & maybe even MBR/GPT. Using a good live cd/dvd/usb should let you delete the new unwanted partition(s) and attempt to fix things, but restoring the overwritten data from a backup may be required. When ...


1

The default X config files live in /usr/share/X11/xorg.conf.d in arch. You can still put them in /etc/X11/xorg.conf.d if you want.


1

“Feeding /dev/urandom into the entropy pool for /dev/random” is cheating — you're pretending to provide new entropy when in fact the data is derived deterministically from the current state of the RNG. Fortunately, as you noted, the rule that you're cheating is a useless one: entropy doesn't actually decrease despite what the Linux kernel pretends. Low ...


1

this here do its job: https://aur.archlinux.org/packages/lxqt-config/ not packaged, afaik: http://qt-apps.org/content/show.php/Qt5+Configuration+Tool?content=168066


1

I'm glad hassan_noori answered this question first as I didn't know yet Arch Bang guys have built up a script to add persistence on a live-usb install. As for Manjaro, stable 0.8.11 has no possible persistence, I've been told Manjaro-dev (aka 0.9) has it though I cannot recollect my source. Might come in handy along with the distro powerful and easy to use ...


1

To get this to work I installed qemu-static-arm and binfmt-support from AUR. Read the comments for qemu-user-static. I had to update the PKGBUILD with the most recent download URL and hashes for makepkg to finish. (To install from AUR, download the tarball, untar, cd, run makepkg -i) Christian Wolf's answer is important. update-binfmts is not executed ...



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