# The chattr command in Linux is a file system command which is used for changing the attributes of a file in a directory. The primary use of this command is to make several files unable to alter for users other than the superuser.
chattr +i test.txt-
-
Save mezcel/9d830cf2f24815569a6b3655f03a3153 to your computer and use it in GitHub Desktop.
Windows Subsystem for Linux Documentation link
Enable WLS via Powershell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxTo use GNU Desktop GUI Apps:
- Download X Server on Win10 xming or XLaunch vcxsrv
- Get a Distro from the Windows Store. I prefer Debian on Win10... despite prefering Arch or Alpine on everything else.
- Tell Bash you want to run an app through the X Server
## Manually Launch a standalone window of the Geany text editor
## In this case X Server was set to 0.0
DISPLAY=:0.0 geany
## or
## DISPLAY=:0.0 xfce4-session
## DISPLAY=:0.0 startxfce4Access Win10 Dirs from WLS:
## CD into the Win10 Downloads Dir
cd /mnt/c/Users/MyUserName/DownloadsAccess WLS from Win10:
- you have to ssh into it similar to a remote session
sudo apt update
sudo apt upgrade
sudo apt install xfce4 xfce4-goodies task-xfce-desktop
sudo apt install build-essential autoconf libgtk-3-dev
sudo apt install geany geany-plugins
sudo apt install git
sudo apt install arc-theme
echo "export DISPLAY=:0.0" >> ~/.bashrcInstall XLaunch vcxsrv. I prefer that over Xming.
- use default settings
- check Disable access controll
xfce4-session| Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
| Get-AppxPackage *windowscamera* | Remove-AppxPackage | |
| Get-AppxPackage *officehub* | Remove-AppxPackage | |
| Get-AppxPackage *skypeapp* | Remove-AppxPackage | |
| Get-AppxPackage *zunemusic* | Remove-AppxPackage | |
| Get-AppxPackage *windowsmaps* | Remove-AppxPackage | |
| Get-AppxPackage *solitairecollection* | Remove-AppxPackage | |
| Get-AppxPackage *bingfinance* | Remove-AppxPackage | |
| Get-AppxPackage *zunevideo* | Remove-AppxPackage | |
| Get-AppxPackage *bingnews* | Remove-AppxPackage | |
| Get-AppxPackage *onenote* | Remove-AppxPackage | |
| Get-AppxPackage *people* | Remove-AppxPackage | |
| Get-AppxPackage *windowsphone* | Remove-AppxPackage | |
| Get-AppxPackage *bingsports* | Remove-AppxPackage | |
| Get-AppxPackage *soundrecorder* | Remove-AppxPackage | |
| Get-AppxPackage *bingweather* | Remove-AppxPackage |
| Clear-History | |
| Stop-Process -name firefox | |
| Stop-Computer |
Win+R
secpol.msc
Select Application Control Policies in the left, then click Applocker.
Click Packaged app Rules:
Right click the right pane and select Create new rule:
The Create new rule wizard will be opened. Click Next to open its next page:
On the Permissions page, set Action to Deny, leave User or Group as Everyone:
Click Next, then click Use an installed packaged app as a reference -> Select:
In the app list, select Windows Spotlight(Microsoft.Windows.ContentDeliveryManager) and click OK:
Move the slider to the Package Name option as shown below, then click Create:
That's it!
https://www.laptopmag.com/articles/uninstall-restore-windows-10-builtin-apps
https://www.thewindowsclub.com/remove-candy-crush-saga-windows-10
- link
- Note: The C/C++ extension does not include a C++ compiler or debugger.
make a directory called C:\mingw-64 to install programms into
Make a system variable:
- right clock on start
- click "system"
- click "advanced system settings"
- click "Environment Variables"
- highlight the "Path" row within "Ststem variables"
- click "Edit"
- click "New", enter C:\mingw-w64\bin
/* c_cpp_properties.json */
{
"name": "Win32",
"includePath": [
"${workspaceFolder}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"compilerPath": "C:\\mingw-w64\\bin\\gcc.exe",
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}/* tasks.json */
{
"version": "2.0.0",
"tasks": [
{
"label": "build hello world",
"type": "shell",
"command": "g++",
"args": [
"-g", "helloworld.cpp"
]
}
]
}/* tasks.json */
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\mingw\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build hello world"
}
]
}| "%LocalAppData%\Programs\Microsoft VS Code Insiders" | |
| "%UserProfile%\.vscode-insiders" | |
| "%AppData%\Code - Insiders" | |
| "%AppData%\Visual Studio Code - Insiders" | |
| "%AppData%\Microsoft\Windows\Start Menu\Programs\Visual Studio Code - Insiders" | |
| %appdata%\local\Programs |