Results 1 to 4 of 4

Thread: [Answers] Linux

  1. #1
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135

    [Answers] Linux

    Added a new command line switch to simplify the sharing of data across a LAN between windows and linux. Specify --networkshare as a runtime command line switch or SET NETWORKSHARE ON in your config file. When --networkshare is specified then the path inside the database catalog is ignored and the tables are always accessed inside the database directory.
    Note: If you want to share databases between windows and Linux you should always use lowercase names for the tables as linux filenames are case sensitive.



    use the Lianja ODBC Manager, select Directory and specify the parent directory of your existing database. If this does not resolve the connection issue make sure that both machines can ping each other by name and IP.The Server field is just the IP or hostname of the server so no slashes needed.
    The Centos machine needs to be able to ping the Windows machine by name as well. A quick workaround for this is to add an entry for the Windows machine to the /etc/hosts file on Centos. (If there are no entries in there yet it's just IP hostname with each entry on a separate line: "192.168.1.1 cory".)

    The server always needs to be run as root.
    Assuming that isn't the issue, let's enable logging and see what we can find there.
    Stop the server: lianja-admin stop
    Make sure the log directory is empty, by default it'll be /opt/lianja/cloudserver/tenants/public/log/
    Start the server with logging enabled: lianja-admin start logging
    Attempt to make your connection - I'd suggest by using the test button from the Lianja ODBC Manager.
    Feel free to take a look at the log(s) yourself and see if you find anything obvious.



    Q:
    JPG images not being displayed
    A:
    Check that you have the libjpeg62 runtime library installed and install it if not:



    Q:
    just attempted an install for evalutation on Debian v.7.4 w/XFCE desktop.
    A:



    It does pick up that it's Python 2.7 and (for 64 bit) runs the lianja27_x86_64.exe.
    It may be a difference in root's umask. I installed with the defaults (Debian and Lianja) and had no problems creating and using the launchers.



    The following only applies to Lianja on Linux 64 bit (Ubuntu 12.10 and above). If, on connecting to a MySQL database, character fields are listed as type 'memo' or numeric fields have a field width of -1, please carry out the following steps:
    http://www.lianja.com/community/show...=8252#post8252



    All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
    Last edited by josipradnik; 2016-12-08 at 02:21.

  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    For64-bit Fedora 18 and Fedora 19 systems, please make sure you have the libpng12 package installed - this can be installed alongside the default libpng-1.5.x package.
    If you experience any difficulties running the installers in the default graphical modes (gtk or Xwindow), please run in text mode as follows:
    Code:
    sudo ./xxx-installer.bin --mode text
    This also applies to recent versions of OpenSUSE.





    System tables like sysindexinfo operate on databases, not directories.
    Ask your
    Centos system administrators if they can create a symbolic link to your directory from the /opt/lianja/server/data/ directory, e.g.

    ln -s /home/cory/test/testdata /opt/lianja/server/data/testdata

    That way, you will be able to use sysindexinfo, but will not need to change your DSN.



    Added a new command line switch to simplify the sharing of data across a LAN between windows and linux. Specify--networkshare as a runtime command line switch or SET NETWORKSHARE ON in your config file. When --networkshare is specified then the path inside the database catalog is ignored and the tables are always accessed inside the database directory.

    Note: If you want to share databases between windows and Linux you should always use lowercase names for the tables as linux filenames are case sensitive.



    Q:
    We need to run our program automatically (absolutely no user intervention) at system startup on linux
    A:
    If you want to build a Linux self extracting installer that will work across all Linux platforms take a look here: http://megastep.org/makeself/.



    All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
    Last edited by josipradnik; 2016-12-08 at 02:17.

  3. #3
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    Q:
    If I have a linux server, can I have a few session of my app running in multiple touch screen monitors by different users with each user running a different independent session from the other users?
    I am looking at 3-5 touch screen monitors running different instance of the same app.
    A:
    this is no different from the user perspective than running an app over remote desktop or citrix, where multiple users run against the same EXE. The big difference in Linux is that you aren't running <n> copies of the OS, as Linux carves out different memory areas for each user's variables, and so is much more efficient.
    Linux us a multi user / multi tasking operating system. Each user who logs in runs concurrently alongside other users. It is highly scaleable and we have sites serving 1500+ concurrent desktop users running Lianja database Apps.
    There are various RDP solutions for linux that enable remote PCs to run GUI desktop Apps but I would recommend building Lianja Web / Browser bassed Apps that run against the Lianja Cloud Server hosted on linux.



    All topics in [Answers] alphabetically: http://www.lianja.com/community/show...p?2717-Answers

  4. #4
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    Q:
    I have a licence for Linux Cloud server and APaaS Windows.
    I have installed the product on Ubuntu 16.4 server, but when I tried to start the lianjad service, nothing happened.
    I tried to find lianjad in /etc/lianja.d/, but I finded only lianja.com.

    A:
    lianjad is in /etc/init.d
    The lianja service can also be started using the lianja-admin command. For full details, see here:
    https://www.lianja.com/doc/index.php...nager_on_Linux



    instructions on installing the new Lianja module for Apache on Linux.



    GNOME on Fedora 25 and above uses Wayland instead of X11. Part of the Wayland design is to prevent graphical applications from running with root privileges.
    If you are running with GNOME and have Wayland enabled (the default), the Lianja installers will run in text mode.
    To run the installer in graphical mode, you will need to log in using the 'GNOME on Xorg' option in the session login screen.
    Note that this also means the Lianja App Builder and the Lianja App Center cannot be run as root / with sudo when Wayland is enabled.
    For more information on Wayland in GNOME on Fedora please see here Fedora 26: Common F26 bugs: Wayland issues.




    All topics in [Answers] alphabetically: http://www.lianja.com/community/show...ll=1#post12352

    These answers are also systematized on the site "Lianja developer": https://lianjadeveloper.wordpress.com/category/linux/

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us