Konsole tricks on DV

Last modified by Harri Tapio Jäälinoja on 2024/02/19 16:11

Open Konsole to run commands

  • Open "Kickoff Application Launcher". how_to_open_konsole_1.png
  • Type "konsole" in the search box.how_to_open_konsole_2.png
  • Open the "Konsole" application.

Once you have the terminal open, you can copy-paste commands in it. Press "Enter" after a command to execute it.

Transfer data to lmu_active1

This transfers data stored in /data1/username.

  • The script does not attempt to guess which files should be sent from /data1/home/username. Please don't store data on Desktop!
  • The script will fail if user name on Deltavision is not same as on lmu_active1.
  • Timestamps are not preserved. Well, it seems they are not preserved with Dolphin, either...
# For users: transfer the data of the current user
transfer_data.sh

# For LMU-staff: transfer the data of a particular user
sudo /usr/local/bin/transfer_data.sh username

Remove lock file that blocks Acquire Ultra startup

The acquisition software creates a lock file to prevent multiple instances of the software running at the same time. The lock file should be automatically removed when the software is shut down, but if for some reason it is not, the next user will not be able to start the software.

# Check if the lock file exists and who owns it.
ls -l /tmp/SWAcquire

# Remove the lock file.
# Note: this can be done as a regular user.
sudo /usr/bin/rm -f /tmp/SWAcquire

Mount LMU network drive

This should be explained also to users, they are allowed to run this command (see /etc/sudoers). So in case automatic mounting fails, they can connect manually.

To mount the new (2021) lmu_active1, run:

lmu_active1.sh

Create users

The script to add a new user is in LMU_admin's home directory. To run it:

# note the username as parameter
lmu_add_user_data1.sh hajaalin

Automatically remove AcquireUltra lock file at the end of user session

This is script is placed in /etc/kde/shutdown, and is executed when user logs out (see /usr/bin/startkde).

remove_acquireultra_lock_file.sh
# remove AcquireUltra lock file from /tmp
# no need to use sudo because this script is run at the end of the user session,
# the file should belong to the same user.
rm -f /tmp/SWAcquire

Check /data1 usage

data1_usage.sh

Monitor how acquireultra is killed (admin only)

  • Start AcquireUltra

  • Open Konsole and run the following:

/usr/local/bin/start_killsnoop.sh
(give sudo password when prompted)
  • see ~/softworx-logs/killsnoop.PID.log