Konsole tricks on DV
- Open Konsole to run commands
- Transfer data to lmu_active1
- Remove lock file that blocks Acquire Ultra startup
- Mount LMU network drive
- Create users
- Automatically remove AcquireUltra lock file at the end of user session
- Check /data1 usage
- Monitor how acquireultra is killed (admin only)
Open Konsole to run commands
- Open "Kickoff Application Launcher".
- Type "konsole" in the search box.
- 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...
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.
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:
Create users
The script to add a new user is in LMU_admin's home directory. To run it:
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).
# 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
Monitor how acquireultra is killed (admin only)
Start AcquireUltra
Open Konsole and run the following:
(give sudo password when prompted)
- see ~/softworx-logs/killsnoop.PID.log