![]() |
![]() |
Tech support |
![]() |
Text with a grey background will vary between users and systems.
Text in a Courier/Serif-type font is to be typed at a terminal/command prompt.
Text inside [square brackets] is optional to the command and can be ignored or changed.
"example.net" is a fictitious domain.
Kickstart for Fedora and RedHat Linux
Remote Installation Service: RIS for Windows
Oracle, Windows, Linux (bash) and OSX commands.
Linux quick reference (pdf format). Thanks to Jialong He.
ifcfg syntax
VNC reference: part I, part II
How to implement "security = domain" on a Samba server
To start the GUI:
init 5
To stop the GUI:
init 3
To restart the GUI (from within):
Press <Ctrl>+<Alt>+<Backspace>
To set whether the GUI starts at system start-up:
vi /etc/inittab
To make the .iso image:
mkisofs -J -R -r -V cdname -iso-level 3 -joliet-long -o isoname.iso /path/
To detect the writer device:
cdrecord -scanbus
To write the .iso image to the disk choose one of:
growisofs -dvd-compat -Z /dev/hdc isoname.iso
cdrecord dev=0,0,0 -eject driveropts=burnfree -v isoname.iso
dvdrecord dev=0,0,0 -eject driveropts=burnfree -v -[tao|dao] isoname.iso
growisofs -dvd-compat -use-the-force-luke=tty -Z /dev/hdc isoname.iso
To connect to CHARLIE on port C from port A on the local computer using bravo@BRAVO as a gateway:
e.g. Bob Smith is sitting at homepc wanting to connect to http://intranet using gateway.example.net as a gateway:
To connect to CHARLIE on port C from port A on the local computer using bravo@BRAVO as a gateway:
e.g. Bob Smith is sitting at homepc wanting to connect to http://intranet using gateway.example.net
Start PuTTY and connect to the gateway using ssh, e.g. gateway.example.net
Configure the tunnel:
Check that the connection is working:
mount -t smbfs -o [ro|rw,][uid=0,][dmask=700,]username=windowsusername[/windowsdomain] //windowscomputer/sharename /pathonlinuxcomputer/
apt-get install smblient smbfs
mount -t cifs -o [ro|rw,][uid=500,][gid=500,]username=windowsusername[,domain=windowsdomain] //windowscomputer/sharename /pathonlinuxcomputer/
Add options to autofs/automount:
Add OPTIONS="-O sec=sys" to /etc/init.d/autofs
To connect via COM1:
cu -l /dev/cua0 -s 9600
Find syntax
find /usr/share/bugzilla/ -name Group* -print
Synchronise files:
rsync -avz -e ssh sourcepath/ remoteuser@destinationremotehost:remotepath
Copy directories maintaining all file properties:
( cd source && tar -cvf - ./ ) | ( cd destination && tar -xvf - )
View directory sizes:
du -hsx *
View a process
strace -p process
Change the default editor:
[[ -x /usr/bin/vim.basic ]] && update-alternatives --set editor /usr/bin/vim.basic
Set the time
date --set "2009-08-20 15:35"
Linux |
Windows |
|
| Release the DHCP address | dhclient -r | ipconfig /release |
| Renew the DHCP address | dhclient | ipconfig /renew |
| Get netbios information on a host | nmblookup -A hostname | nbtstat -a hostname |
| Mount/map an smb/cifs share | See above | net use X: \\windowscomputer\sharename /user:[windowsdomain\]windowsusername |
| Mount a CD image | mount -o loop -t iso9660 isoname.iso /path/ | |
| See which smb shares are available | smbclient -U username -L windowscomputer | net view windowscomputer |
| See which nfs shares are available | showmount -e unixcomputer |
HTML is often put in spam. It links to the website of the spammer and downloads images.
That lets the spammer know you've read their email.
You can disable this functionality in Outlook 2002 by following these instructions.
Spam-me-not email link obfuscator
m0j0.net ©2010
|
Disclaimer The views expressed on this site are solely those of the author. Quotations are attributed as far as possible to their authors. The author of this site is not responsible for the content of external internet sites. |