lost and found ( for me ? )

Showing posts with label fedora 18 64bit. Show all posts
Showing posts with label fedora 18 64bit. Show all posts

build BIND10 on Fedra 18 64bit



[root@localhost ~]# cat /etc/fedora-release
Fedora release 18 (Spherical Cow)
[root@localhost ~]# uname -ri
3.8.7-201.fc18.x86_64 x86_64

install required packages to build bind10
[root@localhost ~]# yum install -y boost-devel botan-devel gtest-devel lcov python3-devel sqlite-devel log4cplus-devel git gcc-c++ automake libtool

# git clone git://git.bind10.isc.org/bind10
# cd bind10/
# autoreconf -i
libtoolize: putting auxiliary files in `.'.
libtoolize: can not copy `/usr/share/libtool/config/ltmain.sh' to `./'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4macros'.
libtoolize: can not copy `/usr/share/aclocal/libtool.m4' to `m4macros/'
libtoolize: can not copy `/usr/share/aclocal/ltoptions.m4' to `m4macros/'
libtoolize: can not copy `/usr/share/aclocal/ltsugar.m4' to `m4macros/'
libtoolize: can not copy `/usr/share/aclocal/ltversion.m4' to `m4macros/'
libtoolize: can not copy `/usr/share/aclocal/lt~obsolete.m4' to `m4macros/'
autoreconf: libtoolize failed with exit status: 1

needs tar command.
# yum install tar

# autoreconf -i
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4macros'.
libtoolize: copying file `m4macros/libtool.m4'
libtoolize: copying file `m4macros/ltoptions.m4'
libtoolize: copying file `m4macros/ltsugar.m4'
libtoolize: copying file `m4macros/ltversion.m4'
libtoolize: copying file `m4macros/lt~obsolete.m4'
configure.ac:58: installing './config.guess'
configure.ac:58: installing './config.sub'
configure.ac:10: installing './install-sh'
configure.ac:10: installing './missing'
Makefile.am: installing './depcomp'
src/bin/bind10/Makefile.am:11: installing './py-compile'
# echo $?
0

# ./configure
   BIND 10 source configure results:
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Package:
 Name:          bind10
 Version:       20130221

C++ Compiler:    g++

Flags:
 DEFS:          -DHAVE_CONFIG_H
 CPPFLAGS:       -DOS_LINUX  -I$(top_srcdir)/ext/asio -I$(top_srcdir)/ext/coroutine -DASIO_DISABLE_THREADS=1
 CXXFLAGS:      -g -O2
 LDFLAGS:        -Wl,-R//lib64
 B10_CXXFLAGS:   -Wall -Wextra -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -Werror -fPIC
 OS Family:     Linux
 Python:        -I/usr/include/python3.3m -I/usr/include/python3.3m

                -L/usr/lib  -Wl,-R/usr/lib

 Boost:
 Botan:         -I//include
                 -L//lib64
                -L//lib64 -lbotan -lbz2 -lcrypto -lgmp -lpthread -lrt -lz  -lbotan -lbz2 -lcrypto -lgmp -lpthread -lrt -lz
 Log4cplus:
                 -llog4cplus -pthread
 SQLite:
                -lsqlite3

Features:
  SQLite3

Developer:
 Enable Debugging: no
 Google Tests: no
 Valgrind: not found
 C++ Code Coverage: no
 Python Code Coverage: no
 Logger checks: no
 Generate Documentation: no


 Now you can type "make" to build BIND 10

# ./configure
# make
# make install
# ldconfig
# /usr/local/sbin/bind10 --version
bind10 20110223 (BIND 10 20130221)

create a user
issue “b10-cmdctl-usermgr add” under /usr/local/etc/bind10 directory.
# cd /usr/local/etc/bind10/

# pwd
/usr/local/etc/bind10

# b10-cmdctl-usermgr add
Using accounts file: /usr/local/etc/bind10/cmdctl-accounts.csv
Username to add: bind10
Choose a password:
Re-enter password:
#

start bind10
# /usr/local/sbin/bind10 &
[1] 8942

connect to bind10
# bindctl

No stored password file found.

When the system is first set up you need to create at least one user account.
For information on how to set up a BIND 10 system, please check see the
BIND 10 Guide:

http://bind10.isc.org/docs/bind10-guide.html#quick-start-auth-dns

If a user account has been set up, please check the b10-cmdctl log for other
information.

Username: bind10
Password:
["login success"]
> Init shutdown

Fedora 18 64bit : install java plugin for chrome

small tips.

[root@f18 ~]# cat /etc/fedora-release
Fedora release 18 (Spherical Cow)
[root@f18 ~]# uname -ri
3.8.2-206.fc18.x86_64 x86_64

There are two ways to install java plugin for chrome.

1. install Oracle’s java

download jre from oracle’s site.

I’m using Fedora 18 64bit , so I downloaded JRE for RPM 64bit ver.
# jre-7u17-linux-x64.rpm

install JRE
# rpm -ivh jre-7u17-linux-x64.rpm

make a symbolic link for chrome.
# cd /opt/google/chrome/
# mkdir plugins
# cd plugins/
# ln -s /usr/java/jre1.7.0_17/lib/amd64/libnpjp2.so .

restart chrome and access to http://www.java.com/en/download/testjava.jsp to confirm wether or not java is running.



2. install icedtea-web over yum

[root@f18 ~]# yum search icedtea-web
Loaded plugins: langpacks, presto, refresh-packagekit
fedora/18/x86_64/metalink                                | 9.4 kB     00:00     
fedora-virt-preview                                      | 2.9 kB     00:00     
google-chrome                                            |  951 B     00:00     
updates/18/x86_64/metalink                               | 4.8 kB     00:00     
=========================== N/S Matched: icedtea-web ===========================
icedtea-web-javadoc.noarch : API documentation for IcedTea-Web
icedtea-web.x86_64 : Java browser plug-in and Web Start implementation

[root@f18 ~]# yum install icedtea-web -y

restart chrome.

Fedora 18 64bit : how to install freenx server


[root@localhost ~]# cat /etc/fedora-release
Fedora release 18 (Spherical Cow)
[root@localhost ~]# uname -ri
3.7.5-201.fc18.x86_64 x86_64

install freenx-server via yum.
[root@localhost ~]# yum install -y freenx-server


configure freenx-server
[root@localhost ~]# nxsetup --install --setup-nomachine-key
Setting up /etc/nxserver ...done
Generating public/private dsa key pair.
Your identification has been saved in /etc/nxserver/users.id_dsa.
Your public key has been saved in /etc/nxserver/users.id_dsa.pub.

Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nx/nxserver.log ...done
Adding user "nx" to group "utmp" ...done
Setting up known_hosts and authorized_keys ...done
Setting up permissions ...done

----> Testing your nxserver configuration ...
Warning: Invalid value "COMMAND_FOOMATIC=/usr/bin/foomatic-ppdfile"
        Users will not be able to use foomatic.
Warning: "/usr/lib/cups/backend/smb" is not executable.
        Users will not be able to enable printing.
Warning: Invalid value "COMMAND_START_KDE=startkde"
        Users will not be able to request a KDE session.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
        Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_XTERM=xterm"
        Users will not be able to request an xterm session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
        Users will not be able to enable printing. Ignore if you use cups > 1.2

 Warnings occured during config check.
 To enable these features please correct the configuration file.

<---- done

----> Testing your nxserver connection ...
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is b3:a6:ef:05:65:a8:20:54:ed:07:67:41:7a:f2:31:87.
Are you sure you want to continue connecting (yes/no)?
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
<--- done

Ok, nxserver is ready.

PAM authentication enabled:
 All users will be able to login with their normal passwords.

 PAM authentication will be done through SSH.
 Please ensure that SSHD on localhost accepts password authentication.

 You can change this behaviour in the /etc/nxserver/node.conf file.
Have Fun!


node.cfg

back up
[root@localhost ~]# cd /etc/nxserver/
[root@localhost nxserver]# cp node.conf node.conf.org


edit node.cfg like this:
[root@localhost nxserver]# cat node.conf
ENABLE_PASSDB_AUTHENTICATION="0"
ENABLE_SSH_AUTHENTICATION="1"
ENABLE_CLIPBOARD="both"
NX_LOG_LEVEL=4
NX_LOGFILE=/var/log/nx/nxserver.log
COMMAND_MD5SUM="md5sum"


start freenx-server
[root@localhost nxserver]# systemctl status freenx-server.service
freenx-server.service - FreeNX Server
 Loaded: loaded (/usr/lib/systemd/system/freenx-server.service; disabled)
 Active: active (exited) since Thu 2013-02-14 19:15:37 JST; 10s ago
   Docs: http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
Process: 3945 ExecStart=/usr/libexec/nx/nxserver --start (code=exited, status=0/SUCCESS)
Process: 3873 ExecStartPre=/usr/libexec/nx/nxserver --cleanup (code=exited, status=1/FAILURE)
Process: 3870 ExecStartPre=/usr/libexec/nx/freenx-server-check-setup (code=exited, status=0/SUCCESS)

Feb 14 19:15:37 localhost.localdomain systemd[1]: Starting FreeNX Server...
Feb 14 19:15:37 localhost.localdomain systemd[1]: Started FreeNX Server.


start freenx-server when booting up Fedora
[root@localhost nxserver]# systemctl enable freenx-server.service
ln -s '/usr/lib/systemd/system/freenx-server.service' '/etc/systemd/system/multi-user.target.wants/freenx-server.service'



prepare a NX client.
I installed NX client on LInux Mint 14.
mint hattori # tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Linux Mint 14 Nadia"
mint hattori # uname -ri
3.5.0-23-generic x86_64




download NX client for Linux from http://www.nomachine.com/download-client-linux.php
mint hattori # ls *.deb
nxclient_3.5.0-7_amd64.deb


install nxclient
mint hattori # dpkg -i nxclient_3.5.0-7_amd64.deb
mint hattori #  chmod 755 /usr/lib/cups/backend/ipp


start nxclient
mint hattori # /usr/NX/bin/nxclient


connect to the NX server ( Fedora 18 ) from the NX client ( Mint )

Okay , I can connect to the NX server.