How to change default desktop environment?

September 30th, 2004



Use xwmconfig

http://www.linuxquestions.org/questions/archive/8/2001/11/3/8699

How to enable Graphical Login prompt

September 30th, 2004

To display a graphical login prompt, change the runlevel from 3 to 4

/etc/inittab

http://www.linuxquestions.org/questions/history/230311

Wireless configuration – related commands

September 27th, 2004

Got the Hawking Wireless card working on Slackware 10 (Dell Laptop).

I cannot say “finally” because I had never tried earlier :)

Had left the card in the PCMCIA slot during install and it installed drivers or modules for it automatically.

Leaving the card in the slot during installation has nothing to do with it.

It is when the system is rebooting that the Cardbus services are activated and

these devices detected.

Saw that KDE had KWifiManager installed. This KWifi is pretty cool. It shows the signal strength, the access point MAC address,

the IP address. Just like the Windows utility. KWiFiManger simply reports the information being handled by wireless tools. In addition, it also has different configuration profiles too.

It wouldn’t work the first time though after I changed the SSID and activated the configuration.

So I gave it a restart and it worked !

Reboot not really necessary.

I tried this and it worked!

/etc/rc.M

Apparently, this was a re-init of all services for the Multiuser profile,

I guess rc.pcmcia would have done the same.

So that got my Internet working (I saw the IP address was assigned).

It got detected as eth0, which is quite confusing. The onboard NIC became eth1.

In some distro of Linux, I had seen that the wireless connections were referred to by wlan0, wlan1 and so on…

In any case, wireless is working and at last the laptop can be moved out of my room.

It’s only this card that was working and I don’t know how to get the other cards working (as yet).

So here are some commands and snippets I learnt along the way:

/etc/rc.d/wireless – This file is read when initializing the wireless connections when booting up.

Wireless networking is managed via the /etc/rc.d/rc.wireless, /etc/rc.d/rc.wireless.conf and /etc/rc.d/rc.wlan scripts.

Wireless Tools for Linux

http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html

  • iwconfig manipulate the basic wireless parameters
  • iwlist allow to initiate scanning and list frequencies, bit-rates, encryption keys…
  • iwspy allow to get per node link quality
  • iwpriv allow to manipulate the Wireless Extensions specific to a driver (private)
  • ifrename allow to name interfaces based on various static criteria

Some links on KWifiManager

http://www.linuxquestions.org/questions/archive/3/2003/11/4/118736

Slackware 10 on a Dell Laptop

http://www.mikeoliveri.com/utils/dellslack.html

Slackware Network Configuration

http://openskills.info/view/boxdetail.php?IDbox=1103&boxtype=distro

Setting Java Path for Eclipse

September 26th, 2004

Installed Eclipse 3.0.2 on a Dell Laptop running Slackware 10.0

Installed Java into /usr/local

This link gives a walkthrough to editing the /etc/profile file.

http://www.linuxforum.com/forums/index.php?showtopic=86431

———————————————————————————

The variable PATH needs to include the path to the java executable.

Best solution – set both variables for all users:

-remove the addition to /home/danny/.bash-profile (we’ll move it to /etc/profile)

-edit /etc/profile

add:

export JAVA_HOME=/home/danny/Development/Java/j2sdk1.4.2_05

export PATH=$PATH:$JAVA_HOME/bin

Home is not set to ../j2sdk1.4.2_05/jre/bin/java as that is an actual file, and it should be set to the top directory of java.

The PATH is set to incluse $JAVA_HOME/bin instead of $JAVA_HOME/jre/bin/ as I think that the former is the correct java to use for the sdk, though both look the same:

CODE
root@lfs:/opt/j2sdk/j2sdk/bin# ./java -version

java version “1.4.2_03″

Java(tm) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)

Java HotSpot(tm) Client VM (build 1.4.2_03-b02, mixed mode)

root@lfs:/opt/j2sdk/j2sdk/bin# cd ../jre/bin

root@lfs:/opt/j2sdk/j2sdk/jre/bin# ./java -version

java version “1.4.2_03″

Java(tm) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)

Java HotSpot(tm) Client VM (build 1.4.2_03-b02, mixed mode)

If it doesn’t work for you then try

export PATH=$PATH:$JAVA_HOME/jre/bin

instead

Once the profile is changed, bash needs to load the profile. You can login again, start another bash session (new console or konsole or whatever) or type:

source /etc/profile

check the settings have taken effect with:

echo $JAVA_HOME

echo $PATH

You may also want to set MANPATH to include $JAVA_HOME/man

export MANPATH=$MANPATH:$JAVA_HOME/man

if your distro uses /etc/man.conf then add the manpath to that instead.

add the line:

MANPATH /home/danny/Development/Java/j2sdk1.4.2_05/man

