Sunday, July 7, 2013

Java and Flash player for Chromium

Hello everyone.

Well, now I have the X-system and KDE installed, but can anyone imagine modern life without the Web? My favorite browser is Opera, but I decided to install and use the Chromium browser. Why? I don't know. I use Google Chrome in the office and I work with Google Docs often. Well, I guess that's the point.
Anyway, I've already installed it and write this post via it.

And of course, there are Java web applications and a lot of media content exist in the Internet. YouTube, for example, and a lot of others.

First of all, I added:
linux_enable="YES"
to /etc/rc.conf. It is required for some Linux applications, which will run on the system (including the Flash Player for Opera).

The next step was to install JDK (openjdk7 and linux-sun-jdk17) but it didn't help. What should I do now? A short googling moved me there. There was a recommendation to use the HandBook. And the instruction from the HabdBook works!

As people usually say, "When you tried everything and nothing helped, read the manual".

So, now Java applications can be run on my system and I can watch videos via my browser.

Mission complete. 

Wednesday, July 3, 2013

X-system installation

When ports updated, I want to install X-system.

I will use Xorg+KDE3. Well, it is simple:

Install Xorg is too easy:

# cd /usr/ports/x11/xorg
# make install clean

But its configuration is not. Here are some points:
  1. The recommendation is to add the following parameters to /etc/rc.conf to autodetect keyboards and mice:

    hald_enable="YES"
    dbus_enable="YES"

    But both keyboard and touchpad work fine for me without it.
  2. Run:

    # Xorg -configure

    If you do, basic X11 configuration file /root/xorg.conf.new will be created. You can tune and test this file before move it to /etc/X11/xorg.conf
  3. Also, I've added the following to /etc/X11/xorg.conf:

    Option "AutoAddDevices" "false"
    ....
    FontPath "/usr/local/lib/X11/fonts/cyrillic/"
    ....
    Section "Screen"
    DefaultDepth 24
       SubSection "Display"
            Viewport 0 0
            Depth 24
            Modes "1280x800"
       EndSubSection
  4. I like to use KDE, therefore I have installed it via ports. If you want KDE to be started automatically when the system starts (and I wanted it), you have to have the line below in your /etc/ttys file:

    ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure

Well, that's all I did. KDE starts well and works fine ^_^ As it usually does.
In my further posts, I'll tell you what software do I use.