Linux

OpenVPN installer wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
List of Installed Packages dpkg –get-selections | grep -v deinstall > packages
wget  wget -A pdf,jpg -m -p -E -k -K -np http://site/path/

This will mirror the site, but the files without jpg or pdf extension will be excluded

Correct permissions /var/www sudo adduser $USER www-data

sudo chown $USER:www-data -R /var/www

sudo chmod +0775 -R /var/www

RPI2 sudo apt-get remove –purge bluej claws-mail claws-mail-i18n epiphany-browser epiphany-browser-data libreoffice* wolfram-engine sonic-pi
Find process pid ps aux | grep {process-name} ie.$ ps aux | grep apache2
path of executable whereis command

whereis apache2

Deploying MediaGoblin http://mediagoblin.readthedocs.io/en/latest/siteadmin/deploying.html
 beets music manager http://beets.readthedocs.io/en/v1.3.19/plugins/index.html
Apache Basic Authentication
  • sudo apt-get update
  • sudo apt-get install apache2 apache2-utils
  • sudo htpasswd -c /etc/apache2/.htpasswd [user name]
  • sudo nano /etc/apache2/sites-enabled/000-

default.confAuthType Basic

AuthName “Restricted Content”

AuthUserFile /etc/apache2/.htpasswd

Require valid-user

 Self-hosting
Download BBC iPlayer Videos
Insall LAMP
  • sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 -y
  • sudo /etc/init.d/apache2 restart
  • php -r ‘echo “nnYour PHP installation is working fine.nnn”;’
Group/User Access to NTFS External Drive
  •  sudo nano/etc/fstab
    • /dev/sda1 /mnt/HD1 ntfs-3g   uid=1001,gid=33,umask=0002    0       0/dev/sdb1 /mnt/HD2 ntfs-3g   uid=1001,gid=33,umask=0022    0       0
  •  Remount
    • /etc/fstab mount -a
List The Open Ports And The Process
  • sudo lsof -I
  • sudo netstat -lptu
  • sudo netstat -tulpn
Iodine iodine lets you tunnel IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed.

Windows

 VcXsrv Windows X Server https://sourceforge.net/projects/vcxsrv/?source=typ_redirect
 iusethis  http://windows.iusethis.com
Official Windows ISO Download Links
 Remote Command Prompt  You need PSTools for this.

Enter the following line: psexec \RemoteMachineName cmd.exe

 Item Not Found error
  • cd /d path-to-folder
  • dir /x
  • rmdir /q /s THEWIR~1

unspecifiederror

What does C$ mean when entered in Windows/Run while accessing remote drive? Shares with a $ are hidden shares (also called “Administrative shares”) and thus not visible when requesting the share list of a device.There are several default hidden shares active by default on your system.

For more information about (creating and removing) hidden shares, check out the Microsoft Knowledge base on this topic

 Psexec Local Administrator
  • Create login (LocalAdmin) with password (Admin)
    • net user LocalAdmin Admin /ADD
  • Add LocalAdmin to the administrator group
    • net localgroup administrators LocalAdmin /add
  • Check to see if it successfully executed
    • net users LocalAdmin
 Disable Remote UAC
  •  HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionpoliciessystem
  • On the Edit menu, point to New, and then click DWORD Value.
  • Type LocalAccountTokenFilterPolicy for the name of the DWORD, and then press ENTER.
  • Right-click LocalAccountTokenFilterPolicy, and then click Modify.
  • In the Value data box, type 1, and then click OK.On the Edit menu, point to New, and then click DWORD Value.
  • Type LocalAccountTokenFilterPolicy for the name of the DWORD, and then press ENTER.
  • Right-click LocalAccountTokenFilterPolicy, and then click Modify.
  • In the Value data box, type 1, and then click OK.
 @echo offecho This will install a printer across profiles on a remote computer

rem \PrintServerNameprinterName

set /p printer= What is the printer name? Include the back slashes and the print server.

rem \ComputerName

set /p computer= What is the computer name? Include the back slashes or leave blank to run on local machinerundll32 printui.dll,PrintUIEntry /ga /c%computer% /n%printer%

start /wait sc %computer% stop spooler

start /wait sc %computer% start spooler

rem make the printer default

rundll32 printui.dll,PrintUIEntry /y /n %printer%

echo Printer install complete

pause

@echo on

Add ODBC connections via .reg Regedit file
  • User DSNs: ComputerHKEY_CURRENT_USERSoftwareODBCODBC.INI
  • System DSNs: ComputerHKEY_LOCAL_MACHINESoftwareODBCODBC.INI
  • Right click the ODBC.INI folder, select Export (.reg file extension)
  • Add the following to the top of the exported reg file

[HKEY_CURRENT_USERSoftwareODBCODBC.INIODBC Data Sources]

“DSN name”=”SQL Server”

Modify the “DSN name” to match the name of the ODBC Data Source folder you exported.

Linux was originally published on Something Different

Advertisements