You mentioned CLASSPATH in the topic, this is from the Beyond Linux From Scratch instructions:

QUOTE


Handling CLASSPATH

When compiling packages, the CLASSPATH environment variable is used by JDK to locate classes at compile-time and run-time. It is tedious to add all the classes used to the CLASSPATH manually. You may add the following lines to your shell startup file to set CLASSPATH automatically to include all JAR files in a specified directory, which in the example below is /usr/lib/auto-java-classpath.

AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath

if [ -z $CLASSPATH ]

then

CLASSPATH=.:$AUTO_CLASSPATH_DIR

else

CLASSPATH=$CLASSPATH:.:$AUTO_CLASSPATH_DIR

fi

for i in $(ls $AUTO_CLASSPATH_DIR/*.jar 2>/dev/null)

do

CLASSPATH=$CLASSPATH:$i

done

so you can modify that to use whatever directory you want to have your classes, and put it into /etc/profile

———————————————————————————

Long time no post…

July 16th, 2004

Coming back to blogger after a long time.

Interface has changed so much !

Have to change the template too :) there’s a lot of nice ones on them.

Also the blog name is getting changed to Mandrake Linux 10.0 as that is what I have now.

Template changed to Rounders 4.

Thats all for now.

Found this article today. http://www.joelonsoftwa…

February 9th, 2004

Found this article today.

http://www.joelonsoftware.com/articles/ResumeRead.html

Some good tips on resume and cover letter writing.

Changed the blog look – template JellyFish

February 8th, 2004

Writing in this blog after a long time…..making a consolidated page of all places that I visit online.

Its going to be called Launchpad.

Mandrake Powerpack – arrived (or rather picked up)

November 18th, 2003

Finally….My Mandrake Powerpack CDs arrived. Actually they arrived on Fri, I was at school and the UPS people wouldn’t leave it with anyone (except me!). So……I went and picked it up at the local UPS office.

Now that I have the CDs, I am wondering if re-installing the OS (just retaining my /home) would make things okay…

and what about the updates I have done? Obviously they will get wiped out. If I dont format the partitions, will they be still there or overwritten. Hmm…Overwritten is more like it…

I don’t even remember what updates I did, what commands I tried and got my stuff working….or configured the way I want it…

Looking through the history of the root and my user login to see if I can trace my actions.

Would it be possible to look through the System Logs and figure the same thing out?

Will ask around in the Club and see what they have to say…..

Am tired today…..school..work…the CDs arrived…my turn to cook today….

(Yawn…)

Changed the template to Tekka…. updated my Linu…

November 18th, 2003

Changed the template to Tekka….

updated my Linux Blog -Lin*x Ninja@Mandrake

Aus vs India – Eden Gardens – 112/2, 21.4 overs

Gnite..

Screwed up Mandrake pretty bad now…

November 18th, 2003

Well….since I moved over to Linux completely around nov 3rd, I have managed to get (almost!) everything working, most of the time. Its been like this….if A and B worked, C and D wouldnt. (I dint know this at the time). Then all of a sudden, C and D started to work. A also worked, but now B got pissed off by something. Probably by A’s desertion…and sulked.

Had a tough time with B. Coaxed and cajoled and it worked….

SO, for a few days, I had this thing going GREAT!! everything was working….

It was too good to be true, hence I decided that it was no fun.

I tried to update a few things -dont really remember what now -and B went bonkers…..I mean really nuts….no amount of cajoling/coaxing yielded any results…I even threatened to throw it out, but it didnt make any difference. If anything, it made things worse.

Key:

————————————————

A = Network Connections = Ethernet LAN

B = Sound System = Sound Drivers + codecs + Media Player(s) = ALSA, OSS, aRTs + DVD plugins + Xine, Totem

C = Network Connections = Wireless LAN, (never worked even during install and afterward)

D = Touchpad and Mouse playing hide-and-seek

[Coaxing/Cajoling = Trying to find out what configuration files are needed/modified and manually figure out the problem and the solution.

Throw it out = Un-install ]

——————————————

Bottomline:

A = Supposedly been configured for office network, will have to test it tomorrow…er..today (2am now..) and check

B = FUBAR…the only thing that works is XMMS – for audio files and erratic video, The others (Xine, Totem show great video, without any Audio). Both I guess are using the ALSA system and in KDE, aRTs is having control over the driver right now….

C =WLAN funnily working, even hotplugging works

D = removed the external mouse, restarted machine, it detected removal, said OK, rebooted, reinsert ext mouse, got detected, now both work. well 2 out 4 aint bad….so ….

So, this has been a long blog, even longer nights spent on understanding how things worked in the Linux world.

*Yawn* I’ll sign off now with this link – looks like a pretty good site…

Making the big switch – from Windows to Linux – http://www.jediknight.com/~smpoole/switchtolinux.html