I want to rip my cd collection accurately, so I use Morituri from the command line. It's a very simple process, which will use MusicBrainz to populate the artist and track information.
Firstly find your drive offset either from this list of drive offsets or use Morituri with a cd in the drive
$ rip offset find
Once the offset is established (for example +48), rip the cd with the following command
$ rip cd --device /dev/cdrom rip --offset 48
For a different naming convention, I prefer
$ rip cd rip --offset 48 --track-template="%A/%A - %d/%t - %a - %n" --disc-template="%A/%A - %d/%A - %d"
Friday, May 24, 2013
Saturday, May 18, 2013
Samba blocked - smbclient returns Error for a configured user
I was getting two errors,
$ smbclient -L hostname -U%
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.5]
tree connect failed: NT_STATUS_ACCESS_DENIED
and
$ smbclient -L hostname --user username
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Connection to hostname failed (Error NT_STATUS_CONNECTION_REFUSED)
The first error was due to samba not being public and therefore i needed to specify a samba username (who must also be a system user, see here) who was granted samba permissions.
The second error I was receiving simply because I had my firewall set using iptables, and had not opened the correct ports for samba!
I performed the following commands and corrected it.
$ smbclient -L hostname -U%
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.0.5]
tree connect failed: NT_STATUS_ACCESS_DENIED
and
$ smbclient -L hostname --user username
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Connection to hostname failed (Error NT_STATUS_CONNECTION_REFUSED)
The first error was due to samba not being public and therefore i needed to specify a samba username (who must also be a system user, see here) who was granted samba permissions.
The second error I was receiving simply because I had my firewall set using iptables, and had not opened the correct ports for samba!
I performed the following commands and corrected it.
- sudo iptables -A TCP -p tcp --dport 139 -j ACCEPT
- sudo iptables -A TCP -p tcp --dport 445 -j ACCEPT
- sudo iptables -A UDP -p udp --sport 137 -j ACCEPT
- sudo iptables -A UDP -p udp --dport 137 -j ACCEPT
- sudo iptables -A UDP -p udp --dport 138 -j ACCEPT
- su -c 'iptables-save > /etc/iptables/iptables.rules'
- sudo systemctl restart iptables.service
Subscribe to:
Posts (Atom)