Re: how to change root passwd (if forgotten)

2011-08-11 Thread Francois Cerbelle
Le Wed, 10 Aug 2011 18:10:02 +0200, Thierry Chatelet a écrit :
> On Wednesday 10 August 2011 17:53:26 Umarzuki Mochlis wrote:
>> if i'm not mistaken you can just go to single user mode on centos by
>> appending "1" or "single" (without quotes) on boot parameter, no need
>> for any live cd
>> 
> Not with debian, but lots of trail if you google it. Thierry

But "init=/sbin/bash" should work, then mount, modify, dont forget to 
umount everything and reboot

-- 
Francois


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e43814f$0$16474$426a7...@news.free.fr



Re: restoring MBR

2011-07-31 Thread Francois Cerbelle
Hi All,

What about the mbr package and the "install-mbr " command ?

This MBR is wonderfull, it does exactly what is waited if you dont press 
any key : boot on the flaged partition, but you can also press a key and 
choose another partition (not flagged) to boot from (even a floppy).

Have a nice day
-- 
Francois


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e350739$0$18106$426a7...@news.free.fr



Re: acroread key bindings do not work.

2004-12-15 Thread Francois Cerbelle
Le Wed, Dec 15, 2004 at 04:52:13PM +0100, Francisco Borges ecrit :
> » On Tue, Dec 14, 2004 at 09:47PM -0500, Roberto Sanchez wrote:
> > Francisco Borges wrote:
> > >Acroread "control" based key bindings (e.g. C-q or C-w) do not work on
> > >my sarge box.
> > Do you happen to have NumLock on?  If so, try turning it off and
> > see if that fixes it.
> That indeed fixed it. Thank you very much for the help!
---end quoted text / fin de citation---

If you use fvwm as window manager, just add the following line in the
config file :
IgnoreModifier L25

I use it, but I can not help you for other WM.

Fanfan
-- 
Quand on aime quelqu'un, on a toujours quelque chose à lui dire ou à
lui écrire, jusqu'à la fin des temps.  
   [Christian Bobin]


signature.asc
Description: Digital signature


Re: Partition Resizing

2004-12-13 Thread Francois Cerbelle
Le Mon, Dec 13, 2004 at 08:57:20AM +0200, David Baron ecrit :
> On Monday 13 December 2004 06:33, [EMAIL PROTECTED] 
> wrote:
> > I suggest you to download the Knoppix CD and use QTparted which is
> > some sort of PartitionMagic clone.
> 
> Back it up first.
> PartitionMagic, if it does not complain about the partitions, will
> usually do just fine. QTparted is a very dangerous program.
> Back it up first!

Did you have some bad experiences with it ? Due to the program or to
the usage ?

I ask because I used it but never got some troubles.

Fanfan
-- 
Plaisirs et peines sont ainsi, en fait, ce sur quoi roule la vertu
morale.  
   [Aristote]


signature.asc
Description: Digital signature


Re: Partition Resizing

2004-12-12 Thread Francois Cerbelle
Le Sun, Dec 12, 2004 at 01:22:33PM +, Leonard Chatagnier ecrit :
> Trying to upgrade to Sarge and discovered that on my last reinstall
> of woody that I switched the partition sizes on /var and /home.  Now
> /var is too small to hold packages when doing apt-get dist-upgrade.
> My question is: Can I resize the partitions without losing data?  I
> have the Woody 7 CD install CD's and no Partition Magic.
> Please copy any response to [EMAIL PROTECTED] as I can't cope with
> all the lists messages when subscribed.
---end quoted text / fin de citation---

I suggest you to download the Knoppix CD and use QTparted which is
some sort of PartitionMagic clone.

Fanfan
-- 
La trentaine est un âge difficile. La vie est finie, l'existence
commence.  
   [André Bay]


signature.asc
Description: Digital signature


Re: Deleted Partition Recovery ?

2004-12-12 Thread Francois Cerbelle
Le Sun, Dec 12, 2004 at 07:08:51AM -0600, Ron Johnson ecrit :
> > You could also try gpart, a tool that scans your disk looking for known
> > filesystem beginnings. However, if he also formatted the new partition,
> > I guess it will be difficult.
> Yeah, that's the problem.  There already *is* a valid partition.
---end quoted text / fin de citation---

If the formatting was "quick", gpart might work.
the tools that might help you are dd_rescue, dd_rhelp and gpart.
Fanfan
-- 
L'amour, c'est d'abord aimer follement l'odeur de l'autre.  
   [Pascal Quignard]


signature.asc
Description: Digital signature


Re: Regex help

2004-12-10 Thread Francois Cerbelle
Le Fri, Dec 10, 2004 at 07:15:50AM -0800, Alex Barylo ecrit :
> #!/usr/bin/perl
> for (<>) {
> s!\{_(Start|End)Range_\}!!;
> while (s!\{_Index\s+([^}]+)\s+_\}!!) { print "%s/$1//g\n" }
> }
---end quoted text / fin de citation---

I already had something similar on another list. But thanks you for
helping me, it is very kind. I'll keep your piece of code, it could be
useful later.

Have a nice day
Fanfan

-- 
S'il fallait prendre soin de sa santé comme on prend soin de se
divertir, alors on ne serait jamais malade.  
   [François Gervais]


signature.asc
Description: Digital signature


Re: Regex help

2004-12-10 Thread Francois Cerbelle
Le Fri, Dec 10, 2004 at 04:47:56PM +0100, Maurits van Rees ecrit :
> 
> I've never been called a regex expert, but I hope this code does the
> trick.
---end quoted text / fin de citation---

Thanks a lot, I had another answer with a perl program which fits my
needs. Anyway, I'll keep your code, it can be useful.

Thanks again
Have a nice day
Fanfan

-- 
- Conduire ou choisir, il faut boire.
[Dicton Breton]


signature.asc
Description: Digital signature


Regex help

2004-12-10 Thread Francois Cerbelle
--- Begin Message ---
Hi debian-users,

I am translating an O'Reilly book to French and the source code is in
FrameMaker format. The textual part is already translated but I still
have to translate the index entries. I have to be consistent and to
always use the same words across the document. As there are a great
number of line and numerous entries, I thought to using regexp to
extract the strings to translate in a file, add the translation next
to the strings and use sed to interpret this translation. It would be
a great gain for me.

My source file looks like :

Text {_Index blabla:we _} bla {_Index {_StartRange_} bla _} bla
vla
stuff
bbgfd {_Index {_EndRange_} bla _}


I would like to have this :
{_Index blabla:we _}
{_Index {_StartRange_} bla _}
{_Index {_EndRange_} bla _}

Or better:
blabla:we
bla
bla

or even better :
%s/blabla:we//g
%s/bla//g
%s/bla//g

So, I would just have to delete the strings not to be translated and
double strings, to insert translations and to feed sed with the file.

I am very bad in regex and I dont succeed. But I know regex can help
me a lot, reducing the amount of work and keeping consistency in the
translations.

Is there a regex expert here ? Please help me.

Thanks

Fanfan

PS: if it is done with a Perl program, it doesnt matter. Whatever the
way, I just want to have the output in the specified format.
--- End Message ---


signature.asc
Description: Digital signature


Re: Mirroring a remote server on a local server (Debian Woody and Sarge)

2004-12-09 Thread Francois Cerbelle
Le Thu, Dec 09, 2004 at 03:07:21PM +, [EMAIL PROTECTED] ecrit :
> We would like to mirror a remote server of ours on a local server through 
> broadband (2Mb). 
> We would like to mirror the whole server disk, including installation, /boot 
> and so on, for carrying over local test installations before going live on 
> the server.
> We did not find an easy way of doing it. Does anybody know about a good way?
> We are using Debian Woody plus some manually upgraded packages (from Sarge).
---end quoted text / fin de citation---


- install sshd on the original server
- boot from a live CD (I recommand Knoppix)
- create your partitions as they are on the original server (for exemple
  with cfdisk)
- Create the filesystems like on the original server (with mke2fs,
  mk???fs, ...)
- create a mount point (for example : /mnt/server)
- mount the root partition on this (mount /dev/hda1 /mnt/server)
- create the mount points for every sub partition like on the original
  server (look the original /etc/fstab file)
- manually mount every sub-filesystem on each directory
- run :
(ssh [EMAIL PROTECTED] "(cd /; tar cjplf - )") | sudo (cd /mnt/server ; tar 
xvjplf -)
it should copy everything after asking you for the root password
- chroot on the copy : sudo chroot /mnt/server
- reinstall either lilo or grub :
# lilo -v
or
# grub-install /dev/hd??
- type exit to quit the chroot environement
- unmount every sub-partition under /mnt/server
- umount /mnt/server
- reboot without the CDROM

Fanfan

-- 
Une personne peut d'autant plus facilement être abusée qu'elle est à
la recherche de reconnaissance.  
   [François Proust]


