#StackBounty: #linux #bash #centos #centos-7 Cannot chroot /mnt/sysimage After Putting New Image on HP Computer

Bounty: 100

I am using Clonezilla to put a new CentOS 7 image on our computers. Most of them are Lenovo desktops, and we have a few HP desktops that are all currently running the old image.

In order for the new image to work after Clonezilla restores it to the new image, we need to insert a USB with the CentOS 7 Rescue Disk and boot to it to run some commands, beginning with chroot /mnt/sysimage.

This works just fine on the Lenovo desktops, but when I run this command on the HP desktops, I get this error message:

chroot: failed to run command ‘/bin/bash’: No such file or directory

Both the Lenovo and the HP machines have the same HD size (80 GB), and I am putting the exact same new image on both of them. I cannot for the life of me figure out why one is working and the other is not, and I don’t want to dismantle the new image and start from scratch (we only have about 5 machines that are HP, the rest are Lenovo).

Could anyone provide some insight into why the chroot command does not work on the HP machines? Thanks.


Get this bounty!!!

#StackBounty: #linux #osx #vnc #display VNC to a linux desktop in HiDPI mode won't scale properly

Bounty: 100

I have a linux mint Cinnamon desktop running in HiDPI.

When I try to connect to it with a VNC client from my macbook (retina/hidpi display), the desktop shows up about 4x too big.

I tried with mac’s built in VNC viewer and also the real VNC client.

I tried different settings in Real VNC’s expert mode preferences – Scaling – AspectFit, 25%, etc; nothing seems to change the scaling.


Get this bounty!!!

#StackBounty: #linux #information-management #web #books Free book summary application usable on Linux

Bounty: 50

The software that I require should be capable of:

  • Document the main events and situations in my story;
  • Link (in some or another way) characters to these events;
  • Link descriptions, characteristics, etc to the characters;
  • The software should be gratis;
  • It´s a plus if it´s Open Source and;
  • Should work in a Debian based GNU/Linux distribution or as a web platform

The main purpose of the software should be helping me to write the entire book and not have to think over and over again in the details of the world that I’m creating; just having them at hand so I can get the details from there and use those details to build my story in a coherent method.


I do not believe this post to be a duplicate of this question. The reason being:

  • That question was made more than 3 years ago;
  • Did not specify for which OS it would run on;
  • What form the software would be used and;
  • The OP didn’t specify the software needing to be gratis/free or not.


Get this bounty!!!

#StackBounty: #android #linux #android-studio #android-studio-2.3 Android Studio 2.3.3 stucks when first run

Bounty: 200

I downloaded Android Studio 2.3.3 for Linux and unzipped the content to /usr/local
then

$ cd android-studio/bin

Edited the file idea.properties and appended a following line to it

disable.android.first.run=true

$ sudo sh studio.sh

Looking in classpath from com.intellij.util.lang.UrlClassLoader@1a7cec2 for /com/sun/jna/linux-x86/libjnidispatch.so
Found library resource at jar:file:/usr/local/android-studio/lib/jna.jar!/com/sun/jna/linux-x86/libjnidispatch.so
Trying /root/.AndroidStudio2.3/system/tmp/jna5562911082428971611.tmp
Found jnidispatch at /root/.AndroidStudio2.3/system/tmp/jna5562911082428971611.tmp
[  40066]   WARN - dea.updater.SdkComponentSource - File /root/.android/repositories.cfg could not be loaded. 
^C[18124266]   WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 130 

And it will stuck. After long waiting I termited it with Ctrl+C


Get this bounty!!!

#StackBounty: #linux #information-management #web #books Book Summary Application

Bounty: 50

The software that I require should be capable of:

  • Document the main events and situations in my story;
  • Link (in some or another way) characters to these events;
  • Link descriptions, characteristics, etc to the characters;
  • The software should be gratis;
  • It´s a plus if it´s Open Source and;
  • Should work in a Debian based GNU/Linux distribution or as a web platform

The main purpose of the software should be helping me to write the entire book and not have to think over and over again in the details of the world that I’m creating; just having them at hand so I can get the details from there and use those details to build my story in a coherent method.


I do not believe this post to be a duplicate of this question. The reason being:

  • That question was made more than 3 years ago;
  • Did not specify for which OS it would run on;
  • What form the software would be used and;
  • The OP didn’t specify the software needing to be gratis/free or not.


Get this bounty!!!

#StackBounty: #linux #backup #mount #luks #udf Unable to mount UDF filesystem created with mkudffs inside a luks volume

Bounty: 100

I’m trying to create encrypted blu-ray backup. I’ve created and burned the image using the following crude script:

imgsize=23000M
imgfile=~/backup.img
imgloop=`sudo losetup -f`
truncate -s $imgsize $imgfile
sudo losetup $imgloop $imgfile
sudo cryptsetup luksFormat --cipher aes-xts-plain64 $imgloop
sudo cryptsetup luksOpen $imgloop mybackup
sudo mkudffs /dev/mapper/mybackup
if [ ! -d "/mnt/backup" ]; then
    sudo mkdir /mnt/backup
fi
sudo mount /dev/mapper/mybackup /mnt/backup

# Now copy all files that are part of the backup
echo "Copy files to backup to /mnt/backup. Type 'ready' when done";
while read line; do
    echo "$line";
    if [ "$line" == "ready" ]; then
        break;
    fi
done

sudo umount /mnt/backup
sudo cryptsetup luksClose /dev/mapper/mybackup
sudo losetup -d $imgloop

When the script is finished I used the following command to burn it to an M-Disc BD-R:

growisofs -dvd-compat -Z /dev/dvd=backup.img

The burn completed without failure. I’m able to open the luks volume using:

sudo cryptsetup luksOpen /dev/dvd mybackup

Which produces the device /dev/mapper/mybackup; however, when I try to mount it with:

sudo mount -t udf /dev/mapper/mybackup /mnt/backup

I get the following error:

mount: /dev/mapper/mybackup is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/mapper/mybackup,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

syslog contains the following error:

[ 2334.880043] UDF-fs: warning (device dm-3): udf_load_vrs: No anchor found
[ 2334.880046] UDF-fs: warning (device dm-3): udf_fill_super: No partition found (1)

Update 1

Using the following commands I can mount the image produced by the script:

sudo cryptsetup luksOpen backup.img mybackup
sudo mount -t udf /dev/mapper/mybackup /mnt/backup

So something is going wrong because it’s on the disc.


Get this bounty!!!

#StackBounty: #linux #windows-server-2012-r2 #nfs #kerberos NFS Share with Kerberos Authentication

Bounty: 50

I am using Windows Storage Server as a file server and now have the need to setup NFS sharing for linux client machines

On my test Ubuntu desktop, I installed Kerberos Client and also setup the keytab using the kutil command

The klist command shows the ticket but the mount command fails

Here are the relevant details:
krb5.conf

[libdefaults]
default_realm = SUB.DOMAIN.COM
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
default_tkt_enctypes = aes256-cts-hmac-sha1-96
default_tgt_enctypes = aes256-cts-hmac-sha1-96
[realms]
SUB.DOMAIN.COM = {
kdc = ad.domain.com
admin_server = ad.domain.com
}
[domain_realm]
.domain.com = SUB.DOMAIN.COM
domain.com = SUB.DOMAIN.COM

Output of Klist command:

Ticket cache: FILE:/tmp/krb5cc_2595
Default principal: user@SUB.DOMAIN.COM

Valid starting       Expires              Service principal
2017-07-06 12:19:05  2017-07-06 22:19:05  krbtgt/SUB.DOMAIN.COM@SUB.DOMAIN.COM
    renew until 2017-07-13 12:19:01

Error when trying to mount

sudo mount -v -o sec=krb5,vers=3 fileserver:/user /home/userfolder

mount.nfs: timeout set for Thu Jul  6 12:45:01 2017
mount.nfs: trying text-based options 'sec=krb5,vers=3,addr=192.168.2.14'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.2.14 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.2.14 prog 100005 vers 3 prot UDP port 2049
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified

The share is set to authenticate using Kerberos v5

What am I missing?


Get this bounty!!!

#StackBounty: #linux #nagios #cluster #pacemaker #check-mk check_mk_agent hangs when running cluster check ONLY when triggered by network

Bounty: 50

My check_mk server connects to several RHEL nodes which have installed check_mk_agent (version 1.2.4p3). A group of these nodes belong to a pacemaker cluster.

The check_mk agent is configured by default — a xinet service is configured bound to the port 6556/TCP:

service check_mk
{
        type           = UNLISTED
        port           = 6556
        socket_type    = stream
        protocol       = tcp
        wait           = no
        user           = root
        server         = /usr/bin/check_mk_agent

        # If you use fully redundant monitoring and poll the client
        # from more then one monitoring servers in parallel you might
        # want to use the agent cache wrapper:
        #server         = /usr/bin/check_mk_caching_agent

        # configure the IP address(es) of your Nagios server here:
        #only_from      = 127.0.0.1 10.0.20.1 10.0.20.2

        # Don't be too verbose. Don't log every check. This might be
        # commented out for debugging. If this option is commented out
        # the default options will be used for this service.
        log_on_success =

        disable        = no
}

One of these cluster nodes has problems when a socket is open to the 6556/TCP port because the /usr/bin/check_mk_agent script hangs in the cluster detection stage:

crm_mon -1 -r | grep ···

This makes the check_mk server report issues on that node.

When I comment out the cluster detection commands in the check_mk_agent script, it works fine

# Heartbeat monitoring
# Different handling for heartbeat clusters with and without CRM
# for the resource state
###if [ -S /var/run/heartbeat/crm/cib_ro -o -S /var/run/crm/cib_ro ] || pgrep crmd > /dev/null 2>&1; then
###  echo '<<<heartbeat_crm>>>'
###  crm_mon -1 -r | grep -v ^$ | sed 's/^ //; /^sResource Group:/,$ s/^s//; s/^s/_/g'
###fi
###if type cl_status > /dev/null 2>&1; then
###  echo '<<<heartbeat_rscstatus>>>'
###  cl_status rscstatus
###
###  echo '<<<heartbeat_nodes>>>'
###  for NODE in $(cl_status listnodes); do
###    if [ $NODE != $(echo $HOSTNAME | tr 'A-Z' 'a-z') ]; then
###      STATUS=$(cl_status nodestatus $NODE)
###      echo -n "$NODE $STATUS"
###      for LINK in $(cl_status listhblinks $NODE 2>/dev/null); do
###        echo -n " $LINK $(cl_status hblinkstatus $NODE $LINK)"
###      done
###      echo
###    fi
###  done
###fi

This problem is not found in the remaining cluster nodes.

I’m sure it is not a network problem because the same behaviour occurs when the connection is opened from inside that faulty node:

telnet 127.0.0.1 6556

The most strange is that I run the command crm_mon -1 -r manually a lot of times a day but it never hangs.

What can make the command crm_mon -1 -r to hang in just one node when it is executed with no terminal attached?

Thanx in advance


Get this bounty!!!

#StackBounty: #linux #information-management #web #books What software can be use to make an outline or summary of my book?

Bounty: 50

I´m aware that some of you may think this is a duplicate of this question. However, I have a few points to consider: that question was made more than 3 years ago, it didn´t specify for wich Operative System or in which way will the software be used (could be a web plataform), and the OP didn´t specify the software to be gratis or no.

So given these arguments, the software that I´m looking for should help me to:

  • Document the main events and situations in my story
  • Link (in some or another way) characters to these events
  • Link descriptions, characteristics, etc to the characters
  • The software should be gratis
  • It´s a plus if it´s Open Source
  • Should work in a Debian based GNU/Linux distribution or as a web plataform

The main purpose of the software should be helping me to write the entire book and not have to think over and over again in the details of the world that I´m creating; just having them at hand so I can get the details from there and use those details to build my story in a coherent way.


Get this bounty!!!

#StackBounty: #linux #proxy #openvpn #connection OpenVPN – Drop connection on header

Bounty: 50

I need ths behaviour When connecting to a special website from my client, I would like to receive a blank page as a result. For example if I connect to serverfault.com, I receive a blank page, but if I connect to google.com, I have the good website.

I’m currently using the following config:
Server 1: Client
Server 2: OpenVPN
Server 3: Proxy
Server 4: Website

The client connects to the website via curl using the proxy but the server itself is configured to use the VPN. So it simply does server 1 -> server 2 -> server 3 -> website.

I can’t modify server 3 (a proxy provider) neither server 4 (could be whatever website). I need to configure something on server 1 or server 2.

I was thinking to add an header to my request (for example: SPECIALCONNECTION: Drop), and the server 2 check if I have this header. If it is present, it just drop the connection and return a blank page. But I don’t see a way to configure OpenVPN easily to do this, so any ideas are welcome. 🙂


Get this bounty!!!