Category Archives: Uncategorized

PI-Hole Add-Blocker on Ubuntu Mini

imageI wanted to utilise the pi-hole software but  didn’t want to use my Raspbury pie, I wanted to use hyper V virtualisation and a basic cut down version of mini Ubuntu, http://archive.ubuntu.com/ubuntu/dists/yakkety/main/installer-amd64/current/images/netboot/mini.iso

so I installed ubuntu from this link above  added the gui and basic gnome and then installed the  the pie hole

after using terminal and this list of commands

sudo apt install git
Sudo git clone –depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd Pi-hole/automated_installer/
bash basic-install.sh

Make the Ubuntu have a static ip

or edit

Sudo nano \etc\dnsmasq.conf

Last 3 lines are IP address and subnet

 

eg 192.168.1.2/24

gateway 192.168.1.254

 

software onto that and then point my DNS via DHCP server to the new Ubuntu to machine

that was it working.

 

Add vnc to xbuntu xbmc

This is so I can control my XBMC downloader PC running xubuntu via my iPad with myVNC.

The discussion here is being limited to XUbuntu 12.04 LTS, however pretty much any version of *nix will work in principle.

Start by ensuring your system is up to date.

sudo aptitude update
my case was sudo apt-get update
sudo aptitude upgrade
my case was sudo apt-get upgrade

Install the server.

sudo aptitude install x11vnc

my case was sudo apt-get install x11vnc

Setup a password file
sudo x11vnc -storepasswd /etc/x11vnc.pass
This command will ask you to provide a password and confirm it.
Once the password file is created, restrict the permissions of the file so only root can access it.

chmod 600 /etc/x11vnc.pass

Automatically start the server
You may want to start the server automatically when ever the computer is running. If you do want this behavior, you will want the server to start even before a user has logged in. In order to accomplish this, place the following code in a file called

/etc/init/x11vnc.conf

start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamge -display :0 -auth /var/run/lightdm/root/:0 -forever -shared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5901 -localhost

Remove carriage returns if pasting.

start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamge -display :0 -auth /var/run/lightdm/root/:0 -forever -shared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5901 -localhost
end script

Vnc viewer xbuntu ipaddress:5901

You can manually start x11vnc

SSH into box type

x11vnc -usepw

Vic will be on port 5900

Extracts from this page http://robot.wpi.edu/wiki/index.php/Setting_up_an_XUbuntu_VNC_Serverlink

This is so I can control my XBMC downloader PC via my iPad with myVNC.

Wim winpe editing

Winpe wim file edit customise.
using batch files making much easier to mount wim file for edit

c:\Program Files\Windows AIK\Tools\PETools\x86\winpe.wim

take the wim I want to edit rename to the above location.

Here is some batch files with the used commands to save errors

https://docs.google.com/file/d/0BwuC6l_xtRbvY2JkMzY2ZWMtYjVjZi00MDVhLTk5YjQtNGRjYzlmN2U4Y2Mw/edit?authkey=CNrJht8D&hl=en&pli=1

more info http://www.iammacgyver.com/2011/02/easy-rdp-60-from-winpe-30-simple-boot.html

or here http://technet.microsoft.com/en-us/library/cc709665(v=ws.10).aspx

inside the mounted wim file you will see

Program Files

ProgramData

Sources

Users

Windows

handy to have a machine with in my case 32bit win7 so I could copy the program I wanted to use from program files to the mounted folder,

then use regedit (important)click on hklm then click file load hive give a name PSsoftware as example,

grab the software parts for that program from the source machine export to txt file, edit notepad (find and replace)change software to PSsoftware import, back in.

when done unload hive.

in windows\system32\

winpeshl.ini has the startup script in the one i using. contains network startup and then explorer.exe

loader.ani is mouse pointer icon.

Win7PE.cfg contains start-menu items and resolution more settings some registry hives.

setup.bmp background image.