signature.asc
Description: Digital signature


Re: Boot-time loading of modules...

2004-11-30 Thread Francois Cerbelle
Le Tue, Nov 30, 2004 at 04:54:54PM -0500, Colin Alie ecrit :
> - I remved the parameter vga=xxx from my kernel command line; it now
> stands as root=/dev/hda1 ro
---end quoted text / fin de citation---

Instead of removing it, try to put :
vga=normal
or
vga=extended

Francois
-- 
Le travail c'est la santé ; ne rien faire, c'est la conserver.  
   [Henri Salvador]


signature.asc
Description: Digital signature


Re: Grub menu.lst

2004-11-29 Thread Francois Cerbelle
Le Sun, Nov 28, 2004 at 12:36:57AM -0800, Freddy Freeloader ecrit :
> Francois Cerbelle wrote:
> >Except one thing : both kernel certainly dont have support for you
> >root partition filesystem, but the Debian one can find the appropriate
> >module in its initrd. I bet that your kernel doesnt have either an initrd
> >image or the filesystem support ! ;-)
> 
> Well, I have another Debian machine with both the 2.4 and the 2.6 
> kernels on it.  I compiled the 2.6.9 kernels for both machines and 
> included the ext3 file system support in both.  The 2.6.9 kernel in the 
> one machine boots fine, this one won't.  I actually supported more file 
> systems in the kernel for the machine that doesn't boot than I did in 
> the machine that does.
> 

So, it might be the hardware support. You might have the good support
for one of your computers, but not for the other (IDE chipset, SCSI
chipset, ...) Are you sure you compiled all the hardware support for
your second computer ? Is it in module or in the kernel itself ?

In the boot messages before the panic, can you see your hard drives
and their partitions recognized by the kernel ?

Fanfan
-- 
Il n'y a pas d'amour, il n'y a que des preuves d'amour.  
   [Pierre Reverdy]


signature.asc
Description: Digital signature


Re: Grub menu.lst

2004-11-27 Thread Francois Cerbelle
Le Sat, Nov 27, 2004 at 03:42:27PM -0800, Freddy Freeloader ecrit :
> I made a dual boot system out of a Win2K box I had.  I installed sarge 
> and everything worked great.  I could boot to both Debian and Win2K.
> I did that install with the sarge installer and the 2.4.26 kernel.  I 
> later installed the 2.6.9 kernel from source.  My problem is that now I 
> get a kernel panic message on boot saying "VFS: unable to mount root fs 
> on unknown block" when trying to boot to the 2.6 kernel.
> What's strange about this is that in the menu.lst file everything is 
> exactly the same for both kernels.

Except one thing : both kernel certainly dont have support for you
root partition filesystem, but the Debian one can find the appropriate
module in its initrd. I bet that your kernel doesnt have either an initrd
image or the filesystem support ! ;-)

Fanfan

-- 
- Froid de novembre, range ton membre.
[Dicton Breton]


signature.asc
Description: Digital signature


Re: Newbie looking for some answers please...........

2004-11-18 Thread Francois Cerbelle
Le Thu, Nov 18, 2004 at 09:17:02AM -0800, Chad ecrit :
> I just installed Debian 3.0 r3. I'm a newbie and looking for some
> anwers to some of my questions...if someone can anwser one, some, or
> all Please
Welcome to our fabulous world !

> 1. I know that apt-get is the main utility to add and remove
> programs (in Debian anyways), also to veiw what is installed on your
> OS. But what about other packages or applications that are not
> installed through apt-get. Is there a another utility to tell you
> want is all installed on your OS, or to keep track of all
> software/packages/applications installed?
Everything installed throught the package system is given by :
COLUMNS=150 dpkg -l | more

