Public notice to all of the bots that try to sign up here... if you sign up with HotMail or Proton mail, we know you're a bot. LOL

Posts
-
RE: What Are You Doing Right Now
-
Configure Mastodon to Use Zoho ZeptoMail for SMTP Email
This is tested with Mastodon 4.1.2. ZeptoMail is Zoho transactional email system. This is not well documented from either side, so here are the working details.
SMTP_SERVER=smtp.zeptomail.com SMTP_PORT=587 SMTP_LOGIN=emailappsmtp.20ct9yn34098tv75 (this is your login, NOT the generic API that Zepto shows in samples) SMTP_PASSWORD=password (the password supplied by ZeptoMail "less secure" option) SMTP_AUTH_METHOD=plain SMTP_OPENSSL_VERIFY_MODE=none SMTP_ENABLE_STARTTLS=auto [email protected]
-
Make VIM on Debian Work without Mouse Interactions like vi
By default on Debian, vi is replaced with vim and configured to make it unusable as any attempt to interact with text by mouse causes it to freak out. It's the worst. But the fix is easy if you know what to do.
edit /etc/vim/vimrc
And add these lines..
set mouse= set ttymouse=
Voila, it works again!
-
Installing Mastodon 4.1.2 on Debian 11
Mostly this is taken from Mastodon's documentation but some of it is wrong. I tried their Docker configs, but couldn't find any that worked and it isn't clear if they have an official Docker image or just third party ones. They don't actually list Docker on their official site. So this is a traditional install.
As root...
apt update && apt install -y curl wget gnupg apt-transport-https lsb-release ca-certificates curl -sL https://deb.nodesource.com/setup_16.x | bash - curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list wget -O /usr/share/keyrings/postgresql.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc echo "deb [signed-by=/usr/share/keyrings/postgresql.asc] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/postgresql.list apt update && apt install -y imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core \ g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf \ bison build-essential libssl-dev libyaml-dev libreadline6-dev \ zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \ nginx redis-server redis-tools postgresql postgresql-contrib \ certbot python3-certbot-nginx libidn11-dev libicu-dev libjemalloc-dev nodejs corepack enable && yarn set version classic adduser --disabled-login --gecos "" mastodon sudo -u postgres psql -c 'CREATE USER mastodon CREATEDB;' ufw allow http && ufw allow https
As Mastodon
su - mastodon git clone https://github.com/rbenv/rbenv.git ~/.rbenv && cd ~/.rbenv && src/configure && make -C src echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc && echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec bash git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.0.6 rbenv global 3.0.6 gem install bundler --no-document cd ~ git clone https://github.com/mastodon/mastodon.git live && cd live git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1) bundle config deployment 'true' bundle config without 'development test' bundle install -j$(getconf _NPROCESSORS_ONLN) yarn install --pure-lockfile RAILS_ENV=production bundle exec rake mastodon:setup npx update-browserslist-db@latest exit
As root again...
cp /home/mastodon/live/dist/nginx.conf /etc/nginx/sites-available/mastodon certbot --nginx -d yourdomain.com ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/mastodon vi /etc/nginx/sites-available/mastodon rm /etc/nginx/sites-enabled/default systemctl restart nginx cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/ systemctl daemon-reload systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
-
RE: What Are You Doing Right Now
We have only a tiny bit of either. Asian food we tend to miss.
-
RE: If starting from scratch, would you suggest learning BASH or Ansible?
@IgnaceQ said in If starting from scratch, would you suggest learning BASH or Ansible?:
Besides anisble there are other tools for remote tooling. In a linux world you need bash. this is a basic need.
On top of bash, it really depends on the environmnet you're in. I would suggest python on top of this. You can use python in ansible, chef, terraform, etc... Also on non linux environments, python is availlable (bsd, windows).He needs Ansible because he's doing an Ansible based certification path.
-
RE: If starting from scratch, would you suggest learning BASH or Ansible?
@openit said in If starting from scratch, would you suggest learning BASH or Ansible?:
While I'm preparing for RedHat certification, I was thinking to learn BASH, for general use and also exam has requirement to write simple bash scripts.
But, in long run and to be more efficient, I feel deep learning of Ansible is better than BASH? If I left BASH, and go with Ansible do I lose anything? I assume Ansible covers what BASH can do?
These aren't competitive technologies. One is for working at the command line, one is for remote automation. You will always need both realistically.
-
RE: No Sound, no webcam and Only one monitor on Ubuntu 23.04 with NVIDIA graphics card
@dafyre said in Only one monitor on Ubuntu 23.04 with NVIDIA graphics card:
@CCWTech said in Only one monitor on Ubuntu 23.04 with NVIDIA graphics card:
Ran this, sudo apt install linux-headers-$(uname -r)
Not sure why they weren't installed or what happened but I have 4 monitors now.
I'm surprised the NVIDIA drivers even installed. They'll normally yell at you if you don't have the header files installed.
Glad to know you fixed the issue!
I'm guessing that they were out of date.
-
RE: No Sound, no webcam and Only one monitor on Ubuntu 23.04 with NVIDIA graphics card
@CCWTech said in Only one monitor on Ubuntu 23.04 with NVIDIA graphics card:
Ran this, sudo apt install linux-headers-$(uname -r)
Not sure why they weren't installed or what happened but I have 4 monitors now.
Do you do "apt dist-upgrade" for your daily updates? The headers aren't always installed by default. But maybe they were but not updated?
-
RE: What Are You Doing Right Now
Having more AC units installed this morning.
-
RE: Exchange Online (M365) applies DRM to MS Office attachments
I ASSUME that their answer is that no one should be emailing attachments like that and they should be sending links to the hosted files instead?
I can't remember the last time that we had to email someone an attachment of an office document, just saying that sounds like a legacy process. Who needs to do that in the modern world?
-
RE: Exchange Online (M365) applies DRM to MS Office attachments
So summary: MS is disabling the use of MS365 for communications with external customers. It's an internal use only system now?
-
RE: What Are You Doing Right Now
@siringo said in What Are You Doing Right Now:
glad to be sitting inside. a cold front as come through and it's freezing. nothing like you northern guys get, nowhere near, but for down here, it's freezing.
34C / 93F today
-
RE: What Are You Doing Right Now
Plans tonight include video editing and watching classic Dr. Who with my kids.