Difference between revisions of "Linux"

From esoterum.org
Jump to: navigation, search
(Commands)
(Commands)
Line 40: Line 40:
 
:<code>cat /proc/meminfo</code>
 
:<code>cat /proc/meminfo</code>
 
:<code>dmesg</code>
 
:<code>dmesg</code>
:<code>lspci</code>, list pci devices
+
:<code>lspci</code> (list pci devices)
:<code>df</code>, hard drive information
+
:<code>df</code> (hard drive information)
 
</code>
 
</code>
 
*<code>find . -name "rc.conf" -print</code>
 
*<code>find . -name "rc.conf" -print</code>

Revision as of 14:23, 13 August 2008

Fedora 7

  • su - change to super user
  • init [number] set runmode number (5=graphical, 3=text, 1=single user)

KDE

  • startkde start KDE (from ssh)
  • Added xset r off to .bashrc hopefully fixing annoying problem with unwanted repeating characters when using VNC based on this conversation.
  • Attempted to set up remote desktop sharing through ssh, so far not really working:
% krfb
% vncviewer localhost:5900
-Added XTEST(X11R6) to Exceed Xconfig under X Server Protocol, Extensions Tab

CygWin

  • Installing minicom on cygwin:
  1. Add folder: <code>/var/lock
  2. Move file minirc.dfl to /usr/local/etc
  3. Fix serial port /dev/ttyS1 -> /dev/com1 ???

Unix/Linux

Scripting

Commands

  • To get information on the server/computer:
cat /proc/cpuinfo
cat /proc/meminfo
dmesg
lspci (list pci devices)
df (hard drive information)

</code>

  • find . -name "rc.conf" -print
  • xhost +[server name, i.e. vlsi] (give permission to remote server to use local display)
  • setenv DISPLAY=###.###.###.###:0.0 (set DISPLAY variable to local ip address)
  • cat /var/log/messages |grep *** (Search system messages for specific word)
  • service xinetd restart (Restart xinetd server)
  • rpm -ivh foo-1.0-1.i386.rpm (Add a package with rpm)
  • rpm -e foo (Remove a package with rpm)
  • ps (processes)
  • top (processes dynamic list)
  • strace ./ldecod.exe -e trace=gmon.out Debugging: print system calls made by ldecod.exe during execution
  • bzip2 -cd files.tar.bz2 | tar xvf - Bzip
  • tar -cf ouput.tar folder Tar a folder
  • tar -czvf output.tar.gz folder Tar and gzip a folder
  • tar -xzvf input.tar.gz Untar and unzip a tar-ball
  • md5sum [filename] Generate md5 hash of [filename]

Software

  • yay: yet another YUV viewer
%yay [-s <with>x<height>] <filename>.yuv
  • mpeg4ip tools: toolbox for mp4, avi, mov, etc.
%mp4creator -extract=1 file.avi file.264

Drivers

Utilities

Virtual Network Computing (VNC) Server

  • VNC on Wikipedia
  • TightVNC information
  • vncserver :1 -geometry 1880x1160
  • vncviewer localhost:# over ssh
  • /etc/sysconfig/vncservers
  • /sbin/service vncserver restart
  • vncserver -kill :1

Bootloader

USBNET (USBDNET)

-BLOB requires cdc_subset module (# modprobe cdc_subset)
-apparently uhci-hcd is the usb 1.0 driver from linux 2.4

TFTP

Compilers

Make

Fedora Red Hat Enterprise Linux (RHEL)