Everything installed by its own system shoud be installed either in a
special directory in /opt or dispatched in /usr/local/* or installed
throught a wrapper which record the changes to the system.

> 2. How do you check for all running services and how to start/stop
> system services that are unused?
If you want to know what are the current processes running, use 
"ps ax". There are many options, you will find them in the help system
: "man ps"

If you want to know what are the services normally started, they are
listed in /etc/rc2.d . filenames beginning with S for Start and K for
Kill. The files are only shortcuts to the real files in /etc/init.d.
You can see exactly what I means by typing "ls -l" in the rc2.d
directory.

You can manage these services with different programs :
update-rc.d
sysvconfig
sysv-rc-conf

To have more precision on a package : 
apt-cache show sysv-rc-conf

Once installed, to have the help :
man sysv-rc-conf

> 3. How do you check for all open ports and what programs are using
> the ports.
You can use netstat with the following options (my favourites) :
netstat -taupen

You will see every connection (TCP, UDP, sockets), which can be
listening, established, waiting... who is connected, and which process
is listening

> 4. What is the common folder Where most software/packages/applications
> installed into?
/bin and /sbin for the system critical programs
/usr/bin and /usr/sbin for the system programs
/usr/local/bin and /usr/local/sbin for the program you added *

* you can prefer to add programs in /opt to have a directory for each
applicationn


> 5. Anyone has a good site for descriptions of the configuration
> files on a linux system. For Example XF86Config-4. I have no idea of
> what configuration files do what or where they are located.
Choose a file in /etc and try the help command :
man XF86Config-4

> 6. Where is the boot files? So I can control or know what programs
> start at boot.
The boot process begins with the "S" scripts in /etc/rcS.d and usually
continue with thoses in /etc/rc2.d

the shutdown process with the "K" scripts from rc2.d, then from rcS.d

Fanfan

-- 
La santé se mesure à l'amour du matin et du printemps.  
   [Henry David Thoreau]


signature.asc
Description: Digital signature


Re: sarge gdm language entry, howto add language?

2004-11-18 Thread Francois Cerbelle
Le Thu, Nov 18, 2004 at 03:12:28PM +, Joao Clemente ecrit :
> I had already tried this (or emulated this) and it seemed to do 
> nothing... gdm in fact sets the LANG variable, but KDE (at least in 
> sarge) seems to ignore it..
> I tried it like this:
> opened up konsole, checked LANG by doing "env | grep LANG" ...
> 
> 1 - LANG was set to "C", I started a konqueror from that console, it 
> started with a portuguese interface... (I had defined in kde control 
> center to use portuguese)
> 2 - exported LANG=en_US and started konqueror... it also started with 
> portuguese...
> 
> So I concluded that KDE is ignoring LANG and using some internal value 
> (not even environment variables as "env" displays nothing with "pt" values)
> 
> 
> ? Toughts ? Maybe we need to setup kde with multiple possibilites in 
> control center, so that he reads LANG?

Maybe KDE use the following algorithm :
IF KDELanguage == Default (or C or POSIX or NULL)
 THEN KDELanguage <- LANG
 ELSE nothing
FI

so, try the same tests, but without forcing the language in the
control panel (setting language to default)

Maybe KDE dont use LANG but LC_* environement variables. I dont thinkg
so.

Francois
-- 
Le mariage des esprits est plus grand que celui des corps.  
   [Didier Erasme]


signature.asc
Description: Digital signature


Re: sarge gdm language entry, howto add language?

2004-11-18 Thread Francois Cerbelle
Le Thu, Nov 18, 2004 at 02:52:22PM +, Joao Clemente ecrit :
> Is there any workaround known, so that I can have a "interface language" 
> chooser in gdm/kdm/whatever that changes the language displayed by kde?

It might be possible to set and export the LANG environement variable
somewhere in /etc/environement or in the /etc/X/gdm scripts.

Fanfan
-- 
On ne se retourne pas quand on marche sur la corde du rêve.  
   [Fatou Diome]


signature.asc
Description: Digital signature


Re: Automating wifi setup

2004-10-15 Thread Francois Cerbelle
Look the package 

ifplugd

it can help you
Fanfan
-- 
Les âmes se rencontrent sur les lèvres des amants.  
   [Percy Bysshe Shelley]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: firewall + mail gw

2004-10-07 Thread Francois Cerbelle
Le Thu, Oct 07, 2004 at 12:20:05PM -0300, Carlos Alberto Pereira Gomes ecrit :
> I've a home network connected to internet with an ADSL link, and with 4
> users sharing two computers (windows machines). Each user has at least
> two mail accounts in different providers.
> I've already set up a linux firewall and it's running ok.
> I'd like to set up some kind of email server (in the firewall machine) that 
> collects all the emails for each user and let them read it with webmail or 
> outlook from the internal network, and let me use some kind of
> spam/virus filter.
> What is the best combination of software that I should use to get this
> solution?

If your users agree to give you their login/passwd for thier
different email accounts, you could use fetchmail to collect emails
and then a bogofilter or a spamassassin with a clamav for viruses.

Otherwise, if they dont want to give you the passwords, you can block
POP3 with your firewall and ask them to use popfile (mail proxy that
filter spams).

Fanfan
-- 
L'art d'être tantôt très audacieux et tantôt très prudent est l'art de
réussir.  
   [Napoléon Bonaparte]


signature.asc
Description: Digital signature


Re: Help

2004-10-04 Thread Francois Cerbelle
Le Sun, Oct 03, 2004 at 11:01:53PM +0200, Olav Sindre Vik Støylen ecrit :
> I've just installed Debian on my computer laptop, but the screen size is 
> disapointingly small..
> What can i do, i've searched all over the web for drivers, but cannot find 
> anything.
> I have a "Standard PCI graphic card".

Try using framebuffer. You should try to add a parameter to the kernel
line either in /etc/lilo.conf, cut and paste the default section,
renamme the copy and add the following line to it before running
"lilo" and rebooting :
vga=0x315

or in /boot/grub/menu.lst, add a new alternative (a special comment
line) in the file with the option "vga=0x315" and run the script
"upgrade-grub"

To know the different possible values, consult the
/usr/share/doc/kernel-documentation/Documentation/fb/vesafb.txt
(apt-get install kernel-doc-x.y.z)

Fanfan
-- 
Puissent les dieux te donner un mari, un foyer et la grâce de la paix,
car il n'y a rien de plus grand et de meilleur que cela.  
   [Homère]


signature.asc
Description: Digital signature


Re: Is there a stable mail client for linux?

2004-10-03 Thread Francois Cerbelle
Le Fri, Oct 01, 2004 at 10:41:22AM -0700, Brian Nelson ecrit :
> On Fri, Oct 01, 2004 at 04:30:15PM +0200, Francois Cerbelle wrote:
> > Le Fri, Oct 01, 2004 at 10:02:52AM -0400, Ed Sutherland ecrit :
> > > had to log-out and reboot in order to regain control. Is there a
> > > secure, solid and stable e-mail client built for linux? I don't want 
> > > applications to have a mind of their own. ;)
> > You can try mutt, it is textbased, but it is powerfull, never crash,
> Never crashes?  I crash mutt at least once per day.
It never crashed for me since I use it, ie several years.

> > never loose mails, never complain about mailbox size.
> It might not complain, but it'll take its sweet ass time loading a large
> mailbox.
I use it for opening Huge gziped mailboxes and the only drawback I had
is that it wants to unpack the file in $TMPDIR, which is a 128Mb tmpfs
on my computer. That's all, otherwise, it is the best
speed/quality/stability/conviviality/useability tools I found. I use
it with vim, gpg, aspell, procmail, fetchmail, and bogofilter.

Regards
Fanfan
-- 
Les cimetières sont les vestiaires de la résurrection.  
   [André Frossard]


signature.asc
Description: Digital signature


Re: Software

2004-10-01 Thread Francois Cerbelle
Le Thu, Sep 30, 2004 at 05:14:54PM +, [EMAIL PROTECTED] ecrit :
> Macromedia Studio MX 2004 - 180.00
> Adobe Photoshop 7.0 - 60.00
[...]
> and more http://www.hotoem.info/

Arf, Netcraft told me :
http://www.hotoem.info was running Apache on Linux  when last queried at 1-Oct-2004 
08:19:48 GMT

Fanfan

-- 
La santé, c'est d'avoir mal tous les jours à un endroit différent.  
   [Michel Chrestien]


signature.asc
Description: Digital signature


Re: SSH Cracking Attempts

2004-09-30 Thread Francois Cerbelle
Le Wed, Sep 29, 2004 at 09:55:59PM +0200, Matthijs ecrit :
> Some applications were named in the article - if you want, I can look
> them up and post the names.

I am interested too by theses apps. Event if secret based protection
isn't secure. :-S


-- 
Mourir n'est pas mourir ; mes amis ! C'est changer !  
   [Alphonse de Lamartine]


signature.asc
Description: Digital signature


Re: installed but not installed according to dpkg

2004-09-30 Thread Francois Cerbelle
Le Thu, Sep 30, 2004 at 01:10:12AM +0200, Jerome BENOIT ecrit :
> I have just observed something strange on my Sarge box:
> the pacake telnet is installed but according the tool dpkg it is not:
> so I cannot purge, among other thing I guess.
> How can we satinize our box ?

apt-get install --reinstall telnet
apt-get remove --purge telnet


Fanfan
-- 
Les enfants sont des énigmes lumineuses.  
   [Daniel Pennac]


signature.asc
Description: Digital signature