This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo sed -i /deb/s/jessie/stretch/g /etc/apt/sources.list | |
sudo sed -i /deb/s/jessie/stretch/g /etc/apt/sources.list.d/*.list | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get autoremove | |
sudo apt-get autoclean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download image from https://www.raspberrypi.org/downloads/raspbian/ | |
Create filesysstem with https://www.balena.io/etcher/ | |
Create a file called SSH in the root of the drive | |
Create a file called wpa_supplicant.conf in the root and add the following | |
country=GB | |
ctrl_interface=DIR=/var/run/wpa_supplicant |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository universe | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update | |
sudo apt-get install certbot python-certbot-apache | |
sudo certbot certonly --manual --preferred-challenges dns -d wordpress.depicus.com | |
SSLCertificateFile /etc/letsencrypt/live/wordpress.depicus.com/fullchain.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt upgrade && sudo apt autoremove | |
cd /var/www | |
sudo wget http://wordpress.org/latest.tar.gz | |
sudo tar xfz latest.tar.gz | |
sudo rm latest.tar.gz | |
sudo apt install php-mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install apache2 php mysql-server | |
sudo apt install postfix | |
# if you want to edit from the command line | |
sudo nano /usr/share/logwatch/default.conf/logwatch.conf | |
sudo nano /etc/logcheck/logcheck.conf | |
sudo nano /etc/logcheck/logcheck.logfiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt upgrade && sudo apt autoremove | |
git clone http://github.com/depicus/scripts | |
cd scripts | |
sudo sh webmin.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// if you are on Windows 10 you may need to start powershell as admin and run the folowing command | |
// Set-ExecutionPolicy RemoteSigned (see https://technet.microsoft.com/library/hh847748.aspx) | |
// then set back after you are done with | |
// Set-ExecutionPolicy Undefined | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Dim TheRoot, TheDisplay, TheContext, TheMenu, TheLoop, TheNewMenu | |
set TheRoot = Getobject(LDAP://RootDSE) | |
set TheContext = GetObject("LDAP://" & "CN=409, CN=DisplaySpecifiers," & TheRoot.get("configurationNamingContext")) | |
Set TheDisplay = TheContext.GetObject("displaySpecifier","cn=user-Display") | |
TheLoop = 0 | |
If Not IsEmpty(TheDisplay.adminContextMenu) Then TheMenu = TheDisplay.GetEx("adminContextMenu") | |
For TheLoop = LBound(TheMenu) to UBound(TheMenu) | |
If InStr(TheMenu(TheLoop),"&Default Printer") Then | |
MsgBox "Menu already exists ... exiting ..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Dim Args, TheUser, TheNewValue | |
Set Args = Wscript.Arguments | |
Set TheUser = GetObject(Args(0)) | |
TheNewValue = InputBox("Old Default Printer: " & TheUser.defaultPrinter & vbCRLF & vbCRLF& vbCRLF& vbCRLF & "New Default Printer","Domain Default Printer",TheUser.defaultPrinter) | |
if TheNewValue <> "" then TheUser.Put "defaultPrinter",TheNewValue | |
TheUser.SetInfo | |
Set TheUser = Nothing | |
WScript.Quit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ModifyUsers(ByVal TheObject) | |
Dim TheUser | |
For Each TheUser In TheObject | |
Select Case TheUser.Class | |
Case "user" | |
TheUser.Put("DefaultPrinter", "LDNLGHNPXXX") | |
TheUser.Setinfo() | |
Case "organizationalUnit", "container" | |
ModifyUsers(TheUser) | |
End Select |
NewerOlder