Feb272010

Boot Linux (live) Distro from USB

There are alot of Live Linux dstributions. There is an very easy way to run a live distro from USB. Check: http://unetbootin.sourceforge.net/

Distributions with Built-in Support

UNetbootin has built-in support for downloading and installing the following distributions:

Feb262010

Windows Vista/2008 your user profile was not loaded correctly

After you removed the C:\users\someprofile\ you get the error “your user profile was not loaded correctly”. To fix this start regedit go to: HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList search the currupted profile and remove the key.

Feb262010

Spamassisn Update

Update Deamon

sa-update -D

Restart Service

service spamassassin restart

Check version

perl -MMail::SpamAssassin -e ‘print $Mail::SpamAssassin::VERSION;’

Feb252010

Configure Jumbo Frames in esx 4 Vsphere

Jumbo Frames !!!!!!

-> Lets understand what’s Jumbo Frames first and how it benefits us … 

  • Jumbo frames are Ethernet frames with more than 1,500 bytes of payload (MTU). Conventionally, jumbo frames can carry up to 9,000 bytes of payload.
  • Jumbo Frames allow ESX Server to send larger frames out onto the physical network. The network must support Jumbo Frames end‐to‐end for Jumbo Frames to be effective.
  • iSCSI with jumbo frames gives better or rather much better performance .If you are getting sluggish performance then try enabling jumbo frames 

So let’s activate it, I have used Jumbo frames only with SW initiator not HW one so if some can comment on how it works on HW it would be in for a great benefit.

Most probably you might have your VMkernel setup with 1500 MTU so we need to delete it and start over again. Its recommend to start from 0 but if you wish you can enable the jumbo frames on the fly, it won’t throw any errors.

In my case vSwitch1 was used as VMkernel for iscsi.

Step  1:
[root@esx sysconfig]# esxcfg-vswitch -d vSwitch1
Step 2:

Then I went ahead and did a listing

[root@esx sysconfig]# esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch0       32          3           32                9000    vmnic0

PortGroup Name      VLAN ID  Used Ports  Uplinks
VM Network          0        0           vmnic0
Service Console     0        1           vmnic0

As it can be seen no VMkernel

Then lets start the stuff ………

Step 3:

Add a vSwitch

[root@esx sysconfig]#  esxcfg-vswitch -a vSwitch1

Step 4:

List it….
[root@esx sysconfig]#  esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch0       32          3           32                9000    vmnic0
PortGroup Name      VLAN ID  Used Ports  Uplinks
VM Network          0        0           vmnic0
Service Console     0        1           vmnic0
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch1       64          1           64                1500
PortGroup Name      VLAN ID  Used Ports  Uplinks

Step 5:
Lets set the jumbo frames AKA MTU

If you wish you can execute the below command on the fly to your vSwitch without deleting it
[root@esx sysconfig]# esxcfg-vswitch -m 9000 vSwitch1
List it to see the diference
[root@esx sysconfig]#  esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch0       32          3           32                9000    vmnic0
PortGroup Name      VLAN ID  Used Ports  Uplinks
VM Network          0        0           vmnic0
Service Console     0        1           vmnic0
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch1       64          1           64                9000
PortGroup Name      VLAN ID  Used Ports  Uplinks
As it can be seen MTU is now 9000 not 1500

Step 6 :
Lets assign a NIC to the newly created vSwitch
[root@esx sysconfig]# esxcfg-vswitch -L vmnic1 vSwitch1
The result
[root@esx sysconfig]# esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch0       32          3           32                9000    vmnic0
PortGroup Name      VLAN ID  Used Ports  Uplinks
VM Network          0        0           vmnic0
Service Console     0        1           vmnic0
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch1       64          2           64                9000    vmnic1
PortGroup Name      VLAN ID  Used Ports  Uplinks
Step 7:
Lets give it a port group
[root@esx sysconfig]#  esxcfg-vswitch -A VMkernel vSwitch1
Step 8:

Lets see Whether we got desired output
[root@esx sysconfig]#  esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch0       32          3           32                9000    vmnic0
PortGroup Name      VLAN ID  Used Ports  Uplinks
VM Network          0        0           vmnic0
Service Console     0        1           vmnic0
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch1       64          2           64                9000    vmnic1
PortGroup Name      VLAN ID  Used Ports  Uplinks
VMkernel            0        0           vmnic1
Step 9:

Now lets give it IP
[root@esx sysconfig]#  esxcfg-vmknic -a -i 192.168.0.11 -n 255.255.255.0 -m 9000 VMkernel
Hmm the output is ……..
[root@esx sysconfig]#  esxcfg-vswitch -l
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch0       32          3           32                9000    vmnic0
PortGroup Name      VLAN ID  Used Ports  Uplinks
VM Network          0        0           vmnic0
Service Console     0        1           vmnic0
Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks
vSwitch1       64          3           64                9000    vmnic1
PortGroup Name      VLAN ID  Used Ports  Uplinks
VMkernel            0        1           vmnic1
Property of vmknic
[root@esx sysconfig]#  esxcfg-vmknic -l
Interface  Port Group/DVPort   IP Family IP Address                              Netmask         Broadcast       MAC Address       MTU     TSO MSS   Enabled Type
vmk0       VMkernel            IPv4      192.168.0.11                            255.255.255.0   192.168.0.255   00:XX:83:91:23:14 9000    65535     true    STATIC

