Re: [arch-general] What's the use of bacman's pacnew option?

2015-05-17 Thread Sébastien Leblanc
Hazarding a guess, I would suppose it's to tell bacman to look for
.pacnew file as well because those will be up-to-date relative to the
files that are already there.

On 17 May 2015 at 08:09, Ralf Mardorf ralf.mard...@rocketmail.com wrote:

 Hi,

 I can't find a documentation, perhaps because my Internet
 connection today is very slow.

 bacman [--nocolor] [--pacnew] installed package name

 What's the use of bacman's pacnew option?

 TIA,
 Ralf




-- 
Sébastien Leblanc


Re: [arch-general] Tool to create mtree

2015-04-29 Thread Sébastien Leblanc
On 29 April 2015 at 08:43, Magnus Therning mag...@therning.org wrote:
 When looking at the internals of an Arch package I learned about the
 mtree format.  However, I didn't find any tool to create an mtree file
 myself.

It seems like the line that produces the .MTREE file is simply using
`bsdtar`:

From
https://projects.archlinux.org/pacman.git/tree/scripts/makepkg.sh.in#n1940:

msg2 $(gettext Generating .MTREE file...)
LANG=C bsdtar -czf .MTREE --format=mtree \

--options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' \
${comp_files[@]} *
comp_files+=(.MTREE)

-- 
Sébastien Leblanc


Re: [arch-general] update error(?)

2015-04-16 Thread Sébastien Leblanc
The mirror you picked is out-of-sync with the main mirrors. Either pick a
different mirror or wait until it is in sync.


Re: [arch-general] Could not receive my Bugtracker Activation Code

2014-12-30 Thread Sébastien Leblanc
Random suggestion: have you tried asking for a password reset?

https://bugs.archlinux.org/lostpw

On 29 December 2014 at 22:57, Minh Nhut Duong nhu...@gmail.com wrote:

 I try to create my account again but this user already taken. :(

 On Tue, Dec 30, 2014 at 10:49 AM, Eli Schwartz eschwart...@gmail.com
 wrote:

  On Tue, Dec 30, 2014 at 2:40 AM, Minh Nhut Duong nhu...@gmail.com
 wrote:
   Hi,
   I registerd my Arch Linux Bugtracker account from this link
   https://bugs.archlinux.org/ but I cannot receive my activation code to
   complete registration. Anyone can help me resend my activation code to
   nhutdm at gmail dot com.
   Thanks,
 
  Try recreating the account.
 
  -- Eli Schwartz
 




-- 
Sébastien Leblanc


Re: [arch-general] nginx in a linux container

2014-02-23 Thread Sébastien Leblanc
On 23 February 2014 04:19, arnaud gaboury arnaud.gabo...@gmail.com wrote:
 Shame on me. If I could save $1 for each typo, I would then be a rich man !

Error: undefined variable '$1'.

;-)

-- 
Sébastien Leblanc


Re: [arch-general] journalctl and I/O errors

2014-02-08 Thread Sébastien Leblanc
On 8 February 2014 12:06, Janna Martl janna.martl...@gmail.com wrote:

 On Thu, Feb 6, 2014 at 1:03 AM, Sébastien Leblanc 
 leblancse...@gmail.comwrote:

  Conclusion (as I understand it):
 
  1. There is definitely a bug in Journalctl: it crashes (segfaults) on I/O
  errors.
 
  2. You have a drive that is failing, or your BIOS might not be set
  correctly.
 

 Thanks, all, for the analysis. I have submitted a bug report [1] for
 systemd. Also, it seems you were right about hardware failure --
 though I still can't get smartctl to acknowledge anything being wrong
 (except for nonzero current pending sector count), I ran badblocks,
 which found a bunch of errors, including on sectors corresponding to
 files outside /var/log/journal. Guess I should get a new drive.


 [1] https://bugs.freedesktop.org/show_bug.cgi?id=74714


Do not rely too much on SMART data; in their hard disk failure study,
Google concluded that when SMART reports a drive as unhealthy, it is
often right, but for many drives that failed, SMART was still
reporting them as healthy.

 Failure Trends in a Large Disk Drive Population, by Google Inc.
 [...]
 Our analysis identifies several parameters from the drive’s
 self monitoring facility (SMART) that correlate highly with
 failures. Despite this high correlation, we conclude that mod-
 els based on SMART parameters alone are unlikely to be useful
 for predicting individual drive failures

 http://static.googleusercontent.com/media/research.google.com/en//archive/disk_failures.pdf

-- 
Sébastien Leblanc


Re: [arch-general] journalctl and I/O errors

2014-02-05 Thread Sébastien Leblanc
Conclusion (as I understand it):

1. There is definitely a bug in Journalctl: it crashes (segfaults) on I/O
errors.

2. You have a drive that is failing, or your BIOS might not be set
correctly. This is causing the I/O errors. How large is the drive? You
might have to turn off settings such as SATA legacy compatibility or the
like -- I had a 3TB drive that would cause ATA command errors on a ~2006
computer; I found this option in the BIOS and as soon as I turned it off
everything worked perfectly.

Although journalctl should not crash on I/O errors, I think it is not
unreasonable to assume that many other apps do not tolerate I/O errors
either. So I would say: you should still report this bug upstream.

-- 
Sébastien Leblanc


Re: [arch-general] Default value of j in makeflags of makepkg.conf

2013-12-30 Thread Sébastien Leblanc
I would advise against doing that, considering that there are at least a
handful of packages (can't name them) that have broken or otherwise
malfunctioning Makefiles when run in parallel. The package maintainers
_should_ be aware of those issues, and would accordingly add
'options=!makeflags' to their PKGBUILD, but not everyone has a multiple
core computer, nor did everyone test the functionality (there could be
cases where -j4 runs fine, but -j8 crashes, or other weird race conditions).

Adding your line as a mention in the makepkg.conf file (as a comment) could
be a great idea, as it is definitely a clever way of automatically setting
the number of parallel instances.

#-- Make Flags: change this for DistCC/SMP systems
# MAKEFLAGS=-j$(nprocs) will set it to the number of logical cores on
your system.
MAKEFLAGS=-j8



On 30 December 2013 22:24, Mark Lee m...@markelee.com wrote:

 Salutations,

 I was wondering if we could change the default value for j in MakeFlags
 in makepkg.conf to -j$(nproc). This would allow makepkg to scale the
 number of threads per pc as default.

 Regards,
 Mark
 --
 Mark Lee m...@markelee.com




-- 
Sébastien Leblanc


Re: [arch-general] Patch for update-mime-info slowness

2013-12-06 Thread Sébastien Leblanc
On Thu, Dec 5, 2013 at 7:37 PM, Gaetan Bisson bis...@archlinux.org wrote:
 [2013-12-04 15:00:31 -0500] Sébastien Leblanc:
 I am kind of annoyed by the time it takes to update the MIME database

 Please, please, please. Bug reports and feature requests go to:

Thank you, I already know the URL to the bug tracker, but I was not
looking to file a bug, or anything. I am only sharing a patch with
fellow Arch users.

Upstream already mentioned that this is their expected behavior
(they wish to default to safety).
https://bugs.freedesktop.org/show_bug.cgi?id=70366#c9

Thanks to Rodrigo, I now know the existence of 'libeatmydata'.

-- 
Sébastien Leblanc


[arch-general] Patch for update-mime-info slowness

2013-12-04 Thread Sébastien Leblanc
I am kind of annoyed by the time it takes to update the MIME database
(something like two minutes on a recent i7 quad-core laptop). Until
pacman has hooks/triggers, I have removed the calls to fdatasync
(which are supposed to ensure that the files are truly written to
disk). I prefer letting the system take care of it anyway, and I don't
care much for consistency in desktop links and file associations.

Y'know, it might bear the name database, but it's not a database in
the sense of a +1M row postgresql database).

Anyone have an opinion on this? Am I a complete idiot in removing
these calls to fdatasync?

With this patch, updating takes around 5 seconds, haven't run it with
a stopwatch yet.

-- 
Sébastien Leblanc


[arch-general] Rivendell PKGBUILD

2013-06-04 Thread Sébastien Leblanc
Hey folks!

I updated my PKGBUILD file and submitted it to the Arch User
Repository, if anyone is interested. It is the 2.5.1 version of
Rivendell

https://aur.archlinux.org/packages/rivendell/

Let me know if you are having any issues. For now, I am having trouble
with rdcartslots: it will not run at all. Maybe someone can help me
out. I have not done thorough testing, but most everything else should
work correctly.

--
Sébastien Leblanc


Re: [arch-general] SOLVED Re: Cannot chroot '/bin/bash': No such file or directory

2013-03-13 Thread Sébastien Leblanc
On 13 March 2013 04:07, Martti Kühne mysat...@gmail.com wrote:
 as sysadmin of your archlinux system you should take care of pacnew files
 in your filesystem. I myself run

 # find / -xdev -regextype posix-egrep -regex '.*\.pac(new|old|save)' | less

Regarding .pacnew files, there is an utility called pacdiff in the
pacman-contrib package. You run it in a directory and it looks for
.pacnew, .pacorig and .pacsave files. For .pacnew files, it opens up a
vim window in diff mode, letting you sync files when appropriate (e.g.
httpd.conf has new comments or new defaults). Upon saving, the script
asks you whether you want to keep or remove the .pacnew file.

It's really a time saver.

-- 
Sébastien Leblanc


Re: [arch-general] Combining package deltas and signing?

2012-12-29 Thread Sébastien Leblanc
I believe signatures are checked after packages are rebuilt from
deltas. Therefore, if your delta is compromised, the resulting package
won't validate with the signature.

On 28 December 2012 11:40, Magnus Therning mag...@therning.org wrote:
 On Fri, Dec 28, 2012 at 10:31 AM, Allan McRae al...@archlinux.org wrote:
 On 28/12/12 05:27, Magnus Therning wrote:
 Do these two features play nice together?


 Why wouldn't they?

 No reason beyond that it requires extra code in pacman to make it
 work.  It could be a thing that's easily overlooked.

 /M

 --
 Magnus Therning  OpenPGP: 0xAB4DFBA4
 email: mag...@therning.org   jabber: mag...@therning.org
 twitter: magthe   http://therning.org/magnus



-- 
Sébastien Leblanc


Re: [arch-general] You have mail message at login

2012-10-16 Thread Sébastien Leblanc
On 16 October 2012 01:42, gt static.vor...@gmx.com wrote:
 Whenever I log in to a TTY, I get this message. I read my system mails
 through mutt, so i don't need this.

Pam is taking care of showing whether you have mail or not. In
/etc/pam.d/system-login, comment this line:

sessionoptional   pam_mail.so  dir=/var/spool/mail standard

You should not get new mail prompts anymore.

-- 
Sébastien Leblanc


Re: [arch-general] systemd-pulseaudio-no sound card

2012-08-29 Thread Sébastien Leblanc
 My issue comes from permission. On console mod, $ aplay -l returns
 correctly the devices. When I am on X, it doesn't.

Might be a PolicyKit issue. How do you start your X server / desktop manager?

-- 
Sébastien Leblanc


Re: [arch-general] systemd-pulseaudio-no sound card

2012-08-29 Thread Sébastien Leblanc
On 29 August 2012 13:20, Sébastien Leblanc leblancse...@gmail.com wrote:
 My issue comes from permission. On console mod, $ aplay -l returns
 correctly the devices. When I am on X, it doesn't.

 Might be a PolicyKit issue. How do you start your X server / desktop manager?

Guuhhh, ConsoleKit...


-- 
Sébastien Leblanc


Re: [arch-general] systemd-pulseaudio-no sound card

2012-08-29 Thread Sébastien Leblanc
Disregard that, I did not know enough of systemd to know that it uses
a mechanism named 'loginctl' instead of ConsoleKit...

-- 
Sébastien Leblanc


[arch-general] DMX USB support in AUR

2012-08-23 Thread Sébastien Leblanc
Hi everyone,

I created a package for the Enttec Open DMX USB driver. It is
available in the AUR under the name dmx_usb-git.

From Wikipedia:
DMX512 is a standard for digital communication networks that are
commonly used to control stage lighting and effects. It was originally
intended as a standardized method for controlling light dimmers

-- 
Sébastien Leblanc


Re: [arch-general] systemd native files in etc

2012-08-23 Thread Sébastien Leblanc
Could default templates be provided in the post_install(){} hook for
the systemd package? Something like

post_install() {
if [ ! -e /etc/timezone ] ; then
  cat  /etc/timezone EOF
UTC
fi

if [ ! -e /etc/localtime ] ; then
  ln -s /usr/share/zoneinfo/UTC /etc/localtime
fi

if [ ! -e /etc/hostname ] ; then
  hostname  /etc/hostname
fi
}

That way, on upgrade, they would not be overwritten, but on install
you would at least have working settings.


-- 
Sébastien Leblanc


Re: [arch-general] irqbalance: /usr/lib/systemd/system/irqbalance.service exists in filesystem

2012-08-21 Thread Sébastien Leblanc
On 21 August 2012 10:36, Martín Cigorraga m...@archlinux.us wrote:
 (4/4) checking for file conflicts
 [---] 100%
 error: failed to commit transaction (conflicting files)
 irqbalance: /usr/lib/systemd/system/irqbalance.service exists in filesystem
 Errors occurred, no packages were upgraded.

Sometimes it is okay to pacman -Sf things. Keep a backup copy of
this file, just in case?

-- 
Sébastien Leblanc


Re: [arch-general] My end-user $0.02 on /etc/rc.conf splitting.

2012-07-23 Thread Sébastien Leblanc
For having used systemd myself, I am inclined to believe that it
definitely fits the KISS principle. Systemctl is only a frontend to
simplify the addition and removal of services. Simplicity is only a
matter of learning new commands (systemctl enable daemon.service,
e.g.). What systemctl really does when you enable a service is that it
creates symbolic links in /etc/systemd/system/target.wants.target/
that point to appropriate deamon launch helpers located in
/usr/lib/systemd/system/. The proper target folder (graphical,
multi-user, single-user) is obtained by reading the actual target
file, but this can be overridden if you do the links manually.

What I find really powerful of systemd is that it hooks onto the
daemon itself and monitors exit codes and log files. Finding what's
wrong with your sshd service is only a matter of typing systemctl
status sshd.service. You get current activity, its PID, the actual
command it ran to start it, its status code if it ceased working, and
the few last lines from the log file.

To find out what runs at startup, you may use systemctl. I don't know
the particular command, so I don't use it myself. I managed to figure
out how to do it in a couple of seconds: you only have to ls the
right directory. Graphical mode? ls
/etc/systemd/system/graphical.target.wants. Multi-user: ls
multi-user.target.wants. Could not be simpler.

I have also found that my system boots much more rapidly with systemd.
I can have a fully logged-in system running XFCE4, on older hardware
(Intel Pentium 64-bit laptop) in less that 40 seconds.

-- 
Sébastien Leblanc


[arch-general] Huge log file for SLiM

2012-07-03 Thread Sébastien Leblanc
Dearest Arch Linux Mailing List,

So I was installing a few packages on a fairly recent Arch install,
when I got an error message from pacman:

8888

: Retrieving packages from community...
error: failed retrieving file 'package' from mirror1 : Failed
writing body (1435 != 1448)
error: failed retrieving file 'package' from mirror2 : Failed
writing body (104 != 4344)
error: failed retrieving file 'package' from mirror3 : Failed
writing body (6 != 2896)
warning: failed to retrieve some files from community
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

8888

I immediately thought of a full hard drive. `df` reported that my /
partition was full. My root FS partition is around 33G in size: that's
not huge, but since it is a fairly recent install, I thought there was
no way it could be normally that full.

I ran `du -sh` on things in my / drive, and it reported that /var/log
was using up 27G of space. The culprit was SLiM's log: it was making
up 99.99394 of all the space occupied by logs on my system. For some
reason, log rotation does not occur with SLiM on my system. All other
applications with logs work fine.

Is anyone having this issue?


I could not test it on other systems as it is the only one I have running SLiM.

-- 
Sébastien Leblanc


Re: [arch-general] Huge log file for SLiM

2012-07-03 Thread Sébastien Leblanc
That might be somewhat of an issue as I am running systemd and not the
default initscripts, therefore there is no rc.conf file on my
system... Also, `ps` does not report a syslog process running.

Running `systemctl start syslog.service` responded that the syslog
service could not be found.

And this made me realise that only apps with self-managed logs are
currently leaving logs on my system. The last time kernel.log was
updated is on May 31... The only logs that are up-to-date are
'faillog', 'lastlog' and self-managed apps like pacman, X and SLiM.

`pacman -Ql slim` taught me that there's a file located in
/etc/logrotate.d/ that defines configuration for log rotation. This in
turn is used by logrotate(8) which is usually invoked automatically
through cron. This led me to the conclusion that cron(ie) was not
running on my system. Fortunately, cronie includes startup scripts for
systemd, and I was able to start cron through these commands:

# systemctl enable cronie.service
# systemctl start cronie.service

I deleted the /var/log/slim.log file, however the filesystem still
reports being full... That is weird. Sure, 27G files aren't a common
occurence. I hope my filesystem is not thrashed.

Thanks a lot Mikkel for your insight!

On 3 July 2012 16:05, Mikkel Kristiansen mester.kristian...@gmail.com wrote:
 Hi Sébastien
 I have tried it once with SLiM, though the problem was that syslog-ng
 wasn't placed in DAEMONS in rc.onf... So you could check that.

-- 
Sébastien Leblanc


Re: [arch-general] archlinux install failed

2012-06-03 Thread Sébastien Leblanc
It appears you have to setup your preferred mirror in
/etc/pacman.conf. You must edit the file /etc/pacman.d/mirrorlist and
uncomment a mirror that is located in your country, or nearby. You can
uncomment multiple lines, for redundancy, and move them around, for
performance.

-- 
Sébastien Leblanc


[arch-general] `multicat` package added to AUR

2012-03-12 Thread Sébastien Leblanc
Hi, I made a PKGBUILD for VideoLAN's multicat utility. It is a
content-agnostic (optimized for MPEG TS) uni/multicast streaming
software suite. It is often considered a multicast version of the
netcat utility. It is very lightweight: a compiled package weighs 41K
It is available on the AUR under the name `multicat`.

From their website:
 Simple and efficient multicast and transport stream manipulation
 The multicat package contains a set of tools designed to easily and 
 efficiently manipulate multicast streams in general, and MPEG-2 Transport 
 Streams (ISO/IEC 13818-1) in particular.
 The multicat suite of applications is very lightweight and designed to 
 operate in tight environments. Memory and CPU usages are kept to a minimum, 
 and they feature only one thread of execution.


Re: [arch-general] ntp settings

2012-02-05 Thread Sébastien Leblanc
Myself being a non-vi user, I find that visudo is hard for people used
to nano. Besides, use of visudo is only critical for systems where no
one knows the root password (default Ubuntu for example). If you know
the root password and are on a generally single user system where
there is no risk that two people would be modifying the sudoers file
at the same time, don't be afraid to edit /etc/sudoers with nano. If
you manage to break sudo, you can always fix it with su -c nano
/etc/sudoers and by typing the root password.

-- 
Sébastien Leblanc


Re: [arch-general] ntp settings

