Posted by nseidm1 in Server
If you know the IP addresses that will be connecting to your machine, lock them down. Use the hosts.allow file as follows.
sshd : localhost : allow
sshd : 192.168.3. : allow
sshd : 192.168.1. : allow
sshd : ALL : deny
Using sshd : ALL : deny and listing various allow rules blocks everything other than the allowed rules. Therefore using sshd : IP : allow you will be able to connect to the machine from that IP only and everything else will be rejected. This procedure will substantially increase the security of the server.
Posted by nseidm1 in command
Vi was the original terminal based text editor created for Unix. It is as small and as simple as it gets. The binary resides within the Unix and Linux bins, and can easily be placed on a removable media for ultimate emergency portability. There are three modes to vi:
1. command mode
2. ex mode
3. insert mode
First open a file. Open your grub configuration file. Sudo vi “/boot/grub/menu.lst”. Use up, down, left, and right to navigate eh terminal. Press escape and it will return the mode you are in. Press R to enter replacement mode. Use i or a to insert text rather than replace it. To exit vi use :wq or ZZ. To save without exiting use :w. Or to quit without saving use :q.
Or you can use nano. Type:
sudo nano /boot/grub/menu.lst
Nano is always in edit mode. Move the cursor to the position you want to edit, and backspace to remove text, or type to add. Then press control-o to save, and control-x to quit. After looking into vi, its easy to realize both have the same functionality, and ultimately have various commands to do things. The commands are quirky, especially for us who grew up with graphical editors. But once you know the commands to save and exit you can corrolate functionality with any graphical text editor.
command mode,
graphical editors,
graphical text editor,
grub,
mode,
nano,
Press,
text,
unix and linux,
use,
vi,
wq
Posted by nseidm1 in less
Have you ever hit an ls and it prints way to much? Have you ever hit a ps and its prints way too much? There are several things you can do. You can pipe it to a grep filter. If your search a downloads folder for NVIDIA drivers do:
ls | grep NVIDIA
You can also use the less command. Using less will fill the standard output with text and then prompt you to proceed to the next page. For example use:
ls | less
Use the space bar to continue to the next page. This is quite convenient for large standard outputs. q will terminate the scrolling g allows you to go to a particular line.
Posted by nseidm1 in Compiz
When you boot your machine you want to open a variety of windows or applications on different desktops, but they only seem to open on the main desktop even with use of the place plugin. The place plugin in compiz works for a variety of applications but does not work for VirtualBox graphical windows. Wmctrl is another plugin that allows you to move windows to different locations on the desktop. For example, if your desktop is 1920 x 1080 you can move a window to the second desktop, in the x direction, by placing it to 1921. For example if you launch MythTV automatically on boot, and you want it on the second desktop use the following in a startup session script. Wmctrl is a package in the default Ubuntu repositories give it an apt-get to install. wmctrl -r "mythfrontend.real" -e 0,1921,0,1920,1080 There are a variety of option to wmctrl, use wmctrl --help for more info. This is how I move my Windows XP to another viewport: wmctrl -r "WindowsXP [Running] - Sun VirtualBox" -e 0,3841,0,1920,1080 In this case I move it to viewport 3.
To configure sendmail to automatically bounce most spam use one of the countless blackhole lists that are readily available, and consistently maintained: http://www.declude.com/Articles.asp?ID=97 An excellent blackhole list is maintained by njabl.org. Use is relatively straight forward. Add the following line to the end of your sendmail.mc file, then recompile the sendmail configuration file.
FEATURE(dnsbl,`combined.njabl.org',`Message from $&{client_addr} rejected - see http://njabl.org/lookup?$&{client_addr}')
For more detailed information on how to use this blackhole list you can visit their website directly: http://njabl.org/use.html I used to get well over 150 spam messages per day. Now I maybe get 5 total
Posted by nseidm1 in debian
To add a trash icon to your desktop use the gconf-editor application.
Type in a terminal:
gconf-editor
Navigate to apps->nautilus->desktop.
Checkmark “trash_icon_visible” to set the appropriate option. Simple enough