Linux commands

From LinuxMCE
Revision as of 16:15, 20 October 2009 by Rperre (Talk | contribs) (New page: Category: Troubleshooting Category: Articles needing expansion = Linux commands = This wiki is for the many of us out there that are new to linux and don't know the general comma...)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Linux commands

This wiki is for the many of us out there that are new to linux and don't know the general commands used to find/edit/troublehoot. It also describes a lot of regularly used files for troublehooting. I will just use the core in my examples, but you can do this for any md also.

logging into a terminal you core or md

a lot of troubleshooting is done from a terminal, which is different than a windows or kde environment

  • on the core/hybrid itself press ctrl-alt-f1 for what i call terminal 1, you can also use f2, f3 or f4 and have 4 terminals open at the same time
  • from a windows box download putty which is a free ssh (secure shell) program to telnet into your core/hybrid
    • download here [1]
    • open the program and for the core/hybrid use 192.168.80.1 for the Host Name (or IP address) and click the 'Open' button

You are now in a command terminal on your MD

becoming root

for most of the changes you want to make or installing new software you have to become 'root' (equivalent to administrator in win)

  • if you are worried about messing stuff up, just use the 'sudo' command to become root just for that command, this is generally recommended for novice users of linux
    • kubuntu will ask you for a password when you do, enter the password you used to setup the first account while installing kubuntu. kubuntu will only ask you for your password once per session===
  • if you want to become 'root' and stay that way use the 'sudo -i' command and answer the password

You are now root on the system or can use a command as root

viewing and editing files

for this example i'll use your video setup file xorg.conf

  • location /etc/X11/xorg.conf

this file is used to store all your videocard settings, a lot of simple fixes can be made in here like changing the driver from vesa to nvidia and vice versa.

  • To view you xorg.conf just use the 'cat' command:
cat /etc/X11/xorg.conf

To edit xorg.conf use any of the editors available, in kubuntu 'vi' is always available, i use 'nano'

  • if you don't have nano, you can use the following command to install it
 sudo apt-get install nano
  • after installing nano, just use:
nano /etc/X11/xorg.conf to edit the file

you can now view and edit your xorg.conf, ofcourse you can use these same commands to view/edit any other file


This is a start and i will be adding to this wiki while i figure out commands on kubuntu and while troubleshooting, please feel free to add your commands at any time

a much more elaborate explanation and list of commands is found here at ubuntu.com [2]