Hot answers tagged

6

A solution can be made with a simple script: Open file $ vim yaourt-helper.sh Create script #!/bin/bash _update="yaourt -Syua --noconfirm" if ! which $1 2>/dev/null 1>&2; then echo 'Package not installed, installing' $_update $1 exit $?; fi echo 'Already installed, checking for upgrade' $_update Set permissions and execute $ chmod +...


4

I would advise to use a solid proxying tool for all (or most) of your proxy needs. $ proxychains4 yaourt -S application proxychains-ng works well - but be sure to configure proxychains.conf before using.


4

There is no need to uninstall anything. You simply need to install Ubuntu and once you chose the partition to install on (your current ArchLinux partition), the installer will give you the option to format it.


3

I found your solution on the Arch wiki: Out of the box, systemd-logind will catch power key and lid switch events and handle them: it will shut down the Chromebook on a power key press, and a suspend on a lid close. However, this policy might be a bit harsh given that the power key is an ordinary key at the top right of the keyboard that might be ...


3

LTS does not mean that there will be no upgrades coming. LTS means that the packages will get minor upgrades to fix bugs and security problems when the 'standard' support for the version has stopped. It gives you the option/possibility to use your server in a safe way without you going to the next version that they support. The next version most often ...


3

If you go to the package AUR page and View Changes, you can see that in the most recent commit one of the version numbers was increased, but that file's corresponding md5sum didn't change. # Module Versions _about_arch_url="fusion809/about" -_about_arch_ver=1.5.17 +_about_arch_ver=1.5.18 _dark_bint_syntax_ver=0.8.6 _fusion_ui_ver=0.10.5 ...


3

You are confusing filesystem (organization) semantics with partition (storage) semantics. Linux filesystem hierarchy is like a single giant tree with a stem (/) , branches ( /boot, /home, /bin, /usr, /var ) and sub-branches ( /usr/bin, /var/log ...). This metaphor is equivalent of the parents, children and grandchildren. All these symbols/names ...


2

My /boot/loader/entries/arch.conf should have been title Arch Linux linux /vmlinuz-linux initrd /initramfs-linux.img options initrd=initramfs-linux.img root=PARTUUID={/dev/sda2 uuid} rw (replace {/dev/sda2 uuid} with the actual UUID)


2

Ooopps, gunicorn runs as: $ gunicorn [OPTIONS] APP_MODULE And you did $ gunicorn APP_MODULE [OPTIONS] The last part of your gunicorn_start.sh script shall be: exec /html/public_html/yogavidya/venv/bin/gunicorn \ --name $NAME \ --workers $NUM_WORKERS \ --user $USER \ --bind=unix:$SOCKFILE \ ${DJANGO_WSGI_MODULE}:application On a ...


2

In the case of MBR (and 1/2 KiB blocks) the information are stored in the first block (first 512 bytes) and for historical reasons and out of compatibility with various OSes the first really useful block would be the 63th. The space in-between is often used by boot-loaders for the program code for one of their levels. In the case of GPT you have the ...


2

I've done something like that on an Arch server. The server had enp4s8 as the "external" network, and wlp1s0 as the "internal" network. enp4s8 had a statically-defined IP address of 10.0.0.3, and a default route to 10.0.0.1, the DSL modem. /usr/bin/ip link set dev wlp1s0 up /usr/bin/ip addr add 172.16.0.1/24 dev wlp1s0 sleep 10 modprobe iptable_nat echo ...


2

You would have to use a systemd service to run your application during boot process. Create a new file in /etc/systemd/system (e.g. myscript.service) and add the following contents: [Unit] Description=My script [Service] ExecStart=/usr/bin/my-script [Install] WantedBy=multi-user.target put your script in /usr/bin/my-script and make sure to make it ...


2

You can add the applications you want to automatically start when booting the system by adding them to Startup Applications in the tweak-tool - open the Tweak Tool from Activities launcher : Alternatively copy a .desktop file from /usr/share/applications/ to ~/.config/autostart/.


2

You need to watch out for the following two points: sudo gives the highest priority to the last matching configuration-line you need to separate different commands by ',' so your configuration-line has to be %sudo ALL= NOPASSWD: /usr/bin/pm-suspend, /usr/bin/gnome-session-quit


2

Upon research this looks like it was an installation what was attempted to install into a CHROOT JAIL, since its an arch distro, there is one reference here that refers to the /srv/www mentioned. It appears the alternate configuration will need to be used, not the one in the /etc/nginx/nginx.conf which now serves as either a mask, alternate use, or dead ...


2

According to the npm config help, it will only derive its proxy settings from the environment If the HTTPS_PROXY or https_proxy or HTTP_PROXY or http_proxy environment variables are set (from the https_proxy section, the proxy section only mentions HTTP_PROXY and http_proxy). The help also doesn't list all_proxy as a configuration key anywhere, just ...


2

As per the Manjaro Wiki entry on bootloader configuration: To deal with windows partitions, you will need to install the mtools and os-prober utilities: pacman -S mtools os-prober Then run the grub auto-update utility, which will now be able to access your windows partition update-grub Note: The config file /boot/grub/menu.lst is used by the old grub, ...


1

You should stick to a manual installation using makepkg and understand how the compilation and installation process from the AUR works before using an AUR helper. Anyway, you have to import the PGP signature of the package before you install it. You can install the package without verifying its PGP signature but you shouldn't do it. You can import the PGP ...


1

If you are intent on scraping the hash off the page, then something like this will work. It's the sort of one-liner I write for one-off use, because it's likely to break as soon as the layout changes: hashsum=$(curl http://php.net/downloads.php | grep -A1 -F ">php-${pkgver}.tar.xz<" | sed 1d | tr '>' '<' | cut -d '<' -f3 ) To ...


1

I've done in with python and uinput: #!/bin/env python2 import serial import time import uinput ser = serial.Serial('/dev/ttyACM0', 9600) events = (uinput.BTN_JOYSTICK, uinput.ABS_X + (0, 255, 0, 0)) device = uinput.Device(events) device.emit(uinput.ABS_X, 128, syn=False) while True: value = ser.readline() valuecorrect = value.strip() ...


1

First, the b43-firmware package is kept within the AUR, the Arch User Repository. For how to install packages from the AUR, you should check the Arch wiki. Second, the command "pacman -Ss" searches packages as opposed to "pacman -S", which installs packages. Finally, you should check if b43-firmware or b43-firmware-classic better supports your card as can be ...


1

https://github.com/rs1909/knut/tree/master/knut /usr/bin/ld: cannot find -lgfortran /usr/bin/ld: cannot find -lquadmath Please read knut/knut/knut.spec.cmake → Buildrequires: libgfortran-static .... i.e. libgfortran.a Probably the same for -lquadmath : libquadmath.a ( I get no errors with the cmake configuring : The Makefile is created.) EDIT ...


1

Commands started in a shell session will have stdout and stderr (standard output and error) connected to that session. You're starting Thunderbird manually (i.e. by typing thunderbird &, not by clicking an icon in a graphical user interface) so its messages to stdout and stderr will arrive in your current shell session regardless of what you're currently ...


1

Per my setup, I had two systemd network unit files: one for the bridged adapter and one for the host-only adapter. I wanted the bridged adapter to have a dynamic address because the virtual machine is on a laptop that moves between networks, and I wanted the host-only adapter to have a static address so that I could access it, such as by ssh, without having ...


1

Uncheck Settings Manager > Window Manager Tweaks > Compositor > Show shadows under dock windows.


1

I was able to recover from my situation and here is what I did. I grabbed the bootable SD card on which I still had the Arch Linux iso and booted into it. There, I created a folder /mnt/arch and mounted my root to it. I also mounted my home partition into /mnt/arch/home, but that was probably not needed. At this point, I used 'arch-chroot /mnt/arch' to ...


1

CLTM might be required if your corporate proxy uses NTLM from Microsoft. After you have cntlm proxy server configured for upstream proxy (which is your corporate proxy), just configure npm to use it: npm config set proxy http://127.0.0.1:3128 npm config set https-proxy http://127.0.0.1:3128 You must have both http and https. Most package managers work ...


1

Make sure you don't set the default gateway in the netctl files or in any other files. If using DHCP to get IP addresses make sure to disable getting the default gateway (dhcpcd -G). Running "ip route ls" should not show any default gateways. Only "ip route show table all" would list the default gateways for each ISP table. Something like this: default via ...


1

As always I found the solution just after asking. I actually knew this one, just forgot to do it. One has to be in the vboxusers group to get access to usb devices. It's as simple as running sudo gpasswd -a <user> vboxusers in a terminal. For Ubuntu I think it's sudo useradd vboxusers


1

Removing setuid/setgid from system applications isn't done routinely (though there are occasional guidelines which do suggest just that). Doing this invalidates the package configuration, making it necessary for someone to make special-cases when investigating discrepancies between package content and the installed system. The usual approach is to not ...



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