PDA

View Full Version : Linux Slackware



Hunted
03-04-2004, 10:58 PM
Is Slackware a good distro? Well, I am installing it now, no problems yet.

h1
03-04-2004, 11:04 PM
Si. Oui. Da.

LSA
03-04-2004, 11:09 PM
Slackware 0wnz!

I like slackware because you actaully learn linux because you have to edit the config files and things like that.

I have been looking all over for it and can't find it. I e-mailed the LUG and no one replied :(

Slackware Packages (http://www.linuxpackages.net)

4play
03-04-2004, 11:13 PM
i though slackware never had packages it is just the source you have to compile. :)

LSA
03-04-2004, 11:21 PM
Originally posted by 4play@4 March 2004 - 17:13
i though slackware never had packages it is just the source you have to compile. :)
They look like packages to me :huh:

Hunted
03-04-2004, 11:25 PM
Alright, I installed it. What do I put as darkstar login? It never had me create a username. I know I can login as root. Also, how do I run KDE on it once I login?

LSA
03-04-2004, 11:34 PM
Originally posted by Hunted@4 March 2004 - 17:25
Alright, I installed it. What do I put as darkstar login? It never had me create a username. I know I can login as root. Also, how do I run KDE on it once I login?
Try logging in as root then adding a user [man adduser]

I think doing a 'startx' will get you to kde if you set that as your default win manager

Not sure though, never used slack, hoping to soon

shn
03-04-2004, 11:35 PM
Originally posted by Hunted@4 March 2004 - 17:25
Alright, I installed it.  What do I put as darkstar login?  It never had me create a username.  I know I can login as root.  Also, how do I run KDE on it once I login?
Ask LSA.

He is the Slackware Guru :)

Hunted
03-04-2004, 11:35 PM
When I type in man adduser, it says "No manual entry for adduser"

=Edit=
When I type startx, something weird happens... screen goes grey, and there is some strange stuff up top

LSA
03-04-2004, 11:40 PM
Originally posted by shn+4 March 2004 - 17:35--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn &#064; 4 March 2004 - 17:35)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Hunted@4 March 2004 - 17:25
Alright, I installed it.&nbsp; What do I put as darkstar login?&nbsp; It never had me create a username.&nbsp; I know I can login as root.&nbsp; Also, how do I run KDE on it once I login?
Ask LSA.

He is the Slackware Guru :) [/b][/quote]
No, i&#39;m a poser...I never even used it&#33;

I&#39;m on the trail though :lol:

EDIT:

OK OK, type in /usr/sbin/adduser

then look at the output and it should tell you the syntax

I&#39;m still thinking about your startx problem though

Hunted
03-04-2004, 11:51 PM
Alright, I was able to create my username with no problems

LSA
03-04-2004, 11:54 PM
Originally posted by Hunted@4 March 2004 - 17:51
Alright, I was able to create my username with no problems
Can you startx?

Hunted
03-04-2004, 11:59 PM
Originally posted by LSA+4 March 2004 - 19:54--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA @ 4 March 2004 - 19:54)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Hunted@4 March 2004 - 17:51
Alright, I was able to create my username with no problems
Can you startx? [/b][/quote]
Nope, same problem still

LSA
03-05-2004, 12:03 AM
Are there any error messages?

