SGMLXML.net A place for SGML and XML application developers.

August 10, 2005

Suspend to Memory

Filed under: Linux — cangione @ 12:15 am







ACPI, which stands for Advanced Configuration and Power Interface, is the successor to APM (Advanced Power Management). The specification provides for many functions besides power management, such as thermal management and plug-and-play events.

The purpose of this post is to outline the steps for setting up ACPI suspend to memory under Fedora Core 4. When the lid is closed on the laptop, the system should suspend.

File setup

Create the file /etc/acpi/events/lid.conf containing the lines

  event=button[/]lid
  action=/etc/acpi/actions/sleep.sh

Create the file /etc/acpi/actions/sleep.sh containing the lines

  #!/bin/sh
  /usr/bin/dbus-send --system 
      --dest=org.freedesktop.NetworkManager
      --type=method_call      
 /org/freedesktop/NetworkManager     
 org.freedesktop.NetworkManager.sleep

  /sbin/hwclock --systohc
  echo -n mem > /sys/power/state
  /sbin/hwclock --hctosys

and make it executable.

  chmod 755 /etc/acpi/actions/sleep.sh

Helpful Sources of Information


August 4, 2005

Removing RPMs from Linux

Filed under: Linux — cangione @ 2:28 am







One task that is often needed is the ability to remove rpms that are currently installed.

The following example demonstrates how to remove installed rpms.

Lets say we need to find the apache package. First you need to find the specific version.

[root@localhost]# rpm -qa apache | grep apache
apache-1.3.19-5
[root@localhost]#

So, we need to remove the apache-1.3.19-5 package.

[root@localhost]# rpm -w apache-1.3.19-5

All gone assuming there were no dependency problems.

July 30, 2005

WINE for Me!

Filed under: Linux — cangione @ 7:53 pm







Setup WINE recently to give me access to some old and some new Windows programs from Linux. Wine is an Open Source implementation of the Windows API on top of X.

From more information on WINE and to get the latest copy, refer to

http://www.winehq.com/

A must have once you get WINE installed is WINE TOOLS. This will help you get your virtual windows file system setup etc.

http://www.von-thadden.de/Joachim/WineTools/index.html

List of the Programs that I was able to get working under the latest version of WINE (Note programs that ran on Windows 98 have a fair success rate. Newer programs have less success unless they have been a focus for the WINE developers.)

  • Internet Explorer 6 SP1 (Mouse Events and Drag and Drop are a bit strange. Drag and Drop crashes the X Window)
  • Office 97 (MS Word mouse events are a bit funky but it at least gives you a true representation of the document)
  • Visio 4
  • Adobe Acrobat 4.0 (Not the reader but the full thing) Reader should work as well.

WINE is definitely not a substitute for VMWARE but it brings some nice additional functionality to the Linux Desktop.


July 20, 2005

Getting the xscreensavers in FC4

Filed under: Linux — cangione @ 3:34 am
The screensaver package got split into 3 packages.

To start the process use:

yum search xscreensaver


Other Packages that can be installed by yum:

yum install xscreensaver-extra

yum install xscreensaver-gl-extras




July 18, 2005

Windows File Shares do not appear in FC4 Network List

Filed under: Linux — @ 7:44 pm

If you are having trouble seeing windows shares with FC4 here are some
tips:

  1. To specify the default workgroup for Samba Networking edit the /etc/samba/smb.conf
  2. As root type setup services
  3. Go to System Serices and ensure that the following services are
    started:
    • NetworkManager
    • network
    • smb

Clear things up for me at least

CA

July 15, 2005

Using rdesktop instead of VMWare for client display

Filed under: Linux — cangione @ 11:59 am
One of the things that I’ve found annoying about using VMWare in Linux is
that you either have to go full screen or you can’t utilize the entire
working space of one desktop. You might get close at say 1280X960 but
it is not “perfect”.
I tried something last night that I like better.

  1. Set windows client to allow remote connections.
  2. Created
    the following line in a shell script:
rdesktop -g workarea -a
16 -E -D -x l -u “user name” -p “[pass]” [computer name]
The -g option with the special word workarea
sets the client desktop resolution to take up all the area on the
screen except the Linux toolbars. So it fits “perfect”. For the rest of
the options read the man page for rdesktop.
The other obvious advantage that I can see to this approach is that if you
run multiple VMs at once you can give each client their own desktop
instead of having to use the VM tabs.

July 8, 2005

Intel Centrino Wireless Setup with FC4

Filed under: Linux — cangione @ 6:00 pm

Ah such a simple task! What a pain but it is fairly simple once you
understand the steps.

The project was created by Intel to enable support for the Intel
PRO/Wireless 2100 Network Connection mini PCI adapter.

Some notes:

June 27, 2005

FC4 Released

Filed under: Linux — @ 10:38 pm

Fedora Core 4 has been released and provides some nice improvements.

http://fedora.redhat.com/

  • UI is still very clean. Nice update with GNOME placing
    preferences and system settings under the Desktop start icon.
  • Networking with windows networks has been cleaned up. I can
    finally see all of my Windows shares when browsing the Network.

June 20, 2005

yum Yellow dog Updater, Modified

Filed under: Linux — cangione @ 8:28 pm

yum is an automatic updater and package installer/remover for
rpm systems. It automatically computes dependencies and figures out
what things should occur to install packages.

Home Page: http://linux.duke.edu/projects/yum/

How It Works: http://linux.duke.edu/projects/yum/howitworks.ptml

NOTE: Always make sure you update yum itself before you
update the rest of the rpms!

Command:

yum update yum

Then run:

yum update

Starting at runlevel 3

Filed under: Linux — @ 8:20 pm

A runlevel is a software configuration of the system that
allows only a selected group of processes to exist. Init can run the
system in one of eight runlevels. The main runlevels are 0-6. The
system runs in only one of these runlevels at a time. Typically these
runlevels are used for different purposes. Run level 5 is X11.
If you don’t want to boot into the UI use runlevel 3.

Hit a key when you get the booting….message, then hit “a” to append
to the command line. Then add”3″. This will boot into runlevel 3
and should put you at a text-based prompt to login
.

June 18, 2005

Samba Mounts to Windows Shares

Filed under: Linux — cangione @ 1:29 am

Samba is an Open Source suite that provides file and print services to
various clients including Windows operating systems. It is available
under the GNU General Public License. More info is available at
http://us4.samba.org/samba

The smbfs command can be used to mount a Windows Share
within Linux.

Example:

mount -t smbfs -o
username=<username>,password=<password>
//<servername>/<share> /<place to mount>

Why Linux

Filed under: Linux — cangione @ 1:06 am

I am often asked Why Linux. Why go through the trouble?
Which distribution to use?
And most importantly what does it
buy me?

For those of us that grew up with the command prompt and text based UIs
you will feel at home with Linux. Finding things and interacting with
text based files is so much simpler with Linux you will wonder how you
found anything with the windows search engine. (The only saving grace
these days for windows search is the Google Desktop search engine) On
Linux you can find things and then dig down into what you have found
all from the command line. It is a great research OS.

How should I set up Linux? Various ways to do this but I highly
recommend setting up Linux in VMWARE to get started. You can still run
your windows operating system but run Linux on top of it.

The Various Distributions I have worked with:

  • Fedora Core 3 – A recent build of a community based
    distribution. No cost but you have to download the ISO images and burn
    them to CD’s or DVDs before you get started. This is not very difficult
    but another step and you need some bandwidth. If you run FC3 as your
    primary OS you can make VMWARE run on this distribution but you need to
    make sure you have a C compiler on your system. Has good USB hotplug
    support.
  • Red Hat 9 Enterprise – The latest release of the Red Hat
    distribution. This is a fairly old distribution but the defacto
    standard for the enterprise. Many applications are certified against
    this build. VMWARE comes precompiled to run on this distribution.
  • SUSE – A well put together distribution. Biggest draw back
    is that if you are trying to run this as your primary operating system,
    VMWARE will not run. A big bummer if you are still addicted to MS
    Outlook for company mail or that one windows program you can’t live
    without.

CA

« Newer Posts

Powered by WordPress