posted this in Linux, Redhat Centos, Server Setup, Ubuntu on December 5th, 2011 To modify ip-tables directly in ubuntu
First save off your current config:
$ sudo -s $ iptables-save > /root/working.iptables.rules
$ iptables-save > /root/working.iptables.rules.to.modify
At this point you can modify the file. Once your are satisfied restore it
# iptables-restore < /root/working.iptables.rules.to.modify
Configure postfix with Gmail via Webmin
This assumes the user has webmin installed and understands how to log in and use it. (Usually bring it up in a browser at https://localhost:10000 )
Make sure that postfix is installed. In Webmin this is done by going to “System”, “Software Packages” then clicking on “Package from APT” and . . . → Read More: Configure postfix with Gmail via Webmin
posted this in Active Directory, Scripts on October 30th, 2010 Scripts to manage Active Directory Users
Appending a Multi-Valued Attribute Appending a Phone Number Adding a Route to the Dial-In Properties of a User Account Adding a User to Two Security Groups Appending Address Page Information for a User Account Appending a Home Phone Number to a User Account Assigning a Published Certificate to a . . . → Read More: useful active directory scripts
posted this in Linux, O/S on October 30th, 2010 Useful Linux Commands (Red Hat)
(http://www.cse.buffalo.edu/~eisner/DLW) Revised 3/1/2000
Getting information man commandname display the manual page for a particular command named commandname man -S sectionnumber commandname display the manual page under a specific section numbered sectionnumber for the command named commandname. Sometimes the same command will exist in more than one section. man alone will . . . → Read More: Red Hat Linux cheat sheet commands examples RHEL
posted this in FreeBSD, Linux, Mac, Scripts on October 28th, 2010 Add Public SSH Key to Remote Server in a Single Command From HowToGeek
If you want to setup SSH keys to allow logging in without a password, you can do so with a single command.
The first thing you’ll need to do is make sure you’ve run the keygen command to generate the keys:
. . . → Read More: Add Public SSH Key to Remote Server in a Single Command
posted this in Linux on October 10th, 2010 How do I use shutdown command?
The shutdown command can be used to turn off or reboot a computer. Type the command as follows to shutdown server / computer immediately:
OR
How do I shutdown compute at specific time?
To shutdown computer at 6:45pm, enter:
|
|
$ sudo shutdown -h 18:45 "Server is going down for maintenance" |
At 6:30pm message will go out to . . . → Read More: shutdown ubuntu linux
posted this in Linux on October 7th, 2010 Having trouble getting x11vnc working?
Here’s the error:
|
|
root@qaubutu:/etc/X11/gdm# x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 -auth /var/gdm/:0.Xauth 06/10/2010 16:28:21 *************************************** 06/10/2010 16:28:21 *** XOpenDisplay failed (:0) *** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue. *** There may be "Xlib:" error messages above with details about the failure. |
You must run this command to figure out the right path for gdm:
|
|
root@qaubutu:/etc/X11/gdm# ps wwwaux | grep auth |
output (text in red is the info you need): root 1791 0.0 0.1 3004 748 pts/5 R+ 16:29 0:00 grep auth root 6134 0.0 3.1 37500 12148 tty7 Ss+ 2009 178:10 /usr/bin/X . . . → Read More: x11vnc was unable to open the X DISPLAY
posted this in FreeBSD on October 6th, 2010 How to find files, programs, etc using freebsd
The locate command is good for finding files and directories. Enter something similar to:
|
|
locate someprogram | more |
If that doesn’t work, perhaps try the whereis or find commands:
|
|
whereis someprogram | more find / -name "someprogram*" |
For variations on these commands, you can type:
|
|
man locate man whereis man find |
(from http://www.us-webmasters.com/FreeBSD/Tips-Hints-Tricks/How-to-Find-Files-and-Directories-on-FreeBSD/)
To find the largest ten files on the disk: . . . → Read More: freebsd find
posted this in FreeBSD, Linux, Software on October 4th, 2010 A great place to find vmware virtual machines for freebsd, ubuntu, cent os, red hat linux (RHEL), Linux Mint, etc is over at bagside’s virtual appliance repository
here’s what they offer:
Virtual Appliance Repository.
This site is dedicated to virtual appliances that we build for you to use FREE of charge (except for Windows . . . → Read More: vmware unix
|
|