Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Walmes Marques Zeviani
linux-config
Commits
cc2cc316
Commit
cc2cc316
authored
1 year ago
by
Walmes Marques Zeviani
Browse files
Options
Downloads
Patches
Plain Diff
Adds Screen Copy installation and usage.
parent
258acc7f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scrcpy.sh
+48
-0
48 additions, 0 deletions
scrcpy.sh
with
48 additions
and
0 deletions
scrcpy.sh
0 → 100644
+
48
−
0
View file @
cc2cc316
#-----------------------------------------------------------------------
# Install scrcpy.
# For Debian/Ubuntu.
sudo
apt
install
ffmpeg libsdl2-2.0-0 adb wget
\
gcc git pkg-config meson ninja-build libsdl2-dev
\
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev
\
libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
# Then clone the repo and execute the installation script (source).
git clone https://github.com/Genymobile/scrcpy
cd
scrcpy
./install_release.sh
# When a new release is out, update the repo and reinstall.
git pull
./install_release.sh
# To uninstall.
sudo
ninja
-Cbuild-auto
uninstall
#-----------------------------------------------------------------------
# Problem with scrcpy: "error: device unauthorized."
# https://stackoverflow.com/questions/23081263/adb-android-device-unauthorized
# It's likely that the device is no longer authorized on ADB for
# whatever reason.
# 1. Check if authorized.
# 2. Revoke USB Debugging on phone. If the device is shown as
# unauthorized, go to the developer options on the phone and click
# "Revoke USB debugging authorization".
# 3. Restart ADB Server.
adb kill-server
adb start-server
# 4. Reconnect the device. The device will ask if you are agree to
# connect the computer id. You need to confirm it.
# 5. Now Check the device. It is now authorized!
#-----------------------------------------------------------------------
# Same usages.
#
# Use Andriod as a webcam.
# https://github.com/Genymobile/scrcpy/blob/master/doc/v4l2.md
#
# To record screen and audio.
# https://github.com/Genymobile/scrcpy/blob/master/doc/recording.md
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment