<?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>ubuntu &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Wed, 17 Apr 2019 13:35:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Install GUI to Ubuntu Server</title>
		<link>https://www.veriteknik.net.tr/en/install-gui-ubuntu-server/</link>
					<comments>https://www.veriteknik.net.tr/en/install-gui-ubuntu-server/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Mon, 06 Jan 2014 09:07:40 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unity]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=932</guid>

					<description><![CDATA[<p>Some customers ask for a GUI on their Ubuntu Server, usually with Unity installed for a connection via TeamViewer. Although I personally don’t appreciate such methods, these usually mean that the customer has no idea on handling a Linux Server. Well it’s their problem and we should deliver their needs. After installing a fresh Ubuntu [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/install-gui-ubuntu-server/">Install GUI to Ubuntu Server</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Some customers ask for a GUI on their Ubuntu Server, usually with Unity installed for a connection via TeamViewer. Although I personally don’t appreciate such methods, these usually mean that the customer has no idea on handling a Linux Server. Well it’s their problem and we should deliver their needs. After installing a fresh Ubuntu Server (preferably with OpenSSH installed) you can use following commands to get desired features and Unity:</p>
<pre class="brush: bash; gutter: true; first-line: 1">sudo apt-get uprade
sudo apt-get install --no-install-recommends ubuntu-desktop
sudo apt-get install unity-lens-applications indicator-applet-appmenu indicator-applet-session indicator-applet-complete indicator-application indicator-session indicator-power indicator-sound</pre>
<p>Rebooting after installation would be a good idea. This will install Unity, but it will not install the whole desktop package, which means you won&#8217;t get OpenOffice, Firefox etc. It is a good idea to also install Firefox since this type of customer will probably need it.</p>
<p>The packages starting with &#8220;indicator&#8221; are for the indicators at the very top right of the Unity session. Also the unity-lens-applications allows you to search through the dash, if you don&#8217;t install this, you won&#8217;t be able to call apps from the dash (which means it is completely useless).</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/install-gui-ubuntu-server/">Install GUI to Ubuntu Server</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/install-gui-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">932</post-id>	</item>
		<item>
		<title>Add Multiple Gateways to Multiple NICs on Ubuntu Server</title>
		<link>https://www.veriteknik.net.tr/en/add-multiple-gateways-multiple-nics-ubuntu-server/</link>
					<comments>https://www.veriteknik.net.tr/en/add-multiple-gateways-multiple-nics-ubuntu-server/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Wed, 11 Dec 2013 10:46:32 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=924</guid>

					<description><![CDATA[<p>Even though this seems an easy task, when you add IP&#8217;s with different gateways, you have to route the IP&#8217;s for the correct gateways. Let&#8217;s say you have two networks, 192.168.80.128/25 192.168.90.128/25 This means your gateways are 192.168.80.129, 192.168.90.129 and you have these IP addresses respectively : 192.168.80.130-254, 192.168.90.130-254 Lets assign the 192.168.80.x IP&#8217;s to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/add-multiple-gateways-multiple-nics-ubuntu-server/">Add Multiple Gateways to Multiple NICs on Ubuntu Server</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Even though this seems an easy task, when you add IP&#8217;s with different gateways, you have to route the IP&#8217;s for the correct gateways.</p>
<p>Let&#8217;s say you have two networks,<br />
192.168.80.128/25<br />
192.168.90.128/25</p>
<p>This means your gateways are 192.168.80.129, 192.168.90.129 and you have these IP addresses respectively : 192.168.80.130-254, 192.168.90.130-254</p>
<p>Lets assign the 192.168.80.x IP&#8217;s to eth0 and 90.x to eth1.<br />
Then we&#8217;ll have to edit our <strong>/etc/network/interfaces</strong> file accordingly:</p>
<pre class="brush: text; gutter: true; first-line: 1">auto lo
iface lo inet loopback

auto eth0 eth0:1 eth1 eth1:1

iface eth0 inet static
    address 192.168.80.130
    netmask 255.255.255.128
    gateway 192.168.80.129

iface eth0:1 inet static
    address 192.168.80.131
    netmask 255.255.255.128

iface eth1 inet static
    address 192.168.90.130
    netmask 255.255.255.128

iface eth1:1 inet static
    address 192.168.90.131
    netmask 255.255.255.128

post-up ip route add default via 192.168.90.129 dev eth1 table 101</pre>
<p>As you can see, we did not specify any gateways for other devices than eth0. This is because, we will route the 192.168.90.x IP addresses through 192.168.90.129 but the system will not know it as a default gateway. That&#8217;s why we added the last line to interfaces, we tell to route 192.168.90.129 using table 101. Well, you&#8217;ll say <em>&#8220;We haven&#8217;t defined that table yet, what&#8217;s this 101?&#8221;</em>, that&#8217;s true, normally you have to define it in your shell, but we&#8217;ll add it to our rc.local so that it will be there all the time (after a reboot).</p>
<p>In order to achieve this, we add the following line to <strong>/etc/rc.local</strong> (add it before the &#8220;exit 0&#8221;)</p>
<pre class="brush: text; gutter: true; first-line: 1">ip rule add from 192.168.90.128/25 lookup 101</pre>
<p>Now write the ip rule to your shell too (so you won&#8217;t need a reboot) then restart your networking service.</p>
<pre class="brush: bash; gutter: true; first-line: 1">/etc/init.d/networking stop &amp;&amp; /etc/init.d/networking start</pre>
<p>Here you go, <strong>route -n</strong> will show you only one gateway, yet you&#8217;ll be able to use both IP classes on both devices. So technically we did not add two gateways, but we&#8217;re using both of them.</p>
<p>Don&#8217;t forget that we only added 4 IP&#8217;s here, if you want to add all of them in the block, you better write a script to generate it.</p>
<p>Ok you don&#8217;t have to cry about it, below is a Python script I wrote for you, edit it accordingly 🙂</p>
<pre class="brush: python; gutter: true; first-line: 1">#/usr/bin/python

#ip generator script - plugged.in

IP_c1 = 80
IP_c2 = 90

print "auto lo"
print "iface lo inet loopback"

print "auto eth0"
print "iface eth0 inet static"
print "\taddress 192.168.%i.130" % IP_c1
print "\tnetmask 255.255.255.128"
print "\tgateway 192.168.%i.129" % IP_c1

print "auto %s %s" % (" ".join(["eth0:%i" % i for i in range(1,124)])," ".join(["eth1:%i" % i for i in range(1,128)]))

for c in [IP_c1,IP_c2] :
    if c == IP_c1 :
        for i in range(131,255) :
            print "iface eth0:%i inet static" % (i-130)
            print "\taddress 192.168.%i.%i" % (c,i)
            print "\tnetmask 255.255.255.128"
    else :
        for i in range(130,255) :
            print "iface eth1:%i inet static" % (i-129)
            print "\taddress 192.168.%i.%i" % (c,i)
            print "\tnetmask 255.255.255.128"

print "post-up ip route add default via 192.168.90.129 dev eth1 table 101"</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/add-multiple-gateways-multiple-nics-ubuntu-server/">Add Multiple Gateways to Multiple NICs on Ubuntu Server</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/add-multiple-gateways-multiple-nics-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">924</post-id>	</item>
	</channel>
</rss>
