ssh-keygen -t rsa -b 4096 -C "root@192.168.1.33"
cat ~/.ssh/id_rsa.pub | ssh root@192.168.1.26 'cat >> /etc/ssh/keys-root/authorized_keys'
copy key to any machine that needs to auto login
January 12, 2015
Perl Script to search a given folder and its sub folders and extract and rar files into the directory they were found in:
#!/usr/bin/perl
use File::Find;
use autodie;
use File::Basename;
use File::Slurp 'read_file';
my $fname = '/home/rarlist.txt';
my $rarfile_text = read_file ($fname); # grep with regular expression
# Search for RAR files
my @content;
find( \&wanted, $ARGV[0]);
open(FILE, ">> $fname");
foreach $filename (@content){
if ($filename =~ /\.rar/)
{
if($rarfile_text !~ $filename) {
print FILE "$filename\n";
my($file, $dir, $ext) = fileparse($filename);
print "Extracting $file to $dir\n";
chdir $dir;
`unrar e -u -ai -y $file`;
}
}
}
close(FILE);
exit;
#!/usr/bin/perl
use File::Find;
use autodie;
use File::Basename;
use File::Slurp 'read_file';
my $fname = '/home/rarlist.txt';
my $rarfile_text = read_file ($fname); # grep with regular expression
# Search for RAR files
my @content;
find( \&wanted, $ARGV[0]);
open(FILE, ">> $fname");
foreach $filename (@content){
if ($filename =~ /\.rar/)
{
if($rarfile_text !~ $filename) {
print FILE "$filename\n";
my($file, $dir, $ext) = fileparse($filename);
print "Extracting $file to $dir\n";
chdir $dir;
`unrar e -u -ai -y $file`;
}
}
}
close(FILE);
exit;
sub wanted {
push @content, $File::Find::name;
return;
}
push @content, $File::Find::name;
return;
}
January 08, 2015
Configuring PMS for Playz App on LG TV
Once I had purchased the Playz App through my LG TV, I had to configure Plex to work without authentication.
The PMS Version and settings I changed are listed below, the Plex server must be on the same network/subnet/logical network segment.
I then tested this on my laptop with Plex Home Theater to make sure it could connect without being logged in.
The PMS Version and settings I changed are listed below, the Plex server must be on the same network/subnet/logical network segment.
- Plex Version
- Settings / Server / Connect (Show Advanced)
- Settings / Users / My Home
- Delete all users
- Friends are ok
I then tested this on my laptop with Plex Home Theater to make sure it could connect without being logged in.
Subscribe to:
Posts (Atom)