GNU/Linux

In this article I wrote about the Linux-Kernel and the GNU-Project, together they are called GNU/Linux.It is an Unix like Operating system and in the most cases POSIX-compliant and open source.The Kernel was firs released in the year 1991 from Linus Torvalds.

 

GNU/Linux is often used for Servers, there are a lot of open source software for work, a very powerful Shell and you have always Perl on the System.And the System needs not as much resources as Microsoft Systems.

 

I regularly use Debian or Mint,Debian is more stable, more for Servers and you could make a minimal installation with or without an GUI.Mint is more for Desktop users with a good looking Desktop.

 

For more take a look in the GNU/Linux Bash – Category

Backtrack How to

This is an collection of problems and bugs I had with Backtrack 5 R2 (Linux based Distribution).

To download Backtrack look at http://www.backtrack-linux.org/downloads/

 

Ubuntu software centre and update manager

For more Software, I installed the ubuntu software centre with this command:

then run a update:

now you could choose your software sources at:

System > Administration > Software Sources

If you want the Update manager, run this:

Or you could add the ubuntu repository to your system, just open the “/etc/apt/sources.list” file and generate a list from http://repogen.simplylinux.ch/generate.php, now you could add what you want.

 

NVIDIA or ATI/AMD driver

NVIDIA: http://www.nvidia.de/Download/indexsg.aspx?lang=de

just run it from your download folder.

ATI/AMD: http://support.amd.com/us/gpudownload/Pages/index.aspx 

Code:

After a reboot you could check your driver status with:

 

Network

If you need more features at your network just install what you need:

network-manager-openvpn – network management framework (OpenVPN plugin core)
network-manager-openvpn-gnome – Network Management framework (OpenVPN plugin GNOME GUI)
network-manager-pptp – network management framework (PPTP plugin)
network-manager-pptp-gnome – network management framework (PPTP plugin)
network-manager-vpnc – network management framework (VPNC plugin core)
network-manager-vpnc-gnome – network management framework (VPNC plugin GNOME GUI)
network-manager – network management framework daemon
network-manager-dev – network management framework (development files)
network-manager-gnome – network management framework (GNOME frontend)

 

Add the Network icon to the panel:

 

network is blocked

To solved this run this:

 

Disable bell in terminal

open the file “/etc/inputrc” and add this:

 

Mint backup

run this:

 

BUG : wait for sound system to respond

System > Preferences > Startup Applications add this:

 

BUG : Couldn’t execute command: xscreensaver-command -lock

run this command:

System > Preferences > Keyboard Shortcuts
Lock Screen disable.
Add new “Ctrl+Alt+L” with “xlock” ,apply done!

 

BUG : Chrome wont start as root

Menue>Internet>Chrome>Properties>Comand and add this:

 

BUG : run a *.deb

 

BUG : E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)

Solution A:

open “/etc/apt/apt.conf.d/70debconf” and add this:

then run this:

Solution B:

open “/etc/apt/apt.conf.d/90user” and add this:

 

BUG : GRUB2 error: out of disk

 

BUG : VLC is not supposed to be run as root. Sorry.

In line 7F8, replace “geteuid” with “getppid”.

NAS Server Synology ds415+

I searched a long time for the right NAS, because it should need some things that important for me :

  1. Terminal SSH
  2. DNLA
  3. 4 HDDs with 4TB
  4. apache
  5. very fast connection
  6. encryption

And I choosed the ds415+ for 513€ because it seems the best solution for me.Because its have a very fast XOR(for RAID5) and AES(for encryption) performance, is based on Linux Kernel and seems one of the best NAS Systems on the market.After some days I got it and here it is:

Hardware

  • INTEL Atom C2538(4×2.4GHz)
  • 2 GB DDR31600 CL11
  • 4GB internal store

Overview

2015-03-16 17.09.51 2015-03-16 17.10.122015-03-16 17.09.07 2015-03-16 17.11.392015-03-16 17.11.57

RAM

Then I upgraded the RAM with a “Kingston 8GB DDR3 1600MHz Non-ECC CL11 SODIMM” for 70€, that is not really necessary but I need a big cache for my database.This is the ram usage just with some apps running:

Bildschirmfoto vom 2015-03-26 08:42:47

Hard disk

I created a RAID5 with 4 WD40EFRX.One of them cost about 170€ that’s not cheap but for 4TB at this good quality it is okay.I chose the RAID5 over RAID10 because so i get the size of 3 disks and not only 2, the performance is more than the network can handle.

Here we see that volume1 has a size about 10.8T that’s very much space.

Here we get a little Benchmark about the Hard disk, we see reading is more than enough, and the most of the time i read from the disk.

For more Information about Benchmarks see Benchmark Your System.

This is the Writing, we could see the network is the bottle neck, I use only one LAN Port because my main board cant handle more.here I moved a file via FTP to my NAS its only writing:

Bildschirmfoto vom 2015-03-26 08:55:05

Its about 75MB/s what’s a good value is for a RAID5.

 

Webserver

I have the problem that every connect to my homepage lets my HDDs spin up, so I tried to mount a USB into the File system to host my Page and MySQL on it.

At first we need a USB stick and change the File system, make 2 Partitions.One of them for the database one for the Web page, I choose 1/3 to 2/3 of the Stick size.And its better if the USB supports USB 3.0, now we connect to our NAS via SSH and look what’s the name of our Stick:

Before we make some changes shut down your word press, phpmyadmin and database !

Okay now we copy our web and mysql folder to our USB stick.Importand is to only move the mysql database and not the postgress because the postgress is needed in the start-up and your NAS would crash.

Now we make a copy about our Directory’s, if it crash we could move it back.

Okay now we need a folder to mount our new files from the stick.

Now we could mount the Stick, its important to mount it after every reboot.

Now we could turn on our web services.If you use phpmyadmin and MariaDB it could be useful to take a look at phpMyAdmin and Mysql Cache tuning.

 

Noise

If you have it in a room where you work its no problem, if its completely silent you can hear it a little bit.I turned it on silent mode.

 

Power

The Power usage is between 12W and 40W.

working 30-50W
 start up 38W
 waiting  32W
 sleeping  20W

 

Conclusion

All together its a very good NAS and I would buy it again.But if you look at a cheap solution for backup and web space look at Silent PC for 260€ it also need less power.

Limit bandwidth in Linux

If you want to limit your bandwidth in Linux you could use trickle or wondershaper, to limit a process use this:

trickle -u[up]  -d [down] [program]

 

for a global limit use:

wondershaper [interface]  [down] [up]

for remove :

wondershaper clear [interface]

Operating System Infos

To get some infos about your GNU/Linux OS run this:

Result looks like: