SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
~/.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
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.