LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-22-2006, 05:04 PM   #1
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 537

Rep: Reputation: 62
Not used to slackware, need some guidance


hi all,
since about february i ditched windows and started exploring different linux distro's.
i checked out lots of reviews and Slackware caught my attention for all the remarks on its overall security, speed and stability. but i was never able to get past the installation, so addicted to the GUI i was...

after more searching i found VectorLinux, Slackware based distro and with lots of extras do all the administrative tasks (VASM).
and thats what i've been using untill now. even though i like Vector a lot, i've got very used to the command line (writing a few bash scripts already), and want to give Slackware 10.2 a try again.

today after a first try i finaly installed it!

i added a new user for myself (adduser), and configured my sound with alsaconf etc, but a lot of tasks that i used to do with VASM i dont have any clue how to do on slackware.

can anyone give me pointers on the following:

-configuring iptables to disable all ports except the ones strictly necessary for browsing the net, using ftp to upload files. also general iptables activating/deactivating ports

-adding extra items to lilo, for chosing tui or gui at the lilo prompt

-changing user/root passwords

-getting my box to power-off after issuing halt. i just hear the hard-drive switching off, but the computer still remains on.

i have also ordered the Slackware Essiensials book from the slackware store, but since i live in Portugal it will probably take a while to arrive and i can't wait that long to get started!

thanks in advance

Last edited by easuter; 09-22-2006 at 05:06 PM.
 
Old 09-22-2006, 05:18 PM   #2
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
Welcome aboard

The slackware essentials book is available online
Check that one and post any doubts left on you.
Happy slacking.
 
Old 09-22-2006, 05:19 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,251

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
-configuring iptables to disable all ports except the ones strictly necessary for browsing the net, using ftp to upload files. also general iptables activating/deactivating ports
Check out http://easyfwgen.morizot.net/gen/. Saves precious time until you are more ready to dig deeper into iptables theory.

Quote:
-adding extra items to lilo, for chosing tui or gui at the lilo prompt
I do not use LILO. I use GRUB. But the following mini how-to might provide some insight into the basic procedure, which is basically the same for LILO:

Configuring Slackware for a GUI and a Command Line Startup

Quote:
-changing user/root passwords
Basic GNU/Linux stuff.

Quote:
-getting my box to power-off after issuing halt. i just hear the hard-drive switching off, but the computer still remains on.
Probably need to configure apm daemon. Try this mini how-to:

Configuring the APM Daemon

Quote:
i have also ordered the Slackware Essentials book from the slackware store, but since i live in Portugal it will probably take a while to arrive and i can't wait that long to get started!
Here are some foundational links to help you find additional Slackware documentation:

Getting Started
 
Old 09-22-2006, 06:20 PM   #4
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
Welcome, you'll be fine in a few weeks, hang on! I tried vector for 2 days after about a year of slackware and i found it gets a lot in the way (nvidia, kernels, etc).
This IS the place to learn slackware, use the search option a lot, check stickys and hang around.
These you could find on your own, but anyway:
http://shilo.is-a-geek.com/slack/
http://www.vcn.bc.ca/~dugan/setting-up-slackware.html
http://slackwiki.org/Main_Page
etc....etc...etc....
 
Old 09-23-2006, 07:17 AM   #5
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 537

Original Poster
Rep: Reputation: 62
thanks for all the replies!
i'm goung to follow up on those threads as soon as i get a chance
 
Old 09-23-2006, 08:56 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,882
Blog Entries: 1

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
Quote:
Originally Posted by easuter
thanks for all the replies!
i'm goung to follow up on those threads as soon as i get a chance
Hi,

Might I add that you check out my sig for some good online reference(s)!

edit: BTW, Welcome to Slackware!

Last edited by onebuck; 09-23-2006 at 08:57 AM.
 
Old 09-23-2006, 05:24 PM   #7
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 537

Original Poster
Rep: Reputation: 62
yup, all those sites have been handy thanks a lot!
already got X up and running!

about the boot-loader options, i think i will look into using grub. lilo doesn't seem to allow spaces between words or even long names for the labels, not to mention, i can't figure how to add an option without necessarily having to create an initrd file in /boot.
 
Old 09-23-2006, 06:56 PM   #8
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
#!/bin/bash
iptables -F INPUT
iptables -P INPUT DROP
iptables -F OUTPUT
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 2010 -j ACCEPT
iptables -A INPUT -p tcp --dport 9000:9200 -j ACCEPT
iptables -A INPUT -p tcp -s 192.168.1.2 -j ACCEPT
iptables -A INPUT -p tcp -s 192.168.1.3 -j ACCEPT
iptables -A INPUT -p tcp -s 192.168.1.4 -j ACCEPT
iptables -A INPUT -p tcp -s 192.168.1.5 -j ACCEPT

is what i use to close of and stealth ports i dont need - still newish to slack myself - been using it for a while but never really looked into it - it was working so i left it alone so dont know if above is right or not
 
Old 09-24-2006, 01:36 PM   #9
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 537

Original Poster
Rep: Reputation: 62
haven't moved on to trying grub yet, still wanted to try my best with lilo.
i ran the mkinitrd command, and it created an initrd-tree in /boot

i was not quite sure what to do next, so i just copied /etc/inittab to /boot/initrd-tree/etc/
and then modified the inittab to have a default runlevel of 4; ran mkinitrd and it created an initrd.gz file in /boot.
edited lilo.conf to create a new entry for TUI (including a line with initrd = /boot/initrd.gz and then ran lilo; no errors occured.

when i rebooted lilo presented me with the two options i added (Slackware-GUI and Slackware-TUI), but both of them boot slackware into init 3 despite the fact that the inittab file in /boot/initrd-tree/etc was modified so that it was set to init4.
what am i doing wrong? is using a modified inittab in the new initrd.gz file not the right way?

Last edited by easuter; 09-24-2006 at 01:49 PM.
 
Old 09-25-2006, 01:47 AM   #10
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
I was used to grub too from previous distros, till i found how simple and stable is lilo.
/etc/inittab is the file to edit for runlevels, also check /boot/README.initrd
I think i'd help to check alienbob's and shilo's sites:
http://alien.slackbook.org/dokuwiki/...kernelbuilding
Post if you have more questions, lots of helpfull people around
 
Old 09-25-2006, 02:42 AM   #11
Excessive
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware 10.2
Posts: 7

Rep: Reputation: 0
Welcome to the best Linux community in the world. It's a very good feeling to be part of this community, you'll realize it in time
 
Old 09-25-2006, 02:51 AM   #12
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 537

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by mannyslack
I was used to grub too from previous distros, till i found how simple and stable is lilo.
/etc/inittab is the file to edit for runlevels, also check /boot/README.initrd
I think i'd help to check alienbob's and shilo's sites:
http://alien.slackbook.org/dokuwiki/...kernelbuilding
Post if you have more questions, lots of helpfull people around

thanks for the reply!

i had already read the README.initrd, and it did not mention anything about adding an initrd.gz with the sole intent of having the option of booting slackware to a different runlevel when lilo starts (choice between text-user interface and graphic interface).
do i have to compile my kernel just for that?

EDIT:
i need these lilo options because i don't want to continualy tamper with inittab

Last edited by easuter; 09-25-2006 at 02:59 AM.
 
Old 09-25-2006, 03:56 AM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Just add a line with append="4" to the kernel you want to run with that runlevel.
ie:
Code:
image = /boot/vmlinuz-2.6.13-gb
  root = /dev/hda6
  label = Linux2.6.13
  read-only 
image = /boot/vmlinuz-2.6.13-gb
  root = /dev/hda6
  label = "Linux2.6.13 with X"
  append = "4"
  read-only
Of course, run lilo after that change to update the loader.
 
Old 09-25-2006, 06:00 AM   #14
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 537

Original Poster
Rep: Reputation: 62
@gbonvehi:

thats exactly what i have been looking for, thnaks man!

it is actualy nice to do the all the configuration manualy, its like driving a car with both hands on the steering wheel!

i guess i'm kind of paranoid about what goes on within an OS, so its reasuring to have Slackware's transparency.
 
Old 09-25-2006, 06:03 AM   #15
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 916

Rep: Reputation: 87
You can also enter the number (for runlevel) manually at the boot: prompt (and other options, too).
 
  


Reply

Tags
kernel, lilo, runlevel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Slackware User who needs guidance and reassurance! ruinedshadow Linux - General 5 03-21-2006 01:35 PM
Some Guidance Please! AdykOSu Linux - Newbie 4 12-22-2005 05:26 PM
Looking for Guidance - Security glasscutr Linux - Security 6 07-11-2004 06:39 AM
Linux Guidance KevinGuy Linux - General 5 01-31-2004 12:02 AM
Sound Guidance murray_linux Slackware 13 12-04-2003 09:53 AM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration