Cloudmin manual restore

2012.04.26

cloudmin restore-systems –host system.tld –source /mnt/xen-backups/%M-%D-%Y

Remote VNC login to Ubuntu 12.04

2012.04.23

Installed x11vnc:
apt-get install x11vnc

Create /etc/init/x11vnc.conf file:
start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script

After restart, x11vnc shoud listen on vnc startard port – 5900.

Script is based on upstart event mechanism when Lightdm emits login-session-start event, x11vnc is started.

Reference: http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/

Categories : Ubuntu

Hackers

2012.04.17

…And on the 8th day, God created hackers.

He saw that this was good, for on the 9th day,

hackers used two stones to make fire.

Asterisk ARI Kicking User Out

2011.11.09

When ARI kicks a person out or the voicemails are not playing when requested. Check the directory authorizations.

chown asterisk:asterisk /var/lib/php/session

Categories : Debian  Asterisk

Removing Guest from Ubuntu 11.10

2011.11.01

To remove the guest login option you have to modify /etc/lightdm/lightdm.conf.
original
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu

modified
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

You can either reboot or restart the service.
sudo restart lightdm

Categories : Ubuntu

Wireshark on Ubuntu 11.10 No Interfaces

2011.10.26

When installing Wireshark on Ubuntu I’ve run across the issue of no interfaces. Below are the steps to revolve that issue.

Install the setcap executable
$ sudo apt-get install libcap2-bin

Create wireshark group
$ sudo groupadd wireshark

Add your user name to group wireshark
$ sudo usermod -a -G wireshark YOUR_USER_NAME

Change the dumpcap directory to group wireshark
$ sudo chgrp wireshark /usr/bin/dumpcap

Change mode to 750
$ sudo chmod 750 /usr/bin/dumpcap

Grant capabilities with setcap
$ sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

Verify the change
$ sudo getcap /usr/bin/dumpcap

Categories : Ubuntu

HP Mini 110-1030nr BIOS Recovery

2011.10.10

Flashing from a DOS disk – AFUDOS ROMFILE.ROM /P /C

To retreive the HP screen at boot for your HP Mini 110, you need an utility called AMIDEDOS.exe,

Boot from DOS using this HP DMI TOOLKIT

Once under DOS environnement,
amidedos /sm “Hewlett-Packard”
amidedos /sp “HP Mini 110″
amidedos /bm “Hewlett-Packard”
amidedos /bp “HP Mini 110″
amidedos /cm “Hewlett-Packard”
amidedos /ss “your serial number”

Type amidedos with no paramerters
Restart the laptop and check values in bios setup

http://forums.mydigitallife.info/threads/9055-SLP-Marker-File-Update-Utility/page22

Categories : BIOS Hacking

iCamSource UDP Ports

2011.09.14

iCamSource requires UDP ports 12000-12100 be forwarded to the computer. UPnP handles well, but a change to pfSense and not using UPnP made me have to look for a solution.

http://skjm.com/forum/index.php?topic=402.0

Categories : pfSense

Xen Failed to find an unused loop device

2011.09.13

Create a new Xen instance yesterday and had issues getting it started. Already have 4 instances running and the error message “Failed to find an unused loop device” kept appearing.

I could shutdown another instance and bring the new one up, but then the instance I had shutdown would not come back up and had the same error.

Luckily, I ran across the following post that provided all the information.

http://denraelevisgniht.blogspot.com/2011/01/failed-to-find-unused-loop-device.html

I created file /etc/modprobe.d/local-loop with one line.
options loop max_loop=64

After reboot, all instances would come up without a problem.

Categories : Debian  Debian  Xen

Asterisk 1.8 – installation

2011.09.06

Go to your src directory
cd /usr/src
Download current Asterisk 1.8
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz
Unpack it
tar xvfz asterisk-1.8-current.tar.gz
Go down to asterisk unpacked files directory
NOTE: You need to do a ls -l to see the directory created from the tar.
This is the latest release
cd asterisk-1.8-current
Download mp3 support files
contrib/scripts/get_mp3_source.sh
Run configure
./configure
Start menu based configuration
make menuconfig
select app_mysql, app_saycountpl, cdr_mysql, format_mp3, res_config_mysql
go to Extras Sound Packages
Select EXTRAS-SOUNDS-EN-GSM
Save & Exit
Run make
make
Then run the installer
make install
Stop running Asterisk
amportal stop
And start the new Asterisk 1.8
amportal start

Thanks to the following:

http://www.freepbx.org/forum/freepbx/installation/asterisk-1-8-installation

Categories : Debian  Asterisk