Re: [SLUG] Linux video editors - any good ?

2012-03-23 Thread Rodolfo Martínez
Hi Rod,

Give a try to cinelerra.

--
Rodolfo Martínez



On Fri, Mar 23, 2012 at 4:44 PM, Rod Butcher rbutc...@hyenainternet.com wrote:
 I need to edit and format videos for uploading to UTube, on Linux,
 preferably using a free program (no budget !).
 I last tried this on Linux a few years ago and encountered so many bugs and
 limitations with Kino, Kdenlive and LIVES that I gave up and used a cheap
 proprietary Windows program.
 Is there any fully-usable free Linux editor yet ?
 thanks
 Rod
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Finding modules..

2011-02-14 Thread Rodolfo Martínez
You can try to get the information from the sysfs.

[rmtzcx@armtzcx01 ~]$ ls -l /sys/class/net/{eth0,wlan0}/device/driver
lrwxrwxrwx 1 root root 0 Feb 14 19:54
/sys/class/net/eth0/device/driver - ../../../bus/pci/drivers/e1000e
lrwxrwxrwx 1 root root 0 Feb 14 19:02
/sys/class/net/wlan0/device/driver -
../../../../bus/pci/drivers/iwlagn


--
Rodolfo


On Mon, Feb 14, 2011 at 6:25 PM, DaZZa dagi...@gmail.com wrote:

 On Mon, Feb 14, 2011 at 7:40 PM, Tony Sceats tony.sce...@gmail.com wrote:
  I know you found the answer already but ethtool -i interface can also 
  work and is very simple
 
  Just thought I'd throw that in :)

 [root@dev-app01 ~]# ethtool -i seth0
 Cannot get driver information: Operation not supported
 [root@dev-app01 ~]#

 :-)

 DaZZa (stupid bloody Microsoft!)
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] sudo configuration question

2010-10-21 Thread Rodolfo Martínez
Hi Jeff,

Add this configuration to the sudores file, replace foo by the name of
the account of the external users.


Runas_Alias DB = oracle

foo ALL = (DB)  ALL


--
Rodolfo

On Thu, Oct 21, 2010 at 7:50 PM, Jeff Allison
jeff.alli...@allygray.2y.net wrote:

 I've obviously missed something simple here, but how do you configure
 sudo to allow a user to open a shell as another user?

 ie

 sudo -s -u oracle

 I need to allow two external users access to the oracle account to set
 up a system but I don't want to tell them the password or change it as
 it's NIS...

 anyideas???

 TIA
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] librt.so

2010-10-21 Thread Rodolfo Martínez
It is not in the source package of glibc, it is in the -devel package.

[rmt...@armtzcx01 ~]$ sudo yum provides --disablerepo=\*
--enablerepo=update \*/librt.so
...
glibc-devel-2.5-49.el5_5.6.x86_64 : Object files for development using
standard C libraries.
Repo: updates
Matched from:
Filename: /usr/lib64/librt.so
...


--
Rodolfo


On Thu, Oct 21, 2010 at 10:40 PM, Jim Donovan j...@aptnsw.org.au wrote:
 All,

 Where can I find source of this shared object, please? I can not see it in 
 the source RPM of glibc nor does Google have anything to say about it.

 If you compile something thus:

 gcc -o xyz xyz.c -lrt

 you invoke it.

 I need some way of setting the RTC on an ARM9 system which seems to rely on 
 uclibc however that is a severely cut-down version of glibc.

 Jim Donovan
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to get TightVNC to display remote desktop

2010-05-07 Thread Rodolfo Martínez
Hi Richard,

* Make sure VNC server is running in the remote host.

* Find out on what port the VNC server is listening for incomming
connections. You could find it out with netstat -ltnp. It will
usually be listening in some port between 5900 - 5950.

* Did you already set you VNC password in the remote server?

* Make sure you can reach the listening port from your local computer.
If you cannot reach it, maybe the port is blocked by a local firewall
in the remote server or in your local computer (or in any other
firewall between the computers), Type iptables-save or iptables -L
in the remote server to see firewall rules.

Anyway, if you have SSH access, you can use VNC over SSH (port forwarding).

If you're trying from a *NIX box, login on the server as follow: ssh
-L 59XX:localhost:59XX u...@remote_host

Where 59XX is the listening port in the remote server, USER is your
user account in the remote server, and REMOTE is the host name or ip
of the remote server.

If you are using PuTTY, forward the port using the Connection = SSH
= Tunnels option in the left menu.

Then try to connect with your VNC viewer to localhost:XX.
Again, XX is the last 2 numbers of the listening port (if the
listening port is between 5900 -5909, only use the last digit (0-9)).


Rodolfo Martínez



On Fri, May 7, 2010 at 6:38 PM, Richard Hayes n...@nada.com.au wrote:
 Dear list,

 I have installed TightVNC and desktop on a Slicehost using Ubuntu 10.4.
 I can SSH into the server but I can not get the login through VNC

 What I have I failed to setup?

 regards,

 Richard Hayes
 0414 618 425
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debian Lenny HAL Config

2010-04-23 Thread Rodolfo Martínez
Hi Chris,

I am glad I could help.

How do you remove the device? Do you unmount it and then physically
remove it? or just physically remove it?

If you only remove it, how would the OS know that you were going to
remove it? You have to unmount it first, specially if you wrote or
deleted files/dirs.


Regards
--
Rodolfo Martínez
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debian Lenny HAL Config

2010-04-19 Thread Rodolfo Martínez
Hi Chris,

As with almost any other software, developers will ask you to test the
latest version. I think HAL reads the gconf configuration correctly
since 5.14. Anyway, don't spend too much time with HAL; it is
deprecated.


udev is a device manager. It creates the files (device nodes) in the
/dev/ directory and doesn't care what you do with the device. For
example, it creates the /dev/sdb* devices and that's it. With udev you
can setup the permission for the *device node*, but you cannot specify
how to mount the device.

hal is intermediate/extra layer between the physical devices (/dev/*)
and the applications that allows the applications to use the hardware
without knowing anything about the physical device.


This is how I would achieve what you want to do:
1. Create a udev rule to rename the block device.
2. Specify the mount options in the /etc/fstab using the new device name.


1. The udev rule:
Create the file /etc/udev/rules.d/99-usb.rules with the following lines:
KERNEL==sd?, BUS==usb, ATTRS{serial}==0220787042A168B4, NAME=toshiba
KERNEL==sd?1, BUS==usb, ATTRS{serial}==0220787042A168B4, NAME=toshiba1


2. The mount options:
Add the following line to the /etc/fstab file
/dev/toshiba1  /mnt/toshiba1  vfat
defaults,user,noauto,uid=1000,gid=1004,noatime  0 0

and create the directory /mnt/thoshiba1

From now on, it doesn't matter who mounts the device, it will be
mounted under /mnt/toshiba1 with the desired options.


 BTW, what/why is there a difference between SUBSYSTEM and SUBSYSTEMS?


SUBSYSTEMS is plural :P

Not sure, I have never used SUBSYSTEMS.
[rmt...@amartir01 ~]$ grep SUBSYSTEMS /etc/udev/rules.d/*
[rmt...@amartir01 ~]$

Rodolfo Martínez
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debian Lenny HAL Config

2010-04-16 Thread Rodolfo Martínez
Hi Chris,

The line should be:

append key=volume.mount.valid_options type=strlistgid=/append

Note the '=' after 'gid'. The '=' means that HAL accept any value for that key.

And the gconf mount options should include  'gid=1004'.

 On a related but different topic, how do I force hal to always mount the usb
 card as me (chris).  I am not the only user on the console, I have to play
 round robin and a game of chance for the card to be mounted under my uid.

The only solution for this is to specify the mount options (uid, gid,
etc.) in /etc/fstab. HAL will search for an entry that matches the
device that will be mounted, if none matches, it will mount the device
using the default values/options. The default is to mount the device
on behalf of the user that invoked the mount petition.

The problem is that the device block won't be always the same, it
could be /dev/sdc1, /dev/sdd1 and so on, but this can be easy
addressed with a udev rule, let me know if you need help with this.

BTW, what version of HAL are you using?


--
Rodolfo Martínez
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debian Lenny HAL Config

2010-04-12 Thread Rodolfo Martínez
Hi Chris,

The Changing default mount options section at
http://www.linuxfromscratch.org/blfs/view/cvs/general/hal.html may
help.


--
Rodolfo Martínez



On Mon, Apr 12, 2010 at 6:39 AM, Chris Perry chris42pe...@gmail.com wrote:
 Hello,
 I have used Debian for over a decade and can work most things out.  But I
 have a problem.
 I use a usb memory card to take a rsync backup of my most important files
 every day.  This used to work perfectly.

 I recently upgraded from etch to lenny.  After ironing out some wrinkles I
 am left with one insoluble problem:

 The usb memory card is always auto mounted with group ownership of root at
 the mount point.  This stops me from refreshing the cards contents.

 In etch ownership after auomount would be chris:perry  This is as expected
 and worked fine.
 In lenny ownership after automount is chris:root  This is the problem.

 My primary group is still perry, btw.

 I have googled and searched far and wide, I cannot find posts that describe
 adequately how hal and then udev get themselves sorted and apply some action
 to perform the mount.  I cannot work out where the action is defined in the
 system config.  I cannot work anything out, I've not been so stumped in a
 long time.

 I have determined the following work-around to use after automount has
 completed:
 umount /media/TOSHIBA
 mkdir /media/TOSHIBA
 mount -t vfat -o
 rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000,gid=1004 /dev/sdc1
 /media/TOSHIBA

 I am not able to determine the output of mount for the same device in etch.
  My backup etch partition has passed on.

 If someone can point me at the right doco, or desribe how this works, I
 would appreciate it.
 Thanks and regards,
 Chris.
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Replicate Production to DR file system with rsync

2010-02-12 Thread Rodolfo Martínez
Hi James,

Since remote root logins are not allowed, maybe you could consider to
backup the system to an external storage device. I have attached a
mini-howto. I hope you find it useful.


MINI-HOWTO backup data in a encrypted storage device

Author: Rodolfo Martinez rmt...@gmail.com


Objectives
--
 * File system backups to an external storage device.
 * The storage device has to be encrypted.
 * Incremental backups.
 * 7-day retention period.


Hardware requirements
-
 * An external storage device, like a USB hard drive. The size will depend on
   how much information you want to backup and the retention period.


Software requirements
-
 * bash

 * rsync

 * cryptsetup-luks
   http://clemens.endorphin.org/
   http://code.google.com/p/cryptsetup/
   A utility for setting up encrypted filesystems using Device Mapper and the
   dm-crypt target. cryptsetup is usually part of any modern GNU/Linux
   distribution.


Limitations
---
 * For certain applications, like data bases, or any other application that
   has its own cache handler (DIRECT_O), a file system backup is NOT an option.


Initialize the storage device with LUKS support
---
I will assume that your external storage device was recognised as /dev/sdb. Of
course you can configure udev to have the same device name always; for
example, /dev/backup.

IMPORTANT: Use a good password, you know what I mean, something like,
   Mt9%I?!RnXE1_lL9O41j

NOTE: You can specify a specific cipher using the -c option; for example,
  -c aes-cbc-essiv:sha256

cryptsetup -y -h sha512 -s 256 luksFormat /dev/sdb


Open the external storage device

cryptsetup luksOpen /dev/sdb encrypted

You will need to type the password that you used in the previous step.

Now, there should be a encrypted block device in the /dev/mapper directory.


Format the encrypted device
---
You can format your encrypted device with any file system format. I will use
ext3.

mkfs.ext3 /dev/mapper/encrypted


Mount the encrypted device
--
You can use any mount point for your encrypted device. I will use /mnt/encrypted

mkdir /mnt/encrypted
mount /dev/mapper/encrypted /mnt/encrypted


Unmount and close the encrypted device
---
umount /mnt/encrypted
cryptsetup luksClose encrypted

NOTE: Make sure the encrypted device in the /dev/mapper directory is gone.


Automate the backups

Save the script below in /root/bin/backup.sh and schedule a daily cron job. Set
the proper permissions and ownership to the script

chown -R root:root /root/bin
chmod 700 /root/bin
chmod 700 /root/bin/backup.sh
chattr +i /root/bin/backup.sh

NOTE: If you don't want to have the password embedded in the script, then you
  will have to run the backups manually and type the password.

IMPORTANT: Make sure someone else knows the password in case you die.


#!/bin/bash

ECHO=/bin/echo;
CRYPTSETUP=/sbin/cryptsetup;
DEV=/dev/vgroot/lvtgtd;
MOUNT=/bin/mount;
UMOUNT=/bin/umount;
RSYNC=/usr/bin/rsync;
SYNC=/bin/sync;
DATE=/bin/date;

function lastBackup() {
typeset -i lastBackup=$($DATE +%u)-1;

[ $lastBackup -eq 0 ]  lastBackup=7;

$ECHO $lastBackup;
}


# Open the encrypted device
$ECHO 'Mt9%I?!RnXE1_lL9O41j' | $CRYPTSETUP luksOpen $DEV encrypted;

# Mount the encrypted device
$MOUNT /dev/mapper/encrypted /mnt/encrypted;

# Backup
$RSYNC --archive \
   --partial \
   --delete \
   --delete-excluded \
   --exclude=*~ \
   --exclude=/dev \
   --exclude=/media \
   --exclude=/misc \
   --exclude=/mnt \
   --exclude=/proc \
   --exclude=/sys \
   --exclude=/tmp \
   --exclude=/var/cache \
   --exclude=/var/spool \
   --exclude=/vat/tmp \
   --link-dest=../$(lastBackup) \
   / \
   /mnt/encrypted/$($DATE +%u);

# Sync before unmouting
$SYNC;

# Unmount the encrypted device
$UMOUNT /mnt/encrypted;

# Remove the encrypted device
$CRYPTSETUP luksClose encrypted;




Rodolfo Martínez
Socio director

Aleux Mexico
www.aleux.com



On Thu, Feb 11, 2010 at 5:24 PM, James Gray ja...@gray.net.au wrote:
 Hi All,

 I've googled this one for a while and can't find any examples of people doing 
 *system* file sync with rsync.  So I thought I'd throw it out to the 
 collective wisdom of SLUG.  Here's the full story.

 We have a SuSE-based production application/DB server pair and a 
 corresponding pair in a disaster recovery location (offsite, bandwidth 
 consumption needs to be minimised).  We need to sync a number of files 
 between these servers and some require elevated (root) privileges at *both* 
 ends.  Here lies the problem; we don't allow remote root logins (via SSH or 
 any other method either...sudo, console or nadda).

 I want to use rsync because of it's ability

Re: [SLUG] shopping carts?

2010-02-01 Thread Rodolfo Martínez
Hi,

Have you tried osCommerce?

http://www.oscommerce.com/


Regards
Rodolfo Martínez
Dirección de Proyectos
Aleux México | http://www.aleux.com



On Wed, Jan 27, 2010 at 11:53 PM, Dini des...@yahoo.com.au wrote:
 Hi,
 I'm going to run a shopping cart on my web site. Is there an Open Source 
 Shopping Cart that is idoit friendly and is ok for Au banks?
 thanks.
 D

 Your manuscript is both good and original; but the part that is good is

 not original and the part that is original is not good - Samuel

  Johnson.









 desinQ





      
 __
 Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and 
 for free at PLUS7. www.tv.yahoo.com.au/plus7
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] debugging dns resolution issues with RES_OPTIONS=debug

2010-01-26 Thread Rodolfo Martínez
Hi Ben,

You can debug most (all?) of the DNS client resolution issues with dig.

You can test all the DNS client features, from a simple query to a
full transfer zone.

Regards
Rodolfo Martínez
Dirección de Proyectos
Aleux México | http://www.aleux.com



On Tue, Jan 26, 2010 at 5:04 PM, Ben Burke ben.bu...@internode.on.net wrote:
 Hello,

 This is my first post to slug - hopefully I've understood protocol from
 reading the list for a month or so.

 In the past, I've diagnosed dns client resolution issues using options
 debug in resolv.conf or setting the RES_OPTIONS environment variable as
 follows...

 export RES_OPTIONS=debug

 r...@aixbox:/ mailto:r...@toranim1:/  ping smh.com.au http://smh.com.au
 ;; res_setoptions(debug, env)..
 ;;      debug
 ;;      calling process id = 614598
 ;; res_nquerydomain(smh.com.au http://smh.com.au, Nil, 1, 1)
 ;; res_query(smh.com.au http://smh.com.au, 1, 1)
 ;; res_nmkquery(QUERY, smh.com.au http://smh.com.au, IN, A)
 ;; res_send()
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 467
 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
 ;;      smh.com.au http://smh.com.au, type = A, class = IN
 ;; Querying server (# 1) address = 10.201.4.8
 ;; got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 467
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
 ;;      smh.com.au http://smh.com.au, type = A, class = IN
 smh.com.au http://smh.com.au.             1m12s IN A      203.26.51.71
 PING smh.com.au http://smh.com.au (203.26.51.71): 56 data bytes
 --- smh.com.au http://smh.com.au ping statistics ---
 2 packets transmitted, 0 packets received, 100% packet loss


 This has provided a means of tracing dns resolution issues, which has proved
 to be valuable for me on many occasions - the environments have been AIX,
 Solaris and Tru64


 I  use and manage two linux distros - Ubuntu 9.04 and sUSE 11.1. Both these
 distros document the options debug in the man page for resolv.conf

 However, neither Ubuntu or sUSE yield any dns client trace where I'd expect
 them too.


 b...@sam:~$ uname -a
 Linux sam 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1 18:57:07 UTC 2009 i686
 GNU/Linux

 b...@sam:~$ export RES_OPTIONS=debug
 b...@sam:~$ ping www.smh.com.au
 PING a1040.b.akamai.net (150.101.195.89) 56(84) bytes of data.
 64 bytes from 150.101.195.89: icmp_seq=1 ttl=61 time=30.9 ms



 Many moons ago, when I first read about options debug, I recall that
 gethostbyname could be built with or without various RES_OPTIONS.

 So, my questions are:

 1) Is this the expected behaviour on various Linux distros or am I missing
 something?
 2) Can anyone advise how to enable the debug capabilities in gethostbyname?



 Thanks in advance,

 Ben Burke
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ldd report from rkhunter

2010-01-21 Thread Rodolfo Martínez
Hi Alan,

You can find what package provides the ldd program, and then verify
the integrity of the package. If it really changed I think you should
look for any suspicious activity in your server.

I think you can find the package with dpkg -S $(which ldd) and you can
check its integrity with debsum.

ldd shouldn't change, unless you have updated your system.


Rodolfo Martínez
Dirección de Proyectos
Aleux México | http://www.aleux.com



On Thu, Jan 21, 2010 at 3:27 PM, Alan L Tyree a...@austlii.edu.au wrote:
 Dear SLUGGERS,

 I just got this report from rkhunter on my machine:

 Warning: The file properties have changed:
         File: /usr/bin/ldd
         Current inode: 331476    Stored inode: 17196
         Current file modification time: 1263451668
         Stored file modification time : 1231069314


 I see that ldd prints the shared libraries required by each program,
 but I don't understand why it should have been changed or if I should
 be worried about it.

 I ran chkrootkit and it showed no warnings. System is Debian Lenny
 amd64.

 What does it all mean? Thanks for help.

 Alan


 --
 Alan L Tyree                    http://www2.austlii.edu.au/~alan
 Tel:  04 2748 6206

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ldd report from rkhunter - Update

2010-01-21 Thread Rodolfo Martínez
Hi Matt,

rkhunter creates a database (MD5SUM's) of some files, if they change
for any reason, like a system upgrade/update, it will complain about
it. rkhunter should be run again to get the new MD5SUM's. This applies
for any Host Intruder Detection System (HIDS) (i.e. tripwire, AIDE,
etc...).


 Anyway, this reminded me of an interesting article on ldd I read the other 
 day:

I did read that article too, but who runs ldd as root? :P


Rodolfo Martínez
Dirección de Proyectos
Aleux México | http://www.aleux.com



2010/1/21 Matthew Hannigan m...@zip.com.au:
 On Fri, Jan 22, 2010 at 09:20:46AM +1100, Alan L Tyree wrote:
 On Thu, 21 Jan 2010 15:54:01 -0600
 Rodolfo Martínez rmt...@gmail.com wrote:

  Hi Alan,
 
  You can find what package provides the ldd program, and then verify
  the integrity of the package. If it really changed I think you should
  look for any suspicious activity in your server.
 
  I think you can find the package with dpkg -S $(which ldd) and you can
  check its integrity with debsum.
 
  ldd shouldn't change, unless you have updated your system.

 Just checking the Debian Security site
 ( http://www.debian.org/security/) I see that it was updated for the
 amd64 architecture.

 Thanks for the lesson on how to check out this sort of thing.

 Cheers,
 Alan


 So everything looks fine.  I wonder why rkhunter complained.  Doesn't
 coordinate with the packaging system?

 Anyway, this reminded me of an interesting article on ldd I read the other 
 day:

    http://www.catonmat.net/blog/ldd-arbitrary-code-execution/

 Fun

 Matt


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Desktop publishing

2010-01-13 Thread Rodolfo Martínez
Hi Heracles,

Maybe Scribus (http://www.scribus.net) is a better option than
OpenOffice. I haven't used it, but I have heard it is good and stable,
and it is available for most of the Linux distributions (and other
platforms).

Have a nice day.

Rodolfo Martínez
Dirección de Proyectos | www.aleux.com | MSN: rodolfo.marti...@aleux.com



On Wed, Jan 13, 2010 at 8:59 PM, Heracles herac...@iprimus.com.au wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi All,
 I've recently taken back the job of creating the monthly magazine for a
 computer club I have been a member of since 1982. The person who gave me
 a couple of years rest used windows and word so I will have to recreate
 the templates from scratch probably. The magazine is 24 pages for which
 the format is fairly fixed.

 Page 1 is a cover with graphics and some text, Page 2 has an index
 (which obviously changes monthly) and other fixed text and page 24 is
 basically fixed with only a small part (Dates) of its text changing monthly.
 Pages 3 to 23 (where all the new content is placed) are set up as 2
 columns with a footer but no header.

 I used to use Open Office and made it in four parts which I combined and
 created a pdf for the printer when I did it in the past but I was
 wondering if there might be a simpler way to set up a template for the
 whole magazine as one unit and just make the minor changes and drop in
 the new body text each month.

 Any recommendation would be appreciated.

 Heracles

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAktOiK4ACgkQybPcBAs9CE85PACfafQ5gf7aoUHM6l1XVhoaLgeW
 oRUAnAyuf0bC8R6tRkj530irBDBfw6Ri
 =mOlx
 -END PGP SIGNATURE-
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Brasero || K3B || growisofs creating coasters :(

2009-12-04 Thread Rodolfo Martínez
Hi David,

Try adding these options to growisofs

growisofs -Z /dev/scd0=brasero.iso -use-the-force-luke=dao -dvd-compat
-speed=2 -overburn


They probably fix your issue.

Rodolfo Martínez




On Fri, Dec 4, 2009 at 1:20 AM, david da...@kenpro.com.au wrote:
 further to this increasingly annoying and boring conversation :(

 If I create an ISO, I can loop-mount it and read the entire contents. The
 last three files are still showing up in the DVD directory but are
 unreadable after burning the ISO using this command:

 $ growisofs  -dvd-compat -speed=1 -Z /dev/scd0=brasero.iso

 Maybe it's time to invest in a new pack of DVD's or a new burner or two. I
 was kinda hoping that the problem was me doing something inane.

 david wrote:


 pe...@chubb.wattle.id.au wrote:

 david == david  da...@kenpro.com.au writes:

 david Ben Donohue wrote:

 Could it be the file size too large or the path limit being
 reached?  what about burning a single small size file.

 david File size doesn't seem to matter. It seems to be a case of the
 david last files written fail - almost as if anything past 1 GB
 david doesn't work (the total usage is 1.2G)

 There is a known growisofs bug wherein it reports an error but exits
 with zero exit code, which could fool the GUI into thinking there's no
 problem when there has been one.  Try using growisofs directly so you
 can see what's going on.



 using this command:

  growisofs  -dvd-compat -speed=1 -Z /dev/scd0 /path/to/files/

 I get this output:

 Executing 'genisoimage DVD/ | builtin_dd of=/dev/scd0 obs=32k seek=0'
 I: -input-charset not specified, using utf-8 (detected in locale settings)
  0.90% done, estimate finish Fri Dec  4 17:15:19 2009
  1.79% done, estimate finish Fri Dec  4 17:15:19 2009
  2.68% done, estimate finish Fri Dec  4 17:15:19 2009
 /dev/scd0: Current Write Speed is 4.1x1352KBps.
  3.58% done, estimate finish Fri Dec  4 17:22:18 2009
 snip
 99.28% done, estimate finish Fri Dec  4 17:18:55 2009
 Total translation table size: 0
 Total rockridge attributes bytes: 0
 Total directory bytes: 4242
 Path table size(bytes): 38
 Max brk space used 0
 559041 extents written (1091 MB)
 builtin_dd: 559056*2KB out @ average 3.8x1352KBps
 /dev/scd0: flushing cache
 /dev/scd0: updating RMA
 /dev/scd0: closing disc


 No error messages that I can see there.

 When I do ls -l /cdrom/ all the files seem to be present and correct,
 but I can't copy or read the last three (large) files.

 The DVD's are LG brand and the burner is also LG brand! That may not mean
 anything I suppose.

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Brasero || K3B || growisofs creating coasters :(

2009-12-04 Thread Rodolfo Martínez
Sorry David, I had a similar problem and I fixed using a slower speed
and the -overburn -use-the-force-luke=dao options


Rodolfo Martínez




2009/12/4 david da...@kenpro.com.au:


 Rodolfo Martínez wrote:

 Hi David,

 Try adding these options to growisofs

 growisofs -Z /dev/scd0=brasero.iso -use-the-force-luke=dao -dvd-compat
 -speed=2 -overburn


 They probably fix your issue.

 Yet another coaster for my collection!

 thanks for the thought though.

 David.




 Rodolfo Martínez




 On Fri, Dec 4, 2009 at 1:20 AM, david da...@kenpro.com.au wrote:

 further to this increasingly annoying and boring conversation :(

 If I create an ISO, I can loop-mount it and read the entire contents. The
 last three files are still showing up in the DVD directory but are
 unreadable after burning the ISO using this command:

 $ growisofs  -dvd-compat -speed=1 -Z /dev/scd0=brasero.iso

 Maybe it's time to invest in a new pack of DVD's or a new burner or two.
 I
 was kinda hoping that the problem was me doing something inane.

 david wrote:

 pe...@chubb.wattle.id.au wrote:

 david == david  da...@kenpro.com.au writes:

 david Ben Donohue wrote:

 Could it be the file size too large or the path limit being
 reached?  what about burning a single small size file.

 david File size doesn't seem to matter. It seems to be a case of the
 david last files written fail - almost as if anything past 1 GB
 david doesn't work (the total usage is 1.2G)

 There is a known growisofs bug wherein it reports an error but exits
 with zero exit code, which could fool the GUI into thinking there's no
 problem when there has been one.  Try using growisofs directly so you
 can see what's going on.


 using this command:

  growisofs  -dvd-compat -speed=1 -Z /dev/scd0 /path/to/files/

 I get this output:

 Executing 'genisoimage DVD/ | builtin_dd of=/dev/scd0 obs=32k seek=0'
 I: -input-charset not specified, using utf-8 (detected in locale
 settings)
  0.90% done, estimate finish Fri Dec  4 17:15:19 2009
  1.79% done, estimate finish Fri Dec  4 17:15:19 2009
  2.68% done, estimate finish Fri Dec  4 17:15:19 2009
 /dev/scd0: Current Write Speed is 4.1x1352KBps.
  3.58% done, estimate finish Fri Dec  4 17:22:18 2009
 snip
 99.28% done, estimate finish Fri Dec  4 17:18:55 2009
 Total translation table size: 0
 Total rockridge attributes bytes: 0
 Total directory bytes: 4242
 Path table size(bytes): 38
 Max brk space used 0
 559041 extents written (1091 MB)
 builtin_dd: 559056*2KB out @ average 3.8x1352KBps
 /dev/scd0: flushing cache
 /dev/scd0: updating RMA
 /dev/scd0: closing disc


 No error messages that I can see there.

 When I do ls -l /cdrom/ all the files seem to be present and correct,
 but I can't copy or read the last three (large) files.

 The DVD's are LG brand and the burner is also LG brand! That may not
 mean
 anything I suppose.

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Weird Word docs

2009-12-01 Thread Rodolfo Martínez
Hi Peter,

You can try catdoc instead of strings, you will get a nicer output.
catdoc will try to recognise tables and give some format.

unoconv seems to be a good option to convert doc[x] documents to some
other format, but I think you will need more than 1 GB after
installation since it pulls a lot of packages.


How do you read .docx documents without OOo? Or you install OOo
libraries and convert the document to other format?



Rodolfo Martínez



On Mon, Nov 30, 2009 at 4:09 PM, Peter Chubb pet...@gelato.unsw.edu.au wrote:

 Hi,
        Every now and then I get sent a Word document that I can't
 just ignore, or ask the sender to resend as plain text or PDF or
 something.

 Most of the time wvMime can translate the doc so I can read it and
 convert to LaTeX or something sensible.  /usr/bin/strings doesa a reasonable
 job where formatting isn't important.

 Sometimes however, I get sent documents (usually full of tables) that
 purport to be in portrait orientation, but are actually Landscape ---
 wvMime (and abiWord on my one box with Gnome on it) attempt to display
 the doc on a portrait oriented a4 page, with all the text truncated at
 the right margin.

 How do other people deal with these weird documents?  Is there an easy
 way to view or convert them (NOT using Gnome or OpenOffice or other
 heavyweight GUI tools)?
 --
 Dr Peter Chubb        www.nicta.com.au      peter DOT chubb AT nicta.com.au
 http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
 From Imagination to Impact                       Imagining the (ICT) Future
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] shell scripting help

2009-09-18 Thread Rodolfo Martínez
'while' continues until read fails, there is a 3rd 'read' (when it
fails) that clears 'f'
[mar...@amartir01 ~]$ set -x ; echo -n foo|bar | awk 'BEGIN{RS=|}{
print $1 }' | while read s; do f=$s ; echo f=$f ; done ; echo f=$f
+ set -x
+ awk 'BEGIN{RS=|}{ print $1 }'
+ read s  == First read
+ echo -n 'foo|bar'
+ f=foo
+ echo f=foo
f=foo
+ read s== Second read
+ f=bar
+ echo f=bar
f=bar
+ read s  == Third read, the one that clears 'f'
+ echo f=
f=
++ echo -ne '\033]0;mar...@amartir01:~'



Rodolfo Martínez



On Fri, Sep 18, 2009 at 8:42 AM, Daniel Bush dlb.id...@gmail.com wrote:

 Hi,
 Writing a little utility to help me on something but having trouble.
 Why does f stay blank?

 d...@lin4:test$ echo foo|bar | awk 'BEGIN{RS=|}{ print $1 }' | while
 read s; do echo $s; f=$s; done; echo '$f'
 foo
 bar
 ''

 Regards
 --
 Daniel Bush
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] shell scripting help

2009-09-18 Thread Rodolfo Martínez
Yes, but the last instruction is doing f=$s

About the sub-shelling stuff... in this case that is not why 'f' is blank

The 'while' is executed in the same shell

[mar...@amartir01 ~]$ echo $$ ; echo -n foo|bar | awk
'BEGIN{RS=|}{ print $1 }' | while read s; do f=$s ; echo f=$f ;
echo $$ ; done ; echo f=$f
5997  == Same shell
f=foo
5997  == Same shell
f=bar
5997  == Same shell
f=


If it was the reason, it could be fixed by exporting 'f' before the pipe

[mar...@amartir01 ~]$ export f= ; echo -n foo|bar | awk
'BEGIN{RS=|}{ print $1 }' | while read s; do f=$s ; echo f=$f ;
done ; echo f=$f
f=foo
f=bar
f=


Regards
Rodolfo Martínez




On Fri, Sep 18, 2009 at 9:43 AM, Gonzalo Servat gser...@gmail.com wrote:
 2009/9/19 Rodolfo Martínez rmt...@gmail.com:
 'while' continues until read fails, there is a 3rd 'read' (when it
 fails) that clears 'f'
 [mar...@amartir01 ~]$ set -x ; echo -n foo|bar | awk 'BEGIN{RS=|}{
 print $1 }' | while read s; do f=$s ; echo f=$f ; done ; echo f=$f
 + set -x
 + awk 'BEGIN{RS=|}{ print $1 }'
 + read s  == First read
 + echo -n 'foo|bar'
 + f=foo
 + echo f=foo
 f=foo
 + read s    == Second read
 + f=bar
 + echo f=bar
 f=bar
 + read s  == Third read, the one that clears 'f'
 + echo f=
 f=
 ++ echo -ne '\033]0;mar...@amartir01:~'

 Yep, however, he is concerned with the variable 'f' being blank, not 's'.

 - Gonzalo
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] shell scripting help

2009-09-18 Thread Rodolfo Martínez
 Right, but f should be set to 'bar' since it won't go into the while
 loop after the 2nd read (as it's a non true value). Well, it won't be
 set to 'bar' in the OP's script because of the subshell.

TOTALLY agree with you, nice to have a good bash talk :)


BTW, exporting 'f' before the pipe, doesn't fix the issue either, it
makes the variable available to sub-shells, but the value is not
changed in the parent shell.


Rodolfo Martínez




On Fri, Sep 18, 2009 at 10:08 AM, Gonzalo Servat gser...@gmail.com wrote:
 2009/9/19 Rodolfo Martínez rmt...@gmail.com:
 Yes, but the last instruction is doing f=$s



 About the sub-shelling stuff... in this case that is not why 'f' is blank

 The 'while' is executed in the same shell

 [mar...@amartir01 ~]$ echo $$ ; echo -n foo|bar | awk
 'BEGIN{RS=|}{ print $1 }' | while read s; do f=$s ; echo f=$f ;
 echo $$ ; done ; echo f=$f
 5997  == Same shell
 f=foo
 5997  == Same shell
 f=bar
 5997  == Same shell
 f=

 I believe $$ gives the pid of the parent pid. Quoting:

 Within a script, inside a subshell, $$ returns the PID of the script,
 not the subshell.

 You could replace $$ with $BASH_SUBSHELL (boolean indicating if you're
 in a subshell). Output:

 $ echo $BASH_SUBSHELL ; echo -n foo|bar | awk 'BEGIN{RS=|}{ print
 $1 }' | while read s; do f=$s ; echo f=$f; echo $BASH_SUBSHELL;
 done; echo f=$f
 0
 f=foo
 1
 f=bar
 1
 f=

 - Gonzalo
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] NIS problem - non-existent map

2009-08-12 Thread Rodolfo Martínez
Hi Nigel,

Add this line to the /etc/nsswitch.conf file in the client:

shadow:files  [NOTFOUND=return]

The client will only look at the local shadow file, if the entry is
not there, it will stop searching for it.


Rodolfo Martínez




On Wed, Aug 12, 2009 at 2:22 AM, Sonia Hamiltonso...@snowfrog.net wrote:
 Nigel Allen wrote:

 Hi

 Running Centos 4 with one machine as YP server (ypserv 2.8) and one as a
 yp client.

 In the messages log of the server I constantly see messages like this:

 Aug 12 12:28:46 sydsrv12 ypserv[20413]: refused connect from
 192.168.0.56:38230 to procedure ypproc_match (jgc,shadow.byname;-1)
 Aug 12 12:29:14 sydsrv12 ypserv[20413]: refused connect from
 192.168.0.56:38230 to procedure ypproc_match (jgc,shadow.byname;-1)
 Aug 12 12:29:22 sydsrv12 ypserv[20413]: refused connect from
 192.168.0.56:38230 to procedure ypproc_match (jgc,shadow.byname;-1)
 Aug 12 12:30:13 sydsrv12 ypserv[20413]: refused connect from
 192.168.0.56:38230 to procedure ypproc_match (jgc,shadow.byname;-1)

 sydsrv56 is the client btw.

 How can I find what program is trying to access the shadow.byname map? I
 suspect (from the frequency) that it dovecot may be the culprit

 The server does not have that map and on the client there is no mention of
 shadow in the nsswitch.conf - all commented out.

 Any clues please?

 touch the file shadow.byname and use lsof + grep in a loop in a shell
 script?
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] iptables error msg

2009-07-23 Thread Rodolfo Martínez
Hi Adam,

You are using an undefined variable on the lines below

-
## FROM INTRANET ##
$IPTABLES -A INPUT -p ALL -i $INTERNAL_DEVICE -j ACCEPT
$IPTABLES -A OUTPUT -p ALL -o $INTERNAL_DEVICE -j ACCEPT
-

INTERNAL_DEVICE variable is not defined, it is commented at the
beginning of the script

#INTERNAL_DEVICE=eth1 # device for Intranet


Rodolfo Martínez



On Thu, Jul 23, 2009 at 6:32 AM, Adam Bogackia...@paradise.net.nz wrote:
 Hi, I keep getting

 Setting up IPtables rules
 Using intrapositioned negation (`--option ! this`) is deprecated in favor
 of extrapositioned (`! --option this`).
 Bad argument `ACCEPT'
 Try `iptables -h' or 'iptables --help' for more information.
 Bad argument `ACCEPT'
 Try `iptables -h' or 'iptables --help' for more information.

 .. but 'ACCEPT' appears in many places in iptables.

 What would it be referring to ?

 I have attached my version of iptables (courtesy of Ekiga).

 Adam.

 #!/bin/sh
 echo Setting up IPtables rules
 IPTABLES=/sbin/iptables # where iptables binary lies
 # Setting up Forwarding
 echo 1  /proc/sys/net/ipv4/ip_forward
 # Setting up Dynamic IP for diald/masquerading
 echo 1  /proc/sys/net/ipv4/ip_dynaddr
 # Increase the binding time
 echo 3600  /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
 # Setting up IP spoofing protection
 if [ -e /proc/sys/net/ipv4/conf/all/rp_filter ]
 then
        for f in /proc/sys/net/ipv4/conf/*/rp_filter
        do
                echo 1  $f
        done
 fi
 # Devices
 LOCAL_DEVICE=lo # device for localhost
 EXTERNAL_DEVICE=eth0 # device for Internet
 #INTERNAL_DEVICE=eth1 # device for Intranet
 HALFTRUST_NETS=192.168.1.0/8
 KEEPSTATE=-m state --state ESTABLISHED,RELATED
 # Flush all Rules
 $IPTABLES -F
 $IPTABLES -X
 $IPTABLES -t nat -F
 $IPTABLES -t nat -X
 $IPTABLES -t mangle -F
 $IPTABLES -t mangle -X
 # Deny all by default
 $IPTABLES -P INPUT DROP
 $IPTABLES -P OUTPUT DROP
 $IPTABLES -P FORWARD ACCEPT
 $IPTABLES -N ALLOW_PORTS
 $IPTABLES -F ALLOW_PORTS
 ## TCP and UDP ports ##
 TCP_PORTS=
 for PORT in $TCP_PORTS; do
 $IPTABLES -A ALLOW_PORTS -m state --state NEW -p tcp --dport $PORT -j
 ACCEPT
 done
 UDP_PORTS=
 for PORT in $UDP_PORTS; do
 $IPTABLES -A ALLOW_PORTS -m state --state NEW -p udp --dport $PORT -j
 ACCEPT
 done
 ## MASQUERADE ##
 $IPTABLES -t nat -A POSTROUTING -d ! 192.168.1.0/24 -o $EXTERNAL_DEVICE -j
 MASQUERADE
 ## LOCALHOST ##
 $IPTABLES -A INPUT -p ALL -i $LOCAL_DEVICE -j ACCEPT
 $IPTABLES -A OUTPUT -p ALL -o $LOCAL_DEVICE -j ACCEPT
 $IPTABLES -A FORWARD -p ALL -i $LOCAL_DEVICE -j ACCEPT
 ## FROM INTRANET ##
 $IPTABLES -A INPUT -p ALL -i $INTERNAL_DEVICE -j ACCEPT
 $IPTABLES -A OUTPUT -p ALL -o $INTERNAL_DEVICE -j ACCEPT
 ## ICMP ##
 $IPTABLES -A INPUT -p ICMP -i $EXTERNAL_DEVICE -j ACCEPT
 $IPTABLES -A OUTPUT -p ICMP -o $EXTERNAL_DEVICE -j ACCEPT
 $IPTABLES -A INPUT -p ICMP -s $HALFTRUST_NETS -j ACCEPT
 $IPTABLES -A OUTPUT -p ICMP -d $HALFTRUST_NETS -j ACCEPT
 ## ALLOWED PORTS ##
 $IPTABLES -A INPUT -i $EXTERNAL_DEVICE -s 0.0.0.0/0 -j ALLOW_PORTS
 ## ESTABLISHED MODE ##
 $IPTABLES -A OUTPUT -o $EXTERNAL_DEVICE -p TCP $KEEPSTATE -j ACCEPT
 $IPTABLES -A INPUT -i $EXTERNAL_DEVICE -p TCP $KEEPSTATE -j ACCEPT
 $IPTABLES -A OUTPUT -o $EXTERNAL_DEVICE -p UDP $KEEPSTATE -j ACCEPT
 $IPTABLES -A INPUT -i $EXTERNAL_DEVICE -p UDP $KEEPSTATE -j ACCEPT
 ## OUTPUT ##
 $IPTABLES -A OUTPUT -o $EXTERNAL_DEVICE -p ALL -j ACCEPT





 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html