Skip to content

Instantly share code, notes, and snippets.

View KenwoodFox's full-sized avatar
💽
wstool update -t src

KenwoodFox KenwoodFox

💽
wstool update -t src
View GitHub Profile
# find /var -name quassel
/var/lib/quassel
/var/cache/quassel
root@Bacula-Iron2:/ # mtx -f /dev/nsa0 status
cannot open SCSI device '/dev/nsa0' - Inappropriate ioctl for device
root@Bacula-Iron2:/ # mtx -f /dev/sa0 status
cannot open SCSI device '/dev/sa0' - Inappropriate ioctl for device
root@Bacula-Iron2:/ # echo unloading drive (eject)
Badly placed ()'s.
root@Bacula-Iron2:/ # mtx -f /dev/sa0 status
cannot open SCSI device '/dev/sa0' - Device not configured
root@Bacula-Iron2:/ #
[usbrules=100]
add path 'usbctl' mode 660 group uucp
add path 'usb/*' mode 660 group uucp
add path 'ttyU*' mode 660 group uucp
[devfsrules_jail_unhide_tapes=5]
add path pass0 unhide
add path sa0 unhide
add path pass1 unhide
add path ch0 unhide
root@temp-iron:~# mtx -f /dev/sg3 status
Storage Changer /dev/sg3:1 Drives, 39 Slots ( 6 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=A02110
Storage Element 2:Full :VolumeTag=A02333
Storage Element 3:Full :VolumeTag=A02218
Storage Element 4:Full :VolumeTag=A01099
Storage Element 5:Empty:VolumeTag=
Storage Element 6:Full :VolumeTag=A02326
Storage Element 7:Full :VolumeTag=PF6866
root@Zinc[/dev]# mt status
mt: /dev/nsa0: Device not configured
root@Zinc[/dev]# echo I loaded the drive manually.
I loaded the drive manually.
root@Zinc[/dev]# mt status
Drive: sa0: <IBM ULTRIUM-TD3 93GM> Serial Number: F0A192E004
---------------------------------
Mode Density Blocksize bpi Compression
Current: 0x44:LTO-3 variable 244805 enabled (0x1)
---------------------------------
root@Bacula-Iron2:/ # btape /dev/nsa0
Tape block granularity is 1024 bytes.
btape: butil.c:290-0 Using device: "/dev/nsa0" for writing.
22-Jul 00:39 btape JobId 0: 3991 Bad autochanger "loaded? drive 0" command: ERR=No such file or directory.
Results=
22-Jul 00:39 btape JobId 0: 3991 Bad autochanger "loaded? drive 0" command: ERR=No such file or directory.
Results=
btape: btape.c:478-0 open device "Drive-0-LTO-3" (/dev/nsa0): OK
*test
root@Jail:/ # ls -l /dev/pass0
crw------- 1 root operator 0x8e Jul 21 20:16 /dev/pass0
root@Jail:/ # exit
exit
root@Host[~]# ls -l /dev/pass0
crw-rw---- 1 root operator 0x8e Jul 21 20:16 /dev/pass0
@KenwoodFox
KenwoodFox / notes.tex
Last active January 29, 2022 21:19
Numworks Notes
from math import *
pip install --upgrade pip
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
resolver.resolve(requirement_set)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
^CTraceback (most recent call last):
File "/home/joe/git/BlueBox/BlueBox/BlueBox.py", line 33, in run
time.sleep(1)
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,