VirtualBox is a nice open source virtual machine software. It works nicely on Linux and is supported by many Linux distros like Ubuntu in their official package repositories, so it is quite easy to set it up on Linux. The VMs can also be managed in command line using the vboxmanage command line tool provided
Read more
Tag: centos7
How to install alien on CentOS 7 to convert .deb to .rpm?
Posted onHow to install the alien command on CentOS 7 to convert .deb to .rpm? alien is already in EPEL and it makes it quite easy to install it in CentOS 7. First, enable EPEL following this tutorials. Then, install alien by # yum install alien Then alien should be ready: # yum info alien Installed
Read more
How to install gfortran on CentOS 7?
Posted onHow to install the gfortran fortran compiler on CentOS 7 Linux? gfortran on CentOS 7 is provided in the gcc-gfortran package. You may install it to install gfortran. # yum install gcc-gfortran Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.cuhk.edu.hk * epel: ftp.cuhk.edu.hk * extras: centos.01link.hk * nux-dextop: li.nux.ro *
Read more
Why “ValueError: zero length field name in format” error in Python on CentOS 6?
Posted onThe same Python program runs without any problem while it report ValueError: zero length field name in format error in Python on CentOS 6 The piece of code in Python is: print ‘== {} SPF’.format(d) Why “ValueError: zero length field name in format” error in Python on CentOS 6? This feature of {} without the
Read more
Cannot make directory ‘/var/run/screen/S-apache’: Permission denied
Posted onHello! Im trying to create a screen folder for the user apache, Not root. But it seems to fail, I have no idea on how to fix this issue. I only get the error: Cannot make directory ‘/var/run/screen/S-apache’: Permission denied Im using Cent OS 7 There may be various possible reasons. 2 common reasons: screen
Read more
Where is MySQL / MariaDB storage location by default on CentOS 7?
Posted onWhere is MySQL / MariaDB storage location by default on CentOS 7? No special configuration to the MariaDB from official repository of CentOS. On CentOS 7 Linux it is usually by default /var/lib/mysql But here I give you another “hacky” way to find it out. The method is to find out the mysql daemon mysqld’
Read more
How to add PHP DOMDocument extension to httpd in CentOS 7?
Posted onJust migrated a PHP site to a new server. However, in /var/log/httpd/error_log, there are errors like [:error] [pid 2810] [client 61.92.242.24:43372] PHP Fatal error: Class ‘DOMDocument’ not found in /var/www/…/some.php on line 16 How to add PHP DOMDocument extension to httpd in CentOS 7? You need to install the package php-xml to have DOMCoument support
Read more
How to upgrade vim to version 8 on CentOS 7?
Posted onvim on CentOS 7 is version 7.4 with patches 1-160: $ vim –version VIM – Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:00:20) Included patches: 1-160 How to upgrade it to version 8 which is the latest major version? Update on Oct 23 2018: the repository introduced in the original method is
Read more
How to make CentOS Linux to load a module automatically at boot time?
Posted onHow to make CentOS Linux to load a module, say ixgbe, automatically at boot time? I am using CentOS 7. You can create a text file <some name>.conf in the /etc/modules-load.d/ and list the modules to be loaded there, one per line. The systemd-modules-load.service daemon will read these files and load the modules. Check more
Read more
WPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7
Posted onWPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7 as follows: $ wpp /opt/kingsoft/wps-office/office6/wpp: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory The reason: wpp will tries to dynamically link ‘libbz2.so.1.0’ $ ldd /opt/kingsoft/wps-office/office6/wpp | grep libbz2 libbz2.so.1.0 => not found libbz2.so.1 =>
Read more
How to install Tex Live on CentOS 7 Linux?
Posted onThe LaTex packages in CentOS 7 Linux is not sufficient enough. I would like to Install Tex Live such as Tex Live 2016. How could I install it on CentOS 7? The best way I found is to use the texlive offical installation tool to install the full packages for texlive 2016. It will take
Read more
encfs on CentOS 6 can’t mount as normal user
Posted onOn CentOS 7, using a normal user, encfs works just well. On CentOS 6, using the root user, encfs works. However, the problem is, on CentOS 6, using a normal user account, encfs does not work as on CentOS 7. $ encfs -s ~/t/.enc ~/t/enc EncFS Password: fuse: failed to exec fusermount: Permission denied fuse
Read more
How to install dia on CentOS 7 Linux?
Posted onDia seems not available in the official repository of CentOS 7. How to install dia on CentOS 7 Linux? You can find built dia packages in some additional repositories for CentOS. First, enable EPEL following this link. Second, enable Nux Desktop following this link. Then, you can install dia by # yum install dia
How to set up HP printer and scaner on CentOS 7?
Posted onHow to set up the driver for an HP all-in-one printer/scanner on CentOS 7 Linux? First, install these packages and it may ask you to download and install other plugins. Without these packages, my printer does work. # yum install hplip hplip-gui hpijs Second, install plugins for the HP printer. # hp-plugin Then you can
Read more
How tinstall aria2 on CentOS 7?
Posted onHow tinstall aria2 on CentOS 7? aria2 is a great tool for downloading files from the Internet. The software package for aria2 is proved in EPEL. To install aria2, first, enable EPEL following instructions here. Then, install aria2 by # yum install aira2
How to install curlftpfs on CentOS 7?
Posted oncurtlftpfs is a nice tool to mount ftp to local. How to install curlftpfs on CentOS 7? The software package for curlftpfs is proved in EPEL. To install curlftpfs, first, enable EPEL following instructions here. Then, install curlftpfs by # yum install curlftpfs
How to install sshfs on CentOS 7?
Posted onsshfs is a nice tool. But it seems there is no support to it in a newly installed CentOS 7 Linux system: Not installed by default: # sshfs -bash: sshfs: command not found Seems not available from the repositories # yum install sshfs -y Loaded plugins: fastestmirror Repodata is over 2 weeks old. Install yum-cron?
Read more
How to install Flash Player plugin on CentOS 7?
Posted onFirefox on CentOS7 does not have Flash enabled by default. How to install Flash Player plugin on CentOS 7? You may follow this tutorials to build a freshwrapper based flash plugin for Firefox on CentOS 7. If you don’t want to build it by yourself, you may download the pre-built .so from from this repository.
rtl8192cu driver for CentOS 7
Posted onI find the rtl8192cu wireless adapter driver on CentOS 7 is quite unstable. After running a while, the connection will disappear. How to make it stable? There is a bug in some hardware where the device never wakes back up. You may try disabling the power management by putting a file 8192cu-disable-power-management.conf under /etc/modprobe.d/: #
Read more
How to add two static IPs for a Xen VM?
Posted onHello, I have installed Xen4Centos on Centos7, having single NIC card with bridge network and have two VMs on that. In one VM, I want to add two static IP one for webserver and one for mail server. So I have created IP alias in guest VM, it was created but it was not pinging
Read more