If the 60-day VMware vSphere ESXi evaluation license expires for a host before you change it to your payed license, you will not be able to power on or reset the virtual machines running, and many features will no longer be available for your ESXi host.
The ESXi host will be disconnected from vCenter. When attempting to reconnect the host via vCenter, you will receive the error message, “The Evaluation Mode License assigned to Host has expired. Recommend updating the license.”
Since the host is disconnected, and the license has expired, you will not be able to change the ESXi license as you normally would (by going to Configuration > Licensed Features > Edit).
- Instead, you could reset the 60-day license, reconnect the disconnected host, and then change the ESXi host’s license by going to Configuration > Licensed Features > Edit.
- Alternatively, you could
- use the vSphere Client to directly login to the affected ESXi host
- Click the Configuration tab.
- Click Licensed Features under Software.
- Click Edit under Licensed Features.
- Select Assign a new license key to this host.
- Press Enter and enter the License Key.
- Click OK.
If the 60-day VMware vSphere ESXi evaluation license expires, you will not be able to power on or reset the virtual machines running, and many features will no longer be available for your ESXi host.
You can technically reset this 60-day license by doing the following:
ssh root@esxi-host
esxi-host # rm /etc/vmware/license.cfg
esxi-host # services.sh restart
Running sfcbd stop
This operation is not supported.
Please use /etc/init.d/sfcbd-watchdog stop
Running wsman stop
Stopping openwsmand
Running sfcbd-watchdog stop
Running vpxa stop
watchdog-vpxa: Terminating watchdog process with PID 650002
vpxa stopped.
Running vobd stop
watchdog-vobd: Terminating watchdog process with PID 5170
vobd stopped
Running cdp stop
watchdog-cdp: Terminating watchdog process with PID 5143
Running dcbd stop
watchdog-dcbd: Terminating watchdog process with PID 5122
Running memscrubd stop
memscrubd is not running
Running slpd stop
Stopping slpd
Running sensord stop
watchdog-sensord: Terminating watchdog process with PID 5080
sensord stopped
Running storageRM stop
watchdog-storageRM: Terminating watchdog process with PID 5054
storageRM stopped
Running vprobed stop
watchdog-vprobed: Terminating watchdog process with PID 5013
vprobed stopped
Running hostd stop
watchdog-hostd: Terminating watchdog process with PID 4938
hostd stopped.
Running lbtd stop
watchdog-net-lbt: Terminating watchdog process with PID 4916
net-lbt stopped
Running usbarbitrator stop
watchdog-usbarbitrator: Terminating watchdog process with PID 4896
usbarbitrator stopped
Running ntpd stop
Stopping ntpd
Running SSH stop
SSH login disabled
VobUserLib_Init failed with -1
Running ESXShell stop
ESXi shell login disabled
VobUserLib_Init failed with -1
Running DCUI stop
Disabling DCUI logins
VobUserLib_Init failed with -1
Running DCUI restart
Enabling DCUI login: runlevel =
VobUserLib_Init failed with -1
Running ESXShell restart
ESXi shell login enabled
VobUserLib_Init failed with -1
Running SSH restart
SSH login enabled
VobUserLib_Init failed with -1
Running ntpd restart
Starting ntpd
Running usbarbitrator restart
usbarbitrator started
Running lbtd restart
net-lbt started
Running hostd restart
[653164] Begin 'hostd ++min=0,swap,group=hostd /etc/vmware/hostd/config.xml', min-uptime = 60, max-quick-failures = 1, max-total-failures = 1000000, bg_pid_file = ''
hostd started.
Running vprobed restart
vprobed started
Running storageRM restart
storageRM started
Running sensord restart
sensord started
Running slpd restart
Starting slpd
Running memscrubd restart
The checkPages boot option is FALSE, hence memscrubd could not be started.
Running dcbd restart
dcbd started
Running cdp restart
cdp started
Running vobd restart
vobd started
Running vpxa restart
[653434] Begin '/usr/lib/vmware/vpxa/bin/vpxa ++min=0,swap,group=vpxa -D /etc/vmware/vpxa', min-uptime = 60, max-quick-failures = 1, max-total-failures = 1000000, bg_pid_file = ''
Running sfcbd-watchdog restart
Running wsman restart
Starting openwsmand
Running sfcbd restart
This operation is not supported.
Please use /etc/init.d/sfcbd-watchdog start
esxi-host # |
You should now have another 60 day evaluation license
Resources
Seagate SeaTools is free hard drive testing software. SeaTools for DOS runs independent from your operating system on its own CD or bootable USB drive. You do not need to own a Seagate or Maxtor hard drive to use SeaTools.
- Download the SeaTools for DOS ISO file
- Use 7-Zip to open the SeaTools for DOS ISO file.
- Extract the SeaTools.ima file to your hard drive.
- Rename the
SeaTools.ima file to SeaTools.img.
- Use Image Writer for Windows to write the
SeaTools.img image file to a USB drive on Windows.
- Now you can boot off of this USB drive and run SeaTools for DOS.
Note: Writing the SeaTools for DOS ISO file directly to a USB drive using either Rufus or UNetbootin does not work. When doing so I receive a “BOOTMGR is missing” error message when booting off of the USB drive.
Resources
The free, open source application 7-Zip will allow you to open, navigate and copy files out of ISO files on Windows. 7-Zip is a file archiver with a high compression ratio.
Resources
http://www.7-zip.org/
Notepad++ is a free open source alternative to Window’s Notepad. It supports multi-document (tab interface) and syntax highlighting.
http://notepad-plus-plus.org
winMd5Sum is a free, open source MD5 sum checker that allows you to check and compare the md5 sums of files.
winMd5Sum Portable makes it easy to verify that the files you download are unaltered. Simply drag and drop a file to the window and it will calculate the Md5 sum in seconds. You can even copy and paste the published md5 sum into the compare box to quickly compare it.
An MD5 sum is a cryptographic hash used to verify the integrity of files. So, when you download a file, you can check what the publisher says the MD5 sum is and compare it to the MD5 sum of the file you have. More about MD5..
Published by NullRiver Software. Download here: http://www.nullriver.com/products/winmd5sum.
Also, Microsoft has created the File Checksum Integrity Verifier command-prompt utility that computes and verifies cryptographic hash values of files. Download it here: http://support.microsoft.com/kb/841290.
Unfortunately, I failed to solve this issue, but I got around it.
Initially I downloaded RSSOwl for Linux (64 Bit) from here: http://www.rssowl.org/download. However, I would start to get the error message:
Error Creating Browser: RSSOwl was unable to create a browser for reading news. Please refer to the FAQ for further help. Click 'Ok' to open the FAQ now..
This issue is described in RSSOwl’s FAQ (http://www.rssowl.org/help#item_6j). However, following those instructions did not resolve my problem. Ultimately I downloaed the Ubuntu 64-bit Debian package from here: http://www.ubuntuupdates.org/package/getdeb_apps/precise/apps/getdeb/rssowl. Executing that installation of RSSOwl did have this problem.
References
This Apache configuration snippet can help protect in the case where someone performs a ‘svn checkout’ instead of a ‘svn export’ into a web accessible directory. It denys access .svn directories.
<DirectoryMatch "\.svn/">
Order Deny,Allow
Deny from all
</DirectoryMatch> |
The following procedure will reduce both the ext4 file system and logical volume sizes by 10 GB. Initially the file system uses the entire size of the logical volume. Obviously, there needs to be at least 10 GB of disk space currently available. This procedure needs to be done with the file system unmounted. This should also work fine on ext2 and ext3.
root@ubuntu:/tmp# df -h /dev/mapper/mysql_s1_prod1_raid10-data
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mysql_s1_prod1_raid10-data
241G 647M 228G 1% /local/mysql-s1-prod1_data
root@ubuntu:/tmp# umount /local/mysql-s1-prod1_data
root@ubuntu:/tmp# pvscan
PV /dev/mapper/mysql-s1-prod0-t1-v1_fujitsu2-27 VG mysql_s1_prod0_raid1 lvm2 [78.12 GiB / 0 free]
PV /dev/mapper/mysql-s1-prod1-t1-v1_fujitsu2-32 VG mysql_s1_prod1_raid1 lvm2 [78.12 GiB / 0 free]
PV /dev/mapper/mysql-s1-prod0-t1-v2_fujitsu2-28 VG mysql_s1_prod0_raid10 lvm2 [244.14 GiB / 10.00 GiB free]
PV /dev/mapper/mysql-s1-prod1-t1-v2_fujitsu2-35 VG mysql_s1_prod1_raid10 lvm2 [244.14 GiB / 0 free]
PV /dev/sda2 VG system lvm2 [135.84 GiB / 102.32 GiB free]
Total: 5 [780.36 GiB] / in use: 5 [780.36 GiB] / in no VG: 0 [0 ]
root@ubuntu:/tmp# lvscan
ACTIVE '/dev/mysql_s1_prod0_raid1/data' [78.12 GiB] inherit
ACTIVE '/dev/mysql_s1_prod1_raid1/data' [78.12 GiB] inherit
ACTIVE '/dev/mysql_s1_prod0_raid10/data' [234.14 GiB] inherit
ACTIVE '/dev/mysql_s1_prod1_raid10/data' [244.14 GiB] inherit
ACTIVE '/dev/system/root' [9.31 GiB] inherit
ACTIVE '/dev/system/var' [4.66 GiB] inherit
ACTIVE '/dev/system/tmp' [2.79 GiB] inherit
ACTIVE '/dev/system/swap' [2.79 GiB] inherit
ACTIVE '/dev/system/home' [4.66 GiB] inherit
ACTIVE '/dev/system/opt' [9.31 GiB] inherit
root@ubuntu:/tmp# e2fsck -fy /dev/mysql_s1_prod1_raid10/data
e2fsck 1.41.11 (14-Mar-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mysql_s1_prod1_raid10/data: 127/16007168 files (2.4% non-contiguous), 1170118/63998976 blocks
root@ubuntu:/tmp# resize2fs -Mp /dev/mapper/mysql_s1_prod1_raid10-data
resize2fs 1.41.11 (14-Mar-2010)
Resizing the filesystem on /dev/mapper/mysql_s1_prod1_raid10-data to 291412 (4k) blocks.
Begin pass 2 (max = 88941)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 1954)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 4 (max = 11)
Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/mapper/mysql_s1_prod1_raid10-data is now 291412 blocks long.
root@ubuntu:/tmp# e2fsck -fy /dev/mysql_s1_prod1_raid10/data
e2fsck 1.41.11 (14-Mar-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mysql_s1_prod1_raid10/data: 127/73728 files (2.4% non-contiguous), 160138/291412 blocks
root@ubuntu:/tmp# lvreduce -L -10G /dev/mapper/mysql_s1_prod1_raid10-data
WARNING: Reducing active logical volume to 234.14 GiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce data? [y/n]: y
Reducing logical volume data to 234.14 GiB
Logical volume data successfully resized
root@ubuntu:/tmp# resize2fs /dev/mapper/mysql_s1_prod1_raid10-data
resize2fs 1.41.11 (14-Mar-2010)
Please run 'e2fsck -f /dev/mapper/mysql_s1_prod1_raid10-data' first.
root@ubuntu:/tmp# resize2fs /dev/mapper/mysql_s1_prod1_raid10-data
resize2fs 1.41.11 (14-Mar-2010)
Resizing the filesystem on /dev/mapper/mysql_s1_prod1_raid10-data to 61377536 (4k) blocks.
The filesystem on /dev/mapper/mysql_s1_prod1_raid10-data is now 61377536 blocks long.
root@ubuntu:/tmp# e2fsck -fy /dev/mysql_s1_prod1_raid10/data
e2fsck 1.41.11 (14-Mar-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mysql_s1_prod1_raid10/data: 127/15351808 files (2.4% non-contiguous), 1128998/61377536 blocks
root@ubuntu:/tmp# df -h /dev/mapper/mysql_s1_prod1_raid10-data
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/mysql_s1_prod1_raid10-data
231G 647M 219G 1% /local/mysql-s1-prod1_data
root@ubuntu:/tmp# pvscan
PV /dev/mapper/mysql-s1-prod0-t1-v1_fujitsu2-27 VG mysql_s1_prod0_raid1 lvm2 [78.12 GiB / 0 free]
PV /dev/mapper/mysql-s1-prod1-t1-v1_fujitsu2-32 VG mysql_s1_prod1_raid1 lvm2 [78.12 GiB / 0 free]
PV /dev/mapper/mysql-s1-prod0-t1-v2_fujitsu2-28 VG mysql_s1_prod0_raid10 lvm2 [244.14 GiB / 10.00 GiB free]
PV /dev/mapper/mysql-s1-prod1-t1-v2_fujitsu2-35 VG mysql_s1_prod1_raid10 lvm2 [244.14 GiB / 10.00 GiB free]
PV /dev/sda2 VG system lvm2 [135.84 GiB / 102.32 GiB free]
Total: 5 [780.36 GiB] / in use: 5 [780.36 GiB] / in no VG: 0 [0 ]
root@ubuntu:/tmp# lvscan
ACTIVE '/dev/mysql_s1_prod0_raid1/data' [78.12 GiB] inherit
ACTIVE '/dev/mysql_s1_prod1_raid1/data' [78.12 GiB] inherit
ACTIVE '/dev/mysql_s1_prod0_raid10/data' [234.14 GiB] inherit
ACTIVE '/dev/mysql_s1_prod1_raid10/data' [234.14 GiB] inherit
ACTIVE '/dev/system/root' [9.31 GiB] inherit
ACTIVE '/dev/system/var' [4.66 GiB] inherit
ACTIVE '/dev/system/tmp' [2.79 GiB] inherit
ACTIVE '/dev/system/swap' [2.79 GiB] inherit
ACTIVE '/dev/system/home' [4.66 GiB] inherit
ACTIVE '/dev/system/opt' [9.31 GiB] inherit |
If you already have Ubuntu packages of JRE and/or JDK already installed, then you may leave them installed. However, you must uninstall IcedTea. The IcedTea project provides a harness to build the source code from http://openjdk.java.net using free software build tools and adds a number of features to the upstream OpenJDK codebase.
root@ubuntu:~# aptitude search icedtea
i A icedtea-6-jre-cacao - Alternative JVM for OpenJDK, using Cacao
i A icedtea-6-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
i A icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
i A icedtea-netx - NetX - implementation of the Java Network
i A icedtea-plugin - web browser plugin based on OpenJDK and Ic
v icedtea6-jre-cacao -
v icedtea6-jre-cacao -
v icedtea6-plugin -
i icedtea6-plugin - web browser plugin to execute Java applets
root@ubuntu:~# aptitude remove icedtea6-plugin icedtea-plugin icedtea-netx icedtea-7-jre-jamvm icedtea-6-jre-jamvm icedtea-6-jre-cacao |
Download Java from Java’s website: http://www.java.com. For 64-bit you want Linux x64 (the file name ending with x64.bin). In this example we downloaded jre-6u31-linux-x64.bin.
Then make a directory for Oracle Java. Move the downloaded file into this new directory:
root@ubuntu:~# mkdir -p /opt/java
root@ubuntu:~# cd /opt/java
root@ubuntu:/opt/java# mv /home/username/downloads/jre-6u31-linux-x64.bin . |
Execute the file downloaded:
root@ubuntu:/opt/java$ sh jre-6u31-linux-x64.bin |
This will create the directory /opt/java/jre1.6.0_31 containing your new instance of Java. Its name will match the version of Java downloaded. You may now delete the downloaded Java installation file:
root@ubuntu:/opt/java$ rm jre-6u31-linux-x64.bin |
Tell the system that there is a new instance of Java available:
root@ubuntu:/opt/java# update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_31/bin/java" 1
update-alternatives: using /opt/java/jre1.6.0_31/bin/java to provide /usr/bin/java (java) in manual mode. |
Tell the system to default to the new Java instance:
root@ubuntu:/opt/java# update-alternatives --set java /opt/java/jre1.6.0_31/bin/java |
Verify your system is now using this instance of Java:
root@ubuntu:/# java -showversion
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) |
References
Package repositories for old Ubuntu releases are dropped from Ubuntu’s upstream package repository and are removed from Ubuntu package mirrors. However, Ubuntu still makes them available here: http://old-releases.ubuntu.com/ubuntu/. Here is an example /etc/apt/sources.list file for Ubuntu Dapper:
#
# /etc/apt/sources.list
# Ubuntu Dapper 6.06
#
#
# main and restricted:
#
# These are the primary package archives.
#
deb http://old-releases.ubuntu.com/ubuntu dapper main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper main restricted
deb http://old-releases.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper-security main restricted
#
# universe:
#
# Additional software from the larger pool of debian packages. Gobs and
# gobs of useful software lives here, however, software from this
# repository is ENTIRELY UNSUPPORTED by the Ubuntu team.
#
# Note: Some of the software in this repository may not be under a free
# licence. Please satisfy yourself as to your rights to use the
# software.
#
# Note: Software in this repository WILL NOT receive any review or
# updates from the Ubuntu security team.
#
deb http://old-releases.ubuntu.com/ubuntu dapper universe
deb-src http://old-releases.ubuntu.com/ubuntu dapper universe
deb http://old-releases.ubuntu.com/ubuntu dapper-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu dapper-updates universe
deb http://old-releases.ubuntu.com/ubuntu dapper-security universe
deb-src http://old-releases.ubuntu.com/ubuntu dapper-security universe
#
# multiverse:
#
# Additional software that is "not free", which means the licensing
# requirements of this software do not meet the Ubuntu "main" Component
# Licence Policy.
#
# Note: This software is not supported and usually cannot be fixed or
# updated. Use it at your own risk.
deb http://old-releases.ubuntu.com/ubuntu dapper multiverse
deb-src http://old-releases.ubuntu.com/ubuntu dapper multiverse
deb http://old-releases.ubuntu.com/ubuntu dapper-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu dapper-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu dapper-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu dapper-security multiverse
#
# backports:
#
# Software from a newer release of the distribution, or even from the
# development branch of the distribution, but built against this release.
# It may provide newer features, but should be considered untested.
#
# Note: Software in this repository WILL NOT receive any review or
# updates from the Ubuntu security team.
#
#deb http://old-releases.ubuntu.com/ubuntu dapper-backports main restricted
#deb-src http://old-releases.ubuntu.com/ubuntu dapper-backports main restricted
#deb http://old-releases.ubuntu.com/ubuntu dapper-backports universe
#deb-src http://old-releases.ubuntu.com/ubuntu dapper-backports universe
#deb http://old-releases.ubuntu.com/ubuntu dapper-backports multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu dapper-backports multiverse |
Here is an example /etc/apt/sources.list file for Ubuntu Hardy:
#
# /etc/apt/sources.list
# Ubuntu Hardy 8.04
#
#
# main and restricted:
#
# These are the primary package archives.
#
deb http://old-releases.ubuntu.com/ubuntu hardy main restricted
deb-src http://old-releases.ubuntu.com/ubuntu hardy main restricted
deb http://old-releases.ubuntu.com/ubuntu hardy-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu hardy-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu hardy-security main restricted
#
# universe:
#
# Additional software from the larger pool of debian packages. Gobs and
# gobs of useful software lives here, however, software from this
# repository is ENTIRELY UNSUPPORTED by the Ubuntu team.
#
# Note: Some of the software in this repository may not be under a free
# licence. Please satisfy yourself as to your rights to use the
# software.
#
# Note: Software in this repository WILL NOT receive any review or
# updates from the Ubuntu security team.
#
deb http://old-releases.ubuntu.com/ubuntu hardy universe
deb-src http://old-releases.ubuntu.com/ubuntu hardy universe
deb http://old-releases.ubuntu.com/ubuntu hardy-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu hardy-updates universe
deb http://old-releases.ubuntu.com/ubuntu hardy-security universe
deb-src http://old-releases.ubuntu.com/ubuntu hardy-security universe
#
# multiverse:
#
# Additional software that is "not free", which means the licensing
# requirements of this software do not meet the Ubuntu "main" Component
# Licence Policy.
#
# Note: This software is not supported and usually cannot be fixed or
# updated. Use it at your own risk.
deb http://old-releases.ubuntu.com/ubuntu hardy multiverse
deb-src http://old-releases.ubuntu.com/ubuntu hardy multiverse
deb http://old-releases.ubuntu.com/ubuntu hardy-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu hardy-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu hardy-security multiverse
#
# backports:
#
# Software from a newer release of the distribution, or even from the
# development branch of the distribution, but built against this release.
# It may provide newer features, but should be considered untested.
#
# Note: Software in this repository WILL NOT receive any review or
# updates from the Ubuntu security team.
#
#deb http://old-releases.ubuntu.com/ubuntu hardy-backports main restricted
#deb-src http://old-releases.ubuntu.com/ubuntu hardy-backports main restricted
#deb http://old-releases.ubuntu.com/ubuntu hardy-backports universe
#deb-src http://old-releases.ubuntu.com/ubuntu hardy-backports universe
#deb http://old-releases.ubuntu.com/ubuntu hardy-backports multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu hardy-backports multiverse |
References
Google Chrome and Chromium do not have a master password for saved passwords like Firefox does. If you choose to store passwords for web applications, then here is one method to keep them encrypted on disk within your home directory. It will encrypt your browser profile directories. You will need to enter a “master” password in order to decrypt and allow your browser to access them.
References
First, create an encrypted a directory using TrueCrypt with the path ~/encrypted/encrypted. The sparse file should be around 100 MB since it includes add-ons and cache. The default Google Chrome profile is in the path ~/.config/google-chrome/Default/ and the default Chromium profile is in the path ~/.config/chromium/Default/. The following will move your entire user data directories for your browsers into the encrypted directory.
mv ~/.config/google-chrome ~/encrypted/encrypted
ln -s $HOME/encrypted/encrypted/google-chrome $HOME/.config/google-chrome
mv ~/.config/chromium ~/encrypted/encrypted
ln -s $HOME/encrypted/encrypted/chromium $HOME/.config/chromium
Your stored passwords for Google Chrome and Chromium are stored in your profiles. Hence, if you choose to store your web application passwords in Google Chrome and Chromium, then this is one method to encrypt them within your home directory.
References
Create a password protected encrypted file container using TrueCrypt stored in the path ~/encrypted/encrypted.tc. The following script will decrypt this file and mount it as the directory ~/encrypted/encrypted. It will also unmount the directory when you are done.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| #!/bin/sh
# truecrypt-encrypted
# Mount and unmount an encrypted TrueCrypt directory.
#
# Author: Dave Lehman <dave@nowherelan.com>; http://nowherelan.com
# Date Created: 2012-01-01
# Version: 1.0
################################################################################
SCRIPTNAME=truecrypt-encrypted
ENCRYPTED_FILE=$HOME/encrypted/encrypted.tc
DECRYPTED_MNT=$HOME/encrypted/encrypted
mount(){
mkdir -p $DECRYPTED_MNT
truecrypt --text $ENCRYPTED_FILE $DECRYPTED_MNT
return 0
}
umount(){
truecrypt --text --dismount $DECRYPTED_FILE
return 0
}
status(){
truecrypt --text --list $DECRYPTED_FILE
return 0
}
case "$1" in
--mount)
mount
;;
--umount)
umount
;;
--status)
status
;;
*)
echo "Usage: $SCRIPTNAME {--mount|--umount|--status}" >&2
exit 0
;;
esac
exit 0 |
Recent Comments