How to install ‘dhcpd’ on FreeNAS 9.1.1

You can run a DHCP server on your FreeNAS installation through the following steps:

  • Log in as root through SSH on your server:
  • $ ssh root@192.168.1.100

  • Remount the root file system with write permissions:
  • # mount / -uw

  • Install the current package (added in 2014) for the DHCP server:
  • # pkg_add -r isc-dhcp43-server

  • Copy the DCHP executable to the following directory:
  • # cp /etc/local/rc.d/isc-dhcpd /conf/base/etc/local/rc.d/

  • Create the configuration file for the DHCP server in e.g your home directory and copy it to the following directory:
  • # cp /home/$USER/dhcpd.conf /conf/base/etc/local/

  • You can now reboot your NAS in order to mount the root file system read-only again. After the successful boot log into your NAS once again as root and create a database for the client leases:
  • # touch /var/db/dhcpd.leases

  • Finally start the DHCP server with:
  • # dhcpd

These two last steps have to be done after every reboot but since a NAS is always online it shouldn’t hurt. If you didn’t encounter any problems you can now assign a static IP to your NAS either via the web interface or through SSH:

# ifconfig re0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255

Advertisements

Firefox and the Tale of a Dark KDE Color Scheme

I was tired of the default Oxygen Color Scheme, it’s too bright when working at night :) So I went to the system settings of KDE and switched to ‘Obsidian Coast’, which is a dark Color Scheme that looks really nice. However this change has an impact on non-KDE applications like Firefox and Gimp as well.

Firefox’s location bar looks something like this when using a dark KDE Color Scheme:

Image

I want to show you what to do for the location bar to look like this again:

Image

There are several option to change Firefox’s appearance:

  • Create a file in ~/.mozilla/firefox/XXXXXX.default/chrome/userContent.css and define the default colors there.
  • Remove files with the name ~/.gtkrc* every time you log into KDE.

The best option is in my opinion:

  • Go to System Settings > Application Appearance > Gtk Configuration.
  • Under GTK Themes select for example Clearlooks as GTK2 Theme. Do not use oxygen-gtk, which causes the problem with the location bar.

In openSUSE you’ll find these GTK Themes with:

$ zypper search gtk2-themes

You don’t want to install: gtk2-theme-oxygen

Image

burning-in of new audio equipment

I really love listening to music and can’t imagine life without it! I listen to all kinds of music for example jazz, classic rock, blues, reggae, country … However it is essential that you have high quality audio equipment if you really want to enjoy the music. Everybody knows that the music sounds better if the bit rate is higher and also OGG sounds better than MP3 at the same bit rate (nothing compared to FLAC or WAVE). However, my favorite medium for music is the good old record (vinyl).

I got some new headphones from beyerdynamic which sound really awesome! Then I stumbled upon on a site with an article about a process called burn-in of audio equipment. This is a process where you stress for example new headphones for at least 40 hours with different music or frequencies, white noise etc. After 40 hours of burning-in with the whole frequency range, your headphones reaches its optimum in performance and sounds even better because the “diaphragm has been loosened” and the “headphone driver has been stressed”. You can read the full article here.

Working with GNU/Linux

I have made experiences while working with Windows and GNU/Linux. I can say that its a pleasure using GNU/Linux for writing papers for the university, programming, reading and writing emails, programming, searching the web … and lots more. Now I want to explain why I think GNU/Linux its more comfortable for doing any kind of work. First of all you don’t have the usual problems like the fragmentation of your HDD, viruses & spyware and network security problems, bluescreens, rebooting after every important update.

On GNU/Linux exist different problems but those are not essential for your working experience, imho. You may encounter incompatibility issues with the newest hardware because of the lack of drivers (that’s the fault of the hardware manufactures).

However, essential for working is that you have a fast and stable OS which is secure on the network and doesn’t reboot by itself. GNU/Linux stays fast even after several years of service because no real fragmentation of the HDD and you don’t have to reboot after an update. Something which was really annoying is that every out-of-date program on Windows is telling you to download and install the latest version of the software. On GNU/Linux you go to your “update-manager” and install every available update at once — no annoying pop-ups anymore!

GNU/Linux handles software updates and installations through the “package manager”. This is really comfortable for fast and easy updating and installing software. You even can upgrade your GNU/Linux to the latest release through that.

One important thing is also that if you install a new GNU/Linux (from a dvd) there are a lot of programs already installed. You don’t have to install any driver (only maybe a proprietary graphic card driver). Your system is ready for work after a fresh install.

Some of the programs I am using right now:

My current operating system is openSUSE 12.1 KDE.

Still you may have made/will make different experiences working with GNU/Linux. I just want to let you know what I have experienced :) … I still love it!

All these facts about GNU/Linux should tell you, that this operating system gives you more time to take care of important stuff like things you have to do for work. You need less time to take care of your OS, because it does that by itself!

Using the alias command under GNU/Linux

Sometimes when you use the BASH Shell under GNU/Linux it happens that you have to use the same command many times and you don’t want to look in your history every time. With history and a pipe to grep you can find your command really quickly to use it again. For example you want to find the last mount commands in your history you use:

$ history | grep 'mount'

However if you are using the same command frequently and you want it to give this particular command an alias. You set the new alias with

$ alias pictures='cd ~/Pictures'

To find out which aliases are already defined just type

$ alias

REMEMBER: After starting a new session this alias won’t be available anymore. If you want to set permanent aliases you just write them in your ~/.bashrc.

alias pictures='cd ~/Pictures'
alias vi='vim'
alias ..='cd ..'

If you want to remove an alias because you don’t use it anymore you can do that with unalias.

$ unalias pictures

I think that alias is a really useful bash command which can save time because you have to type less.

Plakate für die FluX

Marcus und ich haben uns überlegt, 30 Plakate in A4 zu drucken (Stammtischplakate) je 15 von der deutschen und englischen Version. Und 4 in A3 welche eher allgemein über die FluX sind und lediglich Interesse wecken sollen.

… Falls ihr die SVG oder PDF Dateien braucht, die könnt ihr von mir bekommen!



Das ist ein allgemeines OpenSource Plakat im UDSSR Stil:

Autor: Sebastian Weiss

Stammtischplakate:

Autor: Marcus Herbig

… und dieses hier:

Autor: Sebastian Weiss

Von diesen zwei könnten 4 Stück in A3 gedruckt werden:

Autor: Sebastian Weiss

… und

Autor: Sebastian Weiss

Support for openSUSE 11.3 ends soon

The official support for the openSUSE version 11.3 will end in January 2012. That means there will be no more updates for this openSUSE version. Its not clear if openSUSE 11.3 will become an Evergreen-project like 11.1 and 11.2.

I am currently using version 11.3 and I think I will skip 11.4 and upgrade directly to 12.1 because this new version has some exciting new features like ownCloud, the kernel version 3.1, the new file system BTRFS and with Snapper you have the ability to create snapshots of your files.

Source: Pro-Linux