The basic commands are:
pkg_info
pkg_delete
pkg_add
I ran the info one and saw that python was already installed w/ v3.10. Then I ran pkg_add python
and it returned a few options including 3.11. I selected that option and it installed. I added a basic python script into my home folder and ran it with python3 and it worked!
python3 -m venv venv
and had to wait about 30 seconds for that to finish. venv/bin/activate
deactivate
doas pkg_add ffmpeg
doas pkg_add -i py3-pip
so I can install pydubpip3 install pydub
python3 mp3Converter.py ../../mp3Converter
and it worked, a new converted mp3 file was added into the Converted folder and the m4a file was moved into the Archive folder.
This one too - video
run fsck
means and maybe that will help fix this issue.
After some GPT-4 help, this seems to have fixed it - doas fsck_ffs /dev/sd2a
then 'y' to Mark File System Clean. At least temporarily. Not sure why this is happening but at least this command helps correct it each time.
softraid0: CRYPTO volume attached as sd2
mount_ffs: /dev/sd2a on /mnt: filesystem must be mounted read-only; you may need to run fsck
total 0
I couldn't figure it out with some searches so I assumed that it had something to do with a poorly formatted disk. So I reran the entire process on sive.rs/ti. That worked, but only for like a few minutes then I started getting the error again. Not 100% why. I did type in my password wrong twice when i mounted the disk, so maybe that's why, but that doesn't seem quite right.
doas pkg_add py3-virtualenv
virtualenv-3 envdir
import os
from pydub import AudioSegment
# Location of files
dir_src = '/Users/mattmcclain/Desktop/Convert2Mp3/'
dir_dst = '/Users/mattmcclain/Desktop/Converted/'
# Iterate over directory of files
for filename in os.listdir(dir_src):
# Check if file is an m4a or amr
if filename.endswith('.m4a') or filename.endswith('.amr'):
# Open file
sound = AudioSegment.from_file(dir_src + filename)
# Output file as mp3 to destination folder
sound.export(dir_dst + filename[:-4] + '.mp3', format="mp3")
about.html
to about
on the server. Props to Derek Sivers for his updated instructions in sive.rs/ti which helped me spot the issue.history
ifconfig -a
to view all the network interfaces, incl IP Address, etcvi /etc/rc.conf
--> "httpd_flags=NO". The rc.conf file is used to configure system services at boot time.vi /etc/rc.conf.local
"httpd_flags= " nothing after the =. rcctl -d restart httpd
to restart the httpd service. The -d will provide info if the restart fails./etc/examples/httpd.conf
, and also here /etc/httpd.conf
. So, I'm not quite sure where to change it yet.