SteveOH

Tag: ubuntu

Ubuntu / RoundCube WebMail Domain Mismatch Issue – Internet Explorer – ERROR: Your Browser Does Not Support / Accept Cookies

by Steve Hernandez on May.16, 2009, under Technology

Introduction

When the domain in the URL of your RoundCube instance and the domain the page is actually being rendered from are different are different, you will recieve an odd error message – your browser does not support cookies – from RoundCube.  My set up has an iFrame from one Domain redirecting to another, where RoundCube sits.  Why did I do that? Because the actual domain is ugly and my client requested the web login to their email be the same as the actual domain their emails come from.

FireFox and Chrome allow the login to work fine, but not IE.

However, Internet Explorer does not allow cookies from a 3rd party domain (the second one in the iFrame) to be downloaded, and silently deletes them – security measure I suppose – it is widely documented.  The only way to get around this is to modify the headers sent to notify the browser that the mismatch is intended.

Problem

Email Domain: emailDomain.com
Web Server Domain: webDomain.com
RoundCube URL: webDomain.com/webmail
IMAP Server: mail.emailDomain.com
Redirects: emailDomain.com redirects HTTP traffic to webDomain.com, emailDomain.com redirects SMTP traffic to webDomain.com

NOTES: emailDomain.com is basically just an alias. 

If you try to login through webDomain.com via RoundCube (actually type in webDomain.com/webmail) it will work, the cookies will match up and everyone will be happy.

If you try to login through emailDomain.com (which will open up webDomina.com/webmail in an iFrame) it will not work with Internet Explorer 7 or 8.

Solution

I added the following line of code to the first line of code (after the comments) within the index.php file.

file: /var/www/webmail/index.php (please note that webmail is where RoundCube is installed)

header(‘P3P:CP=”IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT”‘);

1 Comment :, , , , , , , more...

Adding multiple users to Ubuntu e-mail Server using a script

by Steve Hernandez on May.16, 2009, under Technology

These two scripts are very important for the system admin who regularly works with mail servers and somehow forgets to backup his system username and password! Let’s say somehow we lost the usernames and passwords of the mail server. In this case the admin has to manually create all the users and then change the passwords for all the users. Tedious job. Let’s make our life easier.

First create a file which contains all the user name. Something like this:

nurealam
nayeem
mrahman
farid
rubi
sankar

Save the file as userlist.txt. Now create the following bash file:

#!/bin/sh
for i in `more userlist.txt `
do
echo $i
adduser $i
done

Save the file and exit.

chmod 755 userlist.txt

Now run the file:

./userlist.txt

This will add all the users to the system. Now we have to change the passwords. Let’s say we want username123 as password. So for user nayeem the password will benayeem123rubi123 for user rubi and so on.

Create another bash file as follows:

#!/bin/sh
for i in `more userlist.txt `
do
echo $i
echo $i"123" | passwd –-stdin "$i"
echo; echo "User $username’s password changed!"
done

Run the file. All the passwords are changed.

If you want to force all your users to change password, use the following code:

Force all your users to change their passwords because the temporary password is a security risk

#!/bin/sh
for i in `more userlist.txt `
do
echo $i
echo $i | change -d 0 "$i"
echo; echo "User $i will be forced to change password on next login!"
done

I then log as that user and see this

WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user amcorona.
Changing password for amcorona
(current) UNIX password:

Leave a Comment :, , , , , , , , , more...

Ubuntu Mail Server – PostFix, DoveCot, RoundCube Authentication Error

by Steve Hernandez on May.11, 2009, under Technology

I’ve been dealing with this error for the past 2 weeks, trying to authenticate to my IMAP Mail Server (dovecot) over SSL (SASL). I continuously received errors for IMAP authentication. AtMailOpen did not work (and I cannot get it to authenticate correctly). So I tried RoundCube, which looks like a good mesh of functionality and aesthetics.

RoundCube installed great – easy and straight forward. Here is the error I received:

IMAP Error: Authentication for steveoh@thelambdas.com failed (LOGIN): “a001 NO Authentication failed.”

Warning: Cannot modify header information – headers already sent in /var/www/webmail/program/include/rcmail.php on line 951

There is very little to no solutions out there.  So I had to play with the configuration file and each argument, one by one (file: main.inc.php in the config directory).

Leave the username_domain field blank.  My server, apparently, doesn’t require the full email address, only the user name, for authentication.

From:
$rcmail_config['username_domain'] = ‘example.com’;

To:
$rcmail_config['username_domain'] = ”;

This solved the problem, and I’m able to log in using ONLY the user name (ie. username, not username@example.com).

Good luck.

1 Comment :, , , , , , , , more...

Ubuntu / Vista Dual Boot – Full Encryption with TrueCrypt

by Steve Hernandez on Mar.12, 2009, under Technology

sda1: Windows Vista encrypted with TrueCrypt
sda2: Ubuntu Hardy Heron /boot partition (not encrypted)
sda3: Ubuntu Hardy Heron encrypted volume with LVM inside and / and swap partions within LVM (to save partitions used overall incase it gets over 5 partitions)
sda4: Working on installing OSX Leopard on this partition currently.

The steps I used are as follows, in brief:
1) Installed Vista first (actually pre-installed on laptop)

2) Installed Ubuntu second using encrypted physical volume with LVM inside it and 2 partions / and swap inside the LVM(at this point, grub was in the MBR)

3) Ran full windows system encryption (not full disk encryption) through TrueCrypt and let it write its bootloader to the MBR. (obviously overwriting Grub in the MBR)

4) Booted with a live cd and copied the truecrypt bootloader from the MBR to a file in the /boot partition (sda2)
use these commands to do so:
dd if=/dev/sda of=/mnt/boot/truecrypt.mbr count=1 bs=512
dd if=/dev/sda of=/mnt/boot/truecrypt.backup count=8 bs=32256

5)Reinstalled grub to the MBR using these commands:
sudo grub
install (hd0,1)/grub/stage1 (hd0) (hd0,1)/grub/stage2 0×8000 p

6) Added a chainloader to the menu.lst Vista entry to point to the truecrypt bootloader within the /boot partition like so:

title Windows Vista/Longhorn
rootnoverify (hd0,0)
makeactive
chainloader (hd0,1)/truecrypt.mbr
boot

The only partition not encrypted in the /boot partition so far, which is fine. After grub loads, no matter which OS I choose, I enter a passphrase and that OS starts.

For more detailed instructions which I pulled from but which are for XP instead of Vista, use this link:

http://ubuntuforums.org/showthread.php?t=761530

5 Comments :, , , , , , , , , , more...

Ubuntu (Hardy Heron) freezes while playing MP3

by Steve Hernandez on Dec.03, 2008, under Technology

I believe this to be caused by a recent update to the GStreamer plugins and codecs for MP3.

To solve this problem, I had to completely remove (using Synaptic) Totem, MusicPlayer and GStreamer, reboot, and reinstall Totem.  Then open an MP3 and it’ll ask to install the GStreamer codecs.

Next time you run updates, make sure you deselect those dealing with audio.

Leave a Comment :, more...

Ubuntu on a Flash Drive (or SSD)

by Steve Hernandez on Dec.02, 2008, under Technology

Use these tips to speed things up.  My Ubuntu boots up in 34 seconds (to login screen) from 49 seconds and loads Gnome in 6 seconds now.  My flash drive is a Super Talent 8GB SM Style USB Flash Drive, with sustained reads at 30 MB/s. and writes at around 10 MB/s (I believe).

http://wiki.eeeuser.com/yet_another_way_to_install_ubuntu_710

Leave a Comment : more...

Fix Windows MBR using Ununtu

by Steve Hernandez on Sep.10, 2008, under Technology

So, I’ve been dieing to get an Ubuntu LiveUSB drive to work correctly.  I’ve been semi-successful.  It will work, but once you put it on another computer it gets flakey.

Anyway, I tried utilizing the standard Ubuntu installation from the CD, which allows you to simply install to a USB Flash drive.  Great.  I was doing this on a laptop with Windows XP already installed.  What the installer did, however, was overwrite the MBR of the Windows XP installation and installed GRUB (this is standard and OK).  However, this isn’t what I needed, because the system will not boot up if the USB drive is not connected – There’s no BOOT LOADER! ahh!

I tried using a Windows Installation Disk to fix it, however, I did not have drivers (or a floppy drive for that matter) for the SATA Hard Disk Drive (HDD) (BTW, what’s up with Windows STILL not fully supporting SATA out of the box for XP?!  Maybe it’s SP2’s fault, who knows).  So therefore, I could not use the typical fixmbr command from the Recovery Console.

To fix it I did the following.  I booted up using the Ubuntu installation on the USB drive.  Then I ran the following commands:

  1. sudo apt-get install lilo
  2. sudo fdisk -l
  3. Find the windows installation: mine was on /dev/sda
  4. sudo lilo -M /dev/sda
  5. sudo reboot 0

This will place a boot loader on the windows disk and allow it to boot, without a hitch.  No, the Windows bootloader is not installed, but it works, and you will not notice the difference.

I hope this helps.  Good luck.

Leave a Comment :, , , , , more...

Vundo / VundoMunde / VundoMundo Trojan Removal

by Steve Hernandez on Jun.24, 2008, under Technology

So I recently got bombarded with 2 infections of this pesky beast. Some variants are easy to remove (SpyBot can simply pull them out) but the variant I came across was resilient. It loaded a DLL into the Winlogon.exe (injection) executable file (the Windows process responsible for authentication to the Operating System – Windows cannot run without it) and ran from there. So you can’t kill the process, because the OS will reboot. You can’t delete the DLL file, because the OS has it locked. Basically, it’s like a tumor in the center of your brain… there’s really no winning.

There are a few solutions out there (very few) such as Bayles’ solution and this one from a poster on TechRepublic , but unfortunately, neither was any good for me. Bayles’ solution works for variants that inject into Explorer.exe, which is loaded once the OS is loaded and you log in. However, winlogon is loaded as one of the first steps in loading the registry, so it’s loaded even before you press control-alt-delete (it’s actually the process that shows you the login screen). The other solution could have worked had I had administrative privileges on my machine, but I did not (this is my work machine). Therefore, I had to find another solution to bypass the OS from reinfecting itself, but still have access to the underlying file system.

I could have removed the hard drive, but I did not have another laptop to install the HDD into. I couldn’t boot to the Recovery Console using an XP CD, because I did not know the Administrative password. So my solution? I booted the laptop using an Ubuntu Linux CD I had in my laptop bag. Here’s what I did.

  1. Boot normally in Windows XP and get the names of the infected DLLs using Bayles’ method (again, pendmove won’t work because winlogon is placed in memory (with the infected DLL) before pendmove is loaded).
  2. Reboot using Ubuntu CD – hit enter at the first screen (Run or Install Ubuntu)
  3. Unmount the NTFS file system (on a typical installation, it will be the entire drive) – We do this because the standard driver file is a read-only NTFS driver.
  4. Open a terminal and install the ntfs-3g packages
    1. sudo apt-get install ntfs-3g
  5. Create mount point
    1. sudo mkdir /mnt/test
  6. Mount the hard drive
    1. sudo mount -t ntfs-3g /dev/sda1 /mnt/test
      1. /dev/sda1 – is the partition we want to mount, yours may be different
      1. /mnt/test – is the directory in which to mount the partition
  7. You can then browse to the windows/system32 directory and delete the infected DLLs (in my case the path was /mnt/test/windows/system32/sbbqikklll.dll)
  8. Reboot and then you must run some scanners. I suggest running SpyBot to clean up the rest of the garbage, and then maybe an anti-virus scanner (I used Symantec Corporate). Finally, run the Windows Malware Removal Tool.
    1. This step is extremely important. This trojan downloads other infections to your systems (ads, other programs, etc). Who knows if these other files contain other viruses, trojans, keyloggers, etc.

I hope this helps. Contact me if you need any special assistance.

Leave a Comment :, , , , , , , , , , more...

Professional Resume of Steve Hernandez

by Steve Hernandez on Mar.30, 2008, under Uncategorized

Steve O Hernandez

.: Professional Resume :.

I may be contacted directly either by the contact form or via email at

My Current Resume – Plain PDF version of my resume skills and experience

5.08 – Present Nova Southeastern University North Miami Beach, Fl

Senior Software Engineer (Programmer / Analyst III)

  • Developed custom applications to increase efficiency and performance for internal use of employees.
  • Streamlined operations using business process analysis to define functional requirements.
  • Applications built utilizing ASP.NET (VB) 3.5 in the Visual Studio 2008 Professional Development Suite.
  • ASP.NET Atlas (AJAX) implemented in all applications to increase user experience and application efficiency with a dynamic user interface (UI).
  • Website, user interfaces and portals designed from scratch, utilizing such tools and technologies as CSS, XHTML, Photoshop CS3 and slicing, Dreamweaver CS3 and Flash CS3.
  • Reported directly to the Director of Emerging Technologies, a division of the Office of Information and Communications.
8.2006 – Present Daily Management, Inc. Weston, Fl

Network Administrator

  • Maintained diverse network infrastructure of Windows 2000 and 2003 servers, Windows 2000 and XP workstations, Cisco and LinkSYS routers, and a variety of other intricate hardware.
  • Network consisted of 35 Windows Server 2000 and 2003 servers, including several Citrix Servers, email and web servers, SQL 2000 server, and over 350 Windows 2000 and XP workstations in 6 states.
  • Administered the 8 existing domains and their Active Directories, as well as user privileges.
  • Implemented security procedures and feature to ensure network secutiry, such as hardware and software firewalls (ie. FortiGate, etc), virus protection (Symantec, Sunbelt), spam, spyware, etc. using enterprise software.
  • Coordinated day-to-day operations, maintenance, monitoring, software installation, protocol configuration, and problem resolution.
7.2006 – Present Lambda Theta Phi Hollywood, Fl

National Director of Information Technology

  • Created and maintained several event and organizational websites, including design, layout, functionality, programming and database driven applications using ASP.NET, ASP and PHP connected to mySQL, MSSQL and Access databases, including Membership Directory, Request and Response system, a tracking system, etc.
  • Oversaw a team of 10 members responsible for IT infrastructure development for the national organization as Project Manager and Team Leader..
  • Created policies and procedures for the membership, including training and governance material for over 100 entities in over 20 states.
  • Worked in a diverse environment with superiors and coworkers via email, teleconference and video conference.
  • Sat on the Board of Directors and oversaw daily operations of the operations of the national non-profit entity, in conjunction with 10 other directors and various committee members.
  • Developed a private member intranet (web accessible) to foster information flow and relationship development which included a bulletin board, job board, member directory, permission flexibility and many other useful and productive features.
6.2006 – 6.2007 SmartSource, Inc. Fort Lauderdale, Fl

Network and Systems Engineer

  • Workstation troubleshoot, installation and calibration: Windows XP, Windows 2000 and Windows 98.
  • Windows 2000 and 2003 server installation and calibration based on client specifications.
  • Complete network installation, including preconfigured Cisco routers, SonicWall Firewalls, 3COM switches, etc.
  • Printer maintenance, troubleshooting and installation: HP LaserJet Series, Brother, Canon.
  • Cisco VoIP Phone installation and calibration. Network troubleshooting and implementation.
- ValCom / Grainger: 5/06 - InSight / VLAX: 6/06 – Present
1.2006 – 6.2006 Fast Train, Inc. Fort Lauderdale, Fl


Instructor of Information Technology

  • Taught several classes of students, ranging from four to ten students each, covering topics related to becoming a Computer Repair Technician or Network Technician.
  • Courses focused on preparation for the CompTIA A+ Hardware, CompTIA A+ Software, CompTIA Network+ and several MCSE 2003 certification examinations.
  • Successfully maintained a 75% passing rate for students.
  • Designed, planned and implemented curricula, tests, lectures and laboratories where students were ensured hands on experience for the field.
10.2003 – 12.2005 S&R Processing, Inc. Miramar, Fl


Vice President / Technology Manager

  • Implemented company’s network infrastructure, of: ten workstations and three Server 2003 servers.
  • Designed and implemented company’s intranet using ASP.NET and provided full documentation of plans and codes.
  • Completed hardware and software support for all users, including clients.
  • Set up inner-office procedures for optimum workability and efficiency, allowing the company to double it’s 1st, 2nd and 4th quarter revenues in 2004.
  • Managed four to six employees, dictated assignments and projects.
  • Assisted the company to reach goals of attaining the greatest market share for out-sourced mortgage processing in the State of Florida, only one year after the founding of the firm.
  • Trained new and current personnel with computer systems, website, intranet and company protocol.
8.2004 – 2.2005 Luxury Yacht Group Fort Lauderdale, Fl

Web Programmer

  • Visual Basic .NET web based programming for a multi-million dollar yacht chartering company with four websites servicing over 2000 users a day.
  • Responsible for MSSQL 2000 relational database design and implementation, as well as documentation and reporting for all current and future projects.
  • Responsible for testing and maintenance of the organization’s websites and intranets.
  • Created dynamic web pages with client-side and server-side technologies, specifically HTML, ASP.NET, JavaScript, VBScript and SQL relational database interfaces using DreamWeaver as primary development tool, and integrated multimedia components for a dynamic experience.
  • Upgraded all ASP 3.0 to ASP.NET 1.0 to ensure a quality end-user experience, as well as increase efficiency and usability. This upgrade was completed two months before deployment deadline.
6.2003 – 8.2004 Nova Southeastern University Fort Lauderdale, Fl

Part-Time Computer Technician

  • Supervise and manage the proper use of equipment in computer labs.
  • Assist end-users with technical questions and problems regarding hardware and software installation.
  • Maintain and test all laboratory equipment periodically, ensuring proper function and operation.
  • Responsible for the repair and calibration of lab equipment, including desktop computer and network components, and printers.
  • Upgraded and serviced desktop workstations, as well as routine maintenance on all systems in the facility.

Education

3.2008 – 6.2010 Nova Southeastern University Fort Lauderdale, Fl

Doctor of Philosophy in Computer Science

  • Research topics: Artificial Intelligence, Communication Networks, Information Security, Data Mining and Machine Learning.
1.2007 – 3.2008 Nova Southeastern University Fort Lauderdale, Fl

Masters of Science in Computer Science

8.2002 – 5.2005 Nova Southeastern University Fort Lauderdale, Fl

Bachelors of Science in Computer Science

  • Minor: Business Administration

For more information please click here

 

Extra Curricular Activities

Activities:

Lambda Theta Phi, Latin Fraternity Inc:

  • National Director of Information Technology
  • Regional Director of Operations – FLS2
  • Beta Gamma Chapter President
  • Beta Gamma Chapter Webmaster

Nova Southeastern University’s Student Government Association:

  • Executive Board Secretary
  • Leadership Committee Chair person
  • Inter-fraternity Council Senator

Spanish and Latin Student Association (SALSA):

  • Treasurer

The Inter-Fraternity Council of NSU:

  • Vice President of Recruitment
  • Interim Vice President of Operations and Internal Affairs

Scholarships:

  • Florida Bright Futures Gold Scholarship Recipient
  • Nova Southeastern University’s Honors Scholarship Award
  • Florida Student Access Grant Recipient
  • SMART Grant Recipient

Honors and Awards:

  • “Who’s Who” of High School Students: 2002
  • Dean’s List: Fall / Winter 2002
  • Neophyte (New Member) of the Year for Beta Gamma Chapter: Winter 2003
  • Office of Greek Affairs Greek God Award: Winter 2004
  • Most Campus Involvement: Winter 2004
  • Philadelphia (Brotherhood Cup Winner: Winter 2004
  • Broward County High school Programming Competition 2001 and 2002 Second Place Winner hosted at Nova Southeastern University , University School, High School

Affiliations:

  • Lambda Theta Phi, Latin Fraternity Inc.
  • IEEE – Institute of Electrical and Electronics Engineers
  • ACM – Association for Computing Machinery
  • SPHE – Society of Professional Hispanic Engineers Member
  • ASEE – American Society of Engineering Education Member
  • NFL – National Forensic League Life Time Member
  • ARC – the American Red Cross, Broward County Chapter

Miscellaneous:

  • Coordinator of various community service events including: Boys and Girls Club of Davie Mentoring and Fundraising, Camilla’s House Soup Kitchen, the American Red Cross Donation Drive, the Salvation Army food and clothing drives, as well as other projects dealing with battered women, breast cancer and underprivileged children.
  • The American Red Cross Volunteer for the Hurricane Katrina Relief Effort in Gulfport, Mississippi and New Orleans, Louisiana for 3 weeks: September 23rd to October 14th, 2005

Skills

  • Detailed understanding of Microsoft’s Office Suite, including but not limited to Visio, PowerPoint, Word, Excel, Access
  • Programming experience with various computer-programming languages and Object Oriented programming, design and implementation.
  • High Level Language (HLL) experience: ASP.NET: 2yrs, VBScript: 3yrs, SQL (MS Access, MSSQL Server, MySQL): 2yrs, DHTML: 1yr, JavaScript: 4yrs, CSS: 4yrs, HTML: 5yrs, VBA: 1yr
  • Experience with various applications: Adobe Professional Suite, Symantec / Norton Application Suite
  • Desktop publishing knowledge: Adobe Acrobat Professional 8.0, Microsoft Publisher, and Adobe Photoshop CS3
    image manipulation.
  • Experience with various operating systems: Windows 95, Windows 98, Windows 2000, Windows XP Home /
    Professional, Windows 2003 Server
  • Web Application Design and Management, Database Design and Management, Information Systems Analysis,
    Internet Research, Helpdesk, Networking, Customer Service
  • Full Hardware support, including but not limited to troubleshooting and diagnostics, upgrades, maintenance
    and optimization.
  • Working knowledge of UNIX /LINUX and related systems
    • FreeBSD Unix
    • Ubuntu Linux (Server and Workstation)
    • Red Hat Linux
    • SUSE Linux
    • Apache Web Server
    • MySQL Database
  • Fluent in both Spanish and
    English, learning Italian
  • Typing Skills: 70 WPM
Leave a Comment :, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , more...

VirtualBox F8 Error

by Steve Hernandez on Oct.23, 2007, under Technology

When running VirtualBox on Ubuntu (Fiesty) and trying to install Windows XP as the guest OS, you must press the F8 key to accept the Terms of Usage.  However, VirtualBox won’t let you for some strange reason.  After looking around for a little bit, I tried the combination Right Ctrl + F8 and it worked!  So I can only assume that either 1) the function keys (F-keys) need the Host Return key to work, or 2) this is a bug that was supposed to be fixed but wasn’t.

6 Comments :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...