HostOnNet Blog

Category Archives: Linux

utf8_mime2text() has new signature, but U8T_CANONICAL is missing

When installing PHP from source, i get following error configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. This is required to compile PHP with IMAP support. Fixed by installing


Xfce 4 Desktop Error xfconfd isn’t running

When login to Xfce Desktop, i get following error Unable to determine failsafe session name. Possible causes: xfconfd isn’t running (D-Bus setup problem); environment variable $XDG_CONFIG_DIRS is set incorrectly (must include “/etc”), or xfce4-session is installed incorrectly. This is due


usermod – modify linux user account

usermod command allow you to change a user account. To change a users shell, run You can also use chsh Make user member of sudo group On Debian/Ubuntu On CentOS/RHEL


dmidecode – Find Hardware Details

dmidecode shows details about computer hardware. On RHEL/CentOS, you need to install it with Show All Hardware Details Get RAM Details To see installed RAM sizes, run Example [root@server1 ~]# dmidecode -t memory | egrep “^\s+Size” Size: 8192 MB Size:


useradd – create linux user

To create a user, run -d specify the home directory of the user. -s specify the shell used by user. Allow user to sudo Create user with home directory Create a user with sudo rights On RHEL/CentOS, replace sudo with


IPv6

IPv6 is newer version of IP Address. It is ugly, hard to remember lol To list IPv6 address configured on your computer, run Disable IPv6 On CentOS 7 Edit file Add following Now run Temp Disable IPv6 On reboot IPv6


log

To see how many request a site is getting for a particular hour, run Example keep apache access log for 30 days find most accessed ip from apache log find all ip logged into cpanel


Password Protect Grub 2 in Ubuntu/Debian

Password Protect Grub 2 in Ubuntu/Debian First you need to create password, this can be done by running grub-mkpasswd-pbkdf2 root@hon-vpn:~# grub-mkpasswd-pbkdf2 Enter password: Reenter password: PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.E421A6997EBAF6E49B05AC950CC8154A4B9D703C8498E2916DCC31B0FC9F11B6B53E16B34DD09A1F90250E4E36AB930C6BED3C9D3B01D010A7B377F5CEF4B2AA.C5B99B66841C5325A1175AF05D50344260B6FC84912E2B1C591A085C0C0ECCE74B1661703F344E372ADEE67D409A3B538047EC437983D723991C5168979F8789 root@hon-vpn:~# Now edit file /etc/grub.d/00_header vi /etc/grub.d/00_header Add


Deleting all mail from postfix mail queue

To delete all mail from Postfix Mail server queue, run Example root@vm701:~# postsuper -d ALL postsuper: Deleted: 77 messages root@vm701:~# Back to Postfix


Sid Meier’s Civilization® VI Now Available For Linux

With valves SteamOS/Linux efforts, lot of games are getting Linux ports/release these days. This is a very good move by valve as it will make linux more usable for average users. Valved started SteamOS/Linux project after Windows 8 release, many