{"id":5217,"date":"2015-08-22T15:50:21","date_gmt":"2015-08-22T13:50:21","guid":{"rendered":"http:\/\/www.karadere.com\/blog\/?p=5217"},"modified":"2015-08-22T15:50:21","modified_gmt":"2015-08-22T13:50:21","slug":"ubuntu-server-kurulum-notlarim","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/ubuntu-server-kurulum-notlarim.html","title":{"rendered":"ubuntu server kurulum notlar\u0131m"},"content":{"rendered":"<h2><strong>SSH aktif etmek<\/strong><\/h2>\n<p>http:\/\/askubuntu.com\/questions\/15433\/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process<\/p>\n<p>SSH aktiflemek i\u00e7in open ssh kuruyoruz<\/p>\n<blockquote>\n<pre>sudo apt-get install openssh-server \n\n<\/pre>\n<pre>sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.factory-defaults\nsudo chmod a-w \/etc\/ssh\/sshd_config.factory-defaults\n\n<\/pre>\n<pre>sudo gedit \/etc\/ssh\/sshd_config\n\nbanner duzeltmek\n#Banner \/etc\/issue.net  configde ac\nsonra \nsudo gedit \/etc\/issue.net  mesaji yaz\u0131n\u0131z..\nsudo \/etc\/init.d\/ssh restart\n\nservis yeniden baslatilinca banner aktif olur<\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>Editor ile <strong><tt>#PasswordAuthentication\u00a0yes<\/tt><\/strong><\/p>\n<p>bulup sifre giri\u015fi aktifliyoruz. sistemdeki ubuntu user lar ile login olabilirsiniz.<\/p>\n<h2>FTP sunucusunu aktif etmek<\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>NODE JS kurulumu ve aktif etmek<\/h2>\n<p>https:\/\/nodejs.org\/download\/<\/p>\n<p>indir paketi<\/p>\n<pre><code>sudo apt-get update\nsudo apt-get install git build-essential wget\n\n<\/code><\/pre>\n<pre><code>wget http:\/\/nodejs.org\/dist\/v0.8.18\/node-v0.8.18.tar.gz\nson surumu download sayfas\u0131ndan alal\u0131m\ntar xvf node-v0.8.18.tar.gz\npushd node-v0.8.18\n.\/configure\nmake\nsudo make install\nnode --version\nnode<\/code><\/pre>\n<p>dermele i\u015flemi uzun surecek<\/p>\n<p>https:\/\/coolaj86.com\/articles\/how-to-install-nodejs-on-ubuntu.html<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-node-js-on-an-ubuntu-14-04-server<\/p>\n<p>https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-node-js-on-an-ubuntu-14-04-server<\/p>\n<blockquote>\n<pre class=\"code-pre \"><code>\n\u00a0<\/code><\/pre>\n<pre class=\"code-pre \">apt-get install curl<\/pre>\n<pre class=\"code-pre \"><code>curl -sL https:\/\/deb.nodesource.com\/setup | sudo bash -<\/code><\/pre>\n<pre class=\"code-pre \"><code>\nsudo apt-get update \nsudo apt-get install nodejs\n<\/code><code>sudo apt-get install npm\n\n<\/code><\/pre>\n<pre class=\"code-pre \"><code>sudo apt-get install build-essential\n<\/code><\/pre>\n<pre class=\"code-pre \"><code>sudo apt-get install build-essential libssl-dev\n<\/code><\/pre>\n<pre class=\"code-pre \"><code>\u00a0<\/code><\/pre>\n<pre class=\"code-pre \"><code>Daha detay i\u00e7in \n\n<\/code><\/pre>\n<h3 id=\"introduction\">Introduction<\/h3>\n<p>Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and be designed within the same system.<\/p>\n<p>In this guide, we&#8217;ll show you how to get started with Node.js on an Ubuntu 14.04 server.<\/p>\n<p>If you are looking to set up a production Node.js environment, check out this link: <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04\">How To Set Up a Node.js Application for Production<\/a>.<\/p>\n<div data-unique=\"how-to-install-the-distro-stable-version\"><\/div>\n<h2 id=\"how-to-install-the-distro-stable-version\">How To Install the Distro-Stable Version<\/h2>\n<p>Ubuntu 14.04 contains a version of Node.js in its default repositories that can be used to easily provide a consistent experience across multiple servers. The version in the repositories is 0.10.25. This will not be the latest version, but it should be quite stable.<\/p>\n<p>In order to get this version, we just have to use the <code>apt<\/code> package manager. We should refresh our local package index prior and then install from the repositories:<\/p>\n<pre class=\"code-pre \"><code>sudo apt-get update\nsudo apt-get install nodejs\n<\/code><\/pre>\n<p>If the package in the repositories suits your needs, this is all that you need to do to get set up with Node.js. In most cases, you&#8217;ll also want to also install <code>npm<\/code>, which is the Node.js package manager. You can do this by typing:<\/p>\n<pre class=\"code-pre \"><code>sudo apt-get install npm\n<\/code><\/pre>\n<p>This will allow you to easily install modules and packages to use with Node.js.<\/p>\n<p>Because of a conflict with another package, the executable from the Ubuntu repositories is called <code>nodejs<\/code>instead of <code>node<\/code>. Keep this in mind as you are running software.<\/p>\n<p>Below, we&#8217;ll discuss some more flexible methods of installation.<\/p>\n<div data-unique=\"how-to-install-using-a-ppa\"><\/div>\n<h2 id=\"how-to-install-using-a-ppa\">How To Install Using a PPA<\/h2>\n<p>An alternative that can get you a more recent version of Node.js is to add a PPA (personal package archive) maintained by NodeSource. This will probably have more up-to-date versions of Node.js than the official Ubuntu repositories.<\/p>\n<p>First, you need to install the PPA in order to get access to its contents:<\/p>\n<pre class=\"code-pre \"><code>curl -sL https:\/\/deb.nodesource.com\/setup | sudo bash -\n<\/code><\/pre>\n<p>The PPA will be added to your configuration and your local package cache will be updated automatically. After running the setup script from nodesource, you can install the Node.js package in the same way that you did above:<\/p>\n<pre class=\"code-pre \"><code>sudo apt-get install nodejs\n<\/code><\/pre>\n<p>The <code>nodejs<\/code> package contains the <code>nodejs<\/code> binary as well as <code>npm<\/code>, so you don&#8217;t need to install <code>npm<\/code>separately. However, in order for some <code>npm<\/code> packages to work (such as those that require building from source), you will need to install the <code>build-essentials<\/code> package:<\/p>\n<pre class=\"code-pre \"><code>sudo apt-get install build-essential\n<\/code><\/pre>\n<div data-unique=\"how-to-install-using-nvm\"><\/div>\n<h2 id=\"how-to-install-using-nvm\">How To Install Using NVM<\/h2>\n<p>An alternative to installing Node.js through <code>apt<\/code> is to use a specially designed tool called <code>nvm<\/code>, which stands for &#8220;Node.js version manager&#8221;.<\/p>\n<p>Using nvm, you can install multiple, self-contained versions of Node.js which will allow you to control your environment easier. It will give you on-demand access to the newest versions of Node.js, but will also allow you to target previous releases that your app may depend on.<\/p>\n<p>To start off, we&#8217;ll need to get the software packages from our Ubuntu repositories that will allow us to build source packages. The nvm script will leverage these tools to build the necessary components:<\/p>\n<pre class=\"code-pre \"><code>sudo apt-get update\nsudo apt-get install build-essential libssl-dev\n<\/code><\/pre>\n<p>Once the prerequisite packages are installed, you can pull down the nvm installation script from the<a href=\"https:\/\/github.com\/creationix\/nvm\">project&#8217;s GitHub page<\/a>. The version number may be different, but in general, you can download and install it with the following syntax:<\/p>\n<pre>curl https:\/\/raw.githubusercontent.com\/creationix\/nvm\/<span class=\"highlight\">v0.16.1<\/span>\/install.sh | sh\n<\/pre>\n<p>This will download the script and run it. It will install the software into a subdirectory of your home directory at <code>~\/.nvm<\/code>. It will also add the necessary lines to your <code>~\/.profile<\/code> file to use the file.<\/p>\n<p>To gain access to the nvm functionality, you&#8217;ll need to log out and log back in again, or you can source the<code>~\/.profile<\/code> file so that your current session knows about the changes:<\/p>\n<pre class=\"code-pre \"><code>source ~\/.profile\n<\/code><\/pre>\n<p>Now that you have nvm installed, you can install isolated Node.js versions.<\/p>\n<p>To find out the versions of Node.js that are available for installation, you can type:<\/p>\n<pre class=\"code-pre \"><code>nvm ls-remote\n<\/code><\/pre>\n<pre class=\"code-pre \"><code>. . .\n v0.11.6\n v0.11.7\n v0.11.8\n v0.11.9\nv0.11.10\nv0.11.11\nv0.11.12\nv0.11.13\n<\/code><\/pre>\n<p>As you can see, the newest version at the time of this writing is v0.11.13. You can install that by typing:<\/p>\n<pre class=\"code-pre \"><code>nvm install 0.11.13\n<\/code><\/pre>\n<p>Usually, nvm will switch to use the most recently installed version. You can explicitly tell nvm to use the version we just downloaded by typing:<\/p>\n<pre class=\"code-pre \"><code>nvm use 0.11.13\n<\/code><\/pre>\n<p>When you install Node.js using nvm, the executable is called <code>node<\/code>. You can see the version currently being used by the shell by typing:<\/p>\n<pre class=\"code-pre \"><code>node -v\n<\/code><\/pre>\n<pre class=\"code-pre \"><code>v.0.11.13\n<\/code><\/pre>\n<p>If you have multiple Node.js versions, you can see what is installed by typing:<\/p>\n<pre class=\"code-pre \"><code>nvm ls\n<\/code><\/pre>\n<p>If you wish to default one of the versions, you can type:<\/p>\n<pre class=\"code-pre \"><code>nvm alias default 0.11.13\n<\/code><\/pre>\n<p>This version will be automatically selected when a new session spawns. You can also reference it by the alias like this:<\/p>\n<pre class=\"code-pre \"><code>nvm use default\n<\/code><\/pre>\n<p>Each version of Node.js will keep track of its own packages and has <code>npm<\/code> available to manage these.<\/p>\n<p>You can have <code>npm<\/code> install packages to the Node.js project&#8217;s <code>.\/node_modules<\/code> directory by using the normal format:<\/p>\n<pre>npm install <span class=\"highlight\">express<\/span>\n<\/pre>\n<p>If you&#8217;d like to install it globally (available to the other projects using the same Node.js version), you can add the <code>-g<\/code> flag:<\/p>\n<pre>npm install -g <span class=\"highlight\">express<\/span>\n<\/pre>\n<p>This will install the package in:<\/p>\n<pre>~\/.nvm\/<span class=\"highlight\">node_version<\/span>\/lib\/node_modules\/<span class=\"highlight\">package_name<\/span>\n<\/pre>\n<p>Installing globally will let you run the commands from the command line, but you&#8217;ll have to use link the package into your local sphere to require it from within a program:<\/p>\n<pre>npm link <span class=\"highlight\">express<\/span>\n<\/pre>\n<p>You can learn more about the options available to you with nvm by typing:<\/p>\n<pre class=\"code-pre \"><code>nvm help\n<\/code><\/pre>\n<div data-unique=\"conclusion\"><\/div>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>As you can see, there are a quite a few ways to get up and running with Node.js on your Ubuntu 14.04 server. Your circumstances will dictate which of the above methods is the best idea for your circumstance. While the packaged version in Ubuntu&#8217;s repository is the easiest, the <code>nvm<\/code> method is definitely much more flexible.<\/p>\n<pre class=\"code-pre \"><code>\u00a0<\/code><\/pre>\n<pre class=\"code-pre \"><code>\u00a0<\/code><\/pre>\n<\/blockquote>\n<h2>VNC SERVER Installation<\/h2>\n<h5>https:\/\/www.howtoforge.com\/how-to-install-vnc-server-on-ubuntu-14.04<\/h5>\n<p>apt-get install vnc4server<\/p>\n<p>sonra\u00a0vnc4server \u00a0\u00e7al\u0131\u015ft\u0131r\u0131p 6 karkaterlik \u015fifre veriyoruz<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Back Up almak terminalden<\/h2>\n<p>http:\/\/www.upubuntu.com\/2012\/03\/how-to-make-full-system-backup-using.html<\/p>\n<p>&nbsp;<\/p>\n<p>Ek bilgiler<\/p>\n<p>Terminal de lock kald\u0131rmak :<\/p>\n<pre><code>sudo rm \/var\/lib\/apt\/lists\/lock\n\ndonan\u0131m bilgilerini \u011frenmek<\/code><\/pre>\n<pre><code> lspci -nnk | grep VGA -A1\n\ndmesg   bu koutla donan\u0131m bilgisini ogrenin\nlsusb   usb cihazlar\u0131 goruntuler listeler\nSSH client windows Putty de renk de\u011fi\u015ftirmek\n\n<\/code><\/pre>\n<pre><code>https:\/\/www.youtube.com\/watch?v=61kBH6lAuv4 \nmanuel ip static ayarlamak \nhttps:\/\/www.thefanclub.co.za\/how-to\/how-add-wireless-lan-adaptor-static-ip-ubuntu-auto-connects-startup \n\n<strong>Usbserial driver kurulumu<\/strong>\nhttp:\/\/www.at91.com\/linux4sam\/bin\/view\/Linux4SAM\/SoftwareTools\n\n[ 8148.843134] usb 4-2: Manufacturer: Microchip Technology Inc.\n[ 8148.846290] cdc_acm 4-2:1.0: ttyACM0: USB ACM device\n[ 8378.832160] usb 4-2: USB disconnect, device number 7\n[ 8416.796062] usb 4-2: new full-speed USB device number 8 using uhci_hcd\n[ 8416.987112] usb 4-2: New USB device found, idVendor=<strong>04d8<\/strong>, idProduct=<strong>000a<\/strong>\n[ 8416.987120] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0\n[ 8416.987127] usb 4-2: Product: CDC RS-232 Emulation Demo\n[ 8416.987132] usb 4-2: Manufacturer: Microchip Technology Inc.\n[ 8416.989288] cdc_acm 4-2:1.0: ttyACM0: USB ACM device\n\n\n\nrmmod usbserial\nlsusb -d <strong>04d8<\/strong>:<strong>000a<\/strong>\n\nmodprobe usbserial vendor=<strong>0x04d8<\/strong> product=<strong>0x000a<\/strong>\n\ndmesg\n\n<\/code><\/pre>\n<pre><code><strong>hyper terminal uygulamasi<\/strong>\n<\/code><\/pre>\n<pre class=\"bbcode_code\">sudo apt-get install gtkterm\n\nnodejs\nvar SerialPort = require(\"serialport\").SerialPort \nvar port = \"\/dev\/ttyACM0\";<\/pre>\n<pre><code>\u00a0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SSH aktif etmek http:\/\/askubuntu.com\/questions\/15433\/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process SSH aktiflemek i\u00e7in open ssh kuruyoruz sudo apt-get install openssh-server sudo cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.factory-defaults sudo chmod a-w \/etc\/ssh\/sshd_config.factory-defaults sudo gedit \/etc\/ssh\/sshd_config banner duzeltmek #Banner \/etc\/issue.net configde ac sonra sudo gedit \/etc\/issue.net mesaji yaz\u0131n\u0131z.. sudo \/etc\/init.d\/ssh restart servis yeniden baslatilinca banner aktif olur &nbsp; Editor ile #PasswordAuthentication\u00a0yes bulup sifre giri\u015fi aktifliyoruz. sistemdeki [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2,59,60],"tags":[1581,1885,2120],"class_list":["post-5217","post","type-post","status-publish","format-standard","hentry","category-2015-2016","category-ubuntu","category-ubuntu-2015-2016","tag-notlarim","tag-server","tag-ubuntu","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":1703,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=5217"}],"version-history":[{"count":0,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5217\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=5217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=5217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=5217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}