Did you install it right? (http://www.bitbenderforums.com/vb22/showthread.php?postid=311808)

Hunted
03-05-2004, 12:04 AM
Nope, as was installing it, I had no problems

LSA
03-05-2004, 12:10 AM
What runlevel are you in?

/sbin/runlevel

http://www.bilbos-stekkie.com/slack_init/e...ex.php?action=5 (http://www.bilbos-stekkie.com/slack_init/en/index.php?action=5)

Slackware init&#39;s and runlevels (http://www-106.ibm.com/developerworks/linux/library/l-slack.html)

Hunted
03-05-2004, 12:16 AM
N 3

LSA
03-05-2004, 12:20 AM
# These are the default runlevels in Slackware:
#&nbsp; 0 = halt
#&nbsp; 1 = single user mode
#&nbsp; 2 = unused (but configured the same as runlevel 3)
#&nbsp; 3 = multiuser mode (default Slackware runlevel)
#&nbsp; 4 = X11 with KDM/GDM/XDM (session managers)
#&nbsp; 5 = unused (but configured the same as runlevel 3)
#&nbsp; 6 = reboot

Go to 4



Originally posted by IBM tut

telinit command: Changing runlevels on a running system

The telinit command is the way to change runlevels. When you execute telinit S as root (or whatever runlevel you&#39;d like to change to), it changes runlevels, shuts down the prior runlevel, and then starts up the next one.

In a way, you are rebooting parts of the system. However, the ability to shutdown and restart services is one of Linux&#39;s most endearing qualities. Need to change the IP address for your machine? No problem, make a few changes and restart your networking services. As long as everything is configured correctly you&#39;re back up and running so quickly it&#39;s hard to tell anything has changed. Try doing that on other operating systems where you have to reboot just because you&#39;ve changed wallpaper on your desktop :)

The only time it&#39;s really necessary to reboot or completely shut down a Linux box is if you&#39;re adding or changing hardware, assuming you&#39;re working with a device that isn&#39;t hot-swappable, or if you&#39;ve had a break in and need to take the machine offline to repair the damage. Unlike other operating systems, I&#39;ve never seen rebooting solve a problem on a production system that couldn&#39;t be solved without rebooting. I have managed to hang non-production machines by playing around with commands like hdparm, but I expected it to happen.

Let&#39;s say you need to perform some system maintenance that requires having the system in single-user mode. For instance, tuning your hard drive with hdparm. The first step is to su to root.

Then we&#39;ll execute the telinit command to bring the system into single-user mode:


telinit S -t 60

The "-t" argument is optional; it tells telinit to wait 60 seconds before actually performing the switch to single-user mode. However, as soon as the command is executed, anyone who is logged into the machine will get a warning on their console that the system is going to switch runlevels or go down in 60 seconds.

When the 60 seconds are up, init shuts down the processes that aren&#39;t used in the single-user mode and brings the system back up in single-user only mode. You&#39;ll then be prompted for the root password to perform system maintenance.

The process the system uses to get into single user mode is a bit different. The default for single user mode calls for init to invoke the sulogin command on the console and requiring a root login to work in single user mode.

After the system enters single user mode you should see a message like this:


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Give root password for system maintenance
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (or type Control-D for normal startup):

Once you&#39;ve performed your maintenance you can bring the system back up by executing this command:


telinit 3

This tells the system to re-enter a multi-user runlevel. You could substitute "2" or "4" for "3" in this command. On Slackware systems runlevel 4 will put you in multi-user mode with one of the X display managers, so you will log directly into X.

If you have a UPS hooked up to your system that has a serial cable, it&#39;s possible to have the UPS send your system a signal in the event that power goes out. This is very useful if you have a production-class system with a large filesystem. I&#39;ve seen what happens when a 100GB RAID ext2 filesystem is not cleanly unmounted (fsck takes about four hours to complete). On the other hand, a properly configured UPS can alert the system of the power outage and send telinit/init the SIGPWR signal, which will cause init to bring the system into single-user mode or shut the system down altogether, depending on how it&#39;s configured.

Hunted
03-05-2004, 12:24 AM
-_- I typed in telinit 4, it was working, then the same thing happend when I ran startx

Hunted
03-05-2004, 12:27 AM
I might try another distro. What do you suggest, besides Mandrake (I want to use, but I can&#39;t use it), FreeBSD (also want to use, but cannot install KDE), Redhat (don&#39;t care for it), LindowsOS (SUCKS)

LSA
03-05-2004, 12:28 AM
Try editing the init script and make runlevel 4 the default.

What does it do when you startx?

----

I think you should stick with slack you will get it soon don&#39;t give up

EDIT: but if you don&#39;t like slackware (:blink:) try fedora

Hunted
03-05-2004, 12:30 AM
I would take a screenshot... but I cannot at the moment. Also, how do I edit the scripts?

=Edit=
Lol, I was going to use my moms digital camera... but it is dead.. and no charger

Hunted
03-05-2004, 12:34 AM
Nah, don&#39;t want to use Fedora, it is almost same thing as Redhat, well it is made by Redhat at least

LSA
03-05-2004, 12:35 AM
Originally posted by Hunted+4 March 2004 - 18:30--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Hunted &#064; 4 March 2004 - 18:30)</td></tr><tr><td id='QUOTE'>I would take a screenshot... but I cannot at the moment.&nbsp; Also, how do I edit the scripts?[/b]
Vi

<!--QuoteBegin-ME&#33;
VI Editor Tutorial (http://http://tutorials.beginners.co.uk/read/category/11/id/269)
Intro to VI (http://www.linux.ie/articles/tutorials/vi.php)
VI tutorial written by me and Leftism (http://filesharingtalk.com/index.php?showtopic=102395)


Understanding Linux Configuration Files (http://www-106.ibm.com/developerworks/linux/library/l-config.html?dwzone=linux)
Linux Startup Scripts (http://http://total.luv.asn.au/overheads/linux-startup.html)


Setting up Samba (http://www.linux.ie/articles/tutorials/samba.php)
Using SSH (http://www.linux.ie/articles/tutorials/ssh.php)[/quote]

I think the default run level for slack is in /etc/inittab but am not sure, might say in some of those tuts

Hunted
03-05-2004, 12:39 AM
Hmm, I logged in as root, and typed in that /etc/inittab and it said

-bash: /etc/inittab: Permission denied

shn
03-05-2004, 12:39 AM
Here is a hint LSA:

What do you edit if Xfree86 is not working correctly? :)

LSA
03-05-2004, 12:43 AM
Originally posted by shn@4 March 2004 - 18:39
Here is a hint LSA:

What do you edit if Xfree86 is not working correctly? :)
/etc/X11/XF86Config :w00t:

Look around in the video setting to see if there is anything wierd

Hunted
03-05-2004, 12:50 AM
Originally posted by LSA+4 March 2004 - 20:43--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA @ 4 March 2004 - 20:43)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-shn@4 March 2004 - 18:39
Here is a hint LSA:

What do you edit if Xfree86 is not working correctly? :)
/etc/X11/XF86Config :w00t:

Look around in the video setting to see if there is anything wierd [/b][/quote]
Could not do that either... permission denied

LSA
03-05-2004, 12:53 AM
Are you sure your root?

Hunted
03-05-2004, 12:54 AM
Yep, 100% sure

it says
root@darkstar:~#

LSA
03-05-2004, 12:57 AM
What are the permissions of the files?

Hunted
03-05-2004, 12:58 AM
I don&#39;t know how to check. I am new to Linux as you can see.

LSA
03-05-2004, 01:00 AM
There is a switch for the ls command can&#39;t remember it right now and I have to get off the computer for a bit, so good luck

4play
03-05-2004, 01:04 AM
ls -l with show you the permission

they should say something like

rwx - rwx - rwx they stand for read, write and execute. the first set is for the user the second for your group and the third are for world.

chmod 777 will give you the above and chmod 755 will give you rwx-rx-rx

it should also display who owns the file and which group they belong to.

LSA
03-05-2004, 02:10 AM
Did that work for you, Hunted?

h1
03-05-2004, 05:42 AM
Shouldn&#39;t you have a &#036; prompt if you&#39;re root in Slackware?

ObiWan
03-05-2004, 08:11 PM
not sure about slackware but in red hat &#036; is a user and # is the super user (root)

ObiWan
03-05-2004, 08:14 PM
what graphics card do you have

shn
03-05-2004, 08:27 PM
Originally posted by ObiWan@5 March 2004 - 14:11
not sure about slackware but in red hat &#036; is a user and # is the super user (root)
It does not matter. The PS1="?" shell variable can change the prompt to whatever you want.


PS1=&#34;shn&#34;
export PS1 :)

Hunted
03-05-2004, 09:39 PM
I don&#39;t know... I don&#39;t think I am ready just yet for Slackware, I will just add it to my collection of Linux cds, lol for when I feel like using it.

shn
03-15-2004, 06:03 PM
Originally posted by Hunted@5 March 2004 - 15:39
I don&#39;t know... I don&#39;t think I am ready just yet for Slackware, I will just add it to my collection of Linux cds, lol for when I feel like using it.
To be honest. Slackware is not hard at all once you get past fdisk. I am an experienced user with fdisk so it was not a problem for me. And a n00b can install slackware if they only use "cfdisk" instead of fdisk.

The top of line of all distros is Gentoo. There is no question about it. You can take any distro and make your own. But there is nothing like the pure satisfaction of knowing that you compiled and installed not only your own kernel, but all the ebuilds as well.

Your glitch was merely a problem with Xfree86. All it takes is the right driver and you&#39;ll be running a gui in slackware in no time.

I recommend Slackware for all n00bs. :)

LSA
03-15-2004, 10:19 PM
Plus, with Slackware, you learn how to edit config files and how linux works :w00t:

I wish I had Slackware :( :frusty: