• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Bristow 0
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 59
    • Best 7
    • Controversial 0
    • Groups 0

    Topics created by Bristow 0

    • B

      Store an image temporarily

      General
      • • • Bristow 0
      2
      0
      Votes
      2
      Posts
      193
      Views

      george1421G

      @Bristow-0 Is this a physical computer or VM? Is it possible to add a new storage device to the FOG server?

      Something to understand that the fog database that lists the images is disconnected from the raw data file. You can move the image files to some place else, it won’t impact the FOG UI until you try to deploy a previously captured image.

    • B

      Unsolved My cloned PCs won't boot into WOL

      Linux Problems
      • bootmenu • • Bristow 0
      1
      0
      Votes
      1
      Posts
      285
      Views

      No one has replied

    • B

      Script for a backup ?

      General Problems
      • backup dump rsync • • Bristow 0
      5
      0
      Votes
      5
      Posts
      748
      Views

      B

      Thanks a lot @rodluz !

      I took your script and adapted it. I use it directly on my FOG server, which simplifies things a bit. I also changed the mail to a notification sent to my smartphone with ntfy, which I find easy to use.

      I also mounted my NAS share in NFS directly on /mnt/FOGBackups.

      Here’s my script:

      #!/bin/bash fogServerAddress="172.X.Y.Z" # Change to actual FOG server address backupDate=$(date +"%Y%m%d") backupDir="/mnt/FOGBackups/$backupDate" backupDirImages="/mnt/FOGBackups/images" snapinLocation="/opt/fog/snapins" reportLocation="/var/www/fog/lib/reports" imageLocation="/images" failedBackupDB=0 failedBackupSnapins=0 failedBackupReports=0 failedBackupImages=0 [[ ! -d $backupDir ]] && mkdir -p $backupDir/{mysql,snapins,reports,logs} >/dev/null 2>&1 [[ ! -d $backupDir/mysql || $backupDir/snapins || $backupDir/reports || $backupDir/logs ]] && mkdir -p $backupDir/{mysql,snapins,reports,logs} >/dev/null 2>&1 backupDB() { wget --no-check-certificate --post-data="nojson=1" -O $backupDir/mysql/fog.sql "http://$fogServerAddress/fog/management/export.php?type=sql" 2>>$backupDir/logs/error.log 1>>$backupDir/logs/progress.log 2>&1 stat=$? if [[ ! $stat -eq 0 ]]; then echo "Failed to backup database!" failedBackupDB=1 else echo "Database backed up." fi } backupSnapins() { cp -r $snapinLocation $backupDir/snapins/ 2>>$backupDir/logs/error.log 1>>$backupDir/logs/progress.log 2>&1 stat=$? if [[ ! $stat -eq 0 ]]; then echo "Failed to backup snapins!" failedBackupSnapins=1 else echo "Snapins backed up." fi } backupReports() { cp -r $reportLocation $backupDir/reports/ 2>>$backupDir/logs/error.log 1>>$backupDir/logs/progress.log 2>&1 stat=$? if [[ ! $stat -eq 0 ]]; then echo "Failed to backup reports!" failedBackupReports=1 else echo "Reports backed up." fi } backupImages() { rsync -auv $imageLocation $backupDirImages 2>>$backupDir/logs/error.log 1>>$backupDir/logs/progress.log 2>&1 stat=$? if [[ ! $stat -eq 0 ]]; then echo "Failed to backup images!" failedBackupImages=1 else echo "Images backed up." fi } checkForFailures() { echo "Running checkForFailures()" if [[ $failedBackupDB -eq 1 ]]; then message="$message \nFailed to backup database." fi if [[ $failedBackupSnapins -eq 1 ]]; then message="$message \nFailed to backup snapins." fi if [[ $failedBackupReports -eq 1 ]]; then message="$message \nFailed to backup reports." fi if [[ $failedBackupImages -eq 1 ]]; then message="$message \nFailed to backup images." fi } sendNotif() { echo "Running sendNotif()" if [[ ! -z $message ]]; then { curl -d "FOG Backup Failed\n $message" ntfy.sh/XYZATEHFJICH } else curl -d "FOG Backup Successful!" ntfy.sh/XYZATEHFJICH fi } backupDB backupSnapins backupReports backupImages checkForFailures sendNotif
    • B

      Deploy a VM on a physical computer?

      Linux Problems
      • • • Bristow 0
      5
      0
      Votes
      5
      Posts
      453
      Views

      B

      Thank you for your answers. I’ll give it a try and let you know!

    • B

      Cloned PC takes longer to boot

      Linux Problems
      • • • Bristow 0
      12
      0
      Votes
      12
      Posts
      1.1k
      Views

      george1421G

      @bristow-0 Ok so what I’m working on is this rough outline of a script.

      If you run this command on your target computer it should return the uuid of the swap partition.
      blkid | grep swap | awk '{print $2}'

      So if we start building a script to automate the process it might start to look like this

      !#/bin/bash uuid=$(blkid | grep swap | awk '{print $2}') if grep -Fxq "RESUME=UUID" /etc/initramfs-tools/conf.d/resume then # if found replace with new uuid sed -i 's/^RESUME=UUID.*$/RESUME=${uuid}/' /etc/initramfs-tools/conf.d/resume else # if not found just append command to config file echo "RESUME=${uuid}" >>/etc/initramfs-tools/conf.d/resume update-initramfs -u

      This script would need to be executed on first boot of the target computer is what I’m thinking.

    • B

      Modify the linux system of a workstation in multi-boot ?

      General Problems
      • • • Bristow 0
      15
      0
      Votes
      15
      Posts
      1.1k
      Views

      B

      @sebastian-roth Yeahh, it works ! Thanks again !

    • B

      Which USB 3.0 ethernet adapter?

      Hardware Compatibility
      • • • Bristow 0
      5
      0
      Votes
      5
      Posts
      1.1k
      Views

      B

      @george1421 said in Which USB 3.0 ethernet adapter?:

      @bristow-0 OK I can say I’ve never heard of an “LDLC Aurore” computer before. It must be a local French brand. If you want to pxe boot then you will need to get a usb network adapter that LDLC computer’s support.

      This is Clevo. The good thing is that they provide PCs without OS.

      Now for a uefi computer making the computer boot iPXE from the flash usb drive is pretty easy. https://forums.fogproject.org/topic/6350/usb-boot-uefi-client-into-fog-menu-easy-way Understand that “trick” only works for uefi based computers. BIOS computer’s can’t boot using this method.

      Cool, thanks a lot !!

    • B

      [Solved] Grub rescue after deploy task

      Linux Problems
      • • • Bristow 0
      6
      0
      Votes
      6
      Posts
      925
      Views

      B

      @Sebastian-Roth you put me on the track!

      The bios was configured in legacy bios first, I switched to uefi first and it works!

      Thank you!

    • B

      Translate the FOG project website

      General
      • • • Bristow 0
      6
      0
      Votes
      6
      Posts
      652
      Views

      B

      OK @tom-elliott, keep me posted, I’d love to see this site available in French. It looks more serious for the decision makers…

    • B

      Cloning with image from a real workstation to a VM ?

      Windows Problems
      • • • Bristow 0
      3
      0
      Votes
      3
      Posts
      372
      Views

      S

      @Bristow-0 As well question arises if both the workstation and VM are in the same mode - legacy BIOS or UEFI. With ProxMox you use KVM for this I suppose.

    • B

      Update french translation for Fog 1.5.9

      General
      • • • Bristow 0
      11
      0
      Votes
      11
      Posts
      1.4k
      Views

      S

      @Bristow-0 Great work!! Thank you very much for updating all the translations.

    • B

      No connection to the domain

      Windows Problems
      • • • Bristow 0
      2
      0
      Votes
      2
      Posts
      298
      Views

      S

      @Bristow-0 Has this ever worked before? I remember that others had issues with domain join in a Samba domain. Search the forums for that.

      As well you might take a look at the fog-client log (usually in C:\fog.log) and post the relevant part here.

    • B

      Difference between the 2 domain passwords?

      Windows Problems
      • • • Bristow 0
      5
      0
      Votes
      5
      Posts
      563
      Views

      B

      Thanks @tom-elliott . So, if I understand correctly, I only use the first one and it must not be encrypted, am I right?

    • B

      Small errors in migration commands

      General
      • • • Bristow 0
      3
      1
      Votes
      3
      Posts
      391
      Views

      Wayne WorkmanW

      I’ve added some more steps that should avoid those errors.

      I’ve updated the chown command in the wiki. The user fogproject is something that came about after this article was written. The user used to be just fog

    • B

      Fog on Proxmox ?

      General Problems
      • proxmox virtual machine • • Bristow 0
      15
      0
      Votes
      15
      Posts
      5.3k
      Views

      george1421G

      @huecuva said in Fog on Proxmox ?:

      I’m just having issues booting my HTPC from ipxe for some reason I can’t figure out.

      Please start a new thread so we can discuss

    • 1 / 1