Source: http://moizzy.blogspot.com/2010/02/configure-jumbo-frames-in-esx-4-for.html

Feb122010

WPA Cracking

http://g0tmi1k.blogspot.com/2009/07/video-tutorial-how-to-crack-wpawpa2.html

Jan242010

SSH/Joomla secure web rights with chmod

Hi,

2 easy commands to secure your Joomla site:

cd /var/www/somewebdir/
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

Jan242010

Open new tabs in far right

Fix New Open Link in New Tab Behavior in Firefox 3.6

New to Firefox 3.6, when you are on a page, and you want to open a link in a new tab – rather than opening the link in the far right of the tab bar, Firefox will now open the link right next to the tab you are in.  Now, while this might be convenient for some, it is a feature I don’t really need.  So here is how you can disable the new “Insert Related Tab After Current” tweak in Firefox 3.6.

Make New Tab Pages Open in the Far Right of the Tab Bar

  • Type about:config in the address bar. Then, if needed click the “I’ll be careful, I promise!” button.
  • Next, in the filter box – type in:
    • tabs.insertRelatedAfterCurrent
  • Right-click that about:config entry, and select “Toggle”

This will convert Firefox back to loading opening a new tab from a web page on the far right of the tab bar, rather than right next to the tab you opened it from.

To switch back, follow these same steps and toggle the “false” back to “true”.

This should help those of you out there who do not like this new feature to Firefox 3.6, or are just not ready to switch how you open a page in a new tab just yet.

Source: http://www.firefoxfacts.com/2010/01/22/firefox-3-6-fix-open-new-tabs-in-far-right/

Jan172010

Change your voicemail pickup time

It is very frustrating when you want to pick up the phone and you voicemail is faster than you. There is a way to change the delay of your voicemail:

Press: **61*0031624|phonenumber|*11*|delay-in-sec-max-30|# and then your dial button.

Jan122010

Migrate my Joomla 1.0.15 to 1.5.x

Yes, I know… My Joomla site is very old. In this article I will write down all my migration steps. The best practise is to create a development environment. I download and install a Debian 5.0 (lenny) OS and installed all the common LAMP, SSH, Samba, PHPMyadmin & ImageMagick  packages. Then:

  1. I Copy the content of my site to my development environment
  2. Edit the joomla configuration.php file and change my physical paths
  3. Upload my database
  4. Check all my joomla modules
  5. set 777 permisions for easy testing ;)
  6. I know from earlier testing that mine Joomla template is not compatible with 1.5. So I download and install Artisteer 2 to create a new template. This software works so easy I created the template with my girlfriend ;) (download torrent)
  7. My Biggest concern is the community builder component and the forum. This are the most important modules so I will upgrade them first.
  8. Backup administrator/components/com_comprofiler/ue_config.php, remove the CB module and reinstall the latest versions. (note: latest CB have 1.5.10 native support)
  9. My Fireboard version is aleady to the latest version (1.0.5 RC2) :D
  10. Now I will install the migrator tools and follow the 5 migration steps @ http://docs.joomla.org/Migrating_from_1.0.x_to_1.5_Stable
  11. I have installed the migrator and the fireboard ETL’s. After that I create A SQL Dump. Now I must create a new 1.5 install and import everything.
  12. Note: You can now download your SQL dump file and upload it into your Joomla! 1.5 installation to continue the process. Don’t forget to select migration and use the prefix ‘jos_’ (this migrator rewrites your prefix to jos_ even if the sites prefix is different).
  13. I found a small community builder howto @ http://www.alledia.com/blog/joomla-15/migrating-to-joomla-15/
  14. * Step 1: Export the Community Builder database tables from 1.0
    * Step 2: Download administrator / components / com_profiler / ue_config.php
    * Step 3: Install CB on the 1.5 site:
    * Step 4: Delete the CBt database tables on 1.5 and import the old tables from 1.0
    * Step 5: Upload the old ue_config.php to administrator / components / com_profiler / ue_config.php
  15. For expose I can install the latest version. The copy the ../components/com_expose/expose/img and xml folders to the new site. That as very easy :)
  16. For the CB Profile pictures I copy images/comprofiler to the new site.
  17. .. to be continued

Template fix:

Extensions > Module manager > Top Menu (or any other menu, e.g. Main Menu) > click to Edit this module > select Position = user3. Save the configuration and go to the frontpage. You should see your Artisteer style applied to the menu items.

And first assign another default template and then your template

http://thepiratebay.org/torrent/5252382/Artisteer_2.3.0.23023___Crack_Loader___VirusFree___Working
Jan122010

Nice Debian sudo Quote

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.