Workarounds for installing the VLC
Running into issues with VLC in your Coursera lab? This guide provides a straightforward workaround for updating VLC, ensuring it runs smoothly for your course requirements.
Identify the Version: Check your current VLC version.
Follow the Update Steps: Simple instructions to update VLC.
Verify the Update: Ensure VLC is updated successfully.
Quick and easy β get back to learning in no time!
For Windows
There are alternatives to manually downloading and running installers when you need to install or manage programs on Windows. To install or remove programs, you need administrative privileges. So, open Windows Powershell by searching for it in the Windows start menu, then right-click it and select "Run as Administrator".
In the Windows Powershell terminal, enter the following commands to download and install VLC media player.
Do NOT enter the numbers. This is indicating the order in which the commands should be entered.
$VLC_URL = "https://get.videolan.org/vlc/last/win64/"
$GET_HTML = Invoke-WebRequest $VLC_URL
$FILE = $GET_HTML.Links | Select-Object @{Label='href';Expression={@{$true=$_.href}[$_.href.EndsWith('win64.exe')]}} | Select-Object -ExpandProperty href
$URL = ($VLC_URL+$FILE)
$DOWNLOAD_DIR = "C:\users\qwiklabs\Downloads\"
$OUTPUT_FILE = ($DOWNLOAD_DIR+$FILE)
(new-object System.Net.WebClient).DownloadFile($URL, $OUTPUT_FILE)
cmd.exe /c $OUTPUT_FILE /S
Get-Package -Name *vlc*
Once the installation process is successfully completed, verify that VLC has successfully been installed with the following command:
Get-Package -Name vlc
For Linux
There are alternatives to manually downloading and running installers when you need to install or manage programs.
Task 2:
cd /home/lab
sudo rm corrupted_file
Task 3:
sudo apt-get -install -f
βTask 4:
ps -ef | grep malicious
find process Id from previous command then -
sudo kill (enter process ID here and delete everything including the brackets)
Task 5:
sudo chmod 777 super_secret_file.txt
commands explained:
Sudo - ( switch user) execute a command as another user by default the super user
chmod- change file mode bits
rm - remove files or directories
ps- report a snapshot of the current processes
-e : Select all processes. Identical to -A.
-f: full format listing
-grep: print lines matching a pattern
-apt
APT package handling utility - - command-line interface