Wednesday, November 12, 2008

Some important Linux Commands I Always Forget

This post is really just for myself... I'm learning to use Linux and there's so many commands I need to know that I constantly forget that I thought a quick post would be in order. If this helps anyone else then, great!

Restarting network service:
sudo /etc/init.d/networking restart

Getting Network Configuration (ipconfig):
ifconfig

Stopping or starting a network adapter:
sudo ifconfig [adapter_name] [operation: up/down]

Editing Networking Configuration with vi (set dhcp or static IP):
sudo vi /etc/network/interfaces
(iface eth0 inet dhcp = dhcp on)
(iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255 = setting static IP)


Installing Samba Server for SMB Shares:
sudo apt-get install samba (or just try to share a dir and follow the prompts)
SAMBA conf is in: /etc/samba/smb.conf
Need to add yourself to sambashare group as well

btnx
-Get this to get multi-button mice working like they should!
-after changing settings run this to restart:
$ sudo /etc/init.d/btnx restart

This post has the goods on getting going with it...
This post has the goods on key bindings...

No comments: