• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Modify path /images to /home ???

Scheduled Pinned Locked Moved
General
7
17
8.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    Tom Elliott
    last edited by Feb 26, 2015, 7:41 PM

    [quote=“Eze84d, post: 42843, member: 28734”]DEBIAN: 7.8.0
    FOG: 1.2.0

    /data/images/.mntcheck and /data/images/dev/.mntcheck exist? --> No such file or directory.
    [/quote]

    Run [code]sudo touch /data/images/.mntcheck; sudo touch /data/images/dev/.mntcheck[/code]
    [quote=“Eze84d, post: 42843, member: 28734”]
    Are the permissions as: chmod -R 777 /data/images? --> You can not access: /data/images? No such file or directory.[/quote] Either you can’t access it because it doesn’t exist, or you can’t access it because you don’t have permissions.
    [code] sudo chmod -R 777 /data/images #to make accessible by anybody[/code]

    If it doesn’t exist, then you either need to link, or change back to /images
    [quote=“Eze84d, post: 42843, member: 28734”]
    selinux disabled? In any installation guide FOG 1.2.0 I was saying that I had to turn it off … not know how to do[/quote]
    In the guide, it should tell you how. However this is not needed for debian
    [quote=“Eze84d, post: 42843, member: 28734”]
    rpcbind running? --> As I check this ??[/quote][code]sudo service rpcbind status[/code]

    Please post your FOG install log. --> Where I find this file?[/quote]Read my signature.

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

    1 Reply Last reply Reply Quote 0
    • E
      Eze84d
      last edited by Feb 27, 2015, 1:01 PM

      Please post your FOG install log. -->

      Script iniciado (lun 23 feb 2015 09:33:51 ART
      )+Debian

         ..#######:.    ..,#,..     .::##::.   
      

      .:###### .:;####:…;#;…
      …##… …##;,;##::::.##…
      ,# …##…##:::## …::
      ## .::###,##. . ##.::#.:######::.
      …##:::###::…#. … .#…#. #…#:::.
      …:####:… …##…##::## … #
      # . …##:,;##;:::#: … ##…
      .# . .:;####;::::.##:::;#:…
      # …:;###…

      ###########################################

      FOG

      Free Computer Imaging Solution

      [url]http://www.fogproject.org/[/url]

      Developers:

      Chuck Syperski

      Jian Zhang

      Peter Gilchrist

      Tom Elliott

      GNU GPL Version 3

      ###########################################

      Version: 1.2.0 Installer/Updater

      What version of Linux would you like to run the installation for?

            1) Redhat Based Linux (Redhat, CentOS, Mageia)
            2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
      

      Choice: [2]

      Sorry, answer not recognized.

      What version of Linux would you like to run the installation for?

            1) Redhat Based Linux (Redhat, CentOS, Mageia)
            2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
      

      Choice: [2]

      Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

      FOG Server installation modes:
      * Normal Server: (Choice N)
      This is the typical installation type and
      will install all FOG components for you on this
      machine. Pick this option if you are unsure what to pick.

        * Storage Node: (Choice S)
            This install mode will only install the software required
            to make this server act as a node in a storage group
      

      More information:
      [url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]

      What type of installation would you like to do? [N]

      What is the IP address to be used by this FOG Server? [10.0.2.15]10.0.0.50

      Would you like to setup a router address for the DHCP server? [Y/n] 10.0.0.2
      Invalid input, please try again.

      Would you like to setup a router address for the DHCP server? [Y/n] y
      What is the IP address to be used for the router on the DHCP server? [10.0.2.2]10.0.0.2

      Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] y
      What is the IP address to be used for DNS on the DHCP server and client boot image? [10.0.1.2] 10.0.0.2

      Would you like to change the default network interface from eth0?
      If you are not sure, select No. [y/N]

      Would you like to use the FOG server for DHCP service? [Y/n] y

      This version of FOG has internationalization support, would
      you like to install the additional language packs? [y/N]

      Would you like to donate computer resources to the FOG Project
      to mine cryptocurrency? This will only take place during active
      tasks and should NOT have any impact on performance of your
      imaging or other tasks. The currency will be used to pay for
      FOG Project expenses and to support the core developers working
      on the project. For more information see:

      [url]http://fogproject.org/?q=cryptocurrency[/url]

      Would you like to donate computer resources to the FOG Project? [y/N]

      #####################################################################

      FOG now has everything it needs to setup your server, but please
      understand that this script will overwrite any setting you may
      have setup for services like DHCP, apache, pxe, tftp, and NFS.

      It is not recommended that you install this on a production system
      as this script modifies many of your system settings.

      This script should be run by the root user on Redhat or with sudo on Ubuntu.

      ** Notice ** Redhat users will need to disable SELinux and iptables in
      order to use FOG
      Please see our wiki for more information at [url]http://www.fogproject.org/wiki[/url]

      Here are the settings FOG will use:
      Base Linux: Debian
      Detected Linux Distribution: Debian
      Installation Type: Normal Server
      Server IP Address: 10.0.0.50
      DHCP router Address: 10.0.0.2
      DHCP DNS Address: 10.0.0.2
      Interface: eth0
      Using FOG DHCP: 1
      Internationalization: 0
      Donate: 0

      Are you sure you wish to continue (Y/N) y

      Installation Started…

      Installing required packages, if this fails
      make sure you have an active internet connection.

      • Preparing apt-get

      • Installing package: apache2

      • Installing package: php5

      • Installing package: php5-json

      • Installing package: php5-gd

      • Installing package: php5-cli

      • Installing package: php5-mysql

      • Installing package: php5-curl

      • Installing package: mysql-server

        We are about to install MySQL Server on
        this server, if MySQL isn’t installed already
        you will be prompted for a root password.

        Press enter to acknowledge this message.

      Leyendo lista de paquetes…
      Creando árbol de dependencias…
      Leyendo la información de estado…
      mysql-server ya está en su versión más reciente.
      0 actualizados, 0 se instalarán, 0 para eliminar y 18 no actualizados.

      • Installing package: mysql-client
      • Installing package: isc-dhcp-server
      • Installing package: tftpd-hpa
      • Installing package: tftp-hpa
      • Installing package: nfs-kernel-server
      • Installing package: vsftpd
      • Installing package: net-tools
      • Installing package: wget
      • Installing package: xinetd
      • Installing package: sysv-rc-conf
      • Installing package: tar
      • Installing package: gzip
      • Installing package: build-essential
      • Installing package: cpp
      • Installing package: gcc
      • Installing package: g++
      • Installing package: m4
      • Installing package: htmldoc
      • Installing package: lftp
      • Installing package: openssh-server
      • Installing package: php-gettext
      • Installing package: clamav-freshclam

      Confirming package installation.

      • Checking package: apache2…OK
      • Checking package: php5…OK
      • Checking package: php5-json…OK
      • Checking package: php5-gd…OK
      • Checking package: php5-cli…OK
      • Checking package: php5-mysql…OK
      • Checking package: php5-curl…OK
      • Checking package: mysql-server…OK
      • Checking package: mysql-client…OK
      • Checking package: isc-dhcp-server…OK
      • Checking package: tftpd-hpa…OK
      • Checking package: tftp-hpa…OK
      • Checking package: nfs-kernel-server…OK
      • Checking package: vsftpd…OK
      • Checking package: net-tools…OK
      • Checking package: wget…OK
      • Checking package: xinetd…OK
      • Checking package: sysv-rc-conf…OK
      • Checking package: tar…OK
      • Checking package: gzip…OK
      • Checking package: build-essential…OK
      • Checking package: cpp…OK
      • Checking package: gcc…OK
      • Checking package: g++…OK
      • Checking package: m4…OK
      • Checking package: htmldoc…OK
      • Checking package: lftp…OK
      • Checking package: openssh-server…OK
      • Checking package: php-gettext…OK
      • Checking package: clamav-freshclam…OK

      Configuring services.

      • Setting up fog user…OK

      • Setting up and starting MySql…OK

      • Backing up user reports…OK

      • Did you leave the mysql password blank during install? (Y/n)

      • Setting up and starting Apache Web Server…OK
        You still need to install/update your database schema.
        This can be done by opening a web browser and going to:

        [url]http://10.0.0.50/fog/management[/url]

      Press [Enter] key when database is updated/installed.

      • Configuring Fresh Clam…OK
      • Setting up storage…OK
      • Setting up and starting NFS Server…OK
      • Setting up and starting DHCP Server…OK
      • Setting up and starting TFTP and PXE Servers…OK
      • Setting up and starting VSFTP Server…OK
      • Setting up sudo settings…OK
      • Setting up FOG Snapins…OK
      • Setting up and building UDPCast…OK
      • Installing init scripts…OK
      • Setting up FOG Services…OK
      • Starting FOG Multicast Management Server…OK
      • Starting FOG Image Replicator Server…OK
      • Starting FOG Task Scheduler Server…OK
      • Setting up FOG Utils…OK

      Would you like to notify the FOG group about this installation?
      * This information is only used to help the FOG group determine
      if FOG is being used. This information helps to let us know
      if we should keep improving this product.

      Send notification? (Y/N)n
      NOT sending notification.

      Setup complete!

      You can now login to the FOG Management Portal using
      the information listed below. The login information
      is only if this is the first install.

      This can be done by opening a web browser and going to:

        [url]http://10.0.0.50/fog/management[/url]
      
        Default User:
               Username: fog
               Password: password
      

      Script terminado (lun 23 feb 2015 09:37:37 ART

      1 Reply Last reply Reply Quote 0
      • E
        Eze84d
        last edited by Feb 27, 2015, 2:07 PM

        [B]service rpcbind status[/B]
        [ ok ] rpcbind is running.

        1 Reply Last reply Reply Quote 0
        • E
          Eze84d
          last edited by Feb 27, 2015, 2:15 PM

          I tell them, turned to leave the path / images in the Storage Management and I believe smoothly image …

          To change the / images for / home / images try to mount the / home / images in / images and here is where I throw permission denied.

          As achieve that images are stored in / home / images ???

          Thank you very much !!!

          1 Reply Last reply Reply Quote 0
          • E
            Eze84d
            last edited by Mar 2, 2015, 4:49 PM

            Any idea how to do this ??? Some guidance or help ??? I hope your answers !!! Thank you very much !!!

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Mar 2, 2015, 4:53 PM

              I tried helping, but I don’t know the exact issue. Is FOG able to mount the NFS or not? What’s in the /etc/exports file?

              Is the nfs service running? Is it exporting the filesystems properly? What have you done?

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Mar 2, 2015, 9:30 PM

                If you wonder about how to test mounting NFS from another computer, see here:
                [url]http://fogproject.org/forum/threads/problem-with-permission-denied-after-fog-server-restart.12503/#post-42999[/url]

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • E
                  Eze84d
                  last edited by Mar 6, 2015, 12:48 AM

                  Well, what I need to do is the following:

                  I need to add a new path for saving the images, it must be / home / Fog / image.

                  I add in Storage Management, but does not allow me to modify “Management username” and “Management passwords”, I understand that here I put the user and pass the TFTP not?

                  Ultimately I would need to explain how to create a new path for saving the images.

                  Thank you very much !!!

                  1 Reply Last reply Reply Quote 0
                  • S
                    scoude
                    last edited by scoude Mar 20, 2019, 8:09 AM Mar 20, 2019, 1:47 PM

                    Hi everybody,

                    I have a 1.5.5 Fog version on Debian 9.3. By default, my images storage directory was /images.

                    And my wish was to put images on new directory /var/images (/var is mount on LVM mapper…).

                    So here are the actions I done :
                    1/ create a /var/images directory
                    2/ set good rights and owner for this new directory (see /images rights)
                    3/ move all files from /images to /var/images (be careful to move all files : with dot, etc.; ls -la to be sure !)
                    4/ connect to database with mysql client and change path :

                    use fog;
                    update nfsGroupMembers set ngmRootPath='/var/images/';
                    update nfsGroupMembers set ngmFTPPath='/var/images/';
                    

                    5/ change path in /etc/exports :

                    /var/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)                                                                                                                                                                                
                    /var/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)   
                    

                    6/ apply nfs changes :

                    exportfs -ra 
                    

                    That’s all !

                    C 1 Reply Last reply Jul 7, 2021, 4:02 PM Reply Quote 0
                    • C
                      Cello @scoude
                      last edited by Jul 7, 2021, 4:02 PM

                      @scoude said in Modify path /images to /home ???:

                      Hi everybody,
                      I have a 1.5.5 Fog version on Debian 9.3. By default, my images storage directory was /images.
                      And my wish was to put images on new directory /var/images (/var is mount on LVM mapper…).
                      So here are the actions I done :
                      1/ create a /var/images directory
                      2/ set good rights and owner for this new directory (see /images rights)
                      3/ move all files from /images to /var/images (be careful to move all files : with dot, etc.; ls -la to be sure !)
                      4/ connect to database with mysql client and change path :
                      use fog;
                      update nfsGroupMembers set ngmRootPath=‘/var/images/’;
                      update nfsGroupMembers set ngmFTPPath=‘/var/images/’;

                      5/ change path in /etc/exports :
                      /var/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                      /var/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)

                      6/ apply nfs changes :
                      exportfs -ra

                      That’s all !

                      This works fine for me.

                      Thank you.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post

                      256

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project