Posts Tagged ‘install’

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

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.

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.

Categories: manjaro, windows 10 Tags: , ,

Steam client on Ubuntu 18.04

November 26, 2018 Leave a comment

Steam stopped working. At the end of an update process it complained that “” was missing.

I found the solution here. In short:

First, delete steam:

sudo apt remove steam

Execute this:

sudo dpkg --add-architecture i386

Restart the machine. Then, install these packages:

sudo apt-get install wget gdebi libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386

Download the steam package:


And install it:

sudo gdebi steam.deb

After this, steam started normally for me.

Hero of the Kingdom 2 patch
The game “Hero of the Kingdom 2” didn’t want to start. I got the error “access violation”. I found the remedy here.

It seems this problem is related to the Intel driver. I have an integrated Intel video card.

The solution in short: download the driver , extract it, and replace the file /usr/lib/i386-linux-gnu/dri/ with the one from the archive. Of course, don’t forget to make a backup of the original file.

Ubuntu 18.04

I upgraded some of my machines to Ubuntu 18.04. It looks good and the installation went flawlessly. Here is a nice post with some post-installations tips: Things To Do After Installing Ubuntu 18.04 Bionic Beaver Linux.

I did the followings:

  • install Gnome Tweaks
  • place titlebar buttons to the left
  • Make workspaces static. Number of workspaces: 4.
  • Install the the Gnome shell extension TaskBar. With this I can see the running apps in a bottom panel.
  • Redefine the lock screen shortcut to Ctrl + Alt + L.
  • force Alt + TAB to switch only on current workspace (read more)
Categories: ubuntu Tags: , ,

[manjaro] edit PKGBUILD and install a package

March 30, 2018 Leave a comment

You try to install a package with “yaourt pkg_name” but the installation fails. How to edit the PKGBUILD file manually and then install the package?


$ cd /tmp
$ yaourt -G pkg_name
$ cd pkg_name
# modify the file PKGBUILD with your favourite text editor
$ makepkg -i

Where “pkg_name” is the name of the package you want to install.

Categories: manjaro Tags: , ,

upgrade tmux to the latest version

March 17, 2016 Leave a comment

What I love in Manjaro is that it contains the latest software versions. For instance, I installed tmux and on Manjaro it’s version 2.1.

On Ubuntu 14.04 it’s still version 1.8 in the reposotories…

How to upgrade tmux 1.8 to 2.1 on Ubuntu?

Install these packages:

$ sudo apt-get install exuberant-ctags cmake libevent-dev libncurses5-dev

Then download the source of tmux from the official home page. Then build and install:

$ ./configure && make
$ sudo make install

This tip is from here.

Categories: bash, ubuntu Tags: , ,

building Aegisub on Ubuntu

March 23, 2014 Leave a comment

You want to install Aegisub from source.

Aegisub is a free, cross-platform open source tool for creating and modifying subtitles. Aegisub makes it quick and easy to time subtitles to audio, and features many powerful tools for styling them, including a built-in real-time video preview.” (source)

Aegisub is a wonderful piece of software. It makes subtitle creation almost trivial :)

Here I show you how to build Aegisub 3.1.2 on Ubuntu 13.10 (64 bit). I guess it would work with later versions too after some tweaks :)

Note that Aegisub requires wxWindows > 2.8!

Installation steps:

# install dependencies
$ sudo apt-get install build-essential libasound2-dev libass-dev libffms2-dev libfftw3-dev libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libhunspell-dev liblua5.1-dev
$ sudo apt-get install intltool
$ sudo apt-get install libboost-all-dev
$ sudo ldconfig    # not sure if necessary here

$ cd /opt/wxWidgets-X.Y.Z
$ ./configure --with-opengl && make && sudo make install
$ sudo ldconfig

$ cd /opt/aegisub-X.Y.Z/aegisub
$ ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu
$ make && sudo make install

Aegisub’s “configure” gave me the following warning: “configure: error: Could not link against -lGL !“. I could solve this problem with (1) “install libboost-all-dev“, and (2) add “--with-boost-libdir=/usr/lib/x86_64-linux-gnu” to “configure“.


Update (20130330)
I also wanted to install Aegisub on an older laptop of mine that runs Ubuntu 12.04. To make it work, I had to install older versions: wxWidgets-2.9.4 and aegisub-3.0.1. I tried different combinations but it was a failure. If you want to save some headache, use these versions :)

Install Adobe Flash for Firefox properly

April 14, 2013 Leave a comment

Let’s see how to install Adobe Flash under Ubuntu for Firefox properly.

Visit the official site ( and download the .tar.gz file. Create a temporary directory (e.g. /tmp/flash) and save the file there. This archive is a tarbomb, that’s why we put it in a dedicated folder.

Unzip the archive. There is a “usr” subfolder whose owner and group must be set before copying it to “/usr“. Switch to root (with “su“) and perform the following actions:

  1. chown -R root:root usr (where “usr” is the subfolder from the archive, not the system folder)
  2. copy this “usr” folder to “/usr“, i.e. copy it to the system folder

(Of course, you can also do these steps with “sudo” too.)

Finally, copy the file “” to the directory “$HOME/.mozilla/plugins/“. It’s very likely that this folder doesn’t exist yet so create it first.

Restart Firefox and enjoy the ultimate Flash experience :)

Categories: firefox, ubuntu Tags: ,

Drawing graphs in PHP with JpGraph

January 28, 2011 20 comments

JpGraph is an Object-Oriented Graph creating library for PHP >= 5.1 The library is completely written in PHP and ready to be used in any PHP scripts (both CGI/APXS/CLI versions of PHP are supported).

If you want to draw graphs in PHP, JpGraph is a good choice. Very easy to use yet powerful.


Here I suppose you have a public_html directory in your HOME and your PHP scripts are in public_html.

Download the latest jpgraph archive, put it in ~/public_html/lib and extract it. Now you will have a directory like ~/public_html/lib/jpgraph-3.5.0b1. Put a symbolic link on it with a simpler name:

cd ~/public_html/lib
ln -s jpgraph-3.5.0b1 jpgraph

Verify if the directory jpgraph has the correct permissions. Directories must be 755, while files must be 644. To correct permissions, you can use this script:


# place it in ~/public_html/lib/jpgraph and launch it
# it'll set the permissions recursively

find . -type d -print0 | xargs -0 chmod 755
find . -type f -print0 | xargs -0 chmod 644
chmod 755 .
chmod u+x $0

Test an example

Copy ~/public_html/lib/jpgraph/src/Examples/example0.php to ~/public_html. Modify the include lines:

# original:
#require_once ('jpgraph/jpgraph.php');
#require_once ('jpgraph/jpgraph_line.php');

# new:
require_once ('lib/jpgraph/src/jpgraph.php');
require_once ('lib/jpgraph/src/jpgraph_line.php');

Now call this file from your browser. The URL must be similar to this: http://localhost/~jabba/example0.php.


You might get an error saying “The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.

Don’t worry. Open the file ~/public_html/lib/jpgraph/src/, find the function SetAntiAliasing and comment this line out like this:

// JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')

Update (20110215): Comment out just this line, not the whole function :)

This is a quick fix; we disabled antialiasing.

This subsection was updated, the original text was not clear. Thanks to Jon R. for pointing that out.

Categories: php Tags: , , , ,

Installing a LAMP server

November 18, 2010 Leave a comment


You want to play with Linux + Apache + MySQL + PHP. How to install all the necessary stuff easily?


There is a tool called tasksel that can install multiple related packages as a co-ordinated “task”. Launch tasksel as root and choose the task you need. There is an option called LAMP server. The packages phpmyadmin and mysql-admin are not part of this collection, you need to install them separately.

In short:

sudo apt-get install tasksel
sudo tasksel
sudo apt-get install phpmyadmin

Then visit http://localhost to test if it works. To learn more on how to install LAMP, refer to this page.

Enabling user directories

My home directory is located at /home/jabba. Here I want to create a directory called public_html and I want to play with PHP in this folder. The contents of this directory is accessible via http://localhost/~jabba. However, by default it’s not enabled.

Steps to follow:

First, create the directory $HOME/public_html. Then enable user directories:

cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/userdir.conf userdir.conf
sudo ln -s ../mods-available/userdir.load userdir.load

Update (20110107): There is a script called a2enmod to create and manage these symlinks. Its opposite is a2dismod, which disables Apache modules. See man a2enmod. (credits go to Jesse)

And restart Apache2:

sudo /etc/init.d/apache2 restart

This tip is from here. Now HTML files are enabled in the user directory, but PHP files are still disabled!

Open the file /etc/apache2/mods-enabled/php5.conf and locate these lines:

# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
    <Directory /home/*/public_html>
        php_admin_value engine Off

As the comments suggest, you need to put those five lines in comments. Then restart the web server again:

sudo /etc/init.d/apache2 restart

This tip is from here. Now it should work. If it doesn’t work, you will have to delete the browser cache! Now it should really work :)

If you get the error message “You don’t have permission to access … on this server“, then it means there is a problem with file permissions. Directories (from public_html inwards) must have have permission 755, files 644. Make sure that /home and /home/user (where user is your user name) are also accessible! Check out this script, it sets rights correctly in your ~/public_html directory.

PHP: no error messages, just a blank page

By default, PHP is configured for production, thus error messages are disabled. This is not good for development, so you will have to modify your php.ini file a bit (located at /etc/php5/apache2/php.ini). Find these variables and change their values:

error_reporting = E_ALL & ~E_NOTICE | E_STRICT

display_errors = On

Restart Apache and you are done. This tip is from here. It is also possible to change these values from a .php file (see the code below), but it didn’t work for me on PHP5.

This line had no effect in my case:


Update: as pointed out here in a comment, this line doesn’t catch any parsing errors “because the entire script is parsed before any of it is executed”. So the best solution is to modify php.ini. However, the following line should work from a script:


Fatal error: Maximum execution time of 30 seconds exceeded

By default, your PHP scripts shouldn’t run longer than 30 seconds, otherwise the scripts will be terminated and you get this error message. This time limit can be increased in php.ini. Modify this variable:

; Maximum execution time of each script, in seconds
; Note: This directive is hardcoded to 0 for the CLI SAPI
#max_execution_time = 30
# setting 3 minutes for instance:
max_execution_time = 180

After this modification, don’t forget to restart Apache.

This tip is from here.

Requirements for Symfony

If you want to use Symfony, you should install these packages too (otherwise Symfony will complain):

sudo apt-get install php5-xsl
sudo apt-get install php-apc

Restart Apache. Then edit /etc/php5/apache2/php.ini and perform this modification:

# set it to "Off" value
short_open_tag = Off

Restart Apache.

Symfony provides a PHP script that checks all these requirements. It can be run from the web browser and from the command line. However, the command line version uses a different php.ini file (in my case the CLI version is located at /etc/php5/cli/php.ini). So run check.php in the command-line and in the browser too.

Requirements for Yii

For Yii you might need to install these packages to pass all the tests:

sudo apt-get install php5-sqlite
sudo apt-get install php5-memcache
sudo apt-get install php5-pgsql

Related posts

Useful links (20140311)

Manjaro (20150926)
To configure Apache and PHP, refer to this wiki page: . In short: install the packages “apache” and “php-apache“. Add these lines to the end of /etc/httpd/conf/httpd.conf:

LoadModule php5_module modules/
AddHandler php5-script php
Include conf/extra/php5_module.conf

Also, do these changes in /etc/httpd/conf/httpd.conf:

#LoadModule mpm_event_module modules/
LoadModule mpm_prefork_module modules/

Comment out the first and uncomment the mpm_prefork_module. Enable and start the httpd service (systemctl enable/start httpd). Visiting http://localhost should work, visiting a user’s home page should also work (ex.: http://localhost/~jabba), and opening a PHP file should work too. Visit http://localhost/~jabba/phpinfo.php, where the content of phpinfo.php is:

    print phpinfo();

First I tried with “<?” instead of “<?php” and it didn’t work. It took me a while to figure out what was wrong…

Installing VirtualBox

November 15, 2010 Leave a comment


Under Ubuntu you want to use another OS (like Windows) in a virtualized environment.


As a free solution you can use VirtualBox. Be aware that it has two versions! A proprietary (also free) and an open-source edition (OSE). Some features are missing from the OSE, so I suggest using the other one.


  • visit the download page and fetch the install file that matches your host system
  • when the installation is done, launch the application with the command VirtualBox (pay attention to the capital ‘V’)

Other Products

There is another great (though proprietary) product called VMware Workstation. It also runs on Linux.


When I wanted to increase the number of processors available to a guest system, I got this error message: VERR_VMX_MSR_LOCKED_OR_DISABLED. It means that virtualization is disabled in the BIOS. Steps to follow (under Dell):

  • Restart the machine and enter the BIOS by pressing F2.
  • Go to Performance -> Virtualization, and set it On.
  • Go to Security -> Execute Disable, and set it On.