{"id":93950,"date":"2022-02-04T13:25:03","date_gmt":"2022-02-04T18:25:03","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=93950"},"modified":"2022-02-04T13:25:05","modified_gmt":"2022-02-04T18:25:05","slug":"install-mastodon-social-media","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/","title":{"rendered":"Install Mastodon Social Media App on Ubuntu 18.04"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg\" alt=\"Install Mastodon on Ubuntu 18.04 With an SSL Certificate\" class=\"wp-image-93948\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-300x158.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-768x403.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install.jpg 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>The Mastodon social media application is a self-hosted Twitter alternative you can use to communicate with a private community or the <a href=\"https:\/\/www.inmotionhosting.com\/blog\/what-is-the-fediverse\/\">Fediverse<\/a>.<\/p>\n\n\n\n<p>Mastodon requires a Linux Ubuntu server (version 18.04 or greater). We recommend using a clean operating system (OS) image if possible as the Mastodon installation process requires many dependencies including PostgreSQL, Ruby, and Certbot.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#install\">Install the Mastodon Social Media App<\/a><ul><li><a href=\"#initial\">Initial Mastodon Setup<\/a><\/li><li><a href=\"#ssl\">Install an SSL Certificate<\/a><\/li><\/ul><\/li><li><a href=\"#start\">Getting Started with the Mastodon Social Media App<\/a><ul><li><a href=\"#login\">Log into Mastodon<\/a><\/li><li><a href=\"#manual\">Manually Confirm a Mastodon Account<\/a><\/li><li><a href=\"#admin\">Admin Settings<\/a><\/li><\/ul><\/li><li><a href=\"#learn\">Learning Mastodon<\/a><ul><li><a href=\"#profile\">Profile Settings<\/a><\/li><li><a href=\"#backup\">Backups<\/a><\/li><li><a href=\"#apps\">Third Party Integrations<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install\">Install the Mastodon Social Media App<\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-login-ssh\/\">Log into SSH<\/a>.<\/li><li>Download Node.js from the NodeSource repository (for greater reliability compared to other repos):<pre>curl -sL https:\/\/deb.nodesource.com\/setup_12.x | bash -<\/pre><\/li><li>Install Node.js:<pre>sudo apt-get install -y nodejs<\/pre><\/li><li>Download the Yarn GPG key:<pre>curl -sS https:\/\/dl.yarnpkg.com\/debian\/pubkey.gpg | apt-key add -<\/pre><\/li><li>Add Yarn to your repo sources file:<pre>echo \"deb https:\/\/dl.yarnpkg.com\/debian\/ stable main\" | tee \/etc\/apt\/sources.list.d\/yarn.list<\/pre><\/li><li>Update packages:<pre>apt update<\/pre><\/li><li>Install all dependencies:<pre>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 yarn libidn11-dev libicu-dev libjemalloc-dev<\/pre><br>This will take a few minutes.<\/li><li>Mastodon developers recommend using rbenv to ensure you get the latest Ruby versions as soon as possible. However, it requires a dedicated system user. Create a system user without the ability to login from SSH: <pre>adduser --disabled-login mastodon<\/pre><\/li><li>Switch to the new user:<pre>su - mastodon<\/pre><\/li><li>Download rbenv:<pre>git clone https:\/\/github.com\/rbenv\/rbenv.git ~\/.rbenv<\/pre><pre>cd ~\/.rbenv &amp;&amp; src\/configure &amp;&amp; make -C src<\/pre><pre>echo 'export PATH=\"$HOME\/.rbenv\/bin:$PATH\"' &gt;&gt; ~\/.bashrc<\/pre><pre>echo 'eval \"$(rbenv init -)\"' &gt;&gt; ~\/.bashrc<\/pre><pre>exec bash<\/pre><pre>git clone https:\/\/github.com\/rbenv\/ruby-build.git ~\/.rbenv\/plugins\/ruby-build<\/pre><\/li><li>Start the installation:<pre>RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.7.2<\/pre><br>This may take a few minutes.<pre>rbenv global 2.7.2<\/pre><\/li><li>Install Bundler: <pre>gem install bundler --no-document<\/pre><\/li><li>Switch back to the root user: <pre>exit<\/pre><\/li><li>Log into PostgreSQL:<pre>sudo -u postgres psql<\/pre><br>The following warning doesn\u2019t affect the installation process: \u201ccould not change directory to \u201c\/root\u201d: Permission denied.\u201d<\/li><li>Create a mastodon database user:<pre>CREATE USER mastodon CREATEDB;<\/pre><\/li><li>Exit the PostgreSQL CLI:<pre>\\q<\/pre><\/li><li>Switch back to the mastodon system user:<pre>su - mastodon<\/pre><\/li><li>Download Mastodon and switch to the \u201clive\u201d directory:<pre>git clone https:\/\/github.com\/tootsuite\/mastodon.git live &amp;&amp; cd live<\/pre><pre>git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)<\/pre><\/li><li>Install Ruby and JavaScript dependencies:<pre>bundle config deployment 'true'<\/pre><pre>bundle config without 'development test'<\/pre><pre>bundle install -j$(getconf _NPROCESSORS_ONLN)<\/pre><br>This might take a few minutes.<\/li><li>Install dependencies:<pre>yarn install --pure-lockfile<\/pre><br>If you receive the following error you\u2019ll need to install the latest Yarn version with NPM.<br><code>yarn: error: no such option: --pure-lockfile<\/code><br>If you don\u2019t receive the error, continue to the next section.<br>Return to the root user:<pre>exit<\/pre><br>Remove the Yarn executable:<pre>rm \/usr\/bin\/yarn<\/pre><br>Install Yarn with NPM:<pre>npm install --global yarn<\/pre><br>Log back into the mastodon user:<pre>su - mastodon<\/pre><br>Return to the \u201clive\u201d directory:<pre>cd live\/<\/pre><br>Try again:<pre>yarn install --pure-lockfile<\/pre><br>You should see \u201cDone in X.XXs\u201d when it finishes.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"initial\">Initial Mastodon Setup<\/h3>\n\n\n\n<p>Ensure there are no other resource intensive tasks running before continuing (e.g. antivirus scans).\u00a0<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Run the Mastodon setup:<pre>RAILS_ENV=production bundle exec rake mastodon:setup<\/pre><\/li><li>Type the domain name for your Mastodon instance.<\/li><li>Specify whether your instance will be for a single user. Single user mode disables registrations and redirects the landing page (for registrations and logins) to your public profile.<\/li><li>Answer \u201cn\u201d for having not used Docker.<\/li><li>Accept the default PostgreSQL options unless you have a more complex setup.<\/li><li>Accept the default Redis options.<\/li><li>Decide whether to store uploaded files \u201con the cloud.\u201d<\/li><li>Decide whether you\u2019ll send emails from your system.<\/li><li>Set an email address to send emails. The default is \u201cnotifications@.\u201d You\u2019ll also have the option to send a test email.<\/li><li>Type \u201cY\u201d to save the configuration.<\/li><li>Prepare the PostgreSQL database.<\/li><li>Compile the assets.<\/li><li>Pay attention to any notices. For example, we got a recommendation to update caniuse-lite:<pre>npx browserslist@latest --update-db<\/pre><\/li><li>Select \u201cY\u201d to create an admin user.<\/li><li>Specify the username and email address. Note that this will be a Mastodon social media account. Consider using a name instead of something like \u201cadmin.\u201d<\/li><li>Save the password in a <a href=\"https:\/\/www.inmotionhosting.com\/support\/security\/keepass-for-windows-user-guide\/\">password manager<\/a>.<\/li><li>Return to the root user.<pre>exit<\/pre><\/li><li>Copy the downloaded Mastodon NGINX configuration file to your NGINX web server:<pre>cp \/home\/mastodon\/live\/dist\/nginx.conf \/etc\/nginx\/sites-available\/mastodon<\/pre><\/li><li>Create a symlink:<pre>ln -s \/etc\/nginx\/sites-available\/mastodon \/etc\/nginx\/sites-enabled\/mastodon<\/pre><\/li><li>Edit the Mastodon NGINX configuration file:<pre>nano \/etc\/nginx\/sites-available\/mastodon<\/pre><\/li><li>Replace every instance of \u201cexample.com\u201d (4). The quickest way in Nano is to type <kbd>Ctrl<\/kbd> + <kbd>\\<\/kbd>, \u201cexample.com,\u201d <kbd>Enter<\/kbd>, your Mastodon domain, and <kbd>Enter<\/kbd>.<\/li><li>Save changes.<\/li><li>Restart NGINX:<pre>systemctl restart nginx<\/pre><br>Simply reboot the system if you encounter the error \u201cFailed to start A high performance web server and a reverse proxy server.\u201d<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ssl\">Install an SSL Certificate<\/h3>\n\n\n\n<p>Certbot manages Let\u2019s Encrypt SSL certificates for your domain(s). It is one of the dependencies installed earlier.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Create an SSL certificate with Certbot, replacing \u201cexample.com\u201d with your domain:<pre>certbot --nginx -d example.com<\/pre><\/li><li>You\u2019ll need to provide an email account, agree to the terms of service, and decide whether to share your email with the Electronic Frontier Foundation (EFF).<\/li><li>Choose \u201c1\u201d if you have apps that cannot use an SSL certificate. You can <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/nginx\/nginx-redirect\/\">create the redirect<\/a> manually later.<br>Choose \u201c2\u201d to redirect all web traffic to HTTPS (recommended).<\/li><li>Copy the downloaded Mastodon service file:<pre>cp \/home\/mastodon\/live\/dist\/mastodon-*.service \/etc\/systemd\/system\/<\/pre><\/li><li>Reload Systemd: <pre>systemctl daemon-reload<\/pre><\/li><li>Start Mastodon: <pre>systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming<\/pre><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"start\">Getting Started with the Mastodon Social Media App<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"login\">Log into Mastodon<\/h3>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Visit your new Mastodon instance in a web browser.<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"874\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-login-default-1024x874.png\" alt=\"Mastodon registration and login page\" class=\"wp-image-93947\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-login-default-1024x874.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-login-default-300x256.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-login-default-768x656.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-login-default.png 1177w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure><\/li><li>Log into Mastodon on the right. When you login you\u2019ll see the following notice at the top: \u201cWaiting for e-mail confirmation to be completed. Didn\u2019t receive confirmation instructions?\u201d <figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-account-settings-awaiting-confirmation-1024x604.png\" alt=\"Account settings with confirmation pending\" class=\"wp-image-93946\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-account-settings-awaiting-confirmation-1024x604.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-account-settings-awaiting-confirmation-300x177.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-account-settings-awaiting-confirmation-768x453.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-account-settings-awaiting-confirmation.png 1286w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure><\/li><li>Check your email and confirm your Mastodon account if you received the email. Then skip to the <a href=\"#admin\">admin settings<\/a>. If you didn\u2019t receive the confirmation email, continue to the next section.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"manual\">Manually Confirm a Mastodon Account<\/h3>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>If you didn\u2019t receive the confirmation email, log into SSH and the mastodon user.<pre>su - mastodon<\/pre><\/li><li>Navigate to the \u201clive\u201d directory: <pre>cd live\/<\/pre><\/li><li>Manually confirm the Mastodon account with the following command, replacing \u201cusername\u201d with the user you created:<pre>RAILS_ENV=production bin\/tootctl account modify username --confirm<\/pre><\/li><li>If you registered another username from the registration page you can use the following command to grant admin privileges to that user as well:<pre>RAILS_ENV=production bin\/tootctl account modify username --role admin<\/pre><\/li><li>Refresh the Mastodon page.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"admin\">Admin Settings<\/h3>\n\n\n\n<p>Administrators have access to two restricted sections for managing the Mastodon server:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>Moderation<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Application audit log<\/li><li>List of reported accounts on your instance<\/li><li>List of registered accounts<\/li><li>Active invitation links to join your server<\/li><li>Stats on hashtags created by your users<\/li><li>Recommended users to follow<\/li><li>Federation settings to block external domains across the Mastodon social network<\/li><li>Blocked e-mail domains<\/li><li>IP rules to limit or block signups<\/li><\/ul>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>Administration<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change site settings for appearance, privacy, and more<\/li><li>Write server rules<\/li><li>Share announcements with users<\/li><li>Upload custom emojis<\/li><li>Set up a federation relay connection for greater visibility across Mastodon\u2019s Fediverse<\/li><li>View Sidekiq Ruby analytics<\/li><li>Manage database data with PgHero\u00a0<\/li><\/ul>\n<\/div><\/div>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"860\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-administration-dashboard-1024x860.png\" alt=\"Mastodon administration dashboard\" class=\"wp-image-93945\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-administration-dashboard-1024x860.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-administration-dashboard-300x252.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-administration-dashboard-768x645.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-administration-dashboard.png 1286w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>To delete admin accounts you must do one of the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Login as the account and delete it under \u201cAccount settings\u201d<\/li><li>Run the following terminal command as the mastodon system user:<pre>RAILS_ENV=production bin\/tootctl accounts delete username<\/pre><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"learn\">Learning Mastodon<\/h2>\n\n\n\n<p>Select \u201cBack to Mastodon\u201d at the top of the settings page to see the local timeline.<\/p>\n\n\n\n<p>View profile options and create \u201ctoots\u201d (messages under 500 characters) on the left. Posts show in the center section. Options on the right display:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Account notifications<\/li><li>Different timelines (local or federated)<\/li><li>Direct messages (DMs)<\/li><li>Bookmarked toots<\/li><li>Lists you\u2019ve created<\/li><li>Profile directory for your instance<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"837\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-new-1024x837.png\" alt=\"New Mastodon dashboard\" class=\"wp-image-93942\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-new-1024x837.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-new-300x245.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-new-768x628.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-new.png 1307w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Social media managers may prefer an interface that shows multiple timelines at once, similar to TweetDeck.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Select \u201cEdit profile\u201d at the top to view profile settings.<\/li><li>Select \u201cPreferences\u201d &gt; \u201cAppearance.\u201d<\/li><li>Check the box for \u201cEnable advanced web interface.\u201d<\/li><li>Save changes.<\/li><li>Select \u201cBack to Mastodon\u201d to see the multiple columns available.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"678\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-advanced-1024x678.png\" alt=\"Advanced web interface\" class=\"wp-image-93941\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-advanced-1024x678.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-advanced-300x198.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-advanced-768x508.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-advanced-1536x1016.png 1536w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-dashboard-advanced.png 1596w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"profile\">Profile Settings<\/h3>\n\n\n\n<p>Select \u201cProfile\u201d &gt; \u201cAppearance\u201d to edit the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Display name<\/li><li>Bio<\/li><li>Header image<\/li><li>Avatar (profile image)<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"794\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-appearance-1024x794.png\" alt=\"Edit profile appearance\" class=\"wp-image-93944\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-appearance-1024x794.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-appearance-300x232.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-appearance-768x595.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-appearance.png 1315w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Profile metadata: these links are listed under your profile. The label is the link title and the content is the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"772\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-example.png\" alt=\"Example of complete of a Mastodon profile\" class=\"wp-image-93940\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-example.png 696w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-profile-example-270x300.png 270w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>At the bottom you can transfer or delete your account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"backup\">Backups<\/h3>\n\n\n\n<p>Select \u201cImport and export\u201d &gt; \u201cData export\u201d to download an ActivityPub compliant CSV file including your:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Posts<\/li><li>Accounts followed<\/li><li>Lists<\/li><li>Followers<\/li><li>Blocked users<\/li><li>Muted users<\/li><li>Blocked domains<\/li><li>Bookmarks<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-data-export-1024x584.png\" alt=\"Mastodon backup options\" class=\"wp-image-93943\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-data-export-1024x584.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-data-export-300x171.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-data-export-768x438.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-data-export.png 1317w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"apps\">Third Party Integrations<\/h3>\n\n\n\n<p>Applications integrated with your Mastodon account show in \u201cAccount\u201d &gt; \u201cAuthorized apps.\u201d You\u2019ll have the \u201cWeb\u201d app by default. Here\u2019s our guide on integrating <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/plugins\/autopost-mastodon-social-media\/\">WordPress with Mastodon<\/a>.<\/p>\n\n\n\n<p>Web developers can create apps with the <a href=\"https:\/\/docs.joinmastodon.org\/methods\/apps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Mastodon API<\/a> in the Development page.Check back often to learn more about <a href=\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/\">Fediverse<\/a> apps.<\/p>\n\n\n<div class=\"jumbotron\"><p>With our <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud Server Hosting<\/a>, you can deploy a lightning-fast, reliable cloud platform with built-in redundancy \u2013 ensuring the availability of your environment!<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Mastodon social media application is a self-hosted Twitter alternative you can use to communicate with a private community or the Fediverse. Mastodon requires a Linux Ubuntu server (version 18.04 or greater). We recommend using a clean operating system (OS) image if possible as the Mastodon installation process requires many dependencies including PostgreSQL, Ruby, and<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4519],"tags":[],"class_list":["post-93950","post","type-post","status-publish","format-standard","hentry","category-fediverse"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Install Mastodon Social Media App on Ubuntu 18.04 | InMotion Hosting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Mastodon Social Media App on Ubuntu 18.04 | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"The Mastodon social media application is a self-hosted Twitter alternative you can use to communicate with a private community or the Fediverse. Mastodon requires a Linux Ubuntu server (version 18.04 or greater). We recommend using a clean operating system (OS) image if possible as the Mastodon installation process requires many dependencies including PostgreSQL, Ruby, and Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-04T18:25:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-04T18:25:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Install Mastodon Social Media App on Ubuntu 18.04\",\"datePublished\":\"2022-02-04T18:25:03+00:00\",\"dateModified\":\"2022-02-04T18:25:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\"},\"wordCount\":1234,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg\",\"articleSection\":[\"Fediverse\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\",\"name\":\"Install Mastodon Social Media App on Ubuntu 18.04 | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg\",\"datePublished\":\"2022-02-04T18:25:03+00:00\",\"dateModified\":\"2022-02-04T18:25:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Install Mastodon on Ubuntu 18.04 With an SSL Certificate\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Mastodon Social Media App on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Mastodon Social Media App on Ubuntu 18.04 | InMotion Hosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/","og_locale":"en_US","og_type":"article","og_title":"Install Mastodon Social Media App on Ubuntu 18.04 | InMotion Hosting","og_description":"The Mastodon social media application is a self-hosted Twitter alternative you can use to communicate with a private community or the Fediverse. Mastodon requires a Linux Ubuntu server (version 18.04 or greater). We recommend using a clean operating system (OS) image if possible as the Mastodon installation process requires many dependencies including PostgreSQL, Ruby, and Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2022-02-04T18:25:03+00:00","article_modified_time":"2022-02-04T18:25:05+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Install Mastodon Social Media App on Ubuntu 18.04","datePublished":"2022-02-04T18:25:03+00:00","dateModified":"2022-02-04T18:25:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/"},"wordCount":1234,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg","articleSection":["Fediverse"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/","url":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/","name":"Install Mastodon Social Media App on Ubuntu 18.04 | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install-1024x538.jpg","datePublished":"2022-02-04T18:25:03+00:00","dateModified":"2022-02-04T18:25:05+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2022\/02\/mastodon-install.jpg","width":1200,"height":630,"caption":"Install Mastodon on Ubuntu 18.04 With an SSL Certificate"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/fediverse\/install-mastodon-social-media\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Install Mastodon Social Media App on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/93950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=93950"}],"version-history":[{"count":6,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/93950\/revisions"}],"predecessor-version":[{"id":93956,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/93950\/revisions\/93956"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=93950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=93950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=93950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}