the "ls" command line
by Angelo Moreschini
what is the difference between these two commands ?
ls /*
and
ls /*/
-------------------
these two commands give me different output:
ls -ld /* =--->list all the files inside the directory (both files and
subdirectories)
ls -ld /*/ =---> give me the list of only the (subdirectory inside the
directory)
Thank you
Angelo
7 years, 8 months
encrypted partitions
by Patrick Dupre
Hello,
On a laptop, I would like to setup 2 encrypted partitions with the same
passphrase (this is easy). Now, when I boot the laptop, I would like to have
to provide the passphrase only one time.
Is it possible?
Thank.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
7 years, 8 months
lirc on fedora?
by Tom Horsley
I see lirc rpms on fedora, but I wonder about the systemd
integration. The /usr/share/doc/lirc-core/README.fedora
file doesn't quite seem to document the actual installation.
The /usr/lib/systemd/system/lircd.service file says
it depends on the lircd-setup.service, which doesn't
seem to have a service file anywhere.
On the other hand, it might make more sense just to run
lirc as my normal user when I login using a startup script.
Anyone have any experience running lirc on fedora
using the packages from the repo?
7 years, 8 months
calendar program loops
by Jon LaBadie
Upgraded to F24 and had a big surprise this morning,
a mail queue clogged by over 400,000 messages.
Root runs a nightly cronjob of "/usr/bin/calendar -a"
to look at each users calendar file and send notices
of upcoming events. The new version loops endlessly
through all the users.
If I run calendar as myself without the -a option
it doesn't loop. Run it as "sudo calendar -a" and
I have to kill it quickly or the mail system will
clog again.
My google and bugzilla search did not find any
comparable reports. Is anyone using this ancient
command with the -a option?
Jon
--
Jon H. LaBadie jonfu(a)jgcomp.com
7 years, 8 months
Evercookies & other malware: A different approach
by Drew Samson
As I've been contemplating this over the last few days it occurred to me
tools to deal with this effectively are readily at our disposal. The
bullet-proof way to deal with this is related to what I wrote a few days
ago. As I mentioned, I do my web browsing inside virtualbox and
virtualbox has what are called immutable images. I can make my vm disk
read-only and it's easy to do. I know this is not a viable solution for
some, however for those who are able to go this route it really doesn't
matter what gets loose or written to obscure locations since it'll all
be wiped out after a restart. Hence: no tracking and no malware
possible...persistently anyway.
I also looked into other ways this may be accomplished from within the
OS itself. I haven't implemented or experimented with this since what
works for me takes all of 5 minutes yet I list it so that perhaps it may
be helpful in giving someone else a solution that works for them.
Tool: firejail & firectl - from their page...
*"Firejail* is a SUID program that reduces the risk of security breaches
by restricting the running environment of untrusted applications using
Linux namespaces <https://lwn.net/Articles/531114/> and seccomp-bpf
<https://l3net.wordpress.com/2015/04/13/firejail-seccomp-guide/>. It
allows a process and all its descendants to have their own private view
of the globally shared kernel resources, such as the network stack,
process table, mount table."
It also has a ready template for Firefox.
https://firejail.wordpress.com/
The latest version: 0.9.42-rc1 released 7/21/16
https://lwn.net/Articles/671534/ firejail review
http://www.pcreview.co.uk/threads/firejail.4069760/ another review
I'm not sure if this would prevent tracking however since I haven't used
the tool and don't know if it's easy to "reset" the environment once an
app closes. I also considered a permissions-based approach yet after
considering it it doesn't seem much different than using a gui plugin:
if a browser doesn't have permission to write a cookie or run a script
it would probably respond just like the gui tools banning the same.
Also let me be clear my "bulletproof" comment above was only in the
context of malware; not protection from a hacker/cracker since if they
were able to jump out of the vm into the host...then obviously they've
also left the ro env.
hth.
Drew
7 years, 8 months
Booting LiveCD from the Hard Disk
by Philip Rhoades
People,
Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso or
extract the files and not have to use the loopback option - I get the
same problem - the boot process gets past linux and initrd and then has
problems ie:
[ 3.141117] localhost kernel: clocksource: tsc: mask:
0xffffffffffffffff max_cycles: 0x73401d16425, max_idle_ns: 881590940111
ns
[ 3.400709] localhost iscsid[324]: can't open InitiatorName
configuration file /etc/iscsi/initiatorname.iscsi
[ 3.400773] localhost iscsid[324]: Warning: InitiatorName file
/etc/iscsi/initiatorname.iscsi does not exist or does not contain a
properly formated InitiatorName. If using s
[ 3.400810] localhost iscsid[324]: can't open InitiatorAlias
configuration file /etc/iscsi/initiatorname.iscsi
[ 3.400845] localhost iscsid[324]: can't open iscsid.safe_logout
configuration file /etc/iscsi/iscsid.conf
[ 124.495385] localhost kernel: random: nonblocking pool is initialized
[ 124.799208] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
[ 125.306596] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
. .
[ 184.496528] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
[ 185.002817] localhost dracut-initqueue[472]: Warning:
dracut-initqueue timeout - starting timeout scripts
[ 185.003527] localhost dracut-initqueue[472]: Warning: Could not boot.
[ 185.004425] localhost dracut-initqueue[472]: Warning:
/dev/disk/by-label/Fedora-Live-Xfce-x86_64-24-1.2 does not exist
[ 185.005291] localhost dracut-initqueue[472]: Warning:
/dev/mapper/live-rw does not exist
[ 185.009415] localhost systemd[1]: Starting Setup Virtual Console...
[ 185.010711] localhost systemd[1]: Started Setup Virtual Console.
[ 185.119933] localhost kernel: audit_printk_skb: 3 callbacks
suppressed
[ 185.120246] localhost kernel: audit: type=1130
audit(1471958788.345:12): pid=1 uid=0 auid=4294967295 ses=4294967295
subj=kernel msg='unit=systemd-vconsole-setup comm="systemd
[ 185.012519] localhost audit[1]: SERVICE_START pid=1 uid=0
auid=4294967295 ses=4294967295 subj=kernel
msg='unit=systemd-vconsole-setup comm="systemd"
exe="/usr/lib/systemd/sys
[ 185.012891] localhost systemd[1]: Starting Dracut Emergency Shell...
Indeed, /dev/disk/by-label does not exist but I don't know to how to fix
the problem - assuming it is possible to fix . .
Any ideas / suggestions?
(BTW, this stuff is not "Mission Critical" - it is just an interesting
exercise . . )
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
7 years, 8 months
Re: Booting LiveCD from the Hard Disk
by Philip Rhoades
Tom,
On 2016-08-24 00:02, users-request(a)lists.fedoraproject.org wrote:
> Date: Tue, 23 Aug 2016 23:50:01 +1000
> From: Philip Rhoades <phil(a)pricom.com.au>
> Subject: Booting LiveCD from the Hard Disk
> To: Community support for Fedora users <users(a)lists.fedoraproject.org>
> Message-ID: <e4a73c09c88cb7d26c9a2189c0489f79@localhost>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> People,
>
> Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso or
> extract the files and not have to use the loopback option - I get the
> same problem - the boot process gets past linux and initrd and then has
> problems ie:
>
> [ 3.141117] localhost kernel: clocksource: tsc: mask:
> 0xffffffffffffffff max_cycles: 0x73401d16425, max_idle_ns: 881590940111
> ns
> [ 3.400709] localhost iscsid[324]: can't open InitiatorName
> configuration file /etc/iscsi/initiatorname.iscsi
> [ 3.400773] localhost iscsid[324]: Warning: InitiatorName file
> /etc/iscsi/initiatorname.iscsi does not exist or does not contain a
> properly formated InitiatorName. If using s
> [ 3.400810] localhost iscsid[324]: can't open InitiatorAlias
> configuration file /etc/iscsi/initiatorname.iscsi
> [ 3.400845] localhost iscsid[324]: can't open iscsid.safe_logout
> configuration file /etc/iscsi/iscsid.conf
> [ 124.495385] localhost kernel: random: nonblocking pool is
> initialized
> [ 124.799208] localhost dracut-initqueue[472]: Warning:
> dracut-initqueue timeout - starting timeout scripts
> [ 125.306596] localhost dracut-initqueue[472]: Warning:
> dracut-initqueue timeout - starting timeout scripts
>
> . .
>
> [ 184.496528] localhost dracut-initqueue[472]: Warning:
> dracut-initqueue timeout - starting timeout scripts
> [ 185.002817] localhost dracut-initqueue[472]: Warning:
> dracut-initqueue timeout - starting timeout scripts
> [ 185.003527] localhost dracut-initqueue[472]: Warning: Could not
> boot.
> [ 185.004425] localhost dracut-initqueue[472]: Warning:
> /dev/disk/by-label/Fedora-Live-Xfce-x86_64-24-1.2 does not exist
> [ 185.005291] localhost dracut-initqueue[472]: Warning:
> /dev/mapper/live-rw does not exist
> [ 185.009415] localhost systemd[1]: Starting Setup Virtual Console...
> [ 185.010711] localhost systemd[1]: Started Setup Virtual Console.
> [ 185.119933] localhost kernel: audit_printk_skb: 3 callbacks
> suppressed
> [ 185.120246] localhost kernel: audit: type=1130
> audit(1471958788.345:12): pid=1 uid=0 auid=4294967295 ses=4294967295
> subj=kernel msg='unit=systemd-vconsole-setup comm="systemd
> [ 185.012519] localhost audit[1]: SERVICE_START pid=1 uid=0
> auid=4294967295 ses=4294967295 subj=kernel
> msg='unit=systemd-vconsole-setup comm="systemd"
> exe="/usr/lib/systemd/sys
> [ 185.012891] localhost systemd[1]: Starting Dracut Emergency Shell...
>
> Indeed, /dev/disk/by-label does not exist but I don't know to how to
> fix
> the problem - assuming it is possible to fix . .
>
> Any ideas / suggestions?
>
> (BTW, this stuff is not "Mission Critical" - it is just an interesting
> exercise . . )
>
> Thanks,
>
> Phil.
>
> --
> Philip Rhoades
>
> PO Box 896
> Cowra NSW 2794
> Australia
> E-mail: phil(a)pricom.com.au
>
> ------------------------------
>
> Date: Tue, 23 Aug 2016 10:01:30 -0400
> From: Tom Horsley <horsley1953(a)gmail.com>
> Subject: Re: Booting LiveCD from the Hard Disk
> To: users(a)lists.fedoraproject.org
> Message-ID: <20160823100130.2134f9d6@zooty>
> Content-Type: text/plain; charset=US-ASCII
>
> On Tue, 23 Aug 2016 23:50:01 +1000
> Philip Rhoades wrote:
>
>> Whether I use a GRUB2 configuration to boot from the XFCE LiveCD iso
>
> I don't know if anyone ever tweaked fedora live cds to have
> the required support to boot via grub. I know at one time I
> read they wouldn't work that way. I do have several livecd
> images setup to boot from disk, but none of them are fedora.
You will note I said the boot process gets past the linux and initrd
stage - so it is past the grub stage and into the Fedora boot stage -
this is a Fedora problem not a GRUB2 problem . .
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
7 years, 8 months
Dell Inspiron 17 with Fedora
by CLOSE Dave
This is just a notice for those who may care.
I installed Fedora 23 on a Dell Inspiron 17 laptop. If I use the latest
kernel, 4.6.6-200, the screen flickers incessantly except when the
touchpad is used to move the cursor. If I use a slightly older kernel,
4.5.7-202, everything works fine.
--
Dave Close
7 years, 8 months
libg2c
by Patrick Dupre
Hello,
I get the error message:
/usr/bin/ld: cannot find -lg2c
while compat-libf2c-34.x86_64 is installed.
even if I do:
g++ -o test testF.o testC.o -L/usr/lib64 -lg2c
I get the same error.
While that ?
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
7 years, 8 months