Great piece of history here a television interview from 1988 with Carl Sagan, Stephen Hawking, and Arthur C Clarke. The interviewer is Mangus Magnusson who asks some great questions about modern science, and existence of god.
One fascinating piece is Arthur C Clarke demonstrating the Mandlebrot set on a high end Amiga computer. I spent some time recently writing my own generator as an exercise in Qt programming. Clarke loading the pre-generated images (which apparently took 12 hours or more) worked as fast as my program generating it on the fly.
That is a great observation of modern computing power, and not my programming skills.
https://www.youtube.com/watch?v=HKQQAv5svkk
Sunday, May 3, 2015
Recovering an encrypted LVM drive from another system
I had an SSD begin to fail on my laptop. The symptoms were interesting, a md5um of a large tar file began to produce inconsistent results.
My backups were a little basic on my laptop - so I replaced my SSD and went through this procedure to recover what I could from a SATA disk caddy with the SSD attached.
1. fdisk /dev/sdb to determine the LVM partition (/dev/sdb5 say).
2. Decrypt the partition ready for mounting:
cryptsetup luksOpen /dev/sdb5 recover-disk
3. vgscan to find the current volumes available
4. lvdisplay to find the volumes we can say (vg-mint/root say).
5. Mount the LVM partition:
mount /dev/vg-mint/root /mnt/other-disk
6. Now the drive is mounted, and we can copy data off (hopefully!)
Useful link:
http://ubuntuforums.org/showthread.php?t=940904
My backups were a little basic on my laptop - so I replaced my SSD and went through this procedure to recover what I could from a SATA disk caddy with the SSD attached.
1. fdisk /dev/sdb to determine the LVM partition (/dev/sdb5 say).
2. Decrypt the partition ready for mounting:
cryptsetup luksOpen /dev/sdb5 recover-disk
3. vgscan to find the current volumes available
4. lvdisplay to find the volumes we can say (vg-mint/root say).
5. Mount the LVM partition:
mount /dev/vg-mint/root /mnt/other-disk
6. Now the drive is mounted, and we can copy data off (hopefully!)
Useful link:
http://ubuntuforums.org/showthread.php?t=940904
Wednesday, April 29, 2015
Useful linux wireless commands
Here are some useful linux wireless commands:
Query wireless devices enable/disable
rfkill list
rfkill unblock <0>0>
To check details and driver info
lshw -class network
Starting up wireless on the command line
Create a wpa_supplicant file (maybe using wpa_gui):#Generated by wpa_gui
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your ssid"
psk="your passphrase"
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
auth_alg=OPEN
}
Now run wpa_supplicant to setup the connection:
wpa_supplicant -B -iwlan0 -c./wpa_supplicant.conf -Dwext
And dhclient wlan0 to get an ipaddress.
Simplified wireless command line
# Enable the interface
ip link set wlan0 up
# Scan for networks
iw dev wlan0 scan
# Run supplicant
wpa_supplicant -D nl80211,wext -i wlan0 -c <(wpa_passphrase SSID KEY)
# Assign IP address
ip addr add 192.168.0.10/24 dev wlan0
# OR dhclient
dhclient wlan0
Tuesday, April 21, 2015
Thursday, April 16, 2015
Articles on compromised carriers
These are old articles but give an interesting overview on the poor decision making for the sake of British jobs when it comes to defence. Yes we really are building aircraft carriers where we will never be able to afford a full complement of planes!
http://www.theregister.co.uk/2013/02/06/defence_committee_carrier_badness/
http://www.theregister.co.uk/2012/05/10/f35_u_turn_idiocy/
David Cameron was stating that we have the fifth largest defence budget in the world. It does us no good when we get such terrible value for money! Companies like BAe have the gun to the head of the government over defence jobs and extract the maximum amount of money for it. We often end up with over priced equipment that is years late.
Subscribe to:
Posts (Atom)