Linux.com

Home Linux Community Community Blogs

Community Blogs



Enabling Slackware 13.1 to Boot to the X Login Screen by Default

I did some playing around with slackware to get a better understanding of how linux functions behind the curtains. To be honest, there's a little frustrations of not choosing slackware as the first linux distro to use. Better late than never.

Understanding linux, can be tricky when every function, component, device is in the form of a script, file or something of that nature. Meaning, most of the time, you are trying to understand code. Like a friend has told me, "think it is easy until you've proven it to be difficult".

On that note, I wanted slackware, instead of booting to the terminal (which it does by default), to boot to the gui UI.  To accomplish this, you need to change a few things in a script file. What script file?

In linux, scripts called "runlevels" determine how a linux system should act when it boots, either, in multi-user mode, single user mode, terminal(default) or the X11 mode. They are numbered in a format like rcO.d, rc1.d all the way to rc6.d.  If you used other distros like ubuntu, fedora and opensuse, you will notice they all boot to a X11 login screen, which basically mean, it is using a runlevel that tells the system to boot in X11. All we need to do is find that runlevel. The run level to boot any linux distro to X11 is called rc4.d.

In slackware, all runlevels, and initialization scripts are stored in a directory called rc.d located in etc/rc.d. In that directory, you will see the runlevel script that boots slackware into the X11 mode. Now, you don't change the runlevel rc4.d located in rc.d directly. In stead you will have to find a script file named inittab that slackware reads to find the scripts used to initialize itself. Sounds confusing, it did to me.

What you need to do, is open inittab in your favorite text editor as root and change one line in the file. When  you open the file you will see a bullet list of default runlevels with a heading named "These are the default runlevels in slackware". At the very bottom of the list are the runlevels and initiation script slackware will use to boot.

The first line of code under the list is the "default run level, do not set to 0 or 6". The code line is separated with semicolons: "id:3:initdefault". The number 3 represents the runlevel slackware will use. You are going to change that number to 4 and save the file. It is always good to make a backup copy of the file before you do any changes. Or, like I like to do it, do all your testings on a beta machine or in a virtual machine. When you are done, reboot the system. In a few seconds your system will boot to an X11 login screen. Remenber, exploring and breaking means learning. 

 

What are the original WWF tips on paper efficiency?

The embarassing saga of the "green" .WWF file format that ignores Linux and is ignored by the WWF itself continues...

 

HOWTO - Using rsync to move a mountain of data

In this installment of my blog, I want to document the proper use of rsync for folks who are tasked with moving a large amount of data.  I'll even show you a few things you can do from the command line interface to extend the built-in capability of rsync using a little bash-scripting trickery.

I use rsync to migrate Oracle databases between servers at least a few times per year.  In a snap, its one of the easiest ways to clone a database from a Production server to a Pre-Production/Development server or even a Virtual Machine.  You don't have to have a fancy Fibre-Channel or iSCSI storage array attached to both servers, in order to do a data LUN clone, thanks to rsync.

I hope you enjoy this in-depth article.  Please feel free to comment: if you need clarification, find it useful, or something I wrote is just plain wrong.

Read more... Comment (1)
 

Creating a Debian Live USB Flash Drive with Persistence for Non-Techies

This tutorial aims at showing a fast, straightforward way of creating a  USB flash drive with Debian live installed (on it) using the persistence feature. It means that you can automatically save changes back to the USB flash drive before shutting your machine down.There are many more options not covered in this article which are explained in detail in Debian-live's manual. You can find it here.
Read more... Comment (14)
 

Is E-Voting a solution? To which problem?

"promoting e-voting just because it can be done with Free Software continues to not make sense. If the software running the system were open it would still not solve any of the problems listed above, or give citizens any meaningful advantage. In the real world, having the source code of a voting machine would change nothing at all at the voting booth"

Continues here.

 

Wanted: little known examples for Digital Citizens Basics course

next month I'll start with a Digital Citizens Basics online course, open to everybody, which will also introduce FOSS. I already have LOTS of examples for all the topics of the course, but surely I have missed, or will miss in the future, something that may be worthwhile to discuss with my students.

If you know of specific and little-known examples of the problems covered in the course program, thanks in advance if you'll want to send me relevant links, either in comments to this post or by email at This e-mail address is being protected from spambots. You need JavaScript enabled to view it . Thanks!

 

How to create lists of WordPress posts from the command line

WordPress is a great online publishing system. One of its strengths, as far as I am concerned, is the administration interface, which I find flexible, efficient and easy to use. However, sometimes even that interface isn’t flexible enough. Recently, for example, I needed a quick way to create and insert into another Web page an HTML list of all and only the posts I had published in a certain date range. If you only have four of five posts to manage it’s OK, but what when, as in my case, there are many tenths of them?

 

Here's how I do it.

 

openSUSE Weekly News 166 is out!

Geeko

We are pleased to announce our new Issue 166 of openSUSE Weekly News.

 

Available under:

 

 

No we hope you enjoy the reading :-)

 

Comments, News and Wishes can send to This e-mail address is being protected from spambots. You need JavaScript enabled to view it .

 

 

I'm Part of That 3%, I Must Confess

I ran across an entertaining little bit while surfing around the Tech News Daily site this morning. It reminded me of a humorous computer story of my own.

Most of my online tech pals know what I'm talking about when I mention the night the Slacker danced the Irish jig. I'm not much of a dancer, but this one night I danced up a storm on my kitchen floor... on top of my computer tower. Heh!

Yeah... it was a sight to see; a 265 lbs, 6'2" man stomping maniacally on his computer tower that he had just recently scooped off the desk and slammed to the ground... along with all the hardwired peripherals and knick-knacks.

So yeah... I'm in that 3% group who have totally lost their cool and let an inanimate bunch of plastic, silicon, and metal get the best of me.

About nine percent of people have taken their frustrations out on the computer by hitting it with an object, such as a baseball bat or a fist. Only three percent have actually thrown a computer to the ground or against a piece of furniture, such as a desk.*

"What ever could have brought this about?" you might ask. If you can seriously ask that question, you've never used a computer before in your entire life. Here's what happened, though... I had been having some buggy issues with an installation of Linux. I kept losing my configuration preferences and such.

It was really beginning to torque me up. It had been going on for about two weeks. It came to a head one evening shortly after another crash of a fresh installation. That's when the dance party started. WOO-HOO! Everybody dance now! THUMP! THUMP! THUMP!

After a reassembly into another tower box and some more calm-minded troubleshooting, I tracked the issue to an intermittently failing Seagate hard drive that I had just recently bought and installed on this system. That was the very first... and the VERY LAST Seagate drive I even owned/used. I've mellowed over the years, though. I don't blame Seagate anymore for my near-stroke. I'd buy one nowadays... if the price was right.

But not everyone reacts this way when faced with a computer issue. On the other end of the spectrum, about 38 percent of people said they would never yell at their computer because it's "too sensitive." Instead, they encourage it to keep working with positive words.*

*From the above mentioned article.

If you're one of the above mentioned 38%, you really should seek some professional help. :crazy

Later...

~Eric

> A republish from my Nocturnal Slacker blog @ LockerGnome.com

 

 

 

ctags utility - to edit/see source files in vi/vim

Dear All,

Gonna tell you about the ctags utility and how to use it in your project.
I am taking the example on Ubuntu 10.10 for C++ project

Step 1. Install ctags tool via Synaptic Manager

Step 2. To know which languages does ctags support fire the below command
ctags --list-languages --list-type
it will give you the whole list of languages for whcih cross refernce for variables, subroutines/functions etc. available use it accordingly vi/vim supports everything.

step 3. In the source directory where your Definition/Declaration files are present:

run the following command
ctags *.cpp *.h or ctags -R ( it wil recursivley generate the tag file)
you can name your own tag file  with the option -f or -o otherwise default tag file named tags would be generated.

step 4. now open any  source file  in vi / vim editor and  go to the Ex. mode(:)
type the command 'tag functionname' (the name of the function whose definition you want to look for) short form ( : ta functionname) right after this command you will be taken to the file containing the definition of the functionname there you can make the changes or go thru the definition save it (:w) or use :set autowrite feature . type : ctrl+ l or ctrl +o to come back to the original file.

for more info read man ctags:
please comment / suggest cheers!!!!!!!!!!!11enjoy:)))))))))))

 

Saab IQon and Linux: when Open Source isn’t Open, and your car isn’t really yours

OK, Saab will use Android, which is more or less Linux, which is Open Source. But can you call “yours” a car that you can’t customize as you damn please (respecting safety laws and regulations, of course) even if you regularly bought it?

 
Page 12 of 122

Upcoming Training Courses

  1. LF411 Embedded Linux Development
    24 Jun » 28 Jun - Silicon Valley
    Details
  2. LF331 Developing Linux Device Drivers
    05 Aug » 09 Aug - Virtual
    Details
  3. LF320 Linux Kernel Internals and Debugging
    12 Aug » 16 Aug - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board