2012-02-05 Thread Sébastien Leblanc
On Sun, Feb 5, 2012 at 17:40, Lukas Fleischer archli...@cryptocrack.de wrote:
 visudo(8) does more than locking. It performs basic syntax checks after
 editing and tells you if (and where) any errors were found. It's the
 right tool for this job, so why bother with workarounds if using another
 editor is as simple as setting $VISUAL or $EDITOR (which you should
 do in your shell rc file anyway if you're not used to using vi(1))?

$EDITOR is already set in my .bashrc. I always tried to run it this way:
~ $ sudo visudo
but it never worked.

Even putting vars before invoking sudo does not work:
~ $ EDITOR=nano VISUAL=nano sudo visudo

I just found out that sudo clears (at least some) environment
variables and you have to put this variable after 'sudo'.

~ $ sudo EDITOR=nano visudo

I did not use visudo because I never bothered trying to make it work
with nano. Thanks to you, I now know how.

-- 
Sébastien Leblanc


Re: [arch-general] How do I uncomment a locale?

2011-12-13 Thread Sébastien Leblanc
Basically, many config files using this syntax, when read, will strip
everything that is located to the right of hash signs (#) including
those hash signs (except when enclosed with quotes or other cases).
This makes it that the only lines that will be left in the locale.gen
file are those that do not contain hash signs, or have text preceding
it. In your case it would be the Australian English locale (en_AU, I
think).

Yes, you could erase all the other lines, but it serves no use to do
so, and might make it slightly harder if you later wish to add another
locale (foreign visitor, learning a new language, troubleshooting
deficient locales...).

-- 
Sébastien Leblanc


Re: [arch-general] Does anybody still have kde3 running? libpng problems preventing apps from running?

2010-03-03 Thread Sébastien Leblanc
David, are you running kdemod-legacy? If not, you should try it.

Sébastien Leblanc


Re: [arch-general] Pacman upgrade fails due to file conflits

2010-02-15 Thread Sébastien Leblanc
Just `rm' those files, problem solved!

Sébastien Leblanc


[arch-general] ca-cf keyboard layout in hal

2010-01-30 Thread Sébastien Leblanc
I cannot find the cf variant in the ca layout (canadian french) in
/usr/share/X11/xkb/rules/xorg.lst. What happened with it? I am trying
to use a USB keyboard on my laptop, however it gets set as US instead
of ca-cf. I check the file 10-keymap.fdi in /etc/hal/fdi/policy, but
when I put ca as layout and cf as variant, my keyboard does not
respond when I plug it in. Any other layout (that exists) works.

Did Xorg remove the ca-cf layout?

Sébastien Leblanc


Re: [arch-general] ca-cf keyboard layout in hal

2010-01-30 Thread Sébastien Leblanc
Actually, I tried the variant fr even if it was not listed and it
worked. How come that variant is not listed in the evdev.lst file?
Should that problem be reported upstream?

Strangely, in the kcontrol Keyboard layout selection menu, the variant
fr for the canadian keyboard does appear.

As for the ca-fr layout, it is very particular in that it accepts dead
keys as input, for accented letters. The fr-legacy does not, but the
fr-dvorak does, although I am still not quite ready with dvorak
layouts.


Thanks for your help!


Re: [arch-general] unclean filesystem

2010-01-26 Thread Sébastien Leblanc
There you go.


Re: [arch-general] unclean filesystem

2010-01-23 Thread Sébastien Leblanc
Are you using automatic time synchronisation (NTP) on any of the
systems? This might be the problem.

Sébastien Leblanc


Re: [arch-general] Yikes! kernel26-2.6.32-1-x86_64 leaves Toshiba laptop unbootable

2009-12-06 Thread Sébastien Leblanc
Did you know you can append 3 to the kernel line in the boot menu of GRUB
in order to boot in init 3? This would avoid loading X and could be useful
for you.

I have no idea what could be causing your problem, however.

Sébastien Leblanc


Re: [arch-general] peaceful suggestion to clarify the arch way to avoid this to happen AGAIN

2009-12-04 Thread Sébastien Leblanc
Arvid:

Linux from scratch.


Re: [arch-general] peaceful suggestion to clarify the arch way to avoid this to happen AGAIN

2009-12-03 Thread Sébastien Leblanc
Please, stop filling my inbox with useless junk.


Re: [arch-general] New user

2009-09-10 Thread Sébastien Leblanc
Why, hello there. If you have any questions, you can send me mail directly.