LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-14-2007, 06:19 PM   #16
mikelist
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 0
wireless slackware


i just installed slackware 12 on my laptop. all i had to do was check iwconfig to make sure the wireless was recognized, then "dhcpcd eth1"
at which point i checked ifconfig to make sure.

i really can't speak about any other machines, mine is an older dell latitude cp.
 
Old 12-14-2007, 10:16 PM   #17
maniac matt
Member
 
Registered: Oct 2007
Location: Beantown
Distribution: Arch Linux
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by titopoquito View Post
trickykid meant something like this:

file ~/.bashrc
Code:
export PATH=$PATH:/sbin
file ~/.bash_profile
Code:
if -f ~/.bashrc; then
  . ~/.bashrc
This way /sbin is -- like all folders in your path before -- is searched for executables when you type in a command.


Well, i am sorry to say that i don't quite get how to do this... do i need to find a file named "/.bashrc", and add those lines?


basically.. i don't know where to start.

help?
-matt
 
Old 12-15-2007, 02:23 AM   #18
pappy_mcfae
Member
 
Registered: Feb 2007
Location: Dallas
Distribution: Gentoo x86 & x86_64
Posts: 190

Rep: Reputation: 31
Post

Quote:
Originally Posted by maniac matt View Post
Well, i am sorry to say that i don't quite get how to do this... do i need to find a file named "/.bashrc", and add those lines?


basically.. i don't know where to start.

help?
-matt
That's easy. Assuming you use KDE as your X Windows manager:
1) Open konqueror using the "System" icon on your desktop.
2) Click on "Storage Media".
3) Click on your root media disk.
4) Under that, click on the /root folder.
5) In the pane on the right, right click and select "Create New"-->"Text File; enter .bashrc in the dialog box.
6) Repeat above step, but this time enter .bash_profile in the dialogue box.
7) Open the newly created ~/.bash_profile; cut and paste the following into it:
Code:
# ~/.bash_profile
# Source .bashrc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
8) Save and exit
9) Open the newly created ~/.bashrc file; cut and paste the following into it:
Code:
# ~/.bashrc bash configuration file
export PATH=$PATH:/sbin
#
10) Save, exit, reboot.

~/.bashrc is a really useful tool. Mine compensates for the fstrans=no bug in checkinstall, sets the color schemes for my console (and konsole) sessions, loads my UTF8 console font, and adds my custom programs and scripts folders into my path.

FYI, if it's confusing, ~/.bashrc is short for /root/.bashrc

Hope that helps

Blessed be!
Pappy
 
Old 12-15-2007, 05:16 AM   #19
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
4) Under that, click on the /root folder.
[... snip ...]
FYI, if it's confusing, ~/.bashrc is short for /root/.bashrc
I didn't mean to put them in /root but in your normal user's folder. Don't want to start a flame war here but basically it's useless to create the PATH line for root user (like I stated above) and most people will also advice to not use root account for all tasks as long as you don't really know what you are doing. Since you seem to be a beginner, you should do most things from a normal user account anyway unless you are prepared to reinstall Slackware a couple of times.
So these files belong into /home/matt if you have an user called "matt" (I guess you do ). If they don't exist, just create them. Edit them with any editor of your choice (nano, vim, emacs in console, kedit, kwrite, mousepad ... in graphical mode).
If you want this for all users for which you might have accounts on your machine, you can put the line in /etc/profile (you have to be root to do this). Or you create the files also in /etc/skel so that any time you create a new user, that user will get them copied to her/his /home/name-of-user folder.

If you want to understand why they are useful and why they both are required read the BASH guide for beginners at www.tldp.org.

Last edited by titopoquito; 12-15-2007 at 05:17 AM.
 
Old 12-15-2007, 08:44 AM   #20
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
FYI, if it's confusing, ~/.bashrc is short for /root/.bashrc
Please please please don't start trying to help people by using the root account in your examples.
Running as root for day-to-day activities is very unsafe, I guess there are people who do not care to be hacked at some time, but this forum targets the questions of newbie Slackware users.

I do not want see any posts in this forum that would make it appear as if running as root is safe to do.

Eric
 
Old 12-15-2007, 09:42 AM   #21
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
I would use ip alias in /etc/rc.d/rc.inet1
If you connect to allot of networks regularly this is the best way to solve it.
Heres an example of an ip alias.
# Config information for eth0
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth0:1
IFNAME[1]="eth0:1"
IPADDR[1]="192.168.1.10"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

Last edited by Nille_kungen; 12-15-2007 at 09:47 AM.
 
Old 12-16-2007, 11:37 AM   #22
maniac matt
Member
 
Registered: Oct 2007
Location: Beantown
Distribution: Arch Linux
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks Pappy, i will give it a shot, and Alien Bob, i will be sure to put it into my /home/matthew file.

Also thank you to Nille Kungen.. i will also give that a shot.


-Thanks again, Matthew
 
Old 12-17-2007, 06:52 AM   #23
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Scratched this post...misread some things. My apologies.

Last edited by unixfool; 12-17-2007 at 06:54 AM. Reason: botched post
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless in slack briansaysword Linux - Wireless Networking 5 10-01-2006 11:40 PM
Wireless and Slack 10.1 SoccerPenguin15 Linux - Wireless Networking 5 02-16-2005 10:49 AM
Wireless in Slack 10? oudent Linux - Wireless Networking 3 07-13-2004 09:03 PM
Slack 10.0 Wireless Problems TedNugent Slackware 11 07-06-2004 06:57 PM
slack 10 and wireless lyceum Slackware 2 06-28-2004 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration