Friday, December 20, 2024

Installing XRDP with update for Larger Monitors

Option 1a: Configure the TCP send buffer size

  • Edit the file /etc/xrdp/xrdp.ini

  • Locate the line that reads "tcp_send_buffer_bytes". Remove the comment character ("#").

  • Edit the value so it now reads: 

tcp_send_buffer_bytes=4194304
  • Restart the service:

# systemctl restart xrdp

Option 1b: Configure the kernel network buffer size

  • Change the current network buffer size to a larger value with the following command:

sysctl -w net.core.wmem_max=8388608
  • Create a new file /etc/sysctl.d/xrdp.conf with the following content:

net.core.wmem_max = 8388608

This will ensure that the value is properly set between reboots. 

Source: Link

------

I followed the 2nd option and I have a 35in samsung wide screen monitor.  It would lock up and randomly come back.  User FitAward_6935 goes on to explain that larger monitors now require a higher tcp send buffer.  There is too much fragmentation over the xrdp protocol which then slows the performance.

Sunday, June 18, 2023

Coingecko's 7 Steps to increasing your chances at the possible LayerZero Airdrop | $10,000 incoming?

I'm going to start posting my YouTube videos here that might help a person looking to get into crypto Airdrops.

This video is a walk through of Coingecko's suggested actions needed to possibly qualify for the LayerZero Airdrop. 

Source: https://www.coingecko.com/learn/layerzero-airdrop 

Step 1: Join Discord (https://discord-layerzero.netlify.app/discord) 

Step 2: -
     - Part A: Use Stargate (https://stargate.finance/transfer) 
     - Part B: https://stargate.finance/pool 

Step 3: Use LiquidSwap (https://bridge.liquidswap.com/) 

Step 4: Use Aptos Bridge (https://theaptosbridge.com/bridge) 

Step 5: Use Radiant Capital (https://app.radiant.capital/#/markets
     - Chainlist URL: https://chainlist.org/?search=arbitrum&testnets=true 

Step 6: Use Hashflow (https://app.hashflow.com/)

Step 7: Use Tapioca (https://beta.tapioca.xyz/teleport) 

Good Luck!


Tuesday, March 14, 2023

How to Convert a Polkadot Wallet from Trust Wallet or Exodus to polkadot.js.org

 There is a very good write up done here (Link).  The thing is this has changed a little bit.  I also found an easier way.

If you are using Trust wallet, you will need to import your private seed phrase into exodus.  If you are already in exodus, then you don't have to do anything. 

Once in Exodus, select your polkadot wallet and click the 3 vertical dots.


Select View Private Keys.  Under the private key header, that is the key you will need later.  You will just need to add 0x in front of it.

Now follow the instructions on how to convert the raw string into something that polkadot can read.  Polkadot has instructions explained here (Link).

Once you have set up the account on the web, you will have the json file that you can import into the browser extension. 

I would recommend undoing all the changes about saving things locally back to having that not save any thing locally.  It was set to that for a reason.

Hope this helps!


Sunday, April 10, 2022

Plex Media Player gets stuck in full screen

No matter what you do, the double arrows won't allow you to exit full screen.  You can't move monitors even with windows+arrow.

Uninstall didn't fix it either.  The only solution I have found that works is the following:

Navigate to:

C:\Users\<user>\AppData\Local\PlexMediaPlayer

Make sure Plex media player is closed and then delete the file called plexmediaplayer.conf.

Reopen PMP and it should be unlocked.

Thursday, April 23, 2020

youtube-dl --hls-prefer-native fails with error "WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg"

Error:  WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg

OS: Centos 7.7

youtube-dl --version: 2020.03.24

Solution:  pip install pycrypto


Other things installed before this that might also need installed.

  • pip install crypto
  • yum install pycrypto
  • yum install python-crypto



Monday, March 2, 2020

Syncing Time in CentoOS 7 (ntp/chrony)

For some reason, I couldn't get this to sync until I finally found 1 command that everyone never mentioned.  Here's how to set it up.

ntpd

  1. yum install ntp ntpdate
  2. systemctl start ntpd
  3. systemctl enable ntpd
  4. systemctl status ntpd
  5. ntpdate -u -s 0.centos.pool.ntp.org 1.centos.pool.ntp.org 2.centos.pool.ntp.org
  6. timedatectl set-ntp yes
  7. timedatectl set-ntp 1
  8. systemctl restart ntpd

chronyd
  1. yum install chrony
  2. systemctl enable chronyd
  3. systemctl start chronyd
  4. ntpdate pool.ntp.org
  5. timedatectl set-ntp yes
  6. timedatectl set-ntp 1
  7. systemctl restart chronyd


Thursday, December 12, 2019

How to set a static IP using terminal in Ubuntu

First lets find the version you are running:


lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic


Now lets see what our interface name is:


ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:50:56:af:9d:c8 brd ff:ff:ff:ff:ff:ff


Ok so the version and interface information we need is in red.

Now let's create the file we need.  First, let's back up the original.


cp /etc/netplan/01-network-manager-all.yaml /etc/netplan/01-network-manager-all.yaml.bak


Ok now edit your 01-network-manager-all.yaml with your favorite editor.

vi /etc/netplan/01-network-manager-all.yaml

The following is the working config for the version and interface listed above:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: no
      dhcp6: no
      addresses: [10.10.10.100/24]
      gateway4: 10.10.10.1
      nameservers:
        addresses: [10.10.10.1,8.8.8.8,8.8.4.4]
Ok let's break down the file:

First thing, formatting matters.  If it is not formatted correctly, it will fail.

ens160 is the interface name.  You can see the links I used to figure this out, theirs was called ens33.

addresses is the static IP of the box.  You set this to what you want it to be.

addresses is your DNS servers.  If you have a local dns server, put that first.

Now that all that is done, lets apply it.

netplan apply
You can verify this by looking in the gui or ifconfig.

Sources:  Link Link Link

Tuesday, May 28, 2019

Plex Cinema Trailers and Pre-Rolls

I couldn't get this to work.  Everything I saw talked about 2 places you need to set this but I figured it out.  It needs to be set in 3 different places.

1st Place:

You need to enable it in your library.


2nd Place:

In your server.

Settings -> Settings -> Extras


3rd Place:

Your client.  This will depend on the client you're using.  Here are two examples.

Web (Settings -> General -> Player)


Plex Media Player (Settings -> General -> Player)


One final thing... if none of this works, I've seen several places where if your time is off it won't work either.

Wednesday, March 6, 2019

My Notes on youtube-dl

OS: Centos 7.5

#Installing Python
TBD

#Installing FFMPEG

yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

yum install ffmpeg ffmpeg-devel fribidi zvbi lame-libs



#Downloading a video that is split in to multiple files (Verified it worked with 8 mp4 files)
$ cat mylist.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

$ ffmpeg -f concat -i mylist.txt -c copy output

#Downloading a file that you have to authenticate with first (Link, Link)

Assuming you are using chrome extension (link based in title), you click the new extension after authentication, it will give you the cookie.

Create a file that you can pass to youtube-dl.

So:

vim cookies.txt

Paste contents copied earlier

youtube-dl --cookies=cookies.txt <url>

#Downloading a group of videos

Create list called list.txt:

ex ->
<url>
<url>
<url>

Save and close

youtube-dl -a list.txt

Tuesday, February 19, 2019

Fixing Plex Guide Data For Use with HDHomeRun Premium TV

I think I got this figured out... but I'm still testing.  So this is use as your own risk.

I'm using zap2xml for guide data.

I started out by following this guide here Link

That was a huge help to get started.  I then went to https://tvlistings.zap2it.com/ and created my first account.  To keep things simple I just made it username+east@gmail.com.  I went in and added all the east coast/national channels to match my local cable provider.

Here is the list of East/West Coast Feeds -> Link

I opened another browser and created a 2nd account and called it username+west@gmail.com.  I went in and then added all the west coast channels.  I ended up using Comcast out of San Francisco (94016) since the numbers matches closely to my cable provider.

Now this part will different depending on what OS your going to do this on.  For me it was CentOS 7.5.

First install the packages you need:


yum install perl perl-HTTP-Cookies.noarch perl-libwww-perl.noarch perl-Time-Piece perl-JSON perl-JSON-XS perl-CPAN perl-LWP-Protocol-https -y


Create your directory where you will store everything: 
mkdir /epg

Download zap2xml perl script (Link)

cp zap2xml.pl /epg/

chmod 755 /epg/zap2xml.pl 
cd /epg/

Now we are going to build our configuration files:

touch east.zap2xmlrc west.zap2xmlrc

/epg/east.zap2xmlrc
start=0
days=14
ncdays=0
ncsdays=2
retries=2
user=username+east@gmail.com
pass=password
cache=/epg/east1
lang=en
outfile=/epg/east.xmltv

outformat=xmltv

/epg/west.zap2xmlrc
start=0
days=14
ncdays=0
ncsdays=2
retries=2
user=username+west@gmail.com
pass=password
cache=/epg/west1
lang=en
outfile=/epg/west.xmltv

outformat=xmltv

Now we will create the cron script that will continue to pull in new data:

touch zap2xml.sh

/epg/zap2xml.sh
#!/bin/bash
rm -f /epg/west.xmltv
rm -f /epg/east.xmltv
perl /epg/zap2xml.pl -C /root/epg/west.zap2xmlrc -L -b -T -F
perl /epg/zap2xml.pl -C /root/epg/east.zap2xmlrc -J /root/epg/west.xmltv -L -b -T -F

/usr/bin/cp -f /root/epg/east.xmltv "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/"

Change the permissions so we can launch it:

chmod 755 zap2xml.sh
./zap2xml.sh

Troubleshooting:

It suggested using the https perl module but it wasn't really a suggestion, it's required.

Also found another issue where I kept changing guide data, trying to find the right zip/channel number on the west coast and more and more channels would have the same data for 8 days straight.  To fix this I cleared the cache folders (/epg/west1 and /epg/east1).


So far so good and I will keep updating this as I test this further.


ShareThis