NextCloud: Difference between revisions

From Corat Coret
No edit summary
Line 10: Line 10:
Confirm the new password:  
Confirm the new password:  
Successfully reset password for admin
Successfully reset password for admin
</syntaxhighlight>
==Generate Video Thumbnail==
Install ffmpeg
<syntaxhighlight lang="bash">
# Install
apt install ffmpeg
# Verifikasi installasi
ffmpeg -version
# Check lokasi installasi ffmpeg
which ffmpeg
</syntaxhighlight>
Tamgahkan konfigurasi <code>config.php</code> dan sesuaikan lokasi ffmpeg
<syntaxhighlight lang="php">
  'enable_previews' => true,
  'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\Image',
7 => 'OC\\Preview\\Photoshop',
8 => 'OC\\Preview\\TIFF',
9 => 'OC\\Preview\\SVG',
10 => 'OC\\Preview\\Font',
11 => 'OC\\Preview\\MP3',
12 => 'OC\\Preview\\Movie',
13 => 'OC\\Preview\\MKV',
14 => 'OC\\Preview\\MP4',
15 => 'OC\\Preview\\AVI',
15 => 'OC\\Preview\\Mov',
),
  'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
</syntaxhighlight>
</syntaxhighlight>

Revision as of 06:44, 29 September 2024

Reset Password

  • Login sebagai root dengan SSH
  • Jalankan perintah sudo -u nobody php-cli /srv/www/nextcloud/occ user:resetpassword <username>
  • Masukkan password baru
sudo -u nobody php-cli /srv/www/nextcloud/occ user:resetpassword admin
Enter a new password: 
Confirm the new password: 
Successfully reset password for admin

Generate Video Thumbnail

Install ffmpeg

# Install
apt install ffmpeg

# Verifikasi installasi
ffmpeg -version

# Check lokasi installasi ffmpeg
which ffmpeg

Tamgahkan konfigurasi config.php dan sesuaikan lokasi ffmpeg

  'enable_previews' => true,
  'enabledPreviewProviders' =>
		array (
			0 => 'OC\\Preview\\TXT',
			1 => 'OC\\Preview\\MarkDown',
			2 => 'OC\\Preview\\OpenDocument',
			3 => 'OC\\Preview\\PDF',
			4 => 'OC\\Preview\\MSOffice2003',
			5 => 'OC\\Preview\\MSOfficeDoc',
			6 => 'OC\\Preview\\Image',
			7 => 'OC\\Preview\\Photoshop',
			8 => 'OC\\Preview\\TIFF',
			9 => 'OC\\Preview\\SVG',
			10 => 'OC\\Preview\\Font',
			11 => 'OC\\Preview\\MP3',
			12 => 'OC\\Preview\\Movie',
			13 => 'OC\\Preview\\MKV',
			14 => 'OC\\Preview\\MP4',
			15 => 'OC\\Preview\\AVI',
			15 => 'OC\\Preview\\Mov',
		),
   'preview_ffmpeg_path' => '/usr/bin/ffmpeg',