Archive | GNU/Linux

Manjaro 17.1-rc2 duyuruldu

İlk sürüm adayı 18 Aralık 2017‘de çıkarılan Manjaro’nun yeni sürümü Manjaro 17.1-rc2, Philip Müller tarafından duyuruldu. Sistem kaynakları üzerinde hızlı ve düşük olmayı hedefleyen, UNIX benzeri işletim sistemleri için hafif bir masaüstü ortamı olan Xfce,  zengin özellikli ve çok yönlü bir masaüstü ortamı olan KDE ve basit ve kullanımı kolay olmayı ve tamamen erişilebilir olmayı hedefleyen GNU Projesi kapsamında geliştirilen GNOMEversiyonlarıyla kullanıma sunulan sistemin son sürüm adayını yayınladıklarını düşündüklerini belirten Müller; sistemin 4.14 serisindeki en yeni LTS çekirdekle kullanıma sunulduğunu söyledi. Xorg-Stack 1.19 ile gelen sistem; en yeni Plasma5, Apps, Framework ve QT’yi içeriyor. Yeni tasarlanmış temalar, stiller ve Calamares de güncellenmiş bulunuyor. Manjaro 17.1-rc2  hakkında ayrıntılı bilgi edinmek için sürüm duyurusunu inceleyebilirsiniz.

Continue Reading →

Manjaro 17.1-rc2 edinmek için aşağıdaki linkten yararlanabilirsiniz.

0

LibreELEC 8.2.2 duyuruldu

Televizyon ve uzaktan kumanda ile kullanım için GNU/Linux, OSX, Windows, iOS ve Android yüklü aygıtlarda 10 metreye kadar bir kullanıcı arayüzü üzerinden özgür ve açık kaynak kodlu (GPL) bir medya oynatıcı olarak işlev gören Kodi‘nin en son final sürümü ile kullanıma sunulan ve Raspberry Pi gibi ARM tabanlı bilgisayarları hedef alan LibreELEC’in 8.2.2 sürümü, LibreELEC projesi tarafından duyuruldu. Bunun 3D film hayranlarına sorun yaşatan bir ffmpeg sorununu çözmek için çıkarılan bir bakım sürümü olduğu belirtilirken, WeTek Core ile ilgili bir sorunun da giderildiğii ayrıca 2. nesil RF uzaktan kumanda için destek eklendiği ifade ediliyor. LibreELEC 8.2.2 hakkında ayrıntılı bilgi edinmek için sürüm duyurusu incelenebilir.

Continue Reading →

LibreELEC 8.2.2 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0

Install and Use Non-Composer Laravel Packages

If you want to use a package in Laravel, you simply add a single line in composer.json file and the job is done. This is because the package is available in packagist.org, what if the package that you want to use is a non-Composer Laravel package? Maybe available on a git repo or a private repo or so. In this post, we will see how to install and use non-Composer Laravel Package and custom libraries inside your Laravel projects.

Continue Reading →

Using a Git Package

For this purpose, I searched GitHub for a package that is not available on packagist.org and found one.

I’m going to use a package called UniversalForms from wesleytodd.

You can find it here https://github.com/wesleytodd/Universal-Forms-PHP

To use the package, open composer.json file and add it to the require section like this:

"wesleytodd/universal-forms" : "dev-master"

Then under the require section, add a new section called repositories like this:

"repositories": [
{
"type": "vcs",

"url": "https://github.com/wesleytodd/Universal-Forms-PHP"

}
]

Finally, run composer update

Now you can add the service provider for the package like any other composer package.

Open config/app.php and add the provider to the provider’s array.

'Wesleytodd\UniversalForms\Drivers\Laravel\UniversalFormsServiceProvider',

And you can use the package like any other package.

The best thing about this trick is that the repository will be treated like any Composer dependency and will put the package in vendor directory like magic.

Using Private Repositories

As you did with the GitHub repo, you can do the same with your private repos like this:

{

"require": {

"likegeeks/my-repo": "dev-master"

},

"repositories": [

{

"type": "vcs",

"url": "[email protected]:likegeeks/my-repo.git"

}

]

}

The only difference here is that you need to install the SSH keys for your git client.

This technique is supported by many git clients like:

  • Git
  • Subversion
  • Mercurial

Using Subversion

If you are using Subversion, it doesn’t have a native idea of branches and tags, so Composer will assume that the code is in $url/branches  and $url/tags.

If your repo has a different structure, you can change these value like this:

{

"repositories": [

{

"type": "vcs",

"url": "http://svn.website.com/projectA/",

"trunk-path": "MyTrunk",

"branches-path": "MyBranches",

"tags-path": "MyTags"

}

]

}

Autoload Custom Classes or Libraries

Now you can use your non-Composer Laravel packages inside your projects.

What if your package is not even on a repo, maybe a normal PHP library that contains classes or so how to use it inside your Laravel project?

Well, that is so simple. First, create a directory for storing your libraries let’s say app/libraries.

Then include the library file in composer.json file under classmap of autoload section like this:

{

"autoload": {

"classmap": [

"app/libraries/myLib.php"

]

}

}

This will include your file without problems, what if your library has a lot of files?

Great, you can include the directory name instead and Composer will load all of the classes automatically.

Now you can import and use any non-Composer Laravel packages.

I hope you find the post useful. Keep coming back.

Thank you.

likegeeks.com

0

Create and Use Dynamic Laravel Subdomain Routing

The subdomain is something we sometimes need. Many websites give their users a custom subdomain for their profiles or pages, so instead of accessing the user’s profile at http://website.com/users/50, the user can access his profile page at http://username.website.com which is much better. In this post, we will see how to make dynamic Laravel subdomain routing easily.

 

Continue Reading →

Configure DNS

To make this trick, you need to have access to the DNS server settings and apache web server settings.

First, you need to add an A record with an asterisk for the subdomain like this:

* IN A 192.168.1.5

You should replace the IP address with your IP address.

Configure Web server

Open apache web server configuration file httpd.conf and add a VirtualHost like this:

<VirtualHost *:80>
ServerName website.com
ServerAlias *.website.com
</VirtualHost>

Let’s assume that we have the users with the name field which will contain the user’s name.

Now we will create our route.

Route::get('/', function () {

$url = parse_url(URL::all());

$domain = explode('.', $url['host']);

$subdomain = $domain[0];

$name = DB::table('users')->where('name', $subdomain)->get();

dd($name);

// write the rest of your code.

});

First, we explode the URL and extract the host from it, then we get the subdomain part.

Then we search for a username in the users table that matches the extracted subdomain.

You can check if no user found, redirect to another page or give him an error message or whatever.

Now if you try to visit any user subdomain like http://likegeeks.website.com, you should see the user’s name without problems.

Keep in mind that the user that you are visiting his subdomain MUST be present in the database.

Any user added to the database will have his subdomain automatically without a headache.

If you don’t have access to your web server configuration like using shared hosting or so, you can’t achieve the same functionality using htaccess redirection.

Multiple Routes in Subdomain

In the above example, we use a single route to deal with the subdomain, but you can use many routes with a subdomain.

You can use routes groups to achieve this:

Route::group(array('domain' => '{subdomain}.website.com'), function () {

Route::get('/', function ($subdomain) {

$name = DB::table('users')->where('name', $subdomain)->get();

dd($name);

});
});

As you see, Laravel subdomain routing is very easy to implement.

I hope you find the post useful. Keep coming back.

Thank you.

likegeeks.com

0

antiX-16.3 duyuruldu

AMD x86 uyumlu sistemler için hızlı, hafif ve kurulumu kolay bir live CD olarak yapılandırılan ve Debian tabanlı bir dağıtım olan antiX’in “Berta Cáceres” kod adlı 16 serisinden yeni sürümü 16.3 duyuruldu. Zaten antiX-16 kullanıcısı olanların bu sürümü indirip yüklemek zorunda olmadığı, depolar aracılığıyla güncellenmesinin yeterli olacağı belirtilirken, Debian tabanlı sistemin mükemmel yeni uygulamalar, çekirdek güncellemeleri ve live-usb-maker içerdiği ifade edildi. IceWM, Fluxbox, JWM ve herbstluftwm gibi farklı pencere yöneticileriyle kullanıma sunulan ve hızlı, hafif ve esnek bir şekilde tasarlanmış bulunan sistem, 32 ve 64-bit’lik kalıplar halinde indirilebiliyor. antiX-16.3 hakkında ayrıntılı bilgi edinmek için projenin anasayfasını inceleyebilirsiniz.

Continue Reading →

antiX-16.3 edinmek için aşağıdaki linkten yararlanabilirsiniz.

0

OLPC OS 13.2.9-21 duyuruldu

Gelişmekte olan ülkelerdeki çocuklara yönelik olarak tasarlanan ve uzun adı One Laptop Per Child (çocuk başına bir dizüstü bilgisayar) olan ve önyüklü bir işletim sistemi ve uygulamalar içeren düşük maliyetli dizüstü bilgisayar projesinin Fedora Core tabanlı olarak geliştirilen sistemi OLPC OS’un yeni sürümü 13.2.9-21, James Cameron tarafından duyuruldu. Sugar adlı özel bir grafik kullanıcı arayüzü ile sunulan sistemin, Fedora tabanlı olarak hazırlandığını belirten Cameron; OLPC OS 13.2.9-21’i duyurmaktan büyük bir memnuniyet duyduklarını söyledi. Yeni sürüm hakkındaki ayrıntıları merak edenlerin sürüm notlarını inceleyebileceklerini belirten Cameron; her türlü geri bildirimi sağlayan tüm katılımcılara ve testçilere teşekkür ettiklerini ifade etti. Basit bir belge görüntüleyici olan Xulrunner üzerine kurulmuş bir web tarayıcısı içeren sistemin, AbiWord kelime işlemci, bir RSS okuyucu; e-posta, sohbet ve VOIP istemcileri, bir multimedya geliştirme ve oynatma ortamı, bir müzik düzenleme araç setine sahip olduğu belirtiliyor. OLPC OS 13.2.9-21 hakkında ayrıntılı bilgi edinmek için sürüm duyurusunu inceleyebilirsiniz.

Continue Reading →

OLPC OS 13.2.9-21 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0