Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,244
» Latest member: dangyc
» Forum threads: 4,031
» Forum posts: 16,406

Full Statistics

Online Users
There are currently 453 online users.
» 0 Member(s) | 449 Guest(s)
Baidu, Bing, DuckDuckGo, Google

Latest Threads
how to allow only steam t...
Forum: Xorg Problems
Last Post: moquber
2026-03-17, 09:40 PM
» Replies: 0
» Views: 299
Wi-Fi works for a few min...
Forum: Network Problems
Last Post: kabifff
2025-12-15, 12:57 AM
» Replies: 0
» Views: 669
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 4,029
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 125,239
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 75,394
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 5,407
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 9,227
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 47,569
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 166,527
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 98,054

 
  How to add a directory to the path and why ./ is b
Posted by: Digerati - 2003-12-15, 04:50 PM - Forum: Tips and Tricks - No Replies


How to add a directory to the path and why ./ is bad

 

By default there is a limited set of directories that are part of the path. This means that only files that are marked executable and in one of these dirs will be able to be run. The other way to run programs not in the path is to provide the full path to the program, or if it is in the current working directory then you put ./ before it e.g. ./progname. Sometime you will want to add a directory to the path, so that programs and scripts can be placed in this dir and run from anywhere on your system.

 

The easiest way to accomplish this is to edit the /etc/profile for system wide changes or ~user/.bash_profile for user based changes. There will be an entry like PATH=$PATH:$HOME/bin and all you will have to do is edit this line. I would recommend not adding the current working directory (./) to the path as this can present a potential security hole. Apache and other programs can access scripts and if they have the ability to address the CWD then they could be accessing programs that have no wish to be run.

Print this item

  How do I change my password
Posted by: Digerati - 2003-12-15, 04:46 PM - Forum: Tips and Tricks - Replies (4)


passwd is the unix password command that allows you to change your password.

Executed on its own will change the password for the currently logged in user.

If you are root and execute passwd user , then you will be able to change the password for that user.

Print this item

  apt-get
Posted by: kZo - 2003-12-15, 04:39 PM - Forum: Kernel Related - No Replies


I recently have learned of how to upgrade the Kernel with apt-get. Something I was unaware of.

 

[root@snappy]# apt-get install kernel

 

This will display a list of available kernels that you can install. Pick which kernel you'd like to install and then:

 

[root@snappy]# apt-get install kernel#2.4.20-8

Print this item

  Lost root password (lilo)
Posted by: Digerati - 2003-12-15, 04:34 PM - Forum: Tips and Tricks - No Replies


This should do it.

Reboot the machine.

When the LILO: prompt comes up, type in linux single.

This starts your gateway in single user maintenance mode.

You can reset your password by typing passwd.

Reboot the machine and you should be sorted.

Print this item

  Lost root password (grub)
Posted by: Digerati - 2003-12-15, 04:31 PM - Forum: Tips and Tricks - No Replies


At the Grub boot menu hit "e"

Select the line that begins with "kernel"

 

Hit "e" again

 

Move the cursor to the end of the line and add " init=/bin/bash" then hit enter

 

Press "b" to boot the system

 

At the bash prompt that comes up, type the following: "mount /proc" then hit enter

 

next type "mount / -o rw,remount" then hit enter

 

next type "passwd" then hit enter

 

now enter your new password twice

 

You should receive a notice stating "All authentication tokens updated successfully". This confirms your password has been changed.

 

next type "mount / -o ro,remount" then hit enter

 

now press control-alt-delete to reboot

 

logon with new password to verify

 

Credit to Buddha and his LUG

Print this item

  How to install an RPM
Posted by: kZo - 2003-12-15, 04:31 PM - Forum: Package Management - Replies (8)


To install:

[v702623@snappy]# rpm -ivh foo.rpm

 

To update:

 

[v702623@snappy]# rpm -Uvh foo.rpm

Print this item

  How to get a list of processes
Posted by: Digerati - 2003-12-15, 04:23 PM - Forum: Tips and Tricks - No Replies


Sometime you will have to find out what processes are running on your box. To get a complete list issue the command

 

ps -aux

 

however if you want to find the process info for say named then you could issue the command

 

ps -aux | grep named

 

and this will return info for all instances of named that are running.

Print this item

  Currently assigned addresses
Posted by: Digerati - 2003-12-15, 04:21 PM - Forum: DNS and DHCP - No Replies


How do I check to see what address are currently in use that have been assigned?

 

 

at the console with

 

 

cat /var/lib/dhcp/dhcpd.leases?

or

 

webmin => under servers>dhcp

Print this item

  Windows - My Documents
Posted by: kZo - 2003-12-15, 04:12 PM - Forum: Tips and Tricks - No Replies


Everyone is familiar with the folder "My Documents" here is a little tip for network use.

 

<right-click> on mydocuments

 

<properties>

 

<target> Set your target to the location you'd like to save your documents.

 

 

example:

 

Target: "\\server1\users\%localuser%"

 

%localuser% is a windows variable. This will create the folder under the server specified in the X:\directory\users\

 

The folder is created with the name of the person that is logged into the machine that changes that option.

 

example:

 

%localuser% = Administrator

 

Target: "\\server1\users\%localuser%" will create the directory

 

X:\directory\users\administrator

 

This is very handy when dealing with laptops, and roaming users.

 

Windows actually "syncs" the files when you logon and log off. Allowing you to use multiple machines.

Print this item

  Samba Questions
Posted by: kZo - 2003-12-15, 04:03 PM - Forum: Samba and NFS - Replies (4)

Does Samba work with Active Directory and Server 2003 Yet? Anyone know?

Print this item