Top.Mail.Ru
Linux Diary — LiveJournal
? ?

Sun, Feb. 13th, 2005, 11:46 pm
Stopping/Starting Services

/etc/init.d/servicename action - Affect a servicename. Possible actions are start, stop, reload, report, restart and status.
The great thing about this is that it works on almost  all distros, unlike a command like service servicename action, which only works on Red Hat/Fedora

Sat, Feb. 12th, 2005, 02:28 am
aliases

I just learned how to make aliases, they make my life so much easier.

alias - Create a command alias. For example if whenever I use ls I always use ls -l, I can set it up     so ls automaticlly uses -l. The command would be "alias ls='ls -l' ".

To make an alias permanent for all users put the alias command in the file /etc/bashrc

To make the alias permanent for one user but it in the file ~/.bashrc

Sat, Feb. 12th, 2005, 12:15 am
Command-Line Metacharcters

I'm trying to learn as much about the command line, bash in particular, as I can.
Command Line Meta-Charecters:
* - wildcard, use this if you dont know part of a filename or somthing else. Finds infinate charecters.
? - wildcard that only finds one charceter.
[abc...] - matches any single charecter entered
[a-z] - matches any range of charecters
[!abc] - matches any charecter besides what you list
[!a-z] - matches any charecter not in the range.
~ - Represents the current user's home directory.
~+  - represents the directory your currently in. (Working Directory)
~-    - The previous working directory. (The one you were in before the one your in now :-P)
~userid - home directory of the userid you specify.

Fri, Feb. 11th, 2005, 09:22 pm
TCP/IP Wrappings

Ok, I just learned how to set up TCP/IP wrappings so that you can secure your linux box. These are used to deny remote access through certain services.
The configuration files are /etc/hosts.allow and /etc/hosts.deny

Heres an example. Say you want to allow access to ssh to only certain hosts, or only certain hosts from a certain network.

first you edit the
/etc/hosts.deny
file with vi or emacs or whatever you choose, and insert a line at the end which reads:
sshd: all

sshd is the ssh deamon wich runs an ssh server on your computer. The sshd:all line denys all incoming requests to access the ssh server. The next step is to allow the particular hosts and network who you wish to be able to connect, so you edit the file
/etc/hosts.allow
you allow hosts and networks by adding the line
sshd: 192.168.1.45 10.4.3.
In doing this I have allowed the particular host with ip address 192.168.1.45 to connect and any host from the network 10.4.3 to connect.
Thats basically it, its not even necessary to restart the sshd service, Linux is just that great.

Fri, Feb. 11th, 2005, 09:11 pm
sit devices

Anybody know what an sit device is? I was looking at my firewall configuration and one of the trusted devices is "sit0"

Fri, Feb. 11th, 2005, 02:25 am
Changing startup services manually

Anybody have any idea how to change what services run at startup manually, without using any utilities. I want to edit whatever text file tells the runlevel which services to start, I just cant figure out which file that is.

Thu, Feb. 10th, 2005, 06:20 pm
Linux Reference Sheet

OK I finally found some hosting for the reference sheet I wrote. It's only a first draft. Some of the commands, although not most, apply only to Red Hat and Fedora. These are only the commands that start with system-
Most of the sheet is good for any Distro.
Here's the link:
http://atlas.walagata.com/w/bourneagain/linux-reference-sheet-1st-draft.rtf

Thu, Feb. 10th, 2005, 06:12 pm
Slackware

I'm really liking what I've been hearing about slackware, so slackware it is! w00t!

Thu, Feb. 10th, 2005, 01:18 am
Fedora vs. Slackware

I've been using Fedora for a while now, but I'm thinking I might switch to Slackware. I've heard its way more advanced then almost any other distro. Opinions?

Wed, Feb. 9th, 2005, 03:52 am
Installing Java

I can't seem to get the Java VM installed in Fedora. I downloaded it from java.com and ran the installer. The install completes and yet no java based software can run, and when I try to view java applets on websites in firefox or mozilla, they don't work. Any ideas. (Yes I am installing Java as root)

10 most recent

Image