Jump to content

aru

Members
  • Posts

    2022
  • Joined

  • Last visited

Everything posted by aru

  1. do you really want to do that? Why not using ssh instead, it has a lot of improvements over rsh, and the protocol used doesn't have security issues.
  2. aru

    email merge

    Disclaimer: I don't understand much of it too ;) But AFAIK, it has nothing related to your isp smtp server as you, as you're using linux, have your own smtp server. I used the sendmail (clone?) provided by postfix (my mail system). But there is a sendmail package. About procmail I have to confess that I don't have experience with it, so maybe others will help you. But anyhow, for what I've seen it the procmail man page, it needs a sendmail installed in order to work (Under files: /usr/sbin/sendmail default send mail program); so you should (would) have a copy (clone?) already installed. In any case, you must (or should) have installed a program that will do the function of /usr/sbin/sendmail. I think I don't understand your question, maybe because english is not my language. Could you explain it better?
  3. aru

    Dual Moniters

    Not exactly a related question ;) [arusabal@localhost ~]$ startx -- :1 will start a second X server on vt8 (DISPLAY=:1). change the number of the display each time to launch more X servers. sure it will, but I can't answer because I don't use KDM. What I can tell you is how to do it with GDM and XDM. In order to start two X servers at the same time you'll need to edit the Xservers file or the gdm.conf file depending if you'll use XDM or GDM. Here are a couple of examples: For gdm edit the file /etc/X11/gdm/gdm.conf: ... [servers] 0=/usr/bin/X11/X -dpi 96 -nolisten tcp vt7 1=/usr/bin/X11/X -dpi 96 -nolisten tcp vt8 For xdm edit the file /etc/X11/xdm/Xservers: ... :0 local /usr/X11R6/bin/X -deferglyphs 16 -nolisten tcp :1 local /usr/X11R6/bin/X -deferglyphs 16 -nolisten tcp HTH
  4. a classic, netstat man netstat there must be GUI variants
  5. aru

    Iptables problems

    Because the range of reserved IPs to protect is 172.16.0.0 to 172.31.255.255, and not just 172.16.0.0 to 172.16.255.255. This works as: - Class A: XXX.abc.abc.abc - Class B: XXX.YYY.abc.abc - Class C: XXX.YYY.ZZZ.abc 8 bits = 1 byte so the 1st octect if fixed the other 3 changes (Class A) 16 bits = 2 bytes so the 1st and the 2nd octect are fixed the other 2 changes (Class B) 24 bits = 3 bytes so the all octects are fixed except the last one (Class C) 32 bits = all octects are fixed (single IP). 12 bits = 1 byte + 4 bits; it is a type of Class B where the 2nd octect can be between 16 and 32.
  6. aru

    email merge

    of course not, I was only joking. I wrote the script with the discussion of Bill Gates spamming thread at offtopic in mind :lol:
  7. aru

    email merge

    OK, here is the very easiest way to do it: Let's suppose that you have a file (address_list.txt) which only has data in the format email address / user name, as follows: rms@gnu.org Richard S. Stallman user1@hostname.ext Bill Smith linus@linux.org Linux Torvals ... This could be your *spam* script: #!/bin/sh address_file="address_list.txt" #-- name of the addresses list file. --# SENDER=billgates@microsoft.com #-- Sender of the message --# SUBJECT="SPAM SPAM SPAM" #-- Subject --# while read ADDRESS NAME; do #-- gets the mail address and the user name from thea ddresses list file and mails the message in html encoded mode. --# /usr/sbin/sendmail ${ADDRESS} << MAIL_MESSAGE From: ${SENDER} To: ${ADDRESS} Subject: ${SUBJECT} Mime-Version: 1.0 Content-Type: text/html <html> <body> <p>Dear, ${NAME}:</p> <p>text body here</p> </body> </html> MAIL_MESSAGE done < ${address_file} The message is all that goes between both "MAIL_MESSAGE" strings. It should have the mail headers, a blank line, and the message body (in this case in html) It is just an example, you'll need to fit it to your own needs, for example to merge it with a mysql database output, you can do: #!/bin/sh SENDER=billgates@microsoft.com SUBJECT="SPAM SPAM SPAM" MYSQL_CMD="select email full_name from addresses_list_table" MYSQL_DATABASE="employers_db" echo "${MYSQL_CMD} | mysql ${MYSQL_DATABASE} | while read ADDRESS NAME; do ... same code as in the above example... done HTH
  8. aru

    email merge

    you can do it via shell script, coded with bash, python, perl or whatever you like and to the personalized limits that you can imagine... it is quite easy. I use python[1] for that purpose (using the smtplib module) [1] Message for some people on this board: YES!!! *python* instead of bash!!! as I use for this task an old script that I wrote years ago. I learned python before "bash scripting"!!!! :roll: :lol:
  9. aru

    Dual Moniters

    I guess that you mean that the 19'' runs in text mode, then when X starts, you only get a display on the 15'', and then, back in text mode the 19'' works again. Correct me if I'm wrong. In text mode you'll always loose the display of one of the two monitors unless you configure your kernel to support text mode dualhead (which last time I checked, it was totally experimental and focused to matrox cards). AFAIK you should tell the bios which is going to be your default display. In X you shouldn't get any problem at all, it is just a matter of configuring the server in the right way; you'll find in google a lot of examples of a /etc/X11/XF86Config-4 for dual head (be prepared to hack that file yourself by hand --not so hard as it will seem at first--). As your displays are so different I recomend you to not use the Xinerama option and define clearly the best modelines of each monitor. Also, IMHO, the best wm for such configuration will be fluxbox in both screens. But you can always have a different wm for each display (long time ago I used to have GNOME in one screen and twm in the other)
  10. aru

    Iptables problems

    This is more or less how I did what I think that you want to do (I use a isdn interface): --notice the syntax-- #!/bin/sh #/etc/sysconfig/iptables <...snip...> EXTERNAL_INTERFACE="ippp0" <...snip...> CLASS_A="10.0.0.0/8" CLASS_B="172.16.0.0/12" CLASS_C="192.168.0.0/16" <...snip...> # Protect against IP *robery* for f in /proc/sys/net/ipv4/conf/{tcp_syncookies,ip_forward,*/rp_filter} do echo 1 > $f done <... snip ...> # Drop *internet* packages that say they come or go to private addresses iptables -A INPUT -i $EXTERNAL_INTERFACE -s $CLASS_A -j DROP iptables -A INPUT -i $EXTERNAL_INTERFACE -s $CLASS_B -j DROP iptables -A INPUT -i $EXTERNAL_INTERFACE -s $CLASS_C -j DROP iptables -A INPUT -i $EXTERNAL_INTERFACE -d $CLASS_A -j DROP iptables -A INPUT -i $EXTERNAL_INTERFACE -d $CLASS_B -j DROP iptables -A INPUT -i $EXTERNAL_INTERFACE -d $CLASS_C -j DROP iptables -A OUTPUT -o $EXTERNAL_INTERFACE -s $CLASS_A -j DROP iptables -A OUTPUT -o $EXTERNAL_INTERFACE -s $CLASS_B -j DROP iptables -A OUTPUT -o $EXTERNAL_INTERFACE -s $CLASS_C -j DROP iptables -A OUTPUT -o $EXTERNAL_INTERFACE -d $CLASS_A -j DROP iptables -A OUTPUT -o $EXTERNAL_INTERFACE -d $CLASS_B -j DROP iptables -A OUTPUT -o $EXTERNAL_INTERFACE -d $CLASS_C -j DROP <...snip...> HTH © CAUP (campaing against unanswered posts)
  11. Contributing with the FSF (and II) http://comic.escomposlinux.org/
  12. aru

    GDM and a core dump

    try to disable the sound of gdm. edit /etc/X11/gdm/gdm.conf: [daemon] Chooser=/usr/bin/gdmchooser --disable-sound --disable-crash-dialog ... Greeter=/usr/bin/gdmlogin --disable-sound --disable-crash-dialog ...
  13. I think there are different settings for halting the system from console mode (/etc/shutdown.allow) and from graphic/mandrake mode. But really I have no idea, also I'm sure that my config files are more or less different than yours since I'm still running a MDK 8.1, but I guess that you should take a look to the files at /etc/security/console.apps, to /etc/pam.d/shutdown, and take a quick look to this man pages: console.apps pam_console console.perms Hope it makes some sense to you
  14. I see, then if the next step is to update someting after the comparation, then you can avoid it at all and use rsync. Btw, search for a clever script from theYinYeti here that does it using plain unix tools.
  15. why? I'm not an expert of KDE, but he said that he can start X with 3 odd terminals, that means that X works. So it is not a problem with the server. Nope, if you run startx the file to look at is ".xinitrc"; edit it or create a new one. This one will launch widowmaker: #.xinitrc exec /usr/X11R6/bin/wmaker Obviously the problem is with KDE probably due a messing with installed packages or maybe with some configuration files, but not a problem with the X server.
  16. man diff diff can also compare directories directly w/o the need of appending their contents to a file. diff dir1/ dir2/ is that what you wanted?
  17. You should avoid tar.gz when rpms are available!!! :P If you want to deal with tar.gz (tgz) w/o compromising your system with later rpm's updates, install a real man's distro like Slackware. Btw, If you want to play with your system, don't use pkg-config(1), install the tarballs by hand... or buid a rpm package from the tarball (rpmbuild) I suscribe 100% what bvc said (btw, bvc, you forgot to say that I use the bash reference manual as my pillow, there is plenty of time between dinner and breakfast, isn't it?) (1) why? because there are many chances of messing your system. By hand you have 100% of control of what you're doing, and is up to you to take control of what you are installing, when and where. This principle can be applied with rpm vs urpmi et al.
  18. forgive me for not reading the full post, but I'm in a hurry now (seems something unavoidable this days) "startx X" is wrong; that atempts to start the X server with a program named X, and if it can't run then the X server exits (same as "startx foo") run "startx" alone (or read man startx to see which parameters can be used) ;)
  19. Do a little search on this board because I remember answering a similar question here... or was the old board... don't know. give a try to "search" and if you find nothing, I'll be glad to help you tonight (i'm in a hurry now)
  20. rsync is what you want, it can work through ssh if this enviroment variable is set: export RSYNC_RSH="ssh" For example: #!/bin/bash sincronizar () { usage="Usage: sincronizar "local directory" "remote directory"" local="${1?$usage}" remote="${2?usage}" command="rsync -avuzb --exclude '*~'" $command $remote $local $command $local $remote } sincronizar "${HOME}/bin" "arusabal@slack_machine:/binaries" I use cron with something similar to the above code to syncronize directories between my two machines
  21. :lol: 3 months with UNIX + 1E+99999 months with Linux - 2 months in finland = newbie ?????
  22. Contributing with the FSF http://comic.escomposlinux.org/
  23. so you were a UNIX geek and you didn't tell us... mmm... my deeper respects Mr Ramfree17 :D not a newbie at all as your sign says :mrgreen:
×
×
  • Create New...