Difference between revisions of "Linux"
From esoterum.org
(→bluefish) |
(→Utilities) |
||
Line 117: | Line 117: | ||
*[http://bluefish.openoffice.nl/ Home at openoffice], bluefish is | *[http://bluefish.openoffice.nl/ Home at openoffice], bluefish is | ||
:*Bluefish is a powerful editor targeted towards programmers and webdesigners, with many options to write websites, scripts and programming code. | :*Bluefish is a powerful editor targeted towards programmers and webdesigners, with many options to write websites, scripts and programming code. | ||
− | |||
=== cron === | === cron === |
Revision as of 12:54, 30 September 2010
Contents
Fedora 9
- Boot to single user mode
- Java FAQ on the Fedora wiki
- Installing VMware tools
- List of services and recommendations
- Custom Kernel
- Building kernel from source RPM
- Building kernel for PS3
Fedora 7
- Fedora FAQ
su -
change to super user
Add user:
/sbin/adduser username
passwd username
Add user to sudo list:
echo 'loginname ALL=(ALL) ALL' >> /etc/sudoers
Where 'loginname' is your user account. Use 'ALL=(ALL) NOPASSWD:ALL' if you don't want to require a password
Add user to existing group (precede with su -
):
usermod -G {groupname} {username}
sudo chown -R new_owner:new_group folder
Recursively change owner and group of folderinit [number]
set runmode number (5=graphical, 3=text, 1=single user)[ctl][alt][F1]
switch to text mode[ctl][alt][F7]
switch to graphical mode
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:
- Add folder: <code>/var/lock
- Move file
minirc.dfl
to/usr/local/etc
- Fix serial port
/dev/ttyS1
->/dev/com1
???
Unix/Linux
- Basic unix commands
- Basic unix commands
- IO-Redirection shell commands
- Linux command reference
- Emacs manual
- Vi manual
- Gawk manual
- GNU awk manual
- GNU manuals from University of Utah
Command Line
- init and runlevels
- Common Linux commands
- Common Linux commands
history
- count lines of code in a directory http://vision-media.ca/resources/unix/counting-lines-in-a-script
find . -type f | xargs wc -l
find . -type f -name '*.c' | xargs wc -l
specific file type
mount -o loop disk1.iso [/directory]
Mount an .iso file- To get information on the server/computer:
cat /proc/cpuinfo
cat /proc/meminfo
dmesg
lspci
(list pci devices)df
(hard drive information)
id
get my UIDpkill -U [UID]
Logoff user "UID"pgrep
looks through the currently running processes and lists the process IDs which matches the selection criteria to stdout.ifconfig
network/ip information |/sbin/ifconfig
if not rootsysctl kernel.hostname=NEW_HOSTNAME
to permanantly change hostnameservice network restart
restart network servicesfind . -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 executionmd5sum [filename]
Generate md5 hash of [filename]ar -s
orranlib
add index to archive (.a) file
Software
- cloc: utility for counting lines of code
- meld: compare and merge up to three files
- yay: yet another YUV viewer
%yay [-s <with>x<height>] <filename>.yuv
- mpeg4ip tools: toolbox for mp4, avi, mov, etc. (!!! Could only find executables for Windows !!!)
%mp4info.exe [file.mp4]
%mp4creator -extract=1 file.avi file.264
(extract track number based on info given bymp4info.exe
- gprof: gnu profiling software
%gprof [executable] gmon.out > [gprof.out]
gmon.out
is generated by compiling target executable with -pg as a compiler and linker flag, then running the resulting executable normally
- cgprof: generate call-graph based on gprof data
cgprof -T ps -g [gprof.out] [gprof.ps]
(output postscript file)
- Converting postscript to other format.
- -Use Windows GhostScript->convert to generate a .tif (600dpi) or .pdf (720dpi) or one of several other formats
- -For poster size images generate .pdf with GhostScript and open with PaintShop Pro using high dpi value, then save as .tif or other file and print with MS Publisher as poster
egypt
Create call graph from gcc's rtl dumplinks
text based browser
Drivers
Networking
- How to set dhcp hostname in linux
- Set dhcp hostname in windows xp
- Very thorough tutorial on TCP/IP and iptables, Oskar Andreasson
Utilities
bluefish
- Home at openoffice, bluefish is
- Bluefish is a powerful editor targeted towards programmers and webdesigners, with many options to write websites, scripts and programming code.
cron
- crontab information, editing cron's tasks
tar/bzip
bzip2 -cd files.tar.bz2 | tar xvf -
Bziptar -cf ouput.tar folder
Tar a foldertar -czvf output.tar.gz folder
Tar and gzip a foldertar -xzvf input.tar.gz
Untar and unzip a tar-ball
poster
- poster, create multipage postscript files from postscript input
gdb
- >GDB Internals from U Utah
- cheat sheet
- Quick reference from Harvard
x/16w $sp
display 16 words starting at address of stack pointerdisplay/x {long long int}__ovly_current
after every halt display contents of address __ovly_current as long long int in hexidecimal formatset spu stop-on-load on
set temporary breakpoint upon entry to spu code in ppu-gdb
find
nm
nm --size-sort *.o
>function_sizes.nm
report sizes of all functions in given object files
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
grep
grep -lir "[text]"
find file containing
find . | xargs grep whatever
recursively find text starting from .
xev
- Track interface signals such as key presses and mouse movement
Bootloader
USBNET (USBDNET)
- -BLOB requires cdc_subset module (
# modprobe cdc_subset
)
- gadget driver information (linux-usb.org)
- remove linux 2.6 usb 2.0 driver?
modprobe -r ehci-hcd
- -apparently
uhci-hcd
is the usb 1.0 driver from linux 2.4
public key authentication
scp
rsync
- Making secure remote backups with Rsync
rsync -avz -e ssh ~/source/ user@host:~/destination/
sed
ls *old|sed 's/\(.*\)\.old/mv \1.old \1.new/'|sh
TFTP
Compilers
gcc
- Online book: GNU C Compiler Internals
- Dumping intermediate formats
- The Difinitive Guide to GCC
- gcc flags
- Information on -Wl,--gc-sections linker option
XLC
Make
- >>Make functions, string manipulation etc.
- generic makefile on sourceforge, text here
- Make manual
- Various Make statements
- Advanced Makefile reference