Linux
From DigitalBlacksmith
[edit] Linux Stuff
[edit] Tutorials
These are some of my favorite tutorials from Ubuntu's Tutorial of the Week Thread. Some of these are scattered through the rest of the page, but here is a consolidated list.
[edit] Change /tmp dir
http://ubuntuforums.org/showthread.php?t=945595
[edit] Kernel Hacking
in /etc/fstab
/new /tmp none bind
[edit] LTSP
[edit] Alias
Add these shortcuts to .bashrc in your home directory
[edit] Shell and Console
[edit] Search
- CTRL-R : Search history
[edit] Whois
ldapsearch -x uid=whoever
[edit] G4L - Ghost for Linux
- Awesome utility
- Can masquerade as an ISO but remote mount a file system
- Google for tutorials
[edit] git
[edit] Programming
[edit] Backup
[edit] Epoch Time Converter
http://www.epochconverter.com/
[edit] Linux Killer Apps
Essential tools and such for Linux
[edit] Ready NAS Mount
Specify a password and user
sudo mount -t cifs //<ip>/backup /mnt/mnt_point -o username=myuser,password=mypasswd
mount -t cifs //<ip of readnas>/<share> /mnt/mnt_point
It will ask for the admin passed
Or this way:
mount <ip of readynas>:/<share> /mnt/mnt_point
[edit] Init.d Scripts
http://eightpence.com/a-subversion-initd-script-for-ubuntu-linux/ http://www.unix-tutorials.com/go.php?id=3327 http://gentoo-wiki.com/HOWTO_Make_an_rc_script
A Fedora init script to start synergy
An example Ubuntu init.d script
[edit] CGYWin
Cygwin is an awesome way to bring linux into the Win XP world.
Check out my Cygwin Portal.
[edit] Rsynch
[edit] General
http://www.linux.com/feature/117236
A script to automate remote backup
[edit] Setting up for SSH Keyed login
http://troy.jdmz.net/rsync/index.html
[edit] Monet Stuff
[edit] RedHat ipChains
http://www-1.ibm.com/support/docview.wss?uid=swg21147107
[edit] MOUNT
http://www.ba.infn.it/calcolo/documenti/NFSServer.htm
[edit] AMD
[edit] NAS
TODO:
- Set up exclusions for obj, exe, and others...
Push to NAS:
rsync -av Desktop <nas_ip>::linux_buhttp://digitalblacksmith.com/wiki/index.php/MAMP
Push to NAS/delete files from destination:
rsync -av --del . 192.168.1.150::eva_bu/rsync/folder
Works like a champ.
[edit] CGUI
Push to magritte:
rsync -azv -e ssh /n magritte:/monet_bu/
Note: you don't need trailing slashes. Just tried it after 24 hours of use and update finished in < 5 min with 2 log files updated...Sweet. --Admin 23:31, 9 March 2008 (EDT)
[edit] SUDO
Adding users to SUDO list (FEDORA)
[edit] TAR example to external share
Set up a mount point using mount. Then do this:
tar -v --create --absolute-names --preserve-permissions --file=/mnt/warhol/monet_bu/blaine.tar ./blaine
[edit] USB External
Setting up and formatting an external USB
[edit] Installing Meidawiki on a MAC Server
[edit] Display Configuration
On Ubuntu/Kubuntu type this on in the console to get root access to the display config gui:
sudo /usr/bin/displayconfig
[edit] Restrict Users
[edit] Win Domain
http://www.csn.ul.ie/~airlied/pam_smb/
[edit] Rescue CD
- Excellent Knoppix CD with lots of recovery goodies
- Here is a tutorial on using it to recover/undelete ext3]
[edit] LDAP
http://www.linux.com/articles/40983
[edit] Kerberos
http://www.isi.edu/~brian/security/kerberos.html
http://www.windowsnetworking.com/articles_tutorials/Authenticating-Linux-Active-Directory.html
[edit] Samba
http://www.samba.org/samba/docs/man/Samba-Guide/unixclients.html#adssdm
[edit] Global Search and Replace
Use rpl:
rpl -b -x'.html' 'www1.cs.columbia.edu/graphics/' 'graphics.cs.columbia.edu/' /var/www/html/projects/mars/Authoring.html
[edit] X Win
Using Windows and XMing to remotely work with X11
Like remote desktop but better..this lets you keep you Windows XP/Vista environment intact, and bring in the windows from linux that you need
