30
Jun
Posted in Nix by carlosap |
Nothing new to add, but did want to emphasize that if a text-only terminal is all you need, ’screen’ is the way to go. It is one of the lesser known unix goodies, and a true “wonder tool”: a tool you cannot live without once you use it.
The quick primer:
First time:
ssh mymachine
screen
CTRL-a-c
CTRL-a-1
CRTL-a-d
exit
Future times:
ssh mymachine
screen -r
CTRL-a-2
CTRL-a-d
exit
You can create many login sessions inside one screen instance or launch multiple instances of screen on the same box by giving them a name. See the man page for all the goodness.
27
Jun
Posted in solaris by carlosap |
You maybe know that xterm-color (the bare default xterm with color) does not exists on Solaris.
Damn !! my vim color is ugly, but there is a solution:
export TERM=xtermc, it also exists on Mac and Linux so you can change your term to announce this terminal.
Don’t forget the :syntax enable in your .vimrc
God bless coloring !
27
Jun
Posted in solaris by carlosap |
Cool Stack Installation on Solaris 10
You must be ‘root’ to install the packages. Download the packages you are interested in into any directory. For each of the downloaded packages, run the following bunzip2 and pkgadd commands:
bunzip2 [package.pkg.bz2]
For example: bunzip2 CSKmysql_1.3RC1_sparc.pkg.bz2
pkgadd -d [package.pkg]
For example: pkgadd -d CSKmysql_1.3RC1_sparc.pkg
This process will install the package in /opt/coolstack, along with all dependent libraries.
After installation, please refer to the README file included in each of the application’s directories. The README includes detailed information on the following:
how the application was built
Solaris-specific configuration and tuning notes.
Pointers to other relevant documentation.
Instructions for setting up SMF service (if applicable).
27
Jun
Posted in Security by carlosap |
OSSEC is a scalable, multi-platform, open source Host-based Intrusion Detection System (HIDS). It has a powerful correlation and analysis engine, integrating log analysis, file integrity checking, Windows registry monitoring, centralized policy enforcement, rootkit detection, real-time alerting and active response.
http://www.ossec.net/
20
Jun
Posted in Linux by carlosap |
USING .HTACCESS & HTPASSWD TO PROTECT YOUR FILES FROM UNAUTHORIZED ACCESS
| It is possible there are parts of your site which you would prefer that not just anyone have access to. APACHE and other web servers provide a system that you can use to control access to certain directories on your website. You might have a family photo album on line that you want only your family to see. No matter what your little secret is, I will show you how to help keep private things a little more private. I am sure that in your surfing around on the ‘Net you have every once in a while run into:

not a real screen! This is not JAVA or CGI-BIN, but something that is very easy to implement- even for a newer web author. The .htaccess feature of your server is activated simply by placing a small file in the directory you want to protect. Guess what the file is called? Yes, you’re correct! .htaccess
Before taking you through the steps of setting up this protection scheme, please take a moment to look at some things you should know.
- Nothing in life is truly secure. There may be holes in this system.
- The user name and password are transmitted as plain, readable text, they are not encrypted.
- If you plan on giving passwords to people, keep in mind that it is an extra maintainence function for you to perform.
- To setup .htaccess you must be able to access your server using telnet, this cannot be done using FTP. If you do not have telnet access to your site, check your provider’s FAQ or reference pages to see if they have a script you can use for setting passwords.
|
Setting up an .htaccess Protected Directory
Installing the .htaccess involves a few steps. The most important thing is to make sure you do not install the .htaccess file in your main web directory. If you do, everyone will be locked out of your website. Unless this is what you want to do, make sure you create the directory and are located in it before creating the file.
- Step 1: See where you are. At your prompt enter the command pwd to see what directory you are in. If you already have made your new directory and are in it- go to Step 3.
- Step 2: issue the command mkdir dirname where dirname is what you want to call the directory you will be protecting. Then enter the command cd dirname
- Step 3: Using an editor such as vi or pico, create a file called .htaccess (lower case letters of course- with the leading period) that looks just like this:
AuthUserFile /usr/www/dirname/.htpasswd
AuthGroupFile /dev/null
AuthName "The Secret Page"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
- Step 4: Change the AuthUserFile so that the UNIX PATH matches that of your system. This is where the password file that we will create in a moment will reside.
- Step 5: Change The Secret Page to be whatever title you want to have appear on the password box.
- Step 6: To create the password file, issue the following command: (NOTE: you only do it this way to create a new file)
htpasswd -c .htpasswd user_name (where user_name is a name)
If you get a message like, htpasswd: not found enter the command type htpasswd. If that doesn’t do the trick, try which httpd. If htpasswd is not in your path, you will have to add that directory to your path or enter the command as /what/ever/dir/htpasswd -c user_name
- Step 7: The system will ask you to enter the password for this user. It will then ask you a second time to confirm your typing.
- Step 8: Continue to add new users, but with this version of the command. The -c option is only for the initial creation of the file.
htpasswd .htpasswd new_name |
That is all there is to it! If you experience any unexpected problems, or you change your mind about restricting access, just issue the command:
rm .htaccess
18
Jun
Posted in MacOSX by carlosap |
osascript -e 'tell app "ARDAgent" to do shell script "whoami"';
14
Jun
Posted in Blog Personal by carlosap |
Servers can also run an entire client/server
environment – with each tier electrically isolated – in the
same machine. For example, the database can run on
OpenVMS while the application layer runs in Windows
or HP-UNIX partitions and the Web server runs in a
Linux partition.
14
Jun
Posted in Programación by carlosap |
http://en.wikibooks.org/wiki/Fortran
14
Jun
Posted in OpenVMS by carlosap |
CARLOS:FAFNER$ LS
Directory DISK$USER_1:[CARLOS]
CORPORATE_DATA.RDB;1 2606/2622 14-JUN-2008 03:15:49.96
CORPORATE_DATA.SNP;1 796/828 14-JUN-2008 03:15:50.33
EJEMPLO.FOR;1 1/69 14-JUN-2008 03:07:51.08
HELLO.EXE;1 6/69 14-JUN-2008 17:14:16.06
HELLO.FOR;1 1/69 14-JUN-2008 17:01:54.53
HELLO.OBJ;2 1/69 14-JUN-2008 17:08:58.82
HELLO.OBJ;1 1/69 14-JUN-2008 17:02:02.60
HOLA.BAS;1 1/69 14-JUN-2008 03:03:44.82
MAIN.TPU$JOURNAL;1 1/69 13-JUN-2008 23:00:17.88
NONAME.BAS;1 1/69 14-JUN-2008 03:03:40.03
NOTAS.TXT;6 2/69 14-JUN-2008 09:53:38.08
NOTAS.TXT;5 2/69 14-JUN-2008 03:02:49.77
NOTAS.TXT;4 2/69 14-JUN-2008 03:02:22.74
NOTAS.TXT;3 1/69 14-JUN-2008 00:39:58.97
NOTAS.TXT;2 1/69 14-JUN-2008 00:22:21.49
NOTAS.TXT;1 1/69 14-JUN-2008 00:18:44.19
Total of 16 files, 3424/4416 blocks.