Mar 06

Trying to mount a windows share into Ubuntu 16.04 LTS.  I could run the following command just fine:

sudo mount -t cifs -o domain=workgroupname,username=myname,password=mypassword //192.168.1.15/music /media/music

But of course would lose the map on reboot.  So install “sudo apt-get install cifs-utils” and then Everytime I tried to add to fstab and “sudo mount -a” I would get the mount error(13) permission denied.

What fixed it was changing the sec on my command to “ntlmsspi”.  Hope this helps someone else.  So my command in fstab (/etc/fstab) is

//192.168.1.15/music /media/music cifs username=myname,domain=workgroupname,password=mypassword,
iocharset=utf8,sec=ntlmsspi 0 0

Now that you have this working you need to create a .smbcredentials file in the /root directory to contain and hide my credentials,

Enter your Windows username and password in the file:

username=msusername
password=mspassword
domain=workgroupordomain

“sudo chmod 700” that file.  and change the fstab line command to :

//192.168.1.15/music /media/music cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlmsspi 0 0


Share
Jun 09
  1. Boot with Knoppix live disk or usb
  2. Open a terminal window in Knoppix
  3. Type “sudo sfdisk -l” to see what your disk (that you want to wipe) is mounted as (example – sda1)
  4. Type “sudo shred -vfz -n 100 /dev/sda1” – IMPORTANT – Substitute the disk name learned from above command.  Note that the 100 is the number of passes (and can be changed)
Share
Aug 18

I keep all my sensitive documents encrypted in Truecrypt volumes (don’t you?).  But I ran into a problem when I wanted to share a Truecrypt volume across my home network.  I had to setup the share every time I mounted the volume.

Then it hit me; my flaw was that I was trying to set up a share within the Truecrypt volume.  I needed to set up a share and then mount the TC volume inside that share.  But you can’t mount a Truecrypt volume to a directory.  Humm….

Enter Hardlink Shell Extension.  HSE will let you create Volume Mount Points in Windows.  That will let you “map complete local volumes onto arbitrary disk locations”.  So you can create a VMP (as a folder) and point it at the drive letter of your TC volume.  That way whenever you mount the TC volume to that drive letter, it will already be shared.

After installing the HSE, Mount your TC volume, right-click, and select “Pick Link Source”

pick-link

Now go to the drive you are going to set up your shared folder and right click.  Then select “Drop As…” and “Volume Mountpoint”.

drop-vmp

Now just share the resulting folder.

When you mount the TC volume (or any TC volume for that matter) to the drive letter you selected as your “Link Source” it will be shared.

–Zen

Share
Apr 15

I found a great article about a script to mount a TrueCrypt Volume on Windows here.  It also detailed a script to unmount the volume.

I decided to improve on it a bit, and allow the same script to mount and unmount the volume (by testing to see if the volume is mounted).  I did not include his password parameter because TrueCrypt will ask for the password anyway. And I really don’t want to code my password into any script.

So here is the script:

REM TrueCrypt mounting script (version 2)
REM Based on script Written by Mark Ursino (allthingsmarked.com)
REM Modified by Zen (Zenmojo.com)
REM Modifications are allowed, but please include these comments
@echo off

set TrueSource=I:\TrueCrypt\truecrypt
set Source=I:\volume.cab
set Drive=O:

IF EXIST “%Drive%” goto unmount

:mount
cls
“%TrueSource%” /v “%Source%” /l “%Drive%” /m /a /p /q
explorer.exe “%Drive%”
cls
goto end

:unmount
cls
“%TrueSource%” /d”%Drive%” /q
cls
goto end

:end
cls

Notes:
TrueSource is the location of your truecrypt.sys file (from the stand-alone version of TrueCrypt)
Source is the source of your TrueCrypt file
Drive is the drive letter you want to mount the file to

Share
Jan 31

All credit has to go to Cory Webb: http://www.howtojoomla.net/content/view/17/2/
I just added a few steps. Feel free to comment below.

Step 1: Backup everything!

The first thing you want to do is backup all files within your Joomla! installation. Create a folder on your local system, and download all files to that folder using your ftp client application. I used FileZilla as my ftp client application to download all of my files to a folder on my desktop I named “howtojoomla”.

Step 2: Export your database

Note: For this step, it really helps if you have phpMyAdmin installed on your server. Most hosting companies have phpMyAdmin already installed. If you are unsure, ask your hosting provider.

The second thing you need to do is export your Joomla! database. The best thing to do is to export it into an SQL file, which makes importing it easier in a later step. An SQL file will contain all of the necessary SQL commands for creating your database tables and filling them with your data. Be sure you export the entire database.

1) go to your PHP MyAdmin panel

2) Select the Database which you want to Backup

3) Click the Export Tab

4) Click Select all for tables on Export

5) Choose SQL at export type

6) For Structure, select Add AUTO_INCREMENT value, and Enclose table

7) For Data, select Complete inserts, Extended inserts and Use hexadecimal for binary fields

8) Select Save as File and no compression. Click Go and save sql file

9) Go to new PHP MYAdmin panel

10) Create a new DB of the same name

11) Click Import Tab

12) Select File and click Go to import the sql file

13) Go back to the new PHP MyAdmin panel, and select Privileges

14) Add user (should be same username and password of your old DB), and host

15) Select Grant all privileges

16) Next to Global Privileges, click Check All to check all the privileges.

17)

Step 3: Modify configuration.php

This step is very important. Go to the folder on your local system to which you downloaded all of your Joomla! files. In the first level folder, you will find the file named “configuration.php”. Open this file with a text editor and make the necessary changes. Your variables may be different, so find the variables that contain these settings and change them. At the very least, you will probably need to change the following parameters:

  • $mosConfig_absolute_path: This is the absolute server path to your new Joomla! installation. It will probably look something like “/path/to/joomla/installation”.
  • $mosConfig_cachepath: This is the absolute server path to the cache for your Joomla! installation. It will probably look something like “/path/to/joomla/installation/cache”.
  • $mosConfig_live_site: This is your website’s url. It will be something like “http://www.yoursite.com”.
  • $mosConfig_host: This is the location of the server that hosts your MySQL database. For most instances, this value will be “localhost”. If you are unsure, ask your hosting provider.
  • $mosConfig_db: This is the name of your MySQL database.
  • $mosConfig_user: This is the database user name. Make sure this user has all privileges on your database.
  • $mosConfig_password: This is the password for your MySQL database user.

Step 4: Upload all of your files to your new server

Using an ftp client application (like FileZilla), upload all of your files to the location on your new server where you want to install Joomla!.

Step 5: Test your new installation

Your move should now be complete, but please don’t take my word for it. Test your site to make sure that everything is in it’s proper place and working the way you expect it to. For example, if you did not use relative url’s for your links on your old site, they will not work properly on your new site.

Share
Oct 24

This is where I will catalog some of my favorite software
—————————————————————

7-ZipCommand-line and Windows shell utility for manipulating ZIP archives

Audacity – The Free, Cross-Platform Sound Editor

AudioGrabber – a great, and simple CD to MP3 Ripping software

CamStudio – Free Video Screen Capture Software

Clamwin – Free Software Open Source Virus and Spyware Scanner

Folder2ISO – creates an iso from any kind of folder (with the subfolders).

Hardlink – Split directories up to Span CD/DVD

Icons from File – Ever wanted to extract the icon from an exe file? No? Well, here is the program anyway.

ISORecorder – Free CD Image Burner and CD to CD Copier program for Windows

NTSFLink – a set of Windows Shell Extensions which hook into Explorer, providing extended functionality for creating and using hard links, as well as junction points on NTFS file systems.

Nvu – A complete Web Authoring System

Pandora’s Jar – to “time-shift” Pandora internet radio

ScreenRecoder from UltraVNC – A free Screen Recorder software package

SDP Multimedia – If you want to save a streaming Microsoft video (like an ASX playlist), then this is the tool you need

UltraVNC – VNC that will authenticate users via ldap or AD.

VDownloader – If you want to save that great Google Video or YouTube video, you need this tool

Xenu’s Link Sleuth – Find broken links on your site

zamzar.com – Web-based File Converter

Share
Jun 26

Why would you want to, you ask? Because FLAC is a Lossless Format. So your music sounds much better.

First you will need the FLAC Codec (Here)

Then you will need a ripper, I use Audiograbber (Here)

Then you will need the Codec to play (Here)

Share
May 20

To “Timeshift” pandora radio, you need Pandora’s Jar. It can be a bit complicated to get started, until now.

Here are the Windows installers to get Pandora’s Jar working.

Here is the Forum: http://www.hak5.org/forums/index.php?showforum=21

Updated: 9/30/2010

Share
Mar 20

http://tetlaw.id.au/view/javascript/really-easy-field-validation

Share
Feb 14

Here is the big list

Share