<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; centos 7</title>
	<atom:link href="http://tech.yipp.ca/category/centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Setup new CentOS 7 dev machine</title>
		<link>http://tech.yipp.ca/centos-7/setup-new-centos-7-dev-machine/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setup-new-centos-7-dev-machine</link>
		<comments>http://tech.yipp.ca/centos-7/setup-new-centos-7-dev-machine/#comments</comments>
		<pubDate>Wed, 28 Mar 2018 21:43:23 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3032</guid>
		<description><![CDATA[<p>hostnamectl set-hostname your-new-hostname Install Remote Desktop (RDP) rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install xrdp systemctl start xrdp systemctl enable xrdp firewall-cmd --permanent --add-port=3389/tcp firewall-cmd --reload chcon --type=bin_t /usr/sbin/xrdp chcon --type=bin_t /usr/sbin/xrdp-sesman Troubleshooting netstat -antup&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/setup-new-centos-7-dev-machine/">Setup new CentOS 7 dev machine</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>hostnamectl set-hostname <strong>your-new-hostname</strong></pre>
<h2>Install Remote Desktop (RDP)</h2>
<pre>rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install xrdp
systemctl start xrdp
systemctl enable xrdp
firewall-cmd --permanent --add-port=3389/tcp
firewall-cmd --reload
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman
</pre>
<h2>Troubleshooting</h2>
<p>netstat -antup | grep xrdp</p>
<h2>Install VNC Server</h2>
<p class="command">$ sudo yum install tigervnc-server</p>
<p class="command">$ vncserver</p>
<p>Warning: blackberry:1 is taken because of /tmp/.X1-lock<br />
Remove this file if there is no X server blackberry:1</p>
<p>New 'blackberry:2 (frank)' desktop is blackberry:2</p>
<p>Starting applications specified in /home/frank/.vnc/xstartup<br />
Log file is /home/frank/.vnc/blackberry:2.log</p>
<p>&nbsp;</p>
<p class="command">su -<br />
systemctl daemon-reload<br />
systemctl enable vncserver@:1.service<br />
reboot<br />
systemctl start vncserver@:1.service</p>
<h2>Troubleshooting</h2>
<pre class="code-pre "><code>sudo systemctl status vncserver@:.service</code></pre>
<h4>Problem</h4>
<p>Apr 06 13:52:19 blackberry systemd[1]: Starting Remote desktop service (VNC)...<br />
Apr 06 13:52:19 blackberry systemd[2635]: <span style="color: #ff0000;">Failed at step USER spawning /usr/bin/vncserver: No such process</span></p>
<p>$&gt; journalctl -xe</p>
<p>-- Unit vncserver@:4.service has begun starting up.<br />
Apr 06 14:20:17 blackberry vncserver[3015]: Can't find file /home/frank/.vnc/blackberry:4.pid<br />
Apr 06 14:20:17 blackberry vncserver[3015]: You'll have to kill the Xvnc process manually<br />
Apr 06 14:20:17 blackberry runuser[3022]: runuser: may not be used by non-root users<br />
Apr 06 14:20:17 blackberry systemd[1]: vncserver@:4.service: control process exited, code=exited status=1<br />
Apr 06 14:20:17 blackberry systemd[1]: Failed to start Remote desktop service (VNC).<br />
-- Subject: Unit vncserver@:4.service has failed<br />
-- Defined-By: systemd<br />
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel<br />
--<br />
-- Unit vncserver@:4.service has failed.<br />
--<br />
-- The result is failed.<br />
Apr 06 14:20:17 blackberry systemd[1]: Unit vncserver@:4.service entered failed state.<br />
Apr 06 14:20:17 blackberry systemd[1]: vncserver@:4.service failed.<br />
Apr 06 14:20:17 blackberry polkitd[1026]: Unregistered Authentication Agent for unix-process:3008:112981 (system b<br />
lines 3231-3253/3253</p>
<h4>Solution</h4>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/setup-new-centos-7-dev-machine/">Setup new CentOS 7 dev machine</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/centos-7/setup-new-centos-7-dev-machine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Improve fonts on CentOS 7</title>
		<link>http://tech.yipp.ca/centos-7/improve-fonts-centos-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=improve-fonts-centos-7</link>
		<comments>http://tech.yipp.ca/centos-7/improve-fonts-centos-7/#comments</comments>
		<pubDate>Fri, 30 Jan 2015 17:57:37 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1461</guid>
		<description><![CDATA[<p>&#160; 1. Install the nux repo Instructions to install the nux repo in CentOS 7 is here 2. Install the necessary packages $&#62; yum --enablerepo=nux-dextop install fontconfig-infinality</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/improve-fonts-centos-7/">Improve fonts on CentOS 7</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>1. Install the nux repo</h2>
<p>Instructions to <a title="Add the nux repo to CentOS 7" href="http://tech.yipp.ca/linux/add-nux-repo-centos-7/">install the nux repo in CentOS 7 is here</a></p>
<h2>2. Install the necessary packages</h2>
<pre>$&gt; yum --enablerepo=nux-dextop install fontconfig-infinality</pre>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/improve-fonts-centos-7/">Improve fonts on CentOS 7</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/centos-7/improve-fonts-centos-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install NTFS on CentOS 7</title>
		<link>http://tech.yipp.ca/centos-7/install-ntfs-centos-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-ntfs-centos-7</link>
		<comments>http://tech.yipp.ca/centos-7/install-ntfs-centos-7/#comments</comments>
		<pubDate>Fri, 30 Jan 2015 15:07:47 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1449</guid>
		<description><![CDATA[<p>How to install ntfs-3g on CentOS 7 $&#62; su - $&#62; cd $&#62; wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm $&#62; rpm -ivUh epel-release-7-5.noarch.rpm $&#62; yum install ntfs-3g &#160;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/install-ntfs-centos-7/">Install NTFS on CentOS 7</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h1>How to install ntfs-3g on CentOS 7</h1>
<pre>$&gt; su -
$&gt; cd 
$&gt; wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
$&gt; rpm -ivUh epel-release-7-5.noarch.rpm
$&gt; yum install ntfs-3g</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/install-ntfs-centos-7/">Install NTFS on CentOS 7</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/centos-7/install-ntfs-centos-7/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>undefined reference to `udev_enumerate_new&#039;</title>
		<link>http://tech.yipp.ca/centos-7/undefined-reference-udev_enumerate_new/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=undefined-reference-udev_enumerate_new</link>
		<comments>http://tech.yipp.ca/centos-7/undefined-reference-udev_enumerate_new/#comments</comments>
		<pubDate>Thu, 29 Jan 2015 20:26:56 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 7]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1443</guid>
		<description><![CDATA[<p>libudev-devel.i686 is not available for CentOS 7 undefined reference to `udev_enumerate_scan_devices' undefined reference to `udev_new' undefined reference to `udev_list_entry_get_name' undefined reference to `udev_enumerate_get_list_entry' undefined reference to `udev_list_entry_get_next' undefined reference to `udev_device_new_from_syspath' undefined reference to&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/undefined-reference-udev_enumerate_new/">undefined reference to `udev_enumerate_new'</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>libudev-devel.i686 is not available for CentOS 7

</pre>
<ul>
<li>undefined reference to `udev_enumerate_scan_devices'</li>
<li>undefined reference to `udev_new'</li>
<li>undefined reference to `udev_list_entry_get_name'</li>
<li>undefined reference to `udev_enumerate_get_list_entry'</li>
<li>undefined reference to `udev_list_entry_get_next'</li>
<li>undefined reference to `udev_device_new_from_syspath'</li>
<li>undefined reference to `udev_monitor_receive_device'</li>
</ul>
<pre></pre>
<pre>Solution:</pre>
<pre>
 $&gt; sudo yum install systemd-devel.i686

or</pre>
<pre> $&gt; sudo yum install systemd-devel-208-11.el7_0.6.i686
(at the time of writing)</pre>
<pre></pre>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/undefined-reference-udev_enumerate_new/">undefined reference to `udev_enumerate_new'</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/centos-7/undefined-reference-udev_enumerate_new/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>fatal error: GL/glx.h: No such file or directory</title>
		<link>http://tech.yipp.ca/centos-7/fatal-error-glglx-h-file-directory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fatal-error-glglx-h-file-directory</link>
		<comments>http://tech.yipp.ca/centos-7/fatal-error-glglx-h-file-directory/#comments</comments>
		<pubDate>Thu, 29 Jan 2015 19:59:50 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 7]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1441</guid>
		<description><![CDATA[<p>fatal error: GL/glx.h: No such file or directory &#160; Solution (tested on CentOS 7) $&#62; sudo yum install mesa-libGL-devel</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/fatal-error-glglx-h-file-directory/">fatal error: GL/glx.h: No such file or directory</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>fatal error: GL/glx.h: No such file or directory</p>
<p>&nbsp;</p>
<p>Solution (tested on CentOS 7)</p>
<p>$&gt; sudo yum install mesa-libGL-devel</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/fatal-error-glglx-h-file-directory/">fatal error: GL/glx.h: No such file or directory</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/centos-7/fatal-error-glglx-h-file-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAMBA: Share a folder in linux and access via Windows</title>
		<link>http://tech.yipp.ca/centos-7/howto-samba-folder-linux-access-windows/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=howto-samba-folder-linux-access-windows</link>
		<comments>http://tech.yipp.ca/centos-7/howto-samba-folder-linux-access-windows/#comments</comments>
		<pubDate>Tue, 05 Mar 2013 19:02:47 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[share files]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[smb.conf]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=116</guid>
		<description><![CDATA[<p>Share a folder in Linux (CentOS, Debian) using samba (smb) &#160; Solution: The solution I'm using is with Samba. I'm using the username frank but please replace this with any username you wish. If&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/howto-samba-folder-linux-access-windows/">SAMBA: Share a folder in linux and access via Windows</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h1>Share a folder in Linux (CentOS, Debian) using samba (smb)</h1>
<p>&nbsp;</p>
<h2>Solution:</h2>
<p>The solution I'm using is with Samba. I'm using the username <strong>frank</strong> but please replace this with any username you wish. If you are using CentOS or Red Hat, replace "apt-get" by "yum" in the instructions below.</p>
<pre>DEBIAN: sudo apt-get install samba
CENTOS: sudo yum install samba
FEDORA: sudo /usr/bin/dnf install samba</pre>
<pre>sudo nano /etc/samba/smb.conf</pre>
<p>Uncomment this line in the global section to fix problem with <a href="http://tech.yipp.ca/git/git-keeps-changing-my-file-permissions-when-on-samba/">file permission changing when editing with Windows</a>:</p>
<pre>;map archive = no</pre>
<pre>to</pre>
<pre>map archive = no</pre>
<p>Add this at the end:</p>
<pre>[www]
comment = www
path = /var/www
valid users = @users
force group = users
create mask = 0770
directory mask = 0770
writable = yes


</pre>
<p>Save and close</p>
<pre>$&gt; sudo smbpasswd -a <strong>frank</strong></pre>
<pre>$&gt; sudo chgrp users /var/www</pre>
<pre>$&gt; sudo usermod -a -G users <strong>frank</strong>  (this adds the user frank to group users)</pre>
<p>Also make sure that SE linux is permissive or disabled (see troubleshooting below) or that you enable some parameter if SE linux is kept enabled (this is the preferred solution).</p>
<pre>$&gt; sudo setsebool -P samba_enable_home_dirs on
$&gt; sudo chcon -Rt samba_share_t /your/shared/path/
# the -R is for recursive</pre>
<p>On CentOS 7, you need to disable the firewall like this:</p>
<pre>$&gt; firewall-cmd --permanent --zone=public --add-service=samba
$&gt; firewall-cmd --reload
</pre>
<p>reboot</p>
<h3>Mounting VFAT partitions for easy sharing within a group</h3>
<p>Add gid=100, and change the permission umask 0007  (Warning! The permission numbers in fstab have a completely different numbering scheme than on shell !)</p>
<table>
<tbody>
<tr>
<td style="text-align: left;">
<pre>#
# /etc/fstab
# Created by anaconda on Tue Jan 27 22:34:57 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=946c560f-5087-4c21-b3c7-48cf2875b07c /                       xfs     defaults        1 1
UUID=28C2-AB46          /django                <strong> vfat    umask=0007,gid=100,shortname=winnt</strong> 0 0
UUID=88b09e0f-fab3-4a8c-b381-0416a28bf68e swap                    swap    defaults        0 0</pre>
</td>
</tr>
</tbody>
</table>
<h2></h2>
<h2>Troubleshooting:</h2>
<p>You might want to check if samba service is running:</p>
<pre>$&gt; sudo service --status-all | grep smb</pre>
<p>Usually it's called "smbd"</p>
<p>If it's not, confirm that samba is installed :</p>
<pre>$&gt; sudo apt-get install samba

or</pre>
<pre>$&gt; sudo yum install samba</pre>
<pre>And try to start the service</pre>
<pre>CentOS: $&gt; sudo /sbin/service smb start 
        $&gt; chkconfig smb on # to turn it on at reboot
Debian: $&gt; sudo service samba start
Ubuntu: $&gt; sudo service smbd start

Another problem could be the workgroup. Verify and edit the line workgroup = MYGROUP in /etc/samba/smb.conf, restart service

Another problem could be that SE linux is enabled. If you want to keep SE linux enabled, learn more at <a href="http://sharadchhetri.com/2013/02/17/how-to-install-and-configure-samba-server-in-centos-6/" target="_blank">http://sharadchhetri.com/2013/02/17/how-to-install-and-configure-samba-server-in-centos-6/

</a>To learn about SE linux status, type $&gt; <!--StartFragment-->sestatus <!--EndFragment-->

If you want to set SE linux into permissive mode, type :

$&gt; sudo gedit /etc/selinux/config

SELINUX=permissive

Another problem could be the firewall, to do a quick test, disable the firewall :

$&gt; sudo service iptables save
$&gt; sudo service iptables stop
$&gt; sudo chkconfig iptables off
$&gt; sudo service smb restart # or whatever command you use on your distribution to restart samba</pre>
<p>Another problem is that you are running a virtual machine under a NAT. Use bridged mode instead. Also try pinging the machine IP address first.</p>
<p>Then finally another trick that did the job on a VM that was start / paused and kept running for months was simply to restart SMB. On this system the process were still running and displayed but had become unresponsive as if closed :</p>
<pre>$&gt; sudo service smb restart</pre>
<h2>For a public share</h2>
<p>[public]<br />
comment = Www<br />
path = /var/www<br />
guest ok = yes<br />
public = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
writable = yes</p>
<h2>For CentOS 7 the instructions are slightly different</h2>
<pre>systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service

If you keep the firewall open :</pre>
<pre>firewall-cmd --permanent --zone=public --add-service=samba
firewall-cmd --reload

If you leave SELINUX on, you need :</pre>
<pre>chcon -t samba_share_t my-shared-folder/</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/centos-7/howto-samba-folder-linux-access-windows/">SAMBA: Share a folder in linux and access via Windows</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/centos-7/howto-samba-folder-linux-access-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
