Tip

Porting applications from Solaris to Linux, part 4

The odds are that anyone porting applications from Solaris to Linux has better Solaris skills than Linux know-how. That was fine for your other life, but now you'll need to become a Linux expert. Even if you're not doing a Unix-to-Linux server migration or porting applications from Solaris or other Unix flavor to Linux today, you might as well read the writing on the wall and get up to speed on Linux. Any Unix administrators, programmers and support staff who get formal training in Linux now will be valued employees tomorrow. After all, if you came from an HP-UX environment, and all of a sudden were tasked to support AIX, would you not get some formal training? Sure you would.

Start out by doing some research on the differences between Solaris and Linux. The following table will help you understand some of those differences by comparing some basic commands and functions.

graph list sec ws

Description Solaris Command

    Requires Free Membership to View

Linux Command
Adding user accounts Admintool
Useradd
Adduser
Useradd
Linuxconf
Filesystem description /etc/vfstab /etc/fstab
Name resolution etc/nsswitch.conf etc/nsswitch.conf /etc/resolv.conf
NFS share definitions /etc/exports dfshares
NFS share command Share exportfs -a
network interface info /sbin/ifconfig
Netconf
Ifconfig –a
Sniffing your network Snoop tcpdump
ethereal
Hardware def commands cfgadm -l
/etc/path_to_inst
prtconf -v
Dmesg,
/proc/*
hwinfo
Labeling disks Format cfdisk
fdisk
What is your run-level Who –r /sbin/runlevel
Checking your swap space swap -s
swap –l
swapon -s
cat /proc/meminfo
Show installed software Pkginfo rpm -a -i
rpm -qa
Adding software Pkgadd rpm -hiv
Routing definitions /etc/defaultrouter
/etc/notrouter
/etc/gateways
route
Allowing or denying root log-ins /etc/default/login /etc/securetty
System log and messages /var/adm/messages
/var/log/syslog
/var/log/syslog
/var/log/messages
/usr/adm/messages
Managing system boot-list Eeprom config

This is just a description of some basic things that you'll need to know. You must not stop here. Do your homework to help you gain a better understanding of Linux. If your budget prohibits you from getting formal on-site training, look at the abundance of on-line training now available for Linux. SearchEnterpriseLinux.com is actually a great place to find training courses and more information on Unix-to-Linux migration.

The absolute best way to learn Linux is to just get yourself a copy and load it on one of those used PCs you have floating around. You can either download it or get a CD from a book and start to play. There's no real substitute for this type of playground work. Some of the best administrators I know started this way, and Linux makes it so easy for you, because it is pretty much free. (Are you listening SCO?)

There are many resources available to you on the Web to help you get started. If Red Hat is the distribution you think you'd like to use, start at Red Hat Training. WorldWideLearn offers a listing of many training courses. Want SuSE? Novell has a training and certification program. Novell also has a guide to Solaris-to-Linux porting tools, as well as other porting tools. To find more specific information on Solaris-to-Linux porting, go to IBM DeveloperWorks. This IBM article is a little dated, but it still contains some useful advice. Intel offers information on Migrating Web services from Solaris to Linux.

However you do it, broadening your horizons with Linux training will put you in a great position to help your company and your own employment prospects.


This was first published in August 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.