ASUS VivoBook S530F: how to install the Windows 10 drivers?

Problem
I got a new laptop at my workplace, an ASUS VivoBook S530F. I wanted to make a dual-boot system with Windows 10 and Manjaro. First, I installed Windows 10 on it. For creating a bootable USB stick, I followed this guide (I used gparted). Windows 10 installed successfully but I had no wifi. Fine, let’s install the drivers from the included DVD. Some drivers went up, but the installation of the wifi driver terminated with a DLL error. This error was produced by a file called pnputil.exe. Hmm… OK, then let’s connect an Ethernet cable. Oh, but this slim laptop has no Ethernet connection! Using another machine, I downloaded the wifi driver from the ASUS home page, I could install it, but nothing happened. The wifi was still dead.

Solution
It turned out that the file pnputil.exe is part of the Windows and you can find it in the C:\Windows\System32 folder. On the DVD there were about 18 copies of this file and by comparing their sizes, there were at least 3 different versions. On the official DVD! Congratulations!

So I copied the content of the DVD to the hard drive and overwrote all instances of pnputil.exe with the one from the System32 folder. Then I launched the installation wizard and it installed all the drivers without any DLL error message.

Update: Installing Manjaro
After Windows 10, I installed Manjaro in a separate partition. Under Windows 10 I downloaded the Manjaro ISO and wrote it on a USB stick with Rufus in dd mode. During the installation I created a swap partition and a root partition. Here I got a warning that an EFI partition is necessary. The Windows 10 installer created a FAT32 partition of size 100 MB. I selected this partition and specified it to be mounted under /boot/efi. The installer flagged it automatically as “esp”. Then the installation went on without any problem and my wifi card was recognized out-of-the-box.

Advertisements
Categories: manjaro, windows 10 Tags: , ,

download a YouTube playlist for offline view and keep the videos numbered

Problem
You want to download a YouTube playlist. youtube-dl can do that, fine. However, if the playlist contains the videos in chronological order, then you may want to watch them offline in the same order too. On YouTube, the videos are ordered and they are also numbered, but if you download them with youtube-dl, you lose the numbers and you lose the original order.

Solution
Good news: youtube-dl has a command-line option for this. When downloading a playlist, I use the following Bash script:

#!/usr/bin/env bash

URL="https://www.youtube.com/playlist?list=<playlist_id_here>"

youtube-dl -o "%(playlist_index)s - %(title)s.%(ext)s" \
           --ignore-errors \
           --download-archive downloaded.txt \
           -f 22 \
           "$URL"

It’ll download the videos in .mp4 format (that’s format 22).

Categories: bash Tags: ,

How to hide the side bar in okular?

March 16, 2019 Leave a comment

Problem
When you open a PDF in okular, you have a huge side bar on the left. How to hide it? Under View there is nothing about it :(

Solution
It’s under Settings. There, untick Show Navigation Panel. There is a shortcut for toggling the side bar: F7.

Categories: linux Tags: , ,

How to append images vertically?

February 26, 2019 Leave a comment

Problem
With youtube-dl I downloaded all the videos of a YouTube playlist. I also wanted to have a screenshot with all the videos of the playlist that contains the thumbnails, the titles, etc. As the playlist contained many videos and thus they didn’t fit on one page, I took several screenshots. For example, 01.png contained videos from 1 to 9, 02.png contained videos from 10 to 18, etc.
However, instead of several screenshots, I wanted just one long screenshot with everything. How to concatenate images vertically?

Solution
Using convert from ImageMagick:

convert -append 1.png 2.png full.png

This tip is from here.

Categories: bash Tags: , ,

[latex] using accents

February 22, 2019 Leave a comment

Problem
I wanted to write a LaTeX document in Hungarian using those funny accents (áéíóöőüű), but they didn’t appear in the PDF output.

Solution

\documentclass[hungarian]{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}

The tip is from here.

Categories: latex Tags: , ,

[manjaro] goodbye yaourt, hello yay

February 22, 2019 Leave a comment

Problem
Under Manjaro I’ve used yaourt so far to install AUR and even other packages. I’ve read there are problems with yaourt but it worked so well. However, I just heard that yaourt is not maintained any longer. So what to use instead of yaourt?

Solution
yay is very similar to yaourt in its functionalities and usage, thus it seems to be a good replacement.

I only had one issue, the output was not colored, but it was easy to fix. From the FAQ: “make sure you have the Color option in your /etc/pacman.conf“.

I even removed yaourt to force myself to use yay: “yay -R yaourt“.

yaourt was great and I’m thankful for its developers.

Links

Categories: linux Tags: , , , , ,

finding a neovim problem

February 5, 2019 Leave a comment

Neovim has a built-in command :checkhealth that will run a detailed self-diagnosis.

I had the problem that when I started neovim, I got some Python-related error concerning the package neovim (the reddit discussion is here). With :checkhealth I could find the source of the problem easily.

Categories: vim Tags: , ,