Re: Help ! No syslog anymore

2023-11-16 Thread Bhasker C V
Michael,
You are a star.
I dont know what I did before but I re-installed rsyslog and changed the
PrivateTmp to no
It works now.
I can see /tmp/server.log is now pushing syslog contents
Thank you very much.

On Mon, Nov 13, 2023 at 10:24 AM Michael Biebl  wrote:

> Am 13.11.23 um 10:13 schrieb Bhasker C V:
> > I forgot to answer the question on why I am doing this
> > I am experimenting on a no-log system where there is no writes
> > what-so-ever to /var/log (except for mails) or systemd journal
> > (currently kept volatile)
> > /tmp/ is tmpfs mounted
> > Attached is the rsyslog config as-it-is being used now.
> >
>
> With the attached rsyslog.conf, disabling PrivateTmp makes rsyslog log
> to /run/server.log correctly (verified locally).
>
> I can only assume you didn't follow my instructions properly.
>
> Please make sure after following my instruction that you have afterwards
> # systemctl show -P PrivateTmp rsyslog.service
> no
>
> Btw, for your use case, a subdirectory in /run would be more suitable,
> like say /run/syslog/.
>
> Also, you currently have
> *.* -/tmp/server.log
> *and*
> *.=info;*.=notice;*.=warn;\
> auth,authpriv.none;\
> cron,daemon.none;\
> mail,audit,news.none-/tmp/server.log
>
> This doesn't make any sense.
> This will basically duplicate the log messages in /tmp/server.log and
> interleave them.
>
> Either you split up the logs facilities and log them to separate files
> or you only keep a single log rule like
>
> *.* -/tmp/server.log
>
> which simply logs everything to /tmp/server.log
>
>


Re: Help ! No syslog anymore

2023-11-13 Thread Bhasker C V
I forgot to answer the question on why I am doing this
I am experimenting on a no-log system where there is no writes what-so-ever
to /var/log (except for mails) or systemd journal (currently kept volatile)
/tmp/ is tmpfs mounted
Attached is the rsyslog config as-it-is being used now.



On Sun, Nov 12, 2023 at 1:46 PM Michael Biebl  wrote:

> Am 12.11.23 um 08:18 schrieb Bhasker C V:
> > Hi,
> > I have tried removing PrivateTmp=no in the rsyslog service file and it
> > still doesnt work
>
> I assume you mean PrivateTmp=yes?
>
> > I  have removed the service file which I had created too.
> > I found that when I run the daemon manually, it works well. Hence I have
> > disabled rsyslog and I have put the daemon startup in my rc-local
> >
> > But yes, removing PrivateTmp doesnt help.
> > I am happy to troubleshoot this if anyone wants me to be a QA for this.
>
> As a first step, please share your complete rsyslog config *verbatim*
>
>
> Michael
>
> [Not subsribed to debian-user, so please CC on replies]
>


rsyslog.conf
Description: Binary data


Re: Help ! No syslog anymore

2023-11-11 Thread Bhasker C V
Hi,
I have tried removing PrivateTmp=no in the rsyslog service file and it
still doesnt work
I  have removed the service file which I had created too.
I found that when I run the daemon manually, it works well. Hence I have
disabled rsyslog and I have put the daemon startup in my rc-local

But yes, removing PrivateTmp doesnt help.
I am happy to troubleshoot this if anyone wants me to be a QA for this.


On Fri, Nov 10, 2023 at 3:55 PM Michael Biebl  wrote:

> The service file you posted is not a good idea. Please remove it again.
>
>
> If moving the log file out of /tmp is not an option, please run
> systemctl edit rsyslog.service
> and disable PrivateTmp via
>
> [Service]
> PrivateTmp=no
>


Re: Help ! No syslog anymore

2023-11-10 Thread Bhasker C V
Thanks very  much.
Adding bind path did not help. I found that if I run rsyslog from
command-line as unconfined_t, it works well. It is just the extra systemd
locks which fail
I have since written a simple systemd unit file to make rsyslog work and it
has started working

# /etc/systemd/system/user-rsyslog.service
[Unit]
Description=Simple Rsyslog service
After=network.target auditd.service

[Service]
Type=simple
ExecStart=pkill -9 -f rsyslogd;/usr/sbin/rsyslogd -n -iNONE

[Install]
WantedBy=multi-user.target

On Wed, Nov 8, 2023 at 4:47 PM Sven Joachim  wrote:

> On 2023-11-08 08:26 +0000, Bhasker C V wrote:
>
> >  I moved my syslog to a different location  '/tmp/server.log'
>
> A rather strange decision, since /tmp is usually pruned on reboot.
>
> > This was working all fine until I moved to selinux in enforcing mode.
> >
> > I have tried putting selinux in permissive state and that too did not
> help
>
> Most likely your problem has nothing to do with selinux, but is rather
> due to the hardening features implemented in rsyslog 8.2310.0-1.  Among
> other things, rsyslogd now gets its own /tmp directory (PrivateTmp=yes
> in rsyslog.service) which is not shared with other processes.
>
> > Please could someone help ? Or if there is a procedure to move syslog
> file
> > /var/log/syslog to a different location, I am happy to follow ...
>
> If you insist on moving it to /tmp, one possibility is to use a bind
> mount for /tmp/server.log.  Run "systemctl edit rsyslog.service" and put
> the following two lines in the file:
>
> [Service]
> BindPaths=-/tmp/server.log
>
> You may also need a tmpfiles.d(5) snippet to create /tmp/server.log on
> reboot if it does not exist.
>
> Good luck,
> Sven
>
>


Help ! No syslog anymore

2023-11-08 Thread Bhasker C V
Hi,

 I moved my syslog to a different location  '/tmp/server.log'
This was working all fine until I moved to selinux in enforcing mode.

I have the file context as system_u:object_r:syslogd_runtime_t:s0
now, the file is empty
Strangely ...
lsof shows rsyslog is using this file

rsyslogd 25561 root4r   CHR1,9  0t0 18
/dev/urandom
rsyslogd 25561 root5r   REG   0,440 4026532059
/proc/kmsg
rsyslogd 25561 root6u  unix 0xc5984619  0t0 136109
type=DGRAM (CONNECTED)
rsyslogd 25561 root7w   REG   0,35 8952   4873
/tmp/server.log
rsyslogd 25561 root8w   REG   0,35 8952   4873
/tmp/server.log
rsyslogd 25561 root9w   REG   0,35 8952   4873
/tmp/server.log

But, the file says it is not being used by rsyslog

 $ sudo lsof /tmp/server.log
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
tail24848  bcv3r   REG   0,35   39   37 /tmp/server.log

There are also no messages in the kernel which I can use to audit any
access/deny issues for selinux.
I have tried putting selinux in permissive state and that too did not help
Please could someone help ? Or if there is a procedure to move syslog file
/var/log/syslog to a different location, I am happy to follow ...


Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
I finally fixed it.
The issue seems to be with the tpm-tis/cpu backend  (wonder why it shows up
with a different error)
For the sake of community, I am attaching the new xml file so that you can
do forensics on what changed
(I prettymuch did a virt-install --import --print-xml to redo the config
keeping everything intact)

I found another issue
If I switch the suspend-to-disk enabled="yes"
I strangely get an error
error: operation failed: Unable to find any firmware to satisfy 'efi'

I presume the errors being spit out are not accurate description of
failures anymore with libvirt and for the life of mine I could not find why
the other xml file doesnt work and why this does.
Happy libvirt-ing


On Thu, Sep 21, 2023 at 2:58 PM Bhasker C V  wrote:

> Hi,
>  I have tried that too and that did not help either (i.e adding the format
> type=gpt)
> The output you requested
>
> ```
> $ sudo  qemu-img info --backing-chain /var/virt/WINDOWS/WIN11
> image: /var/virt/WINDOWS/WIN11
> file format: qcow2
> virtual size: 60 GiB (64424509440 bytes)
> disk size: 55.1 GiB
> cluster_size: 65536
> backing file: WIN11-BASE (actual path: /var/virt/WINDOWS/WIN11-BASE)
> backing file format: raw
> Format specific information:
> compat: 1.1
> compression type: zlib
> lazy refcounts: false
> refcount bits: 16
> corrupt: false
> extended l2: false
> Child node '/file':
> filename: /var/virt/WINDOWS/WIN11
> protocol type: file
> file length: 55.1 GiB (59202338816 bytes)
> disk size: 55.1 GiB
>
> image: /var/virt/WINDOWS/WIN11-BASE
> file format: raw
> virtual size: 60 GiB (64424509440 bytes)
> disk size: 26.5 GiB
> Child node '/file':
> filename: /var/virt/WINDOWS/WIN11-BASE
> protocol type: file
> file length: 60 GiB (64424509440 bytes)
> disk size: 26.5 GiB
> ```
>
> On Thu, Sep 21, 2023 at 2:52 PM Peter Krempa  wrote:
>
>> On Thu, Sep 21, 2023 at 10:50:07 +0100, Bhasker C V wrote:
>> > Attaching win11.xml
>> > Please note that this used to work fine. It is failing now on libvirt-
>> > 9.7.0-1
>> >
>> > On Thu, Sep 21, 2023 at 9:13 AM Peter Krempa 
>> wrote:
>> >
>> > > On Thu, Sep 21, 2023 at 09:05:43 +0100, Bhasker C V wrote:
>> > > > Adding libvirt mailing list
>> > > > apologies for cross-posting
>> > > > libvirt version: 9.7.0-1
>> > > >
>> > > > On Thu, Sep 21, 2023 at 8:39 AM john doe 
>> wrote:
>> > > >
>> > > > > On 9/21/23 09:32, Bhasker C V wrote:
>> > > > > > I am getting an error with libivrt when I create a VM
>> > > > > >
>> > > > > > ```
>> > > > > >   $ sudo virsh create ./win11.xml
>> > >
>> > > Please attach the XML used here. It comes from a code path which
>> > > shouldn't be possible to reach.
>> > >
>> > > > > > error: Failed to create domain from ./win11.xml
>> > > > > > error: internal error: mishandled storage format 'none'
>> > > > > >
>> > > > > > ```
>> > > > > >
>> > > > > > This is after I have done a dist-upgrade (was working fine
>> before)
>> > > > > > debian trixie.
>> > >
>> > > Which version did you have before?
>> > >
>> > > > > >
>> > > > > > error message says
>> > > > > > qemuBlockStorageSourceGetBlockdevFormatProps:1227 : internal
>> error:
>> > > > > > mishandled storage format 'none'
>> > >
>> > >
>>
>> >   destroy
>> >   restart
>> >   destroy
>> >   
>> > 
>> > 
>> >   
>> >   
>> > /usr/bin/qemu-system-x86_64
>> > 
>> >   
>> >   
>> >   
>> > 
>>
>> Could you please also attach the output of:
>>
>>   qemu-img info --backing-chain '/var/virt/WINDOWS/WIN11'
>>
>>
>> > 
>> >   
>> >   
>> > 
>> >   
>> >   
>> > 
>>
>> In the definition I don't see anything that would hint that anything
>> with the disk config is broken, for qcow2 volumes we do auto-detection
>> of backing images, thus the request for the output of the command above.
>>
>>

  windows
  2476be4a-85b6-4be2-bf57-71cfde64d9de
  
http://libosinfo.org/xmlns/libvirt/domain/1.0;>
  http://microsoft.com/win/11"/>

  
  2
  2
  2
  
hvm

/var/virt/WINDOWS/win11_vars_nvram.fd
  
  



  
  
  


  
  
  




  
  


  
  
/usr/bin/qemu-system-x86_64

  
  
  


















  
  
  



  



  


  



  



  




Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
Hi,
 I have tried that too and that did not help either (i.e adding the format
type=gpt)
The output you requested

```
$ sudo  qemu-img info --backing-chain /var/virt/WINDOWS/WIN11
image: /var/virt/WINDOWS/WIN11
file format: qcow2
virtual size: 60 GiB (64424509440 bytes)
disk size: 55.1 GiB
cluster_size: 65536
backing file: WIN11-BASE (actual path: /var/virt/WINDOWS/WIN11-BASE)
backing file format: raw
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
refcount bits: 16
corrupt: false
extended l2: false
Child node '/file':
filename: /var/virt/WINDOWS/WIN11
protocol type: file
file length: 55.1 GiB (59202338816 bytes)
disk size: 55.1 GiB

image: /var/virt/WINDOWS/WIN11-BASE
file format: raw
virtual size: 60 GiB (64424509440 bytes)
disk size: 26.5 GiB
Child node '/file':
filename: /var/virt/WINDOWS/WIN11-BASE
protocol type: file
file length: 60 GiB (64424509440 bytes)
disk size: 26.5 GiB
```

On Thu, Sep 21, 2023 at 2:52 PM Peter Krempa  wrote:

> On Thu, Sep 21, 2023 at 10:50:07 +0100, Bhasker C V wrote:
> > Attaching win11.xml
> > Please note that this used to work fine. It is failing now on libvirt-
> > 9.7.0-1
> >
> > On Thu, Sep 21, 2023 at 9:13 AM Peter Krempa  wrote:
> >
> > > On Thu, Sep 21, 2023 at 09:05:43 +0100, Bhasker C V wrote:
> > > > Adding libvirt mailing list
> > > > apologies for cross-posting
> > > > libvirt version: 9.7.0-1
> > > >
> > > > On Thu, Sep 21, 2023 at 8:39 AM john doe 
> wrote:
> > > >
> > > > > On 9/21/23 09:32, Bhasker C V wrote:
> > > > > > I am getting an error with libivrt when I create a VM
> > > > > >
> > > > > > ```
> > > > > >   $ sudo virsh create ./win11.xml
> > >
> > > Please attach the XML used here. It comes from a code path which
> > > shouldn't be possible to reach.
> > >
> > > > > > error: Failed to create domain from ./win11.xml
> > > > > > error: internal error: mishandled storage format 'none'
> > > > > >
> > > > > > ```
> > > > > >
> > > > > > This is after I have done a dist-upgrade (was working fine
> before)
> > > > > > debian trixie.
> > >
> > > Which version did you have before?
> > >
> > > > > >
> > > > > > error message says
> > > > > > qemuBlockStorageSourceGetBlockdevFormatProps:1227 : internal
> error:
> > > > > > mishandled storage format 'none'
> > >
> > >
>
> >   destroy
> >   restart
> >   destroy
> >   
> > 
> > 
> >   
> >   
> > /usr/bin/qemu-system-x86_64
> > 
> >   
> >   
> >   
> > 
>
> Could you please also attach the output of:
>
>   qemu-img info --backing-chain '/var/virt/WINDOWS/WIN11'
>
>
> > 
> >   
> >   
> > 
> >   
> >   
> > 
>
> In the definition I don't see anything that would hint that anything
> with the disk config is broken, for qcow2 volumes we do auto-detection
> of backing images, thus the request for the output of the command above.
>
>


Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
Attaching win11.xml
Please note that this used to work fine. It is failing now on libvirt-
9.7.0-1

On Thu, Sep 21, 2023 at 9:13 AM Peter Krempa  wrote:

> On Thu, Sep 21, 2023 at 09:05:43 +0100, Bhasker C V wrote:
> > Adding libvirt mailing list
> > apologies for cross-posting
> > libvirt version: 9.7.0-1
> >
> > On Thu, Sep 21, 2023 at 8:39 AM john doe  wrote:
> >
> > > On 9/21/23 09:32, Bhasker C V wrote:
> > > > I am getting an error with libivrt when I create a VM
> > > >
> > > > ```
> > > >   $ sudo virsh create ./win11.xml
>
> Please attach the XML used here. It comes from a code path which
> shouldn't be possible to reach.
>
> > > > error: Failed to create domain from ./win11.xml
> > > > error: internal error: mishandled storage format 'none'
> > > >
> > > > ```
> > > >
> > > > This is after I have done a dist-upgrade (was working fine before)
> > > > debian trixie.
>
> Which version did you have before?
>
> > > >
> > > > error message says
> > > > qemuBlockStorageSourceGetBlockdevFormatProps:1227 : internal error:
> > > > mishandled storage format 'none'
>
>

  windows
  8c8df02f-e7ca-41b4-8002-d2e4c8b2bd5a
  
http://libosinfo.org/xmlns/libvirt/domain/1.0;>
  http://microsoft.com/win/10"/>

  
  2
  4194304
  2
  
/machine
  
  
hvm
/var/virt/WINDOWS/ovmf_code.fd
/var/virt/WINDOWS/win11_vars_nvram.fd

  
  



  
  
  



  

  
   
  


  




  
  destroy
  restart
  destroy
  


  
  
/usr/bin/qemu-system-x86_64

  
  
  


  
  

  
  



  
  


  
  


  


  
  
  
  


  
  
  


  
  
  
  


  
  
  
  


  
  
  
  


  
  
  
  


  
  
  
  


  
  


  
  
  
  
  
  


  
  

  
  


  
  
  


  
  
  


  
  


  


  


  
  


  
  


  
  



  
  
  


  
  


  
  


  
  

  
  
+64055:+64055
+64055:+64055
  




Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
Adding libvirt mailing list
apologies for cross-posting
libvirt version: 9.7.0-1

On Thu, Sep 21, 2023 at 8:39 AM john doe  wrote:

> On 9/21/23 09:32, Bhasker C V wrote:
> > I am getting an error with libivrt when I create a VM
> >
> > ```
> >   $ sudo virsh create ./win11.xml
> > error: Failed to create domain from ./win11.xml
> > error: internal error: mishandled storage format 'none'
> >
> > ```
> >
> > This is after I have done a dist-upgrade (was working fine before)
> > debian trixie.
> >
> > error message says
> > qemuBlockStorageSourceGetBlockdevFormatProps:1227 : internal error:
> > mishandled storage format 'none'
> >
>
> You might want to post this as well to the Libvirt mailing list.
>
> --
> John Doe
>
>


Help ! libvirt

2023-09-21 Thread Bhasker C V
I am getting an error with libivrt when I create a VM

```
 $ sudo virsh create ./win11.xml
error: Failed to create domain from ./win11.xml
error: internal error: mishandled storage format 'none'

```

This is after I have done a dist-upgrade (was working fine before)
debian trixie.

error message says
qemuBlockStorageSourceGetBlockdevFormatProps:1227 : internal error:
mishandled storage format 'none'


Security question about daemon-init

2023-08-29 Thread Bhasker C V
Apologies in advance for cross-group posting.

I have enabled selinux  and after carefully allowing certain permissions, I
have put my system in enforcing mode

I do see a suspicious line like this


[  115.089395] audit: type=1400 audit(1693329979.841:11): avc:  denied  {
getattr } for  pid=3104 comm="daemon-init" path="/home/bcv/.thunderbird"
dev="dm-5" ino=257 scontext=system_u:system_r:virtd_t:s0
tcontext=system_u:object_r:thunderbird_home_t:s0 tclass=lnk_file
permissive=0

I am not sure why on earth would daemon-init try to read .thunderbird
directory under my homedir .

Has anyone faced this problem?

What is this daemon-init program and why does it want access to my home
thunderbird directory ?

Regards
Bhasker C V


Re: mailx and selinux not co-operating

2023-08-22 Thread Bhasker C V
For future reference

There is another package mailutils which also provides /usr/bin/mail.
This is working fine with selinux in enforcing mode.
This is a good alternative



On Mon, Aug 21, 2023 at 2:56 AM Bhasker C V  wrote:

> Thanks Nicholas
> However, it doesnt  to my knowledge looks like an issue with mailx or
> sendmail (I use exim4).
> The reason i derive at at is because the whole thing works the moment i
> disable selinux.
>
> What i wonder is why selinux is not complaining about the failure ? No
> logs whatsoever ...
>
> On Mon, Aug 21, 2023 at 12:58 AM Nicholas Geovanis 
> wrote:
>
>> On Sun, Aug 20, 2023, 9:20 AM Bhasker C V  wrote:
>>
>>> Finally i switched on the enforcing mode on my linux system
>>> Pretty much everything is working except
>>>
>>> ```
>>> $ echo hello | mail -s test x...@yyy.xyz
>>> 2023-08-20 14:39:30 1qXieQ-000Bpa-1P 1qXieQ-000Bpa-1P no recipients
>>> found in headers
>>> Can't send mail: sendmail process failed with error code 1
>>> ```
>>> however the same works fine when I put selinux in permissive state (no
>>> warnings shown in audit/dmesg)
>>>
>>
>> Is it easy for you to get the headers that cause Sendmail to say "no
>> recipients found in headers"? And compare with the headers generated by the
>> successful mail.
>> It might help tell if it's a bug or working as designed ;-) or maybe a
>> mailx issue not sendmail.
>>
>> A quick ltrace says
>>> ```
>>>  1qXia0-000BPb-0a Failed to create spool file
>>> /var/spool/exim4//input//1qXia0-000BPb-0a-D: Permission denied
>>> ```
>>>
>>> However there are no avc: messages for me to allow this through in my
>>> selinux module
>>> I even tried
>>>
>>> ```
>>> allow unconfined_t exim_spool_t:file { open read write create };
>>> allow unconfined_t exim_spool_t:dir { open read write };
>>> ```
>>>
>>> since /var/spool/exim4/input has exim_spool_dir set in it
>>>
>>> I cant fine any booleans either ..
>>>
>>> Please could someone tell me how to get this to work ? has anyone got
>>> mailx working with selinux on their system ?
>>>
>>>
>>>


Re: mailx and selinux not co-operating

2023-08-20 Thread Bhasker C V
Thanks Nicholas
However, it doesnt  to my knowledge looks like an issue with mailx or
sendmail (I use exim4).
The reason i derive at at is because the whole thing works the moment i
disable selinux.

What i wonder is why selinux is not complaining about the failure ? No logs
whatsoever ...

On Mon, Aug 21, 2023 at 12:58 AM Nicholas Geovanis 
wrote:

> On Sun, Aug 20, 2023, 9:20 AM Bhasker C V  wrote:
>
>> Finally i switched on the enforcing mode on my linux system
>> Pretty much everything is working except
>>
>> ```
>> $ echo hello | mail -s test x...@yyy.xyz
>> 2023-08-20 14:39:30 1qXieQ-000Bpa-1P 1qXieQ-000Bpa-1P no recipients found
>> in headers
>> Can't send mail: sendmail process failed with error code 1
>> ```
>> however the same works fine when I put selinux in permissive state (no
>> warnings shown in audit/dmesg)
>>
>
> Is it easy for you to get the headers that cause Sendmail to say "no
> recipients found in headers"? And compare with the headers generated by the
> successful mail.
> It might help tell if it's a bug or working as designed ;-) or maybe a
> mailx issue not sendmail.
>
> A quick ltrace says
>> ```
>>  1qXia0-000BPb-0a Failed to create spool file
>> /var/spool/exim4//input//1qXia0-000BPb-0a-D: Permission denied
>> ```
>>
>> However there are no avc: messages for me to allow this through in my
>> selinux module
>> I even tried
>>
>> ```
>> allow unconfined_t exim_spool_t:file { open read write create };
>> allow unconfined_t exim_spool_t:dir { open read write };
>> ```
>>
>> since /var/spool/exim4/input has exim_spool_dir set in it
>>
>> I cant fine any booleans either ..
>>
>> Please could someone tell me how to get this to work ? has anyone got
>> mailx working with selinux on their system ?
>>
>>
>>


mailx and selinux not co-operating

2023-08-20 Thread Bhasker C V
Finally i switched on the enforcing mode on my linux system
Pretty much everything is working except

```
$ echo hello | mail -s test x...@yyy.xyz
2023-08-20 14:39:30 1qXieQ-000Bpa-1P 1qXieQ-000Bpa-1P no recipients found
in headers
Can't send mail: sendmail process failed with error code 1
```
however the same works fine when I put selinux in permissive state (no
warnings shown in audit/dmesg)

A quick ltrace says
```
 1qXia0-000BPb-0a Failed to create spool file
/var/spool/exim4//input//1qXia0-000BPb-0a-D: Permission denied
```

However there are no avc: messages for me to allow this through in my
selinux module
I even tried

```
allow unconfined_t exim_spool_t:file { open read write create };
allow unconfined_t exim_spool_t:dir { open read write };
```

since /var/spool/exim4/input has exim_spool_dir set in it

I cant fine any booleans either ..

Please could someone tell me how to get this to work ? has anyone got mailx
working with selinux on their system ?


Re: recover old files after key deprecations in openssl3

2022-11-20 Thread Bhasker C V
Thanks Dan, i did that anyway. I compiled 1.1 and decrypted and
re-encrypted them. My data is back.
I didnt know that there is such backward compatibility issues with 3.x


On Fri, Oct 28, 2022 at 12:16 PM Dan Ritter  wrote:

> Bhasker C V wrote:
> > Hi,
> >
> >
> >  Could someone help me please on how do I go about migrating data of mine
> > from old SSL encryption
> >
> >  For instance
> >
> >
> > OPENSSL 1.1 (on a old system)
> >
> > $ echo hai | openssl bf-cbc -md md5 > hello.txt
> >
> > and then in
> >
> > OPENSSL 3
> >
> > $ cat hello.txt  | openssl bf-cbc  -md md5 -d -provider legacy
> > enter BF-CBC decryption password:
> > *** WARNING : deprecated key derivation used.
> > Using -iter or -pbkdf2 would be better.
> > EVP_BytesToKey failed
> > 40D7C740377F:error:0308010C:digital envelope
> routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:373:Global
> > default library context, Algorithm (MD5 : 100), Properties ()
> > 40D7C740377F:error:0386:digital envelope
> > routines:evp_md_init_internal:initialization
> > error:../crypto/evp/digest.c:252:
> >
> >
> > Is there anything else missing other than -provider legacy for decrypting
> > such files ? I am guessing the MD5 is not compatible with legacy
> provider.
> >
> > I have tried fips, base, legacy
>
> I recommend two things:
>
> First, use openssl 1.1 to decrypt your files. Once you have the
> plaintext, you can re-encrypt them as you see fit.
>
> Second, don't use openssl 3 yet. It's still the season of
> frequent CVEs.
>
> -dsr-
>


recover old files after key deprecations in openssl3

2022-10-27 Thread Bhasker C V

Hi,


 Could someone help me please on how do I go about migrating data of 
mine from old SSL encryption


 For instance


OPENSSL 1.1 (on a old system)

$ echo hai | openssl bf-cbc -md md5 > hello.txt

and then in

OPENSSL 3

$ cat hello.txt  | openssl bf-cbc  -md md5 -d -provider legacy
enter BF-CBC decryption password:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
EVP_BytesToKey failed
40D7C740377F:error:0308010C:digital envelope 
routines:inner_evp_generic_fetch:unsupported:../crypto/evp/evp_fetch.c:373:Global 
default library context, Algorithm (MD5 : 100), Properties ()
40D7C740377F:error:0386:digital envelope 
routines:evp_md_init_internal:initialization 
error:../crypto/evp/digest.c:252:



Is there anything else missing other than -provider legacy for 
decrypting such files ? I am guessing the MD5 is not compatible with 
legacy provider.


I have tried fips, base, legacy

--
Bhasker C V
Secure Mails:http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349


DNS resolver issue

2022-01-24 Thread Bhasker C V
Hi all,

 Please could someone help me with  what I am doing wrong ?

I am running  example.local domain on my interface(192.168.2.1)  (bind9)
The domain is resolving fine. However I want to use 1.1.1.1 public DNS
server for looking up other domains (external domains)
Hence I have put both servers in /etc/resolv.conf

``` nameserver 1.1.1.1
nameserver 192.168.2.1
search example.local```

However dig stops after it gets a null result from 1.1.1.1 and does not
proceed to 192.168.2.1 to ask for server.example.local
i.e
```
$ dig server.example.local

; <<>> DiG 9.17.21-1-Debian <<>> server.example.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked to
DNS
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 11268
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;server.example.local.  IN  A

;; AUTHORITY SECTION:
.   86400   IN  SOA a.root-servers.net.
nstld.verisign-grs.com. 2022012400 1800 900 604800 86400

;; Query time: 103 msec
;; SERVER: 1.1.1.1#53(1.1.1.1) (UDP)
;; WHEN: Mon Jan 24 10:03:50 GMT 2022
;; MSG SIZE  rcvd: 124

```

WHEREAS if I switch the resolv.conf to have my DNS first (and then 1.1.1.1)
, the local resolution works whereas external resolution does not work
```
nameserver 192.168.2.1
nameserver 1.1.1.1
search example.local```

$ dig +short server.example.local
192.168.2.2



Now, isnt the lookup supposed to fall back to next server if first one
doesnt have an answer ? How does multiple DNS servers entry work in
resolv.conf ?
My nsswitch.conf is :

hosts:  files dns [NOTFOUND=merge]


Please help.

Regards
Bhasker


Networkmanager hell !

2021-05-09 Thread Bhasker C V

Hi,

 I recently compiled the wl driver for my BCM4331 and the driver loads 
fine.


 Networkmanager lists wifi network but does not connect ! (nm-applet 
shows a single dot and then keeps revolving around until it fails)


However,

 1. I stop Networkmanager and wpa_supplicant

 2. I generate a simple config using wpa_passphrase

 3. connect via wpa_supplicant -Dwext -cconfig -iwlp4s0

  and it works !

I have tried to google through as much as possible to understand why 
wpa_supplicant does not connect under NetworkManager but works fine when 
run stand-alone !


I would appreciate if someone can tell me what is happening. I can send 
the logs if needed.


Is there a way to debug networkmanager ?

All that I can do by running network-manager from commandline in 
foreground is


wpa_supplicant[28827]: wlp4s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 
ssid="myssid" auth_failures=2 duration=20 reason=CONN_FAILED


Before someone says that this is password issue, i am pretty sure I am 
typing the password correct and have confirmed it by looking into the 
system-connections folder for that connection.


If I use another USB adapter, networkmanager is able to connecto the 
same wifi.


Please ! I am going mad here ! There is no good info anywhere to debug 
wpa_supplicant working under networkmanager (OR) to dump the config 
generated by networkmanager



--
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349



Re: Allow only selected USB

2021-02-09 Thread Bhasker C V
Fantastic ! thanks a ton ! thanks !  exactly what i was looking for


On Tue, Feb 9, 2021 at 7:43 PM  wrote:

> Hi,
>
> 9 févr. 2021, 19:44 de mailingl...@darac.org.uk:
>
> > Certainly. >
> https://www.kernel.org/doc/html/latest/usb/authorization.html
> >
> + https://usbguard.github.io based on it.
>
> Best regards,
> l0f4r0
>
>


Allow only selected USB

2021-02-09 Thread Bhasker C V

Hi all,

I know it is very useful that linux auto-detects a USB device when 
plugged in. However I am trying to build a server which employs deny 
first rule. That is, I don't want linux kernel to detect any USB device 
even if plugged in except those listed with a Vendor/device ID in a file 
(perhaps stored somewhere securely in the server).


Is this possible ? I tried to skim though internet but could not find 
any useful information except some pages reporting how to disable USB 
storage.


Please could someone help me with some pointers ?

--
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349



Cups preserve job files

2020-08-08 Thread Bhasker C V
Hi,

 I am on bulls-eye.

 For the purpose of history I want to preserve the job files (not just
the job list)

 I understand that cups has

  PreserveJobFiles  which tells the job to be preserved.

 I cannot find out where the job files are preserved and also cannot
find out an option to control how long the job files are preserved.

 I want to also change the location of the jobfiles being preserved to
an encrypted path.

 Could someone help me with these please ?

thanks

-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



Bluetooth audio periodic disconnect

2020-07-27 Thread Bhasker C V
Hi all,
  I am on bullseye.
  I have tried and tested this with many headphones

 When on bluetooth the audio gets periodically disconnected and re-connects
to audio after 5 seconds.
 During the time the bluetooth per-say does not get disconnected but just
the audio stops and then starts again in 5 seconds.
 I have already set laptop-mode tools to blacklist usb power management for
my usb adapter.
 There are no issues with bluetooth lag or connection issues. My headphones
connect fine and work fine except for the intermittent disconnects.

 Please could someone help me fix this ?

Regards
Bhasker C V


Security issue ... please could someone help !!!

2020-04-05 Thread Bhasker C V
Hi,

 Attached is something I found. I see that cryptsetup --key-file
arguement uses only first 32 bytes of the file and anything beyond is
unused. 

I am on debian bullseye

$ cryptsetup --version
cryptsetup 2.3.0
$

Following is my test

$ cat b
#!/bin/bash

#create  a file
dd if=/dev/zero of=./A bs=1 count=1 seek=50M
#create a key
dd if=/dev/urandom of=./key1 bs=1024 count=1 
#create a plain dm-mapped crypt device with that key
cryptsetup create dev1 ./A --key-file ./key1
mkfs.ext4 /dev/mapper/dev1

cryptsetup remove dev1

#Now that all is cleaned lets play with key again

dd if=./key1 of=./key2 bs=512 count=1   #We create a key half the size
of the original key

cryptsetup create dev1 ./A --key-file ./key2

#check if the filesystem is the same ...  if it is then there is a trouble
file -sL /dev/mapper/dev1
$ sudo ./b
1+0 records in
1+0 records out
1 byte copied, 0.000141476 s, 7.1 kB/s
1+0 records in
1+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 0.000126398 s, 8.1 MB/s
mke2fs 1.45.6 (20-Mar-2020)
Creating filesystem with 51200 1k blocks and 12824 inodes
Filesystem UUID: f667264a-5556-47fa-aafa-f236cc9f345a
Superblock backups stored on blocks:
    8193, 24577, 40961

Allocating group tables: done   
Writing inode tables: done   
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

1+0 records in
1+0 records out
512 bytes copied, 6.4401e-05 s, 8.0 MB/s
/dev/mapper/dev1: Linux rev 1.0 ext4 filesystem data,
UUID=f667264a-5556-47fa-aafa-f236cc9f345a (extents) (64bit) (large
files) (huge files)
$

I kept digging down and saw that anything below 32 bytes is not accepted
(by cryptsetup --key-file option) but anything above 32 bytes is
discarded. Does this mean that cryptsetup plain with --key-file uses
only 32 bytes ? Am I doing anything wrong ? I dont want to use
passphrases and would like to get the keys from randomly generated key
file. If only 32 bytes are used, it is (in my opinion) not so much
secure isnt it  ?

-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



xscreensaver does not lock

2020-03-30 Thread Bhasker C V
Hi,

 I am at a loss to understand why xscreensaver does not work anymore.

 I am on bullseye. I have two systems the other, however, works fine and
locks.

 xscreensaver does not seem to have any debug facility from what I could
read from the man pages.

 My config is attached. xscreensaver never gets activated although the
daemon is running in the background.

 xscreensaver binary itself is installed as setuid-root.

 Please help ! thanks.

PS: I tried to compile from source so that I can introduce debugs. This
went in vain since there are too many dependencies and I was not
successful in compiling.

-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 

# XScreenSaver Preferences File
# Written by xscreensaver-demo 5.42 for bcv on Mon Mar 30 17:56:38 2020.
# https://www.jwz.org/xscreensaver/

timeout:0:00:30
cycle:  0:10:00
lock:   True
lockTimeout:0:00:00
passwdTimeout:  0:00:30
visualID:   default
installColormap:True
verbose:False
timestamp:  True
splash: True
splashDuration: 0:00:05
demoCommand:xscreensaver-demo
prefsCommand:   xscreensaver-demo -prefs
nice:   10
memoryLimit:0
fade:   True
unfade: False
fadeSeconds:0:00:03
fadeTicks:  20
captureStderr:  True
ignoreUninstalledPrograms:False
font:   *-medium-r-*-140-*-m-*
dpmsEnabled:False
dpmsQuickOff:   False
dpmsStandby:2:00:00
dpmsSuspend:2:00:00
dpmsOff:4:00:00
grabDesktopImages:  False
grabVideoFrames:False
chooseRandomImages: False
imageDirectory: 

mode:   blank
selected:   -1

textMode:   url
textLiteral:XScreenSaver
textFile:   
textProgram:fortune
textURL:https://planet.debian.org/rss20.xml

programs: \
maze -root  \n\
  GL:   superquadrics -root \n\
attraction -root\n\
blitspin -root  \n\
greynetic -root \n\
helix -root \n\
hopalong -root  \n\
imsmap -root\n\
-   noseguy -root   \n\
-   pyro -root  \n\
qix -root   \n\
-   rocks -root \n\
rorschach -root \n\
decayscreen -root   \n\
flame -root \n\
halo -root  \n\
slidescreen -root   \n\
pedal -root \n\
bouboule -root  \n\
-   braid -root \n\
coral -root \n\
deco -root  \n\
drift -root \n\
-   fadeplot -root  \n\
galaxy -root\n\
goop -root  \n\
grav -root  \n\
ifs -root   \n\
unicode -root   \n\
  GL:   jigsaw -root\n\
julia -root \n\
-   kaleidescope -root  \n\
  GL:   moebius -root   \n\
moire -root \n\
  GL:   morph3d -root   \n\
mountain -root  \n\
munch -root \n\
penrose -root   \n\
  GL:   pipes -root

Re: cracking sound from left channel

2020-03-29 Thread Bhasker C V
The problem however comes back when i suspend and resume. I have a
written a systemd thingy to remove the module and reload it during
resume and it fixes the problem for now ...
Still no joy.

On 3/29/20, Bhasker C V  wrote:
> Dear Dan,
>
> I came across a website which said to use the index parameter
> Hence I create this in /etc/modprobe.d/snd_amd.conf
> with content
>
> options snd_hda_intel power_save=1 index=1,0
>
> The sound is infintely better now and there is no more fluttering
> sound and no leaking of right channel into left which had caused the
> distructive interference like audio.
> Thanks
>
> On 3/28/20, Dan Ritter  wrote:
>> Bhasker C V wrote:
>>> Thanks Dan,
>>> The audio cracking comes up only after a suspend resume or reboot when
>>> done on its own
>>> If I boot into windows, reboot the system (without switchoff) into
>>> linux, the sound is fine. The next time i reboot into linux the issue
>>> comes back.
>>>
>>> The sound is as if the speaker paper of an old speaker is torn. The
>>> fluttering sound when there is high bass on the headphones. The sound is
>>> clear
>>> and fine when on windows and when on linux when immediately booted after
>>> windows.
>>>
>>> This to my limited knowledge feels like windows writes something to the
>>> config registers or downloads a firmware which makes sound card work
>>> fine but then when cold booted into linux, linux is missing to do
>>> something. ... may be I am wrong.
>>
>> I would guess that Windows is setting internal mixer parameters
>> differently.
>>
>> Try killing pulseaudio, running alsamixer, and seeing if you can
>> change the behavior with any of the available switches or
>> internal mutes.
>>
>> -dsr-
>>
>



Re: cracking sound from left channel

2020-03-29 Thread Bhasker C V
Dear Dan,

I came across a website which said to use the index parameter
Hence I create this in /etc/modprobe.d/snd_amd.conf
with content

options snd_hda_intel power_save=1 index=1,0

The sound is infintely better now and there is no more fluttering
sound and no leaking of right channel into left which had caused the
distructive interference like audio.
Thanks

On 3/28/20, Dan Ritter  wrote:
> Bhasker C V wrote:
>> Thanks Dan,
>> The audio cracking comes up only after a suspend resume or reboot when
>> done on its own
>> If I boot into windows, reboot the system (without switchoff) into
>> linux, the sound is fine. The next time i reboot into linux the issue
>> comes back.
>>
>> The sound is as if the speaker paper of an old speaker is torn. The
>> fluttering sound when there is high bass on the headphones. The sound is
>> clear
>> and fine when on windows and when on linux when immediately booted after
>> windows.
>>
>> This to my limited knowledge feels like windows writes something to the
>> config registers or downloads a firmware which makes sound card work
>> fine but then when cold booted into linux, linux is missing to do
>> something. ... may be I am wrong.
>
> I would guess that Windows is setting internal mixer parameters
> differently.
>
> Try killing pulseaudio, running alsamixer, and seeing if you can
> change the behavior with any of the available switches or
> internal mutes.
>
> -dsr-
>



Re: cracking sound from left channel

2020-03-28 Thread Bhasker C V
Thanks Dan,
The audio cracking comes up only after a suspend resume or reboot when
done on its own
If I boot into windows, reboot the system (without switchoff) into
linux, the sound is fine. The next time i reboot into linux the issue
comes back.

The sound is as if the speaker paper of an old speaker is torn. The
fluttering sound when there is high bass on the headphones. The sound is
clear
and fine when on windows and when on linux when immediately booted after
windows.

This to my limited knowledge feels like windows writes something to the
config registers or downloads a firmware which makes sound card work
fine but then when cold booted into linux, linux is missing to do
something. ... may be I am wrong.


On 27/03/2020 13:37, Dan Ritter wrote:
> Bhasker C V wrote: 
>> Hi,
>>
>> ??I am on debian bullseye x86_64 (K5.6.0-rc6).
>>
>> ??03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD]
>> Raven/Raven2/FireFlight/Renoir Audio Processor
>>
>> I have windows booting on another partition. After windows boots, and
>> then I reboot into linux, the sound is fine. All clear on both channels.
>> But once i reboot into linux or suspend/resume, I get a cracking sound
>> along with audio on the left channel. I am not sure how to troubleshoot.
>> Is this a known issue ? Please could someone point me in the right
>> direction on fix or how to troubleshoot ?
> Does this happen with every playback format and program, or just
> some?
>
> Check all mixer settings: it's possible that the motherboard's
> audio amplifier is being overdriven, or that there are inputs
> which should be muted but aren't.
>
> Can you describe the sound more specifically?
>
> -dsr-


-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



cracking sound from left channel

2020-03-26 Thread Bhasker C V
Hi,

 I am on debian bullseye x86_64 (K5.6.0-rc6).

 03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD]
Raven/Raven2/FireFlight/Renoir Audio Processor

I have windows booting on another partition. After windows boots, and
then I reboot into linux, the sound is fine. All clear on both channels.
But once i reboot into linux or suspend/resume, I get a cracking sound
along with audio on the left channel. I am not sure how to troubleshoot.
Is this a known issue ? Please could someone point me in the right
direction on fix or how to troubleshoot ?

-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



Re: Applet to find internet status

2020-03-20 Thread Bhasker C V
But we could use an external IP to communicate ... like 1.1.1.1 or
curl to some known website to confirm that internet works (which will
include the system proxy settings).
But you are right. It would be easier to write one and taylor it to
the network needs of that person.
Thanks.

On 3/20/20, Charles Curley  wrote:
> On Fri, 20 Mar 2020 19:54:29 +
> Bhasker C V  wrote:
>
>> I am looking for an applet (a simple one) which indicates the
>> connectivity to internet (perhaps green when connected to internet and
>> red/orange when connected but no internet access). I am struggling to
>> search for this in google. Please could someone point me to this if
>> there is any ?
>
> Possibly because it would be hard to write one?
>
> All your computer knows is its IP address and netmask, and the address
> to which to send packets it cannot otherwise route. Whether any of that
> is the Internet is entirely a matter of situation and opinion.
>
> You could do what NetworkManager, WICD and some other connection
> managers do, and indicate whether the computer has a connection to one
> or more hosts, but those may be entirely on some isolated intranet.
>
> You could write a program using ICMP packets to see if you have any
> sort of connectivity to some arbitrary host(s) out there, and call that
> "Internet connectivity". But that too is arbitrary, and a matter of
> opinion.
>
> Experience has taught me that if I can get email from my server, I
> probably have access to most of the Internet. Not the same thing, but a
> good working proxy. For me.
>
> As you can see, the terms get really slippery and fuzzy when you start
> to look closely.
>
>
> --
> Does anybody read signatures any more?
>
> https://charlescurley.com
> https://charlescurley.com/blog/
>
>



Applet to find internet status

2020-03-20 Thread Bhasker C V
Hi,

 I am looking for an applet (a simple one) which indicates the
connectivity to internet (perhaps green when connected to internet and
red/orange when connected but no internet access). I am struggling to
search for this in google. Please could someone point me to this if
there is any ?

-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



Re: XFCE and auto-raise too fast

2019-11-19 Thread Bhasker C V
Thanks for the reply. Replies inline

On Mon, Nov 18, 2019 at 7:41 PM Cindy Sue Causey 
wrote:

> On 11/18/19, Bhasker C V  wrote:
> >
> >   Attached is screenshot of the settings I have used.
> >
> >   The auto-raise interval on the other hand is not honouring the
> > setting. No matter what the raise interval is configued as, the windows
> > auto-raise in 0.5 seconds. Please could someone tell me if I am missing
> > something ?
>
>
> Maybe... one setting is taking precedence over the other? Order of
> appearance can have a very frustrating effect in some aspects of
> programming. CSS stylesheets within website design always instantly
> come to mind there, but maybe networking has some nice examples closer
> to what's being asked here.
>
> Have you tried untoggling (unclicking/unchecking) one or the other of
> those settings to see if it changes things? I'm a-suming *yes*, but it
> never hurts to ask anyway. :)
>
yes

> Looking hard at your printscreen, it just FEELS LIKE there could be
> conflict between "Focus follows mouse" having a time delay setting...
>
> AND THEN... there exists that secondary, DIFFERENT time delay setting
> that SEEMS TO say it is triggered by-y-y
>
> A window more generically receiving focus by *any* means available to the
> user.
>
> Maybe that's bottlenecking its response somehow?
>
> Like maybe it could use slightly more specific IF/ELSE/THEN(?) steps
> to cover more usage cases that are individually tied to those initial
> radio buttons at the top?
>
> Like maybe the radio buttons could be aligned vertically instead of
> horizontally...
>

I even tried to edit  ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
and I have set the value of raise to

Even that did not make any difference (given the max delay is  2000)

AND THEN offer the various time delay option check boxes, etc, such as
> they vary specifically based on "Click to focus" versus "Focus follows
> mouse"?
>
> It's been a while since I found that XFCE perk, but I can still
> remember having to second guess the intents, the action/reaction
> relationships there myself :)
>
> Cindy :)
> --
> Cindy-Sue Causey
> Talking Rock, Pickens County, Georgia, USA
>
> * runs with birdseed *
>
>


XFCE and auto-raise too fast

2019-11-18 Thread Bhasker C V

Hi,

 Attached is screenshot of the settings I have used.

 The auto-raise interval on the other hand is not honouring the 
setting. No matter what the raise interval is configued as, the windows 
auto-raise in 0.5 seconds. Please could someone tell me if I am missing 
something ?


--
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349



commit=value in fstab is ignored

2018-10-05 Thread Bhasker C V
Hi,

 I have this entry in fstab

/dev/mapper/vg0-opt /opt btrfs rw,discard,relatime,commit=120 0 0

but after a reboot I see

/dev/mapper/vg0-opt on /opt type btrfs (rw,relatime,discard,space_cache,
*commit=360*,subvolid=5,subvol=/)
Am I missing something? is it not sufficient? to give commit=360 in the
fstab line ?
Can someone help please ...

$ uname -r
4.19.0-bcv+
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:Debian GNU/Linux testing (buster)
Release:testing
Codename:   buster


Wipefs which action ?

2018-05-26 Thread Bhasker C V
wipefs manual says -n for both noheadings and "no action"
the no-headings must be -i


Re: Help with udev trigger

2018-05-21 Thread Bhasker C V
Thanks. I will try this

On Fri, May 18, 2018 at 12:21 PM, Reco <recovery...@gmail.com> wrote:
> Hi.
>
> On Fri, May 18, 2018 at 09:26:47AM +0100, Bhasker C V wrote:
>> Hi,
>>
>>  Version: buster
>>  I do a manual cryptsetup to create my home directory after system boots up
>>  I want to run fsck every time the device node is created from luks
>>
>>  I added this udev rule
>>
>> ACTION="change",DEVTYPE="disk",ID_FS_UUID="cf1b64cf-7a62-4a43-ad44-6c68f2bbdec5"
>> RUN+="/bin/btrfsck /dev/mapper/home"
>>
>> But this rule is not getting triggered. Could someone help please to
>> point out what mistake I am doing ?
>
> You have five mistakes here, actually:
>
> 1) udev rules use C-like syntax for comparison (==) and assingment (=).
> Your rule tests nothing, it just assigns some values.
>
> 2) All udev 'attributes' have type, and you must specify it.
> For instance DEVTYPE and ID_FS_UUID are ENVIRONMENT.
>
> 3) 'change' applies to changing device state. It's 'add' for device
> creation.
>
> 4) RUN should go after a coma.
>
> 5) You're not supposed to spawn long-running processes from udev rules
> directly. Utilize systemd.
>
>
> Taking all this into the account, your rule should look like this (one
> like, coma separated values):
>
> ACTION=="add", 
> ENV{DEVTYPE}=="disk",ENV{ID_FS_UUID}=="cf1b64cf-7a62-4a43-ad44-6c68f2bbdec5",RUN+="/bin/systemctl
>  start my_brtfs_home_checking.service"
>
> Your custom service file - like this:
>
> [Service]
> Type=oneshot
> ExecStart=/bin/btrfsck /dev/mapper/home
>
> Reco
>



Help with udev trigger

2018-05-18 Thread Bhasker C V
Hi,

 Version: buster
 I do a manual cryptsetup to create my home directory after system boots up
 I want to run fsck every time the device node is created from luks

 I added this udev rule

ACTION="change",DEVTYPE="disk",ID_FS_UUID="cf1b64cf-7a62-4a43-ad44-6c68f2bbdec5"
RUN+="/bin/btrfsck /dev/mapper/home"

But this rule is not getting triggered. Could someone help please to
point out what mistake I am doing ?

The following is what I get when the device is added from which I
deduced the above trigger line

UDEV  [3110.764972] change   /devices/virtual/block/dm-12 (block)
.ID_FS_TYPE_NEW=btrfs
ACTION=change
DEVLINKS=/dev/disk/by-id/dm-uuid-CRYPT-LUKS1-f064023b1b2d41639634f5bdf2430794-home
/dev/disk/by-id/dm-name-home
/dev/disk/by-uuid/cf1b64cf-7a62-4a43-ad44-6c68f2bbdec5
/dev/mapper/home
DEVNAME=/dev/dm-12
DEVPATH=/devices/virtual/block/dm-12
DEVTYPE=disk
DM_ACTIVATION=1
DM_COOKIE=6306419
DM_NAME=home
DM_STATE=ACTIVE
DM_SUSPENDED=0
DM_TABLE_STATE=LIVE
DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
DM_UDEV_PRIMARY_SOURCE_FLAG=1
DM_UDEV_RULES=1
DM_UDEV_RULES_VSN=2
DM_UUID=CRYPT-LUKS1-f064023b1b2d41639634f5bdf2430794-home
ID_BTRFS_READY=1
ID_FS_TYPE=btrfs
ID_FS_USAGE=filesystem
ID_FS_UUID=cf1b64cf-7a62-4a43-ad44-6c68f2bbdec5
ID_FS_UUID_ENC=cf1b64cf-7a62-4a43-ad44-6c68f2bbdec5
ID_FS_UUID_SUB=6e20311a-a369-4929-9e40-44b63e3eb563
ID_FS_UUID_SUB_ENC=6e20311a-a369-4929-9e40-44b63e3eb563
MAJOR=253
MINOR=12
SEQNUM=2242
SUBSYSTEM=block
TAGS=:systemd:
USEC_INITIALIZED=3110669103



Weird font dots in terminal

2017-10-31 Thread Bhasker C V
Hi,

 I am using debian buster.

 I have been using rxvt-unicode with Gohu font happily until the latest update.
 The terminal window now shows extra pixels around the characters.
 Attached is screenshot.
 I have run fc-cache both as root and also as user and re-started the
laptop too.

Attached is the screenshot. This was all clean just a few days ago

My rxvt command is

urxvtc -xrm 'XTerm*selectToClipboard:true' -bc -cr GREEN -vb -fn
'xft:GohuFont:pixelsize=14' -sl 5 -fg \#FF7E00 -bg BLACK

and I have these in

$ ls /usr/share/fonts/X11/misc/gohufont-*
/usr/share/fonts/X11/misc/gohufont-11b.pcf.gz
/usr/share/fonts/X11/misc/gohufont-uni-11b.pcf.gz
/usr/share/fonts/X11/misc/gohufont-11.pcf.gz
/usr/share/fonts/X11/misc/gohufont-uni-11.pcf.gz
/usr/share/fonts/X11/misc/gohufont-14b.pcf.gz
/usr/share/fonts/X11/misc/gohufont-uni-14b.pcf.gz
/usr/share/fonts/X11/misc/gohufont-14.pcf.gz
/usr/share/fonts/X11/misc/gohufont-uni-14.pcf.gz

Can someone help please ?


hddtemp for Seagate backup plus

2017-09-26 Thread Bhasker C V
Hi,

  I have Seagate backup plus external USB 3.0 HDD and by default hdd
temp does not show the hdd temperature


$ sudo hddtemp /dev/sda
/dev/sda: Seagate BUP BK: S.M.A.R.T. not available


However if I use this:
$ sudo hddtemp SATA:/dev/sda
/dev/sda: : 42°C

I tried to read through the manual to find out how to specify the type
in the hddtemp.db but there doesnot seem to be any way I could find.
I added this line in vain.
"Seagate BUP BK"190 C "Seagate BUP BK"

Is there a way to monitor hddtemp on this hdd ? If there is any other
alternative to hddtemp .. please do tell me

thanks
Bhasker C V



hdparm reporting a different serial number

2017-09-19 Thread Bhasker C V
Hi all,
 I have a seagate backup plus 5TB.
 When I plug-in the hdd, I see the serial number (as printed in the
back of the HDD) in dmesg.

usb 2-1.1: SerialNumber: 
[5.244161] usbcore: registered new interface driver usb-storage
[5.245790] scsi host6: uas
[5.246015] usbcore: registered new interface driver uas
[5.247071] scsi 6:0:0:0: Direct-Access Seagate  BUP BK
  0108 PQ: 0 ANSI: 6
[5.285452] sd 6:0:0:0: [sda] 9767541167 512-byte logical blocks:
(5.00 TB/4.55 TiB)
[5.285458] sd 6:0:0:0: [sda] 4096-byte physical blocks
[5.285786] sd 6:0:0:0: [sda] Write Protect is off
[5.285790] sd 6:0:0:0: [sda] Mode Sense: 53 00 00 08
This serial number is correct ! (Actuial serial number is obfuscated)

Whereas, when I do a hdparm or smartctl -i , I get a different serial number.

ATA device, with non-removable media
Model Number:   ST5000LM000-2AN170
Serial Number:  YYY
Firmware Revision:  0001
Transport:  Serial, ATA8-AST, SATA 1.0a, SATA II
Extensions, SATA Rev 2.5,
(actual serial number obfuscated)

Can someone explain why please ?

When I use seagate seatools, it reports both the USB-STORAGE and also
the internal HDD with the same  serial number (on windows).


Regards
Bhasker C V



BTRFS hybrid systems

2017-02-24 Thread Bhasker C V
Hi all
  I have an x86_64 kernel running with i386 userland rootfs.
 Long back I believe there were some fixes for btrfs-tools which ran
smoothly in this setup but after several dist-upgrades and long forgotten
command, the btrfs-tools commands have started to fail

for instance

$ sudo btrfs fi sync  .
ERROR: sync ioctl failed on '.': Inappropriate ioctl for device
$

Is there any fix for this ?


help needed with openssl please

2017-02-11 Thread Bhasker C V
Hi,

 I have some of my documents encrypted with openssl bf-cbc for
confidentiality. I however see that after a dist-upgrade my new system is
refusing to decrypting the data whereas my old systems are still decrypting
the docs fine.

on my new system:

$ cat a.enc  | openssl bf-cbc -d > /tmp/a
enter bf-cbc decryption password:
bad decrypt
4146137408:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad
decrypt:crypto/evp/evp_enc.c:529:
$ openssl
OpenSSL> version
OpenSSL 1.1.0c  10 Nov 2016
OpenSSL>
 9.0 streetch


whereas the "same" file in old system
bcv@nas:/tmp$ cat a.enc  | openssl  bf-cbc  -d > a
enter bf-cbc decryption password:
bcv@nas:/tmp$ openssl
OpenSSL> version
OpenSSL 1.0.1e 11 Feb 2013
OpenSSL>
7.9 wheezy

Obviously I infer that there is no problem with the encrypted file as-it-is
but has any defaults changed which I must now include in my command line
parameters ?


Re: seg fault on many applets

2016-10-11 Thread Bhasker C V
Hurray !
Thanks to all
Just today morning got the updates on stretch ! things are back to
normal now. What a relief !
Thanks all again


On Sun, Oct 9, 2016 at 3:45 AM, Frank McCormick <debianl...@videotron.ca> wrote:
> On 08/10/16 12:49 PM, Bhasker C V wrote:
>>
>> Hi all
>> Sorry to get back to you all on this again. Its now nearly 4 days. Has
>> anybody had success in getting the packages of mate updated ?
>> My sources.list is
>> deb http://security.debian.org/ stretch/updates main
>> deb http://httpredir.debian.org/debian/ stretch main
>> deb http://httpredir.debian.org/debian/ stretch-backports main
>>
>> Hopefully I have got things right. I am wondering if others had
>> success and I am missing something.
>>
>>
>> On Tue, Oct 4, 2016 at 9:08 PM, Frank McCormick <debianl...@videotron.ca>
>> wrote:
>>>
>>> On 04/10/16 11:15 AM, Bhasker C V wrote:
>>>>
>>>>
>>>> Hi all,
>>>>
>>>> About mate again.
>>>> As per this https://sunweavers.net/blog/node/45 is says that ebnd of
>>>> Sept the packages must get fixed.
>>>> I however still find it difficult to run caja which is primary
>>>> file/folder manager.
>>>> and many other applets too are crashing.
>>>> Is there any schedule update which I can look forward to ?
>>>>
>>>>
>>>> On Fri, Sep 23, 2016 at 9:50 PM, Frank McCormick
>>>>
>>>> <debianl...@videotron.ca> wrote:
>>>>>
>>>>>
>>>>> On 23/09/16 07:30 AM, Bhasker C V wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thank you Frank
>>>>>> I am doing a daily update on my debian system in a hope some day it
>>>>>> will pickup the fix and also under a fear that every update may bring
>>>>>> some other disastrous consequence.
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 21, 2016 at 7:42 AM, Frank McCormick
>>>>>> <debianl...@videotron.ca> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 20/09/16 09:32 PM, Bhasker C V wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>  I am on
>>>>>>>> $ lsb_release -a
>>>>>>>> No LSB modules are available.
>>>>>>>> Distributor ID:Debian
>>>>>>>> Description:Debian GNU/Linux testing (stretch)
>>>>>>>> Release:testing
>>>>>>>> Codename:stretch
>>>>>>>>
>>>>>>>> Many of my applets (mate) are doing an sigsevg after an update)
>>>>>>>>
>>>>>>>>
>>>>>>>> [ 1147.639760] mate-power-mana[5487]: segfault at ff6e3ef8 ip
>>>>>>>> f63afadb sp ff6e3ee0 error 6 in
>>>>>>>> libc-2.23.so[f637b000+1ad000]
>>>>>>>> [ 1171.935436] caja[3057]: segfault at ff1c6fa8 ip f60eaadb
>>>>>>>> sp
>>>>>>>> ff1c6f90 error 6 in libc-2.23.so[f60b6000+1ad000]
>>>>>>>>
>>>>>>>>
>>>>>>>> Is there anything to be setup locally or anything missing which is
>>>>>>>> causing this SIGSEGV ?  I am unable to even use the caja file
>>>>>>>> manager.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>   The mate desktop on Stretch/Sid is completely borked at the moment.
>>>>>>> It
>>>>>>> was
>>>>>>> caused by the latest update to GTK 3.0. Fixed newer versions of
>>>>>>> everything
>>>>>>> are expected to be released from mate's GIT repository soon but it
>>>>>>> may
>>>>>>> take
>>>>>>> a little while before they make it into Debian. A temporary fix is to
>>>>>>> downgrade GTK but that may be more trouble
>>>>>>> than it's worth.
>>>>>>>
>>>
>>>>>
>>>>>
>>>>>I'm told (take it for what's it worth) that the Mate desktop will be
>>>>> updated to 1.16 by the end of the month. I too are waiting anxiously :)
>>>>>
>>>>>
>>>>
>>>
>>> I received mail today from the Mate maintainer indicating the
>>> packages
>>> have been updated to 1.16. They should pop up in updates in a
>>> day or two.
>>>
>
>
>The updated packages are in Sid which I am now running. I don't know how
> long it will be until they get into Stretch.
>
>
>
>



Re: seg fault on many applets

2016-10-08 Thread Bhasker C V
Hi all
Sorry to get back to you all on this again. Its now nearly 4 days. Has
anybody had success in getting the packages of mate updated ?
My sources.list is
deb http://security.debian.org/ stretch/updates main
deb http://httpredir.debian.org/debian/ stretch main
deb http://httpredir.debian.org/debian/ stretch-backports main

Hopefully I have got things right. I am wondering if others had
success and I am missing something.


On Tue, Oct 4, 2016 at 9:08 PM, Frank McCormick <debianl...@videotron.ca> wrote:
> On 04/10/16 11:15 AM, Bhasker C V wrote:
>>
>> Hi all,
>>
>> About mate again.
>> As per this https://sunweavers.net/blog/node/45 is says that ebnd of
>> Sept the packages must get fixed.
>> I however still find it difficult to run caja which is primary
>> file/folder manager.
>> and many other applets too are crashing.
>> Is there any schedule update which I can look forward to ?
>>
>>
>> On Fri, Sep 23, 2016 at 9:50 PM, Frank McCormick
>>
>> <debianl...@videotron.ca> wrote:
>>>
>>> On 23/09/16 07:30 AM, Bhasker C V wrote:
>>>>
>>>>
>>>> Thank you Frank
>>>> I am doing a daily update on my debian system in a hope some day it
>>>> will pickup the fix and also under a fear that every update may bring
>>>> some other disastrous consequence.
>>>>
>>>>
>>>> On Wed, Sep 21, 2016 at 7:42 AM, Frank McCormick
>>>> <debianl...@videotron.ca> wrote:
>>>>>
>>>>>
>>>>> On 20/09/16 09:32 PM, Bhasker C V wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>  I am on
>>>>>> $ lsb_release -a
>>>>>> No LSB modules are available.
>>>>>> Distributor ID:Debian
>>>>>> Description:Debian GNU/Linux testing (stretch)
>>>>>> Release:testing
>>>>>> Codename:stretch
>>>>>>
>>>>>> Many of my applets (mate) are doing an sigsevg after an update)
>>>>>>
>>>>>>
>>>>>> [ 1147.639760] mate-power-mana[5487]: segfault at ff6e3ef8 ip
>>>>>> f63afadb sp ff6e3ee0 error 6 in
>>>>>> libc-2.23.so[f637b000+1ad000]
>>>>>> [ 1171.935436] caja[3057]: segfault at ff1c6fa8 ip f60eaadb sp
>>>>>> ff1c6f90 error 6 in libc-2.23.so[f60b6000+1ad000]
>>>>>>
>>>>>>
>>>>>> Is there anything to be setup locally or anything missing which is
>>>>>> causing this SIGSEGV ?  I am unable to even use the caja file manager.
>>>>>>
>>>>>
>>>>>
>>>>>   The mate desktop on Stretch/Sid is completely borked at the moment.
>>>>> It
>>>>> was
>>>>> caused by the latest update to GTK 3.0. Fixed newer versions of
>>>>> everything
>>>>> are expected to be released from mate's GIT repository soon but it may
>>>>> take
>>>>> a little while before they make it into Debian. A temporary fix is to
>>>>> downgrade GTK but that may be more trouble
>>>>> than it's worth.
>>>>>
>
>>>
>>>
>>>I'm told (take it for what's it worth) that the Mate desktop will be
>>> updated to 1.16 by the end of the month. I too are waiting anxiously :)
>>>
>>>
>>
>
> I received mail today from the Mate maintainer indicating the packages
> have been updated to 1.16. They should pop up in updates in a
> day or two.
>
>
>
>



Re: seg fault on many applets

2016-10-04 Thread Bhasker C V
Hi all,

About mate again.
As per this https://sunweavers.net/blog/node/45 is says that ebnd of
Sept the packages must get fixed.
I however still find it difficult to run caja which is primary
file/folder manager.
and many other applets too are crashing.
Is there any schedule update which I can look forward to ?


On Fri, Sep 23, 2016 at 9:50 PM, Frank McCormick
<debianl...@videotron.ca> wrote:
> On 23/09/16 07:30 AM, Bhasker C V wrote:
>>
>> Thank you Frank
>> I am doing a daily update on my debian system in a hope some day it
>> will pickup the fix and also under a fear that every update may bring
>> some other disastrous consequence.
>>
>>
>> On Wed, Sep 21, 2016 at 7:42 AM, Frank McCormick
>> <debianl...@videotron.ca> wrote:
>>>
>>> On 20/09/16 09:32 PM, Bhasker C V wrote:
>>>>
>>>>
>>>> Hi,
>>>>  I am on
>>>> $ lsb_release -a
>>>> No LSB modules are available.
>>>> Distributor ID:Debian
>>>> Description:Debian GNU/Linux testing (stretch)
>>>> Release:testing
>>>> Codename:stretch
>>>>
>>>> Many of my applets (mate) are doing an sigsevg after an update)
>>>>
>>>>
>>>> [ 1147.639760] mate-power-mana[5487]: segfault at ff6e3ef8 ip
>>>> f63afadb sp ff6e3ee0 error 6 in
>>>> libc-2.23.so[f637b000+1ad000]
>>>> [ 1171.935436] caja[3057]: segfault at ff1c6fa8 ip f60eaadb sp
>>>> ff1c6f90 error 6 in libc-2.23.so[f60b6000+1ad000]
>>>>
>>>>
>>>> Is there anything to be setup locally or anything missing which is
>>>> causing this SIGSEGV ?  I am unable to even use the caja file manager.
>>>>
>>>
>>>
>>>   The mate desktop on Stretch/Sid is completely borked at the moment. It
>>> was
>>> caused by the latest update to GTK 3.0. Fixed newer versions of
>>> everything
>>> are expected to be released from mate's GIT repository soon but it may
>>> take
>>> a little while before they make it into Debian. A temporary fix is to
>>> downgrade GTK but that may be more trouble
>>> than it's worth.
>>>
>>>
>>>
>>>
>>
>
>
>I'm told (take it for what's it worth) that the Mate desktop will be
> updated to 1.16 by the end of the month. I too are waiting anxiously :)
>
>



Re: seg fault on many applets

2016-09-23 Thread Bhasker C V
Thank you Frank
I am doing a daily update on my debian system in a hope some day it
will pickup the fix and also under a fear that every update may bring
some other disastrous consequence.


On Wed, Sep 21, 2016 at 7:42 AM, Frank McCormick
<debianl...@videotron.ca> wrote:
> On 20/09/16 09:32 PM, Bhasker C V wrote:
>>
>> Hi,
>>  I am on
>> $ lsb_release -a
>> No LSB modules are available.
>> Distributor ID:Debian
>> Description:Debian GNU/Linux testing (stretch)
>> Release:testing
>> Codename:stretch
>>
>> Many of my applets (mate) are doing an sigsevg after an update)
>>
>>
>> [ 1147.639760] mate-power-mana[5487]: segfault at ff6e3ef8 ip
>> f63afadb sp ff6e3ee0 error 6 in
>> libc-2.23.so[f637b000+1ad000]
>> [ 1171.935436] caja[3057]: segfault at ff1c6fa8 ip f60eaadb sp
>> ff1c6f90 error 6 in libc-2.23.so[f60b6000+1ad000]
>>
>>
>> Is there anything to be setup locally or anything missing which is
>> causing this SIGSEGV ?  I am unable to even use the caja file manager.
>>
>
>
>   The mate desktop on Stretch/Sid is completely borked at the moment. It was
> caused by the latest update to GTK 3.0. Fixed newer versions of everything
> are expected to be released from mate's GIT repository soon but it may take
> a little while before they make it into Debian. A temporary fix is to
> downgrade GTK but that may be more trouble
> than it's worth.
>
>
>
>



seg fault on many applets

2016-09-20 Thread Bhasker C V
Hi,
 I am on
$ lsb_release -a
No LSB modules are available.
Distributor ID:Debian
Description:Debian GNU/Linux testing (stretch)
Release:testing
Codename:stretch

Many of my applets (mate) are doing an sigsevg after an update)


[ 1147.639760] mate-power-mana[5487]: segfault at ff6e3ef8 ip
f63afadb sp ff6e3ee0 error 6 in
libc-2.23.so[f637b000+1ad000]
[ 1171.935436] caja[3057]: segfault at ff1c6fa8 ip f60eaadb sp
ff1c6f90 error 6 in libc-2.23.so[f60b6000+1ad000]


Is there anything to be setup locally or anything missing which is
causing this SIGSEGV ?  I am unable to even use the caja file manager.



Re: network managet and 10.42.0.1/24

2016-07-11 Thread Bhasker C V
https://bhaskerv.blogspot.de/2016/06/network-maanget-changing-default-1042.html
Managed to change the IP to any IP you want to setup and use.


On Wed, Jun 15, 2016 at 3:22 AM, Rodary Jacques  wrote:
> I had (and still partly have) the same questions. I know where to find the
> answers, but didn't dare to use them.
>
> --First "nmcli -p connection show --active" will show all your connections.
> Or me the access point has name (not id) "Hotspot" (I don't know if the name
> depends on the device and driver).
>
> --Then "nmcli -p connection show --active Hotspot" gives all the details,
> including 802-11-wireless.ssid (the hostname), 802-11-wireless.mode ap
> (access-point I guess),IP4.ADRESSE[1] (ip = 10.42.0.1/24, gw = 0.0.0.0),
> IP6.ADRESSE[1] (ip = fe80::7e5c:f8ff:fe8e:9473/64, gw = ::) and many other
> infos.
>
> --What I didn't dare to do was to try "nmcli connection edit (or modify)
> Hotspot".
>
> --What I did was to modify my DNS setup. In my master zone I added 10.42.0.1
> as ip-address for my server (which now has 3 addresses, one for the outside,
> from my ISP, one not routable for my local network 192.168.xxx.1, and
> 10.42.0.1, not routable also). In the zone file I added also fixed addresses
> 10.42.0.xxx for some devices (e.g. a printer which has two addresses
> 192.168.10.6 and 10.42.0.6; this allows wifi clients to use this printer. I
> also added a reverse zone 10.42.0.zone.
>
> I can't remember how I managed to exclude the fixed addresses from dhcpd
> range to avoid conflicts but it works. Hope this will help.
>
> Sorry for my English.
>
> Jacques



Re: network managet and 10.42.0.1/24

2016-06-10 Thread Bhasker C V
Michael
Thanks. I can understand that the doc is about setting up a separate DHCP
server. However, I want to use network manager's functionality to create a
hotspot and also be able to control the dhcp range of this hotspot.
This is where I got stuck with the 10.42.0.1


On Fri, Jun 10, 2016 at 1:55 AM, Michael Milliman <
michael.e.milli...@gmail.com> wrote:

>
>
> On 06/09/2016 03:59 PM, Bhasker C V wrote:
>
> Hi all,
>
>  I am at a loss to find out how to change 10.42.0.1/24 and 10.42.0.x/24
> as ip and dhcp range which is used by network manager when configuring a
> wireless card as an AP. I dont see the setting anywhere and cant find a
> valid doc in the internet too
> Is this value had-coded in the source-code of NetworkManager ?
>
> Has anyone got an experience of making Network manager work aas a DHCP
> server with custom DHCP range ? please if you can share your experiences
>
> The Debian Administrator's Handbook has the information for setting up a
> DHCP server in it.  Check out the following link:
>
> https://debian-handbook.info/browse/stable/sect.dhcp.html
>
> That ought to get you started, at least.
>
> thanks
> Bhasker
>
>
> --
> 73's
> Mike, WB5VQX
>
>


network managet and 10.42.0.1/24

2016-06-09 Thread Bhasker C V
Hi all,

 I am at a loss to find out how to change 10.42.0.1/24 and 10.42.0.x/24 as
ip and dhcp range which is used by network manager when configuring a
wireless card as an AP. I dont see the setting anywhere and cant find a
valid doc in the internet too
Is this value had-coded in the source-code of NetworkManager ?

Has anyone got an experience of making Network manager work aas a DHCP
server with custom DHCP range ? please if you can share your experiences

thanks
Bhasker


Re: Improper visuals after update

2016-06-05 Thread Bhasker C V
Just did a dis-upgrade today and everything is back to normal !!!
Thanks all

On Mon, May 30, 2016 at 8:59 PM, Sven Arvidsson <s...@whiz.se> wrote:

> On Sun, 2016-05-29 at 21:38 +0200, Bhasker C V wrote:
> > Hi,
> >
> >   After an update I see that my dialog boxes are looking weird. I
> > cannot
> > describe it but it looks as-if the contrast is lost or the theme is
> > not
> > supported ? The boucing bars have gone missing but mouse over and
> > clicks
> > work. This is especially bad with nm-applet. I use mate desktop
> >
> > If anyone knows please can they  tell me how to get this fixed ?
> >
> > An example image is attached at https://unsee.cc/zisapuge/
>
> I don't use Mate, so it's hard to say from the image what it is
> supposed to look like. Are the fields for username and password not
> rendered, no outlines around what I guess are buttons?
>
> Anyway, some Googling suggests that new Mate packages that hit unstable
> moved to GTK3, so that might result in some changes? Maybe the new
> themes haven't been updated yet?
>
>
> (If you are using unstable (that's a quite important detail to mention)
> you need to read the NEWS and/or changelogs, be patient, and check your
> logs to see what packages changed during the upgrade.)
>
> --
> Cheers,
> Sven Arvidsson
> http://www.whiz.se
> PGP Key ID 6FAB5CD5
>
>


Re: Improper visuals after update

2016-05-30 Thread Bhasker C V
anyone ?

On Mon, May 30, 2016 at 9:44 AM, Bhasker C V <bhas...@unixindia.com> wrote:

>
>
> On Sun, May 29, 2016 at 10:47 PM, Ric Moore <wayward4...@gmail.com> wrote:
>
>> On 05/29/2016 03:38 PM, Bhasker C V wrote:
>>
>>> Hi,
>>>
>>>After an update I see that my dialog boxes are looking weird. I
>>> cannot describe it but it looks as-if the contrast is lost or the theme
>>> is not supported ? The boucing bars have gone missing but mouse over and
>>> clicks work. This is especially bad with nm-applet. I use mate desktop
>>>
>>> If anyone knows please can they  tell me how to get this fixed ?
>>>
>>> An example image is attached at https://unsee.cc/zisapuge/
>>>
>> I'm running Sid and XFCE. My last updates pulled in a pile of Mate
>> packages. I deleted them. Ric
>>
> I somehow have a feeling that my theme is not getting rendered properly.
> I created a brand-new user just to make sure that my home dir's earlier
> files may not interfere with updates
> The new user is also showing the same behaviour. Dialog boxes are not
> rendered properly. gtk ones are the worst suffering.
>
>>
>> --
>> My father, Victor Moore (Vic) used to say:
>> "There are two Great Sins in the world...
>> ..the Sin of Ignorance, and the Sin of Stupidity.
>> Only the former may be overcome." R.I.P. Dad.
>> http://linuxcounter.net/user/44256.html
>>
>>
>


Re: Improper visuals after update

2016-05-30 Thread Bhasker C V
On Sun, May 29, 2016 at 10:47 PM, Ric Moore <wayward4...@gmail.com> wrote:

> On 05/29/2016 03:38 PM, Bhasker C V wrote:
>
>> Hi,
>>
>>After an update I see that my dialog boxes are looking weird. I
>> cannot describe it but it looks as-if the contrast is lost or the theme
>> is not supported ? The boucing bars have gone missing but mouse over and
>> clicks work. This is especially bad with nm-applet. I use mate desktop
>>
>> If anyone knows please can they  tell me how to get this fixed ?
>>
>> An example image is attached at https://unsee.cc/zisapuge/
>>
> I'm running Sid and XFCE. My last updates pulled in a pile of Mate
> packages. I deleted them. Ric
>
I somehow have a feeling that my theme is not getting rendered properly.
I created a brand-new user just to make sure that my home dir's earlier
files may not interfere with updates
The new user is also showing the same behaviour. Dialog boxes are not
rendered properly. gtk ones are the worst suffering.

>
> --
> My father, Victor Moore (Vic) used to say:
> "There are two Great Sins in the world...
> ..the Sin of Ignorance, and the Sin of Stupidity.
> Only the former may be overcome." R.I.P. Dad.
> http://linuxcounter.net/user/44256.html
>
>


Re: Improper visuals after update

2016-05-29 Thread Bhasker C V
The image got deleted.
Re-posted here  https://postimg.org/image/i6c1r10pl/



On Sun, May 29, 2016 at 9:38 PM, Bhasker C V <bhas...@unixindia.com> wrote:

> Hi,
>
>   After an update I see that my dialog boxes are looking weird. I cannot
> describe it but it looks as-if the contrast is lost or the theme is not
> supported ? The boucing bars have gone missing but mouse over and clicks
> work. This is especially bad with nm-applet. I use mate desktop
>
> If anyone knows please can they  tell me how to get this fixed ?
>
> An example image is attached at https://unsee.cc/zisapuge/
>
> Thanks in advance
> Bhasker C V
>


Improper visuals after update

2016-05-29 Thread Bhasker C V
Hi,

  After an update I see that my dialog boxes are looking weird. I cannot
describe it but it looks as-if the contrast is lost or the theme is not
supported ? The boucing bars have gone missing but mouse over and clicks
work. This is especially bad with nm-applet. I use mate desktop

If anyone knows please can they  tell me how to get this fixed ?

An example image is attached at https://unsee.cc/zisapuge/

Thanks in advance
Bhasker C V


Network manager (again)

2016-05-13 Thread Bhasker C V
Hi

  I am finding it difficult to settle on a good network manager which
can work for my case

1. My home dir is luks/ext4 and mounted manually after logging in for
the first time
2. My GUI is started after mounting my home dir and by manual startx only

I could never get my network manager to store passwords in the user dir.
I do not like the passwords stored in
/etc/NeworkManager/sytem-connections with plain passwords visible so
anybody can open them if they have physical access to the machine/disk
(usb live stick etc., )

If I pull up the properties of nm-applet and change the option to 
"Store password only for this user", nm-applet does not connect since
the keyring is no automatically unlocked due to startx

Can anyone help me with fixing this network-manager so the passwords are
stored per-user in my luks home rather than /etc/...  OR tell me how to
enable nm-applet to automatically trigger opening gnome-keyring ?

-- 
Bhasker C V
Secure Mails: 
http://pgp.mit.edu/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



lvm thin provisioning over provisioning

2016-04-22 Thread Bhasker C V
Hi,

 I am starting with investigating about the lvm thin provisioning
 (apologies for html mail)

 I have done the following

1.Create a PV
vdb252:16   0   10G  0 disk
├─vdb1 252:17   0  100M  0 part
└─vdb2 252:18   0  9.9G  0 part
root@vmm-deb:~# pvcreate /dev/vdb1
  Physical volume "/dev/vdb1" successfully created.
root@vmm-deb:~# pvs
  PV VG   Fmt  Attr PSize   PFree 
  /dev/vdb1   lvm2 ---  100.00m 100.00m

2. create a VG
root@vmm-deb:~# vgcreate virtp /dev/vdb1
  Volume group "virtp" successfully created
root@vmm-deb:~# vgs
  VG#PV #LV #SN Attr   VSize  VFree
  virtp   1   0   0 wz--n- 96.00m 96.00m

3. create a lv pool  and a over-provisioned volume inside it
root@vmm-deb:~# lvcreate -n virtpool -T virtp/virtpool -L40M
  Logical volume "virtpool" created.
root@vmm-deb:~# lvs
  LV   VGAttr   LSize  Pool Origin Data%  Meta%  Move Log
Cpy%Sync Convert
  virtpool virtp twi-a-tz-- 40.00m 0.00  
0.88   
root@vmm-deb:~# lvcreate  -V1G -T virtp/virtpool -n vol01
  WARNING: Sum of all thin volume sizes (1.00 GiB) exceeds the size of
thin pool virtp/virtpool and the size of whole volume group (96.00 MiB)!
  For thin pool auto extension activation/thin_pool_autoextend_threshold
should be below 100.
  Logical volume "vol01" created.
root@vmm-deb:~# lvs
  LV   VGAttr   LSize  Pool Origin Data%  Meta%  Move
Log Cpy%Sync Convert
  virtpool virtp twi-aotz-- 40.00m 0.00  
0.98   
  vol01virtp Vwi-a-tz--  1.00g virtpool   
0.00  

-- Now the operations
# dd if=/dev/urandom of=./fil status=progress
90532864 bytes (91 MB, 86 MiB) copied, 6.5 s, 15.1 MB/s^C
188706+0 records in
188705+0 records out
96616960 bytes (97 MB, 92 MiB) copied, 6.42704 s, 15.0 MB/s

# df -h .
Filesystem   Size  Used Avail Use% Mounted on
/dev/mapper/virtp-vol01  976M   95M  815M  11% /tmp/x
# sync
# cd ..
root@vmm-deb:/tmp# umount x
root@vmm-deb:/tmp# fsck.ext4 -f -C0  /dev/virtp/vol01 
e2fsck 1.43-WIP (15-Mar-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory
structure  
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/virtp/vol01: 12/65536 files (8.3% non-contiguous), 36544/262144
blocks   


# du -hs fil
93Mfil

# dd if=./fil of=/dev/null status=progress
188705+0 records in
188705+0 records out
96616960 bytes (97 MB, 92 MiB) copied, 0.149194 s, 648 MB/s


# vgs
  VG#PV #LV #SN Attr   VSize  VFree
  virtp   1   2   0 wz--n- 96.00m 48.00m


What i expect is that the pool is 40M and the file must NOT exceed 40M.
Where does the file get 93M space ?
I know the VG is 96M but the pool created was max 40M (also VG still
says 48M free). Is the file exceeding the boundaries ?
or am I doing anything wrong ?

-- 
Bhasker C V
Secure Mails: 
http://pgp.mit.edu/pks/lookup?op=get=0x4D05FEEC54E47413
Registered Linux User: #306349 



Re: Where is grubx64.efi

2016-03-29 Thread Bhasker C V
Very quick reply.Thanks


On Tue, Mar 29, 2016 at 4:00 PM, Nicolas George <geo...@nsup.org> wrote:
> Le decadi 10 germinal, an CCXXIV, Bhasker C V a écrit :
>>  I have been trying to find out where does the grubx64.efi come from ?
>> I have a system which is EFI boot. I can see that after grub-install
>> /boot/efi/x86_64-efi/core.efi is created and this is copied as
>> efi/EFI/debian/grubx64.efi
>>
>> What I am failing to understand is where does this core.efi come from ? I
>> went through all the packages in the netinstall cd but could not find
>> a single package providing this file
>
> grubx64.efi and other GRUB images are built by GRUB at install time,
> embarking the requested optional modules.
>
> You can reproduce the same process invoking grub-mkimage explicitly.
>
> Regards,
>
> --
>   Nicolas George



Where is grubx64.efi

2016-03-29 Thread Bhasker C V
Hi

 I have been trying to find out where does the grubx64.efi come from ?
I have a system which is EFI boot. I can see that after grub-install
/boot/efi/x86_64-efi/core.efi is created and this is copied as
efi/EFI/debian/grubx64.efi

What I am failing to understand is where does this core.efi come from ? I
went through all the packages in the netinstall cd but could not find
a single package providing this file

also dpkg -S does not return positive results about the owner of this package.

Please could someone tell me how this file gets into my system

Thanks
Bhasker C V



Re: BTRFS failed

2016-02-14 Thread Bhasker C V
Adam
 No. I have BTRFS file system upon a  LUKS volume. I first unlock LUKS and
then I get a dm-mapped btrfs Filesystem. I used to be able to mount this
filesystem but not anymore
  This is the dmesg for ro,recovery,nospace_cache,nospace_cache

[21680.563023] BTRFS info (device dm-12): enabling auto recovery
[21680.563044] BTRFS info (device dm-12): disabling disk space caching
[21680.563059] BTRFS: has skinny extents
[21680.583128] BTRFS: bdev /dev/mapper/ee errs: wr 18, rd 0, flush 0,
corrupt 0, gen 0
[21680.54] BTRFS (device dm-12): parent transid verify failed on
59162624 wanted 134868 found 54964
[21680.591339] BTRFS (device dm-12): parent transid verify failed on
59162624 wanted 134868 found 54964
[21680.591358] BTRFS: Failed to read block groups: -5
[21680.620285] BTRFS: open_ctree failed


a subsequent  btrfs rescue zero-log give this

sudo btrfs rescue zero-log /dev/mapper/jj
parent transid verify failed on 59162624 wanted 134868 found 54964
parent transid verify failed on 59162624 wanted 134868 found 54964
parent transid verify failed on 59162624 wanted 134868 found 54964
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
leaf parent key incorrect 59162624
parent transid verify failed on 408584192 wanted 130813 found 53737
parent transid verify failed on 408584192 wanted 130813 found 53737
parent transid verify failed on 408584192 wanted 130813 found 53737
parent transid verify failed on 408584192 wanted 130813 found 53737
Ignoring transid failure
Clearing log on /dev/mapper/jj, previous log_root 0, level 0
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
parent transid verify failed on 87556096 wanted 134922 found 54980
parent transid verify failed on 87556096 wanted 134922 found 54980
parent transid verify failed on 87556096 wanted 134922 found 54980
parent transid verify failed on 87556096 wanted 134922 found 54980
Ignoring transid failure
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
parent transid verify failed on 466993152 wanted 135739 found 53864
parent transid verify failed on 466993152 wanted 135739 found 53864
parent transid verify failed on 466993152 wanted 135739 found 53864
parent transid verify failed on 466993152 wanted 135739 found 53864
Ignoring transid failure
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
parent transid verify failed on 262455296 wanted 135295 found 53548
parent transid verify failed on 262455296 wanted 135295 found 53548
parent transid verify failed on 262455296 wanted 135295 found 53548
parent transid verify failed on 262455296 wanted 135295 found 53548
Ignoring transid failure
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
parent transid verify failed on 45613056 wanted 134843 found 54949
parent transid verify failed on 45613056 wanted 134843 found 54949
parent transid verify failed on 45613056 wanted 134843 found 54949
parent transid verify failed on 45613056 wanted 134843 found 54949
Ignoring transid failure
parent transid verify failed on 59162624 wanted 134868 found 54964
Ignoring transid failure
parent transid verify failed on 522469376 wanted 135880 found 53946
parent transid verify failed on 522469376 wanted 135880 found 53946
parent transid verify failed on 522469376 wanted 135880 found 53946
parent transid verify failed on 522469376 wanted 135880 found 53946
Ignoring transid failure


No other methods seem to work
Dont exactly know why this has gone to this bad state. A strings on the dm
device does show my data on datablocks



On Sun, Feb 14, 2016 at 7:10 PM, Adam Wilson <mox...@riseup.net> wrote:

> On Sun, 14 Feb 2016 17:05:51 +0100 Bhasker C V <bhas...@unixindia.com>
> wrote:
>
> > Hi,
> >
> >  I  have a home dir btrfs on top of luks
>
> Surely you mean LUKS on top of btrfs?
>
>


BTRFS failed

2016-02-14 Thread Bhasker C V
Hi,

 I  have a home dir btrfs on top of luks
 Just recently there was a power falure to the machine and since then the
volume is not mountable

1) I tried ro,recovery,nospace_cache,nospace_cache option of mount
2) I tried btrfs-zero-log -y -v
3) btrfsck  --repair --init-csum-tree

But for sure there is data in the volume.
btrfs-show-super reports nicely the btrfs filesystem

Can someone help me how to proceed further ?
Usnig K 4.2.0 debian sid testing
I thought of attaching more logs but was not sure what would be required. I
will sure do if needed.

Thanks
Bhasker C V


Annoying Keyboard switch

2015-12-24 Thread Bhasker C V
H,

  I have a system where I switch keyboards a lot (from UK to US etc.,)

  I use sid with mate-desktop-environment
 The keyboard preferences allows an applet in system tray to switch between
keyboard types.

 When I swtich keyboards, however, I see that the keyboard variant resets
back to US even if last keyboard selected was UK and the system was
shutdown.

Any tips on how to retain the last keyboard variant ?

Thanks


Re: Debian CPU heating up no apparent cpu activity

2015-02-06 Thread Bhasker C V
Thanks all for inputs

SOLVED !!!


1) The fan is fine in my system. The fan does not run and CPU remains
cool when used with the SSD based USB device but CPU was only heating
when using with USB-SD card based OS. So this is NOT a hardware issue

The problem is that mine is a hybrid nvidia-optimus  (bumblebee).

Now, I had disabled nouveau (modprobe.d blacklisted) which caused (I
guess IMHO) the GPU to be switched off thus offloading all tasks to
the CPU.

The moment I loaded nouveau GPU got enabled and the good nice
neighbour to CPU started helping CPU.
Now my CPU is nicely running at 55-60C as expected. I can hear the
fans spinning down the instant nouveau is loaded !!!

Again, I really appreciate and thanks to all for your inputs


On 2/6/15, Ric Moore wayward4...@gmail.com wrote:
 On 02/06/2015 12:50 PM, Burhan Hanoglu wrote:

 I'd expect that even though PIO is a cpu intensive IO, system should not
 stay that heated when it is idle IO wise. I'd try the same using a usb
 stick to observe the result and compare...
 Or, examine the cpu cooler and remove all of the cruft. I couldn't
 believe how ugly mine had gotten. High CPU temp was the result under a
 load. Ric.


 --
 My father, Victor Moore (Vic) used to say:
 There are two Great Sins in the world...
 ..the Sin of Ignorance, and the Sin of Stupidity.
 Only the former may be overcome. R.I.P. Dad.
 http://linuxcounter.net/user/44256.html


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: https://lists.debian.org/54d50d56.1040...@gmail.com




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAPLCSGA=tgnlv7vse9gdhafnqz1jchgvfszu1ahfshwbn-l...@mail.gmail.com



Re: Debian CPU heating up no apparent cpu activity

2015-02-06 Thread Bhasker C V
Indeed it must have been as you state but I did not want to do a
ROOTFS copy since setting up and cleaning the old LVM settings etc.,
will cause a lot of compilication. I went ahead and installed a fresh
system and then copied the kernel and initrd into the SD card.
I however do not remember why I disabled nouveau ... must have been
thinking something else...

But yes.. in SSD nouveau was enabled and in SD it was not. That caused
a major difference.
I am also amazed on how GPU contributes to the CPU task offloading
even if graphics is not used (text only mode)


On 2/7/15, Burhan Hanoglu burhano...@gmail.com wrote:
 On Sat, Feb 7, 2015 at 2:37 AM, Bhasker C V bhas...@unixindia.com wrote:

 Thanks all for inputs

 SOLVED !!!


 1) The fan is fine in my system. The fan does not run and CPU remains
 cool when used with the SSD based USB device but CPU was only heating
 when using with USB-SD card based OS. So this is NOT a hardware issue

 The problem is that mine is a hybrid nvidia-optimus  (bumblebee).

 Now, I had disabled nouveau (modprobe.d blacklisted) which caused (I
 guess IMHO) the GPU to be switched off thus offloading all tasks to
 the CPU.

 The moment I loaded nouveau GPU got enabled and the good nice
 neighbour to CPU started helping CPU.
 Now my CPU is nicely running at 55-60C as expected. I can hear the
 fans spinning down the instant nouveau is loaded !!!


 So the driver was not disabled when you tried on SSD? If the purpose was to
 identify the cause for a problem,  then why would you enable a driver on
 SSD and disable it on SD; instead of keeping it either enabled or disabled
 on both? You would keep the system on SSD the same as it was on SD, so
 that the only difference would be the device the OS is running on, which
 would help narrow down the problem and identify it's relevance to storage
 device used...

 Cheers!
 Burhan



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/caplcsgafybdmsypprx2izthk0s6alp09xc+mnlmq0ztt7qn...@mail.gmail.com



Debian CPU heating up no apparent cpu activity

2015-02-05 Thread Bhasker C V
Hi,

 I am trying to create 2 systems (both are portable and works on USB)

1. USB-SATA bridge SSD with linux kernel 3.19.0 (self compiled).
   this systems works fine and the operating temperature on the DELL
machine I am using is about 54C to 60C

2. USB-microSD with MicroSD card (sandisk 32GB).
   this system when it works starts heating up !!! temperatures sore
to 80C.(in a matter of 2-3 minutes)

BASE CONDITIONS (common for both systems):
* Both the systems are jessie
* Both are running idential kernel and initrd (infact exact binary
copies on both)
* top shows very low CPU utilisation
* iotop shows occasional  R/W but not too much of write/read (less
than 0.1 kb/sec)
* both are currently text mode only
* system is DELL Q15R core-i7-2630QM (see cpuinfo in the end)

on SSD: vmstat

 0  0  0 7003648  44012 89683200 012  157  583  1
0 99  0  0
 0  0  0 7003532  44012 89684000 0 0  136  429  0
0 100  0  0
 0  0  0 7003760  44012 89684000 0 0  205  510  0
0 100  0  0
 0  0  0 7003904  44012 89684000 0 0  152  513  0
0 100  0  0
(using graphics and so sligtly low in mem but this is on the system
which does not heat up)

on SDCARD: vmstat

 0  0  0 7935012  20884 18481200 0 0  110  313  0
0 100  0  0
 0  0  0 7935012  20884 18481200 0 0   97  286  0
0 100  0  0
 0  0  0 7935012  20884 18481200 0 0   99  275  0
0 100  0  0
 0  0  0 7935012  20884 18481200 0 0  103  280  0
0 100  0  0
 0  0  0 7934864  20892 18480400 020  176  470  0
0 100  0  0


I even applied all CPU microcodes and got the message
perf_event_intel: PEBS enabled due to microcode update


Has someone encountered this before ? I am not sure what is causing
the fans to run fast and CPU to heatup when I use the OS on SD card ?
I agree SD is slow but that will be IO rather than CPU right ? will
that cause heatup ?

iotop also shows READ/WRITE only occasionally SSD for
I am fully  exhausted not kwowing  what to do. Can anyone help please ?


 CPU INFO ---
processor   : 7
vendor_id   : GenuineIntel
cpu family  : 6
model   : 42
model name  : Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
stepping: 7
microcode   : 0x29
cpu MHz : 1900.000
cache size  : 6144 KB
physical id : 0
siblings: 8
core id : 3
cpu cores   : 4
apicid  : 7
initial apicid  : 7
fdiv_bug: no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 13
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm
constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf
eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16
xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes
xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi
flexpriority ept vpid xsaveopt
bugs:
bogomips: 3990.87
clflush size: 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAPLCSGCA3+NXH3o07Zz9G+=CCVbYMWjnRnLzdWJf44H1xHc=k...@mail.gmail.com



Re: Debian CPU heating up no apparent cpu activity

2015-02-05 Thread Bhasker C V
I do not see anything. top does not show anything in the top list ...
it is just that when arranged in high to low CPU usage, the first
process it shows is a kernel process and it is using 0% or 0.5% of CPU
This really puzzles me
Who can take up CPU time without showing up themselves in the 'top'
thereby heating the CPU but hiding itself

On 2/5/15, Andrew Wood and...@perpetualmotion.co.uk wrote:
 I had a similar problem with certain hardware configs causing a kworker to
 hog the CPU  due to ACPI problems

 I found the tips here helpful in solving that one

 https://bbs.archlinux.org/viewtopic.php?id=184913

 Sent from  iPhone

 On 5 Feb 2015, at 22:18, Bhasker C V bhas...@unixindia.com wrote:

 Hi,

 I am trying to create 2 systems (both are portable and works on USB)

 1. USB-SATA bridge SSD with linux kernel 3.19.0 (self compiled).
   this systems works fine and the operating temperature on the DELL
 machine I am using is about 54C to 60C

 2. USB-microSD with MicroSD card (sandisk 32GB).
   this system when it works starts heating up !!! temperatures sore
 to 80C.(in a matter of 2-3 minutes)

 BASE CONDITIONS (common for both systems):
 * Both the systems are jessie
 * Both are running idential kernel and initrd (infact exact binary
 copies on both)
 * top shows very low CPU utilisation
 * iotop shows occasional  R/W but not too much of write/read (less
 than 0.1 kb/sec)
 * both are currently text mode only
 * system is DELL Q15R core-i7-2630QM (see cpuinfo in the end)

 on SSD: vmstat

 0  0  0 7003648  44012 89683200 012  157  583  1
 0 99  0  0
 0  0  0 7003532  44012 89684000 0 0  136  429  0
 0 100  0  0
 0  0  0 7003760  44012 89684000 0 0  205  510  0
 0 100  0  0
 0  0  0 7003904  44012 89684000 0 0  152  513  0
 0 100  0  0
 (using graphics and so sligtly low in mem but this is on the system
 which does not heat up)

 on SDCARD: vmstat

 0  0  0 7935012  20884 18481200 0 0  110  313  0
 0 100  0  0
 0  0  0 7935012  20884 18481200 0 0   97  286  0
 0 100  0  0
 0  0  0 7935012  20884 18481200 0 0   99  275  0
 0 100  0  0
 0  0  0 7935012  20884 18481200 0 0  103  280  0
 0 100  0  0
 0  0  0 7934864  20892 18480400 020  176  470  0
 0 100  0  0


 I even applied all CPU microcodes and got the message
 perf_event_intel: PEBS enabled due to microcode update


 Has someone encountered this before ? I am not sure what is causing
 the fans to run fast and CPU to heatup when I use the OS on SD card ?
 I agree SD is slow but that will be IO rather than CPU right ? will
 that cause heatup ?

 iotop also shows READ/WRITE only occasionally SSD for
 I am fully  exhausted not kwowing  what to do. Can anyone help please ?


  CPU INFO ---
 processor: 7
 vendor_id: GenuineIntel
 cpu family: 6
 model: 42
 model name: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
 stepping: 7
 microcode: 0x29
 cpu MHz: 1900.000
 cache size: 6144 KB
 physical id: 0
 siblings: 8
 core id: 3
 cpu cores: 4
 apicid: 7
 initial apicid: 7
 fdiv_bug: no
 f00f_bug: no
 coma_bug: no
 fpu: yes
 fpu_exception: yes
 cpuid level: 13
 wp: yes
 flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov
 pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm
 constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf
 eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16
 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes
 xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi
 flexpriority ept vpid xsaveopt
 bugs:
 bogomips: 3990.87
 clflush size: 64
 cache_alignment: 64
 address sizes: 36 bits physical, 48 bits virtual
 power management:


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 https://lists.debian.org/CAPLCSGCA3+NXH3o07Zz9G+=CCVbYMWjnRnLzdWJf44H1xHc=k...@mail.gmail.com




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAPLCSGCkSD78v-rov-=r758g_ircx0cq2djfxiwnmnz19tw...@mail.gmail.com



Re: Debian CPU heating up no apparent cpu activity

2015-02-05 Thread Bhasker C V
could it be because with USB-SSD the kernel detects it as drive (smart
works and also does hdparm) and uses DMA whereas in USB-SD kernel
detects and attaches to usbstor but then has to do pio and cpu
intensive low efficency transfer methods rather than DMA ?
This means that kernel is doing a lot of job to write/read to usb and
will not show up in top ... but still since CPU is being used
constantly CPU gets heated up 
just a hypothesis ... someone can comment on this

if that is the case how to force UDMA for usb memorystick kind of devices ?
tried googling ... no answer


On 2/6/15, Bhasker C V bhas...@unixindia.com wrote:
 could it be because with USB-SSD the kernel detects it as drive (smart
 works and also does hdparm) and uses DMA whereas in USB-SD kernel
 detects and attaches to usbstor but then has to do pio and cpu
 intensive low efficency transfer methods rather than DMA ?
 This means that kernel is doing a lot of job to write/read to usb and
 will not show up in top ... but still since CPU is being used
 constantly CPU gets heated up 
 just a hypothesis ... someone can comment on this




 On 2/6/15, Bhasker C V bhas...@unixindia.com wrote:
 Hi,

  The same system running on the USB-SSD behaves nicely. Less than 60C
 always even when watching videos on youtube.  However when I boot from
 USB-SD adapter then CPU starts heating to 80C
 There is no apparent message I can see in dmesg or syslog


 On 2/5/15, Burhan Hanoglu burhano...@gmail.com wrote:
 Hi,

 Does it happen only when the OS is running on microSD? Have you tried to
 boot using a live iso either on a CD or on a usb stick? Have you looked
 thru /var/log/syslog and dmesg to see if there is anything relevant?

 Regards,
 Burhan

 On Fri, Feb 6, 2015 at 12:18 AM, Bhasker C V bhas...@unixindia.com
 wrote:

 Hi,

  I am trying to create 2 systems (both are portable and works on USB)

 1. USB-SATA bridge SSD with linux kernel 3.19.0 (self compiled).
this systems works fine and the operating temperature on the DELL
 machine I am using is about 54C to 60C

 2. USB-microSD with MicroSD card (sandisk 32GB).
this system when it works starts heating up !!! temperatures sore
 to 80C.(in a matter of 2-3 minutes)

 BASE CONDITIONS (common for both systems):
 * Both the systems are jessie
 * Both are running idential kernel and initrd (infact exact binary
 copies on both)
 * top shows very low CPU utilisation
 * iotop shows occasional  R/W but not too much of write/read (less
 than 0.1 kb/sec)
 * both are currently text mode only
 * system is DELL Q15R core-i7-2630QM (see cpuinfo in the end)

 on SSD: vmstat

  0  0  0 7003648  44012 89683200 012  157  583  1
 0 99  0  0
  0  0  0 7003532  44012 89684000 0 0  136  429  0
 0 100  0  0
  0  0  0 7003760  44012 89684000 0 0  205  510  0
 0 100  0  0
  0  0  0 7003904  44012 89684000 0 0  152  513  0
 0 100  0  0
 (using graphics and so sligtly low in mem but this is on the system
 which does not heat up)

 on SDCARD: vmstat

  0  0  0 7935012  20884 18481200 0 0  110  313  0
 0 100  0  0
  0  0  0 7935012  20884 18481200 0 0   97  286  0
 0 100  0  0
  0  0  0 7935012  20884 18481200 0 0   99  275  0
 0 100  0  0
  0  0  0 7935012  20884 18481200 0 0  103  280  0
 0 100  0  0
  0  0  0 7934864  20892 18480400 020  176  470  0
 0 100  0  0


 I even applied all CPU microcodes and got the message
 perf_event_intel: PEBS enabled due to microcode update


 Has someone encountered this before ? I am not sure what is causing
 the fans to run fast and CPU to heatup when I use the OS on SD card ?
 I agree SD is slow but that will be IO rather than CPU right ? will
 that cause heatup ?

 iotop also shows READ/WRITE only occasionally SSD for
 I am fully  exhausted not kwowing  what to do. Can anyone help please ?


  CPU INFO ---
 processor   : 7
 vendor_id   : GenuineIntel
 cpu family  : 6
 model   : 42
 model name  : Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
 stepping: 7
 microcode   : 0x29
 cpu MHz : 1900.000
 cache size  : 6144 KB
 physical id : 0
 siblings: 8
 core id : 3
 cpu cores   : 4
 apicid  : 7
 initial apicid  : 7
 fdiv_bug: no
 f00f_bug: no
 coma_bug: no
 fpu : yes
 fpu_exception   : yes
 cpuid level : 13
 wp  : yes
 flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
 mca
 cmov
 pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm
 constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf
 eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16
 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes
 xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi

squid cannot get ACL to work

2015-02-04 Thread Bhasker C V
Hi,
 I have my config something like this
 I am not sure what I am doing wrong but squid does allow access
during all hours irrespective of the allowedtime acl

below is my squid conf in full. Can someone help please by telling me
what am I doing wrong ? I am guessing squid uses the same serially
parsing the ACL like what iptables does.

--
acl manager proto cache_object
acl localnet src 192.168.8.0/24  # local network
acl localhost src 127.0.0.1/32
acl allowedtime time SMTWHFA 10:00-17:00
acl SSL_ports port 443
acl Safe_ports port 80  # http
acl Safe_ports port 21  # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70  # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl SSL method CONNECT
acl access_to_secureonly  url_regex  /etc/squid3/secure-only.txt


http_access deny !Safe_ports
http_access deny access_to_secureonly
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access allow localnet allowedtime
http_access deny localnet
http_access deny all

http_port 192.168.8.107:3128
debug_options ALL,1
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:   144020% 10080
refresh_pattern ^gopher:14400%  1440
refresh_pattern -i (/cgi-bin/|\?) 0 0%  0
refresh_pattern .   0   20% 4320
via off
forwarded_for transparent


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAPLCSGCKdtk+anEJQZWZqHncvmJk8Liyp-icc=L4_uqx6fs=z...@mail.gmail.com



Re: GRUB legal disclaimers before the menu

2015-02-04 Thread Bhasker C V
I did try the multiple-menu entries but the moment I put a dummy entry
the menu entry does not appear at all !

The only other way is painfully use the echo command

echo line1
echo line2
..
sleep 5

which will delay the boot by 5 seconds unconditionally.

One of the suggestions on IRC was to modify the code to do this but I
do not want to do this on production servers since once modified then
it becomes my responsibility to maintain and patch the grub code.



On 2/3/15, Brian a...@cityscape.co.uk wrote:
 On Tue 03 Feb 2015 at 20:25:59 +0300, Reco wrote:

  Hi.

 On Tue, Feb 03, 2015 at 05:19:30PM +, Bhasker C V wrote:
  Hi,
 
   I am trying to create some legal disclaimer statements just above the
  first menu item in the grub (like simple echo messages). I am not sure
  how to do this
 
   A simple echo gets re-pained just after the menu comes on.
 
   Can anyone help please ?
   Googled - no info available.

 Try putting a disclaimer inside the menuentry, i.e.

 menuentry legal_goes_here {
  echo 'You shouldn't be here'
 }

 This looks like a good idea; in fact, it may be the only way of getting
 close to what the OP wants. Hpwever, the problem might be the length of
 the disclaimer for setparams (legal_goes_here). The GRUB menu
 displays the text on one line and, with line wrapping not apparently
 available, much of it will not be on the screen.

 I would also query the purpose of the second line in the stanza.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 https://lists.debian.org/03022015233038.52f04b098...@desktop.copernicus.demon.co.uk




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/caplcsgdwjfc0kv7-hwzny_ilpreh_k0mwsamtubb6m1cchk...@mail.gmail.com



GRUB legal disclaimers before the menu

2015-02-03 Thread Bhasker C V
Hi,

 I am trying to create some legal disclaimer statements just above the
first menu item in the grub (like simple echo messages). I am not sure
how to do this

 A simple echo gets re-pained just after the menu comes on.

 Can anyone help please ?
 Googled - no info available.

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/caplcsgdmmfpef49_1culq3ghbvxzethpo-aruftuxpqdtgc...@mail.gmail.com



Re: Kernel crash 3.17.2 unable to use kvm

2014-12-19 Thread Bhasker C V
Hi,

 This kernel is made from the old version by copying the .config and
running make oldconfig.
I have been using the .config from 3.7.x  kernel


On 11/4/14, Florent Peterschmitt flor...@peterschmitt.fr wrote:
 Le 03/11/2014 17:03, Bhasker C V a écrit :
 Hi,

  I tried to compile the latest kernel 3.17.2 and when loading
 kvm_intel, the kernel crashes (not catastrophically but as below) and
 kvm_intel never works.
 The old kernel 3.14.x works fine but I dont want to use an older
 kernel as a solution to the current issue.

 Can somebody help to tell me if this is an environment issue or a real
 kernel bug ?
 This is a DELL D620 with core2duo T5520 (vmx enabled)
 Thanks

 ---

 [  349.007575] general protection fault:  [#1] SMP
 [snip]


 You have a 3.17 kernel config based on a previous working kernel
 version, or you made it from scratch?




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/caplcsgd2ta8hz_v0n1lc0_vtex3r7du0w2zpkvr_r-xlog8...@mail.gmail.com



Kernel crash 3.17.2 unable to use kvm

2014-11-03 Thread Bhasker C V
Hi,

 I tried to compile the latest kernel 3.17.2 and when loading
kvm_intel, the kernel crashes (not catastrophically but as below) and
kvm_intel never works.
The old kernel 3.14.x works fine but I dont want to use an older
kernel as a solution to the current issue.

Can somebody help to tell me if this is an environment issue or a real
kernel bug ?
This is a DELL D620 with core2duo T5520 (vmx enabled)
Thanks

---

[  349.007575] general protection fault:  [#1] SMP
[  349.008516] Modules linked in: kvm_intel(+) kvm ctr ccm
cpufreq_userspace cpufreq_conservative cpufreq_stats cpufreq_powersave
bnep rfcomm autofs4 nfsd auth_rpcgss oid_registry nfs_acl nfs lockd
fscache sunrpc xts gf128mul fuse dm_crypt arc4 b43 bcma mac80211 i915
joydev iTCO_wdt iTCO_vendor_support dell_wmi rndis_wlan coretemp
dell_laptop sparse_keymap ppdev microcode psmouse rndis_host dcdbas
cdc_ether serio_raw cdc_phonet evdev i2c_i801 usbnet phonet cdc_acm
ecb btusb mii lpc_ich mfd_core bluetooth yenta_socket pcmcia_rsrc
cfg80211 snd_hda_codec_idt snd_hda_codec_generic snd_hda_intel
snd_hda_controller drm_kms_helper drm snd_hda_codec snd_hwdep snd_pcm
rng_core wmi snd_seq irda snd_timer snd_seq_device snd rfkill battery
button shpchp crc_ccitt tpm_tis parport_pc parport video ac tpm
i2c_algo_bit i2c_core soundcore processor ext4 crc16 jbd2 mbcache
usbhid sg sd_mod crct10dif_generic sr_mod cdrom crc_t10dif
crct10dif_common ata_generic ssb ata_piix uhci_hcd tg3 ptp mmc_core
pps_core libphy pcmcia pcmcia_core thermal thermal_sys [last unloaded:
pcspkr]
[  349.008516] CPU: 0 PID: 3604 Comm: modprobe Not tainted 3.17.2-bcv #1
[  349.008516] Hardware name: Dell Inc. Latitude D620
 /0FT292, BIOS A08 04/03/2007
[  349.008516] task: 880073f08de0 ti: 880073eb task.ti:
880073eb
[  349.008516] RIP: 0010:[a073161b]  [a073161b]
hardware_setup+0x303/0x3e0 [kvm_intel]
[  349.008516] RSP: 0018:880073eb3d00  EFLAGS: 00010202
[  349.008516] RAX: 0401e172 RBX: 0200 RCX: 048b
[  349.008516] RDX: 7799fffe RSI:  RDI: f7ff
[  349.008516] RBP:  R08: 1fff R09: 880073eb3cec
[  349.008516] R10: 0004 R11: 0002 R12: a072a500
[  349.008516] R13: 3f80 R14:  R15: 880073eb3f08
[  349.008516] FS:  7fe51d656700() GS:88007f40()
knlGS:
[  349.008516] CS:  0010 DS:  ES:  CR0: 8005003b
[  349.008516] CR2: 7f1fd003b000 CR3: 738b3000 CR4: 07f0
[  349.008516] Stack:
[  349.008516]  0040  a072a500
3f80
[  349.008516]   a069d83f 
fff4
[  349.008516]  a0731752  81816040
a07318ea
[  349.008516] Call Trace:
[  349.008516]  [a069d83f] ? kvm_init+0x45/0x242 [kvm]
[  349.008516]  [a0731752] ?
vmx_check_processor_compat+0x5a/0x5a [kvm_intel]
[  349.008516]  [a07318ea] ? vmx_init+0x198/0x8ae [kvm_intel]
[  349.008516]  [a0731752] ?
vmx_check_processor_compat+0x5a/0x5a [kvm_intel]
[  349.008516]  [810002f9] ? do_one_initcall+0xe3/0x162
[  349.008516]  [810f9d6a] ? __vunmap+0x9e/0xab
[  349.008516]  [8108f1e1] ? load_module+0x18fd/0x1efe
[  349.008516]  [8108f216] ? load_module+0x1932/0x1efe
[  349.008516]  [81119af1] ? kernel_read+0x3b/0x4e
[  349.008516]  [8108c399] ? copy_module_from_fd+0x92/0xea
[  349.008516]  [8108f8ca] ? SyS_finit_module+0x51/0x5c
[  349.008516]  [8108f8ca] ? SyS_finit_module+0x51/0x5c
[  349.008516]  [81405e52] ? system_call_fastpath+0x16/0x1b
[  349.008516] Code: 00 0f 32 81 e2 8c 9e d9 e3 b1 8b c7 05 b7 91 ff
ff 72 e1 01 04 81 ca 72 e1 01 14 c7 05 9f 91 ff ff 72 61 00 04 89 15
9d 91 ff ff 0f 32 81 e2 c1 00 00 00 80 3d b4 8e ff ff 00 c7 05 7c 91
ff ff
[  349.008516] RIP  [a073161b] hardware_setup+0x303/0x3e0 [kvm_intel]
[  349.008516]  RSP 880073eb3d00
[  349.127085] ---[ end trace e0b62efdc2f6864a ]---


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAPLCSGD8T88pKQ4PSGKaMP3=8bsQORb49y3Gqib1hLggETD=o...@mail.gmail.com



hosts based open ssh authentication

2014-11-01 Thread Bhasker C V
Hi all

 I have a system in a cluster (experimental) and there are a lot of
debian machines which depend on this system and must be able to ssh into
this system

I wanted password-less authentication and looked on the internet.
Almost all the examples and help shown involves setting up
ssh_known_hosts which I am trying to avoid (cumbersome in a large
network where we dont know who will need access).

Anyone got this working just plain without adding known hosts ? I do not
want to add each and every host to ssh_known_host. Essentially I want to
have an open access to one of the servers via ssh.

I tried running sshd as root and adding

auth sufficient pam_rootok.so

to pam ssh and login
but that did not help.

Thanks

Bhasker C V


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54b4.2050...@unixindia.com



RAID: one disk missing when creating the array

2013-06-25 Thread Bhasker C V
Hi,

 I created an array /dev/md0
--level=5 --raid-devices=4 /dev/sd[bcde]

I get this in mdstat

root@nas:/nas/secure/KEY# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sde[4] sdd[2] sdc[1] sdb[0]
  5860148736 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3]
[UUU_]
  []  recovery =  1.9% (38611052/1953382912)
finish=973.1min speed=32793K/sec

===


   /dev/md0:
Version : 1.2
  Creation Time : Tue Jun 25 21:56:10 2013
 Raid Level : raid5
 Array Size : 5860148736 (5588.67 GiB 6000.79 GB)
  Used Dev Size : 1953382912 (1862.89 GiB 2000.26 GB)
   Raid Devices : 4
  Total Devices : 4
Persistence : Superblock is persistent

Update Time : Tue Jun 25 22:20:37 2013
  State : clean, degraded, recovering
 Active Devices : 3
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 1

 Layout : left-symmetric
 Chunk Size : 512K

 Rebuild Status : 2% complete

   Name : nas:0  (local to host nas)
   UUID : 32524f61:20ead1e3:775bf0b3:e6d8b582
 Events : 825

Number   Major   Minor   RaidDevice State
   0   8   160  active sync   /dev/sdb
   1   8   321  active sync   /dev/sdc
   2   8   482  active sync   /dev/sdd
   4   8   643  spare rebuilding   /dev/sde
  
unused devices: none

where I see 0,1,2,4 as devices (3 is missing)
Am I doing anything wrong ? Can someone tell me how to fix this please ?
thanks



I even tried a mdadm --remove /dev/sde and an add /dev/sde



-- 
Bhasker C V
Secure Mails: 
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


-- 
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/51ca09ff.8080...@unixindia.com



problems with bridge name

2013-05-09 Thread Bhasker C V
Hi all,

 For some reasons, I have chosen the bridge interface name as 'he' in my
previous machine which is running livirt now. I am creating a new machine
so that I can do live migrations using libvirt.


 From wheezy I am seeing that in /etc/network/interfaces, using interface
name as he causes issues. Any other name works but the command

ip link set dev he up

fails if the interface name is he.

???

Has anybody come across this issue ?

Can somebody tell me if there is anything wrong with what I am doing ?


 /etc/network/interfaces

auto he

iface he inet static
address 192.29.240.53
netmask 255.255.255.0
gateway 192.29.240.1
dns-nameservers 192.29.240.1
dns-search uscablehe.net
pre-up brctl addbr he
pre-up brctl addif he eth0
pre-up ifconfig eth0 0


This fails


cyrstalHD with debian

2012-09-03 Thread Bhasker C V

Hi all,


 Its been 2 days since I have tried to compile every flavor of mplayer
(mplayer, mplayer2 with stock ffmpeg and the ffmpeg download from the
ffmpeg site) but none of them are compiling cleanly. It is as-though
mplayer is not being maintained for crystalHD


Coming back to the default debian installation with custom kernel
(3.5.3) I end up in a situation that mplayer jitters for HD video 
(1080p) although windows runs fine and smooth video using the

crystalHD decoder.

I downloaded the drivers from Broadcom site and compiled them for my
system. I get this in the dmesg when the driver is loaded.

[ 7264.855548] Loading crystalhd 3.2.0
[ 7264.855608] Starting Device:0x1615
[ 7264.855665] bar0:0x9080-0x0001  bar2:0x9000-0x0080
[ 7264.856832] i2o_addr:0xc90010a4   Mapped addr:0xc9001130
[ 7264.857821] opening HW
[ 7264.857832] crystalhd_hw_open: setting up functions, device = Flea
[ 7264.936173] Opening HW. hw:0x880070cfcc00, hw-adp:0x8800629acb80
[ 7264.936182] Closing HW


Despite this the stock mplayer has issues from what I can see in the
below command output.

my lspci output has this

01:00.0 Multimedia controller: Broadcom Corporation BCM70015 Video 
Decoder [Crystal HD]


$ /usr/bin/mplayer -vc help  | grep -i crystal
ffmpeg2crystalhd ffmpegworking   FFmpeg MPEG-2 (CrystalHD)  
[mpeg2_crystalhd]
ffdivxcrystalhd ffmpegproblems  FFmpeg DivX ;-) (MSMPEG-4 v3) 
(CrystalHD)  [msmpeg4_crystalhd]
ffwmv3crystalhd ffmpegproblems  FFmpeg WMV3/WMV9 (CrystalHD)  
[wmv3_crystalhd]

ffvc1crystalhd ffmpegproblems  FFmpeg WVC1 (CrystalHD)  [vc1_crystalhd]
ffh264crystalhd ffmpegworking   FFmpeg H.264 (CrystalHD)  
[h264_crystalhd]
ffodivxcrystalhd ffmpegworking   FFmpeg MPEG-4,DIVX-4/5 (CrystalHD)  
[mpeg4_crystalhd]



Has anyone got HD video smoothly running on a Atom N550 based system
which has a crystalHD decoder in it ?  Any help will be appreciated. 
Thanking in advance.



Debian version and other information
$ cat /etc/debian_version
wheezy/sid
$ uname -r
3.5.3-bcv

it is running x86_64 architecture kernel and system.


[PS: Please also include my mail address (reply-all) on the reply]

--
Bhasker C V
Secure Mails:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


--
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/5044c4ce.5020...@unixindia.com



IRQ conflict IRQ0 network card.

2012-08-16 Thread Bhasker C V
Hi,

 I have a old PC (AMD athelon 3000+) which has an onboard network card
(gige-tg3) kernel 3.5.0 debian squeeze.

03:16.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S
[Rhine-III] (rev 86)


 When I do an ifconfig eth1 up (eth0 is another external card) I get
this error


[  408.536851] genirq: Flags mismatch irq 0. 0080 (eth1) vs.
00015a20 (timer)

I tried to google for this but could not get any good fix information
for this issue. The card is not working as of now but was working fine
with FreeBSD kernel.

Has anyone encountered this before


I have tried hpet=none (just to score off the hpet IRQ and this card IRQ
clash)
I have tried pci=biosirq

When I load the driver these are the messages

[  803.569255] tg3.c:v3.123 (March 21, 2012)
[  803.631887] tg3 :02:00.0: eth1: Tigon3 [partno(BCM95789) rev
4101] (PCI Express) MAC address 00:30:1b:b9:d5:e3
[  803.631895] tg3 :02:00.0: eth1: attached PHY is 5750
(10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
[  803.631899] tg3 :02:00.0: eth1: RXcsums[1] LinkChgREG[0] MIirq[0]
ASF[0] TSOcap[1]
[  803.631903] tg3 :02:00.0: eth1: dma_rwctrl[7618] dma_mask[64-bit]

When I do a ifconfig up I get this message

[  823.525509] genirq: Flags mismatch irq 0. 0080 (eth1) vs.
00015a20 (timer)


IF anyone has got an experience dealing with this issue can you give me
inputs please ?

thanks

-- 
Bhasker C V
Secure Mails:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


-- 
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/502ca944.4040...@unixindia.com



Re: Re: IRQ conflict IRQ0 network card.

2012-08-16 Thread Bhasker C V
Got this working.
The problem was local APIC was not enabled in the bios. Once enabled
everything started to fall in place.

thanks all for your inputs and help

On Thu, 16 Aug 2012 09:03:16 +0100, Bhasker C V wrote:

  I have a old PC (AMD athelon 3000+) which has an onboard network card
 (gige-tg3) kernel 3.5.0 debian squeeze.

Have you tried with Debian stock kernel (2.6.32) or the backported one
(3.2)? :-?

 03:16.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S
 [Rhine-III] (rev 86)


  When I do an ifconfig eth1 up (eth0 is another external card) I get
 this error


 [  408.536851] genirq: Flags mismatch irq 0. 0080 (eth1) vs.
 00015a20 (timer)

Is the network card working despite the error? I mean, kernel can be very
verbose but some messages are also harmless, just informative.
 
 I tried to google for this but could not get any good fix information
 for this issue. The card is not working as of now but was working fine
 with FreeBSD kernel.

Ah, then the problem is for real :-(

 Has anyone encountered this before

Google suggests the message comes from kernel 3.5.0, I would look for any
specific patch that solves this, if any.

 I have tried hpet=none (just to score off the hpet IRQ and this card IRQ
 clash)
 I have tried pci=biosirq

 When I load the driver these are the messages

 [  803.569255] tg3.c:v3.123 (March 21, 2012)
 [  803.631887] tg3 :02:00.0: eth1: Tigon3 [partno(BCM95789) rev
4101] (PCI Express) MAC address 00:30:1b:b9:d5:e3
 [  803.631895] tg3 :02:00.0: eth1: attached PHY is 5750
(10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
 [  803.631899] tg3 :02:00.0: eth1: RXcsums[1] LinkChgREG[0]
MIirq[0] ASF[0] TSOcap[1]
 [  803.631903] tg3 :02:00.0: eth1: dma_rwctrl[7618]
dma_mask[64-bit]

The card seems to be properly detected :-?

 When I do a ifconfig up I get this message

 [  823.525509] genirq: Flags mismatch irq 0. 0080 (eth1) vs.
00015a20 (timer)

What's the full output of ifconfig eth1?

Greetings,

-- 
Camaleón

-- 
Bhasker C V
To feel rich count all things you have in life that money can't buy.
Secure mails:
https://keyserver.pgp.com/vkd/DownloadKey.event?keyid=0x524E35A193ABFB8E


-- 
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/502d5b9b.70...@unixindia.com



USB mounts not presistent

2012-07-06 Thread Bhasker C V
Hi all,

 In the latest wheezy install of debian (K 3.2.0-2-amd64) I am finding
that unlike before, when a USB disk (especially a USB external 2.5
harddisk) is mounted, it is not persistent after a suspend resume.
Has anyone faced this in wheezy or am I missing anything here ?

The same is happening with the case of cryptsetup devices using USB
where the dm-crypt device mapper mapping is still present but the USB
device link is dead !

-- 
Bhasker C V
Secure Mails:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


-- 
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/4ff73a29.2090...@unixindia.com



BD-R not getting finalized

2012-05-21 Thread Bhasker C V
Hi all,

 This is the second BD-R where growisofs fails during the last stage of
finalizing the disk
 I am using a USB external writer but I do not see any USB related
errors in the kernel.

 The end snippet is below


21458026496/21474836480 (99.9%) @1.3x, remaining 0:03 RBU  50.1% UBU  82.8%
builtin_dd: 10485760*2KB out @ average 1.2x4390KBps
/dev/sr1: flushing cache
/dev/sr1: closing track
/dev/sr1: closing session
:-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]: Input/output
error
/dev/sr1: reloading tray

I am not trying to rule out a possibility of error in the BD-R media but
2 in a row is something which makes me suspect factors other than the media

The media is a single layer Maxell BD-R (25G) and I am writing a file
iso 20GB long (mostly containing my backup data)
Has anyone come across this before ?

Recorder is
---

Detected CD-R drive: /dev/sr1
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   :
Vendor_info: 'Optiarc '
Identification : 'BD RW BD-5730S  '
Revision   : '1.02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
---

command is
---
sudo growisofs -Z /dev/sr1=./HOME.iso
---

-- 
Bhasker C V
Secure Mails: 
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


-- 
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/4fbab586.5070...@unixindia.com



Reading luks DVDs using cryptsetup

2012-05-21 Thread Bhasker C V
Hi,
 
   I have been using DVD+RW disks for storing data which are  luks
encrypted flat files.
   I have been successful in future with the below command but in the
newer version this fails with the error as pasted below. Is this a bug or
 was this deliberately introduced ? Can someone share some info on this
please ?


$ sudo cryptsetup luksOpen /dev/sr1 dsk --key-file ./key
device-mapper: reload ioctl failed: Invalid argument
$ sudo file -s /dev/sr1
/dev/sr1: sticky LUKS encrypted file, ver 1 [aes, cbc-essiv:sha256,
sha1] UUID: ...
$ cryptsetup --version
cryptsetup 1.4.1


Where /dev/sr1 is the dvd-rom drive with the disk containing the  raw
flat luks file written using growisofs


whereas in cryptsetup version 1.1.3 (old etch/squeeeze) this worked
perfectly well.

-- 
Bhasker C V
Secure Mails: 
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


-- 
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/4fbab9d9.8050...@unixindia.com



Issues with fresh debian wheezy with libvirt/kvm :- help please

2012-04-21 Thread Bhasker C V
/emulator
disk type='file' device='disk'
  driver name='qemu' type='raw'/
  source file='/VIRT/disks/DEBIAN'/
  target dev='sda' bus='scsi'/
  alias name='scsi0-0-0'/
  address type='drive' controller='0' bus='0' unit='0'/
/disk
disk type='block' device='cdrom'
  driver name='qemu' type='raw'/
  target dev='hdc' bus='ide'/
  readonly/
  alias name='ide0-1-0'/
  address type='drive' controller='0' bus='1' unit='0'/
/disk
controller type='scsi' index='0'
  alias name='scsi0'/
  address type='pci' domain='0x' bus='0x00' slot='0x04'
function='0x0'/
/controller
controller type='ide' index='0'
  alias name='ide0'/
  address type='pci' domain='0x' bus='0x00' slot='0x01'
function='0x1'/
/controller
interface type='bridge'
  mac address='52:54:00:43:23:b7'/
  source bridge='virt'/
  target dev='vnet0'/
  model type='e1000'/
  alias name='net0'/
  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/
/interface
serial type='pty'
  source path='/dev/pts/4'/
  target port='0'/
  alias name='serial0'/
/serial
console type='pty' tty='/dev/pts/4'
  source path='/dev/pts/4'/
  target type='serial' port='0'/
  alias name='serial0'/
/console
input type='mouse' bus='ps2'/
graphics type='vnc' port='5900' autoport='yes'/
video
  model type='cirrus' vram='9216' heads='1'/
  alias name='video0'/
  address type='pci' domain='0x' bus='0x00' slot='0x02'
function='0x0'/
/video
memballoon model='virtio'
  alias name='balloon0'/
  address type='pci' domain='0x' bus='0x00' slot='0x05'
function='0x0'/
/memballoon
  /devices
/domain

root@virt:~# lsmod | grep kvm
kvm_intel 113008  4
kvm   286070  1 kvm_intel

--



-- 
Bhasker C V
Secure Mails:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4D05FEEC54E47413


-- 
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/4f929ba7.2090...@unixindia.com



Help needed please with luks volume

2012-04-01 Thread Bhasker C V
Hi all

 Sorry for the cross-list posting; I think this will help.

  I have a luks formatted volume and on debian this volume just stopped
working after a  dist-upgrade
 The error reported is as below


$ sudo cryptsetup luksOpen /dev/sdc dsk
LUKS keyslot 6 is invalid.
LUKS keyslot 7 is invalid.
$ cryptsetup --version
cryptsetup 1.4.1
$ uname -a
Linux bcv 3.2.9 #1 SMP Sat Mar 10 20:36:56 GMT 2012 x86_64 GNU/Linux

Whereas when used in an older version (in my office) this disk works
perfectly fine and I am able to view data.
This home system of mine running debian with cryptsetup version as above
has a problem and so I am not able to
take the data out wheras cryptsetup version cryptsetup 1.0.6 (which runs
kernel 2.6.39-rc6 ) works perfectly okay.

I am stuck with not able to see my private data at home.

Can someone help please ? Or is this a bug introduced in the newer
versions ?

thanks

-- 
Bhasker C V


-- 
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/4f78a7d6.2000...@unixindia.com



Clipboard issues

2012-01-24 Thread bhasker

Hi all,

  I am seeing this issue on my debian wheezy/sid. The clipboard contents 
are disappearing when the window is closed. Can someone help me please if 
they have to faced this issue ?


 Steps:
open any window application (even xterm )
Mark the contents of the window (which is copying )

a) Close this window and open another window and try to paste the 
copied text. The copied text has disappeared and last text is remembered 
and pasted!

b) before closing the window if you try to paste the paste works fine.

thanks all


--
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/alpine.deb.1.10.1201240811080.11...@server.uk.unixindia.com



The PREROUTING or the INPUT (iptables)

2011-02-12 Thread Bhasker C V

Hi all,

 I am asking 2 questions in this and apologies if this is a bit too much 
in a single mail.


Q1)
 I came to understand that the first rule to take the hit is the 
PREROUTING nat table (after the mangle). So in case I want to do a DNAT of 
input packets to one of the interfaces in another machine on the same 
network as the router, then, I can apply a DNAT rule in the PREROUTING. 
But if I want to also select that the packet must be DNAT'ed only if
the input is from a specific ip address, then applying the DROP rule for 
'anything other-than' type of packets is not effective in the INPUT chain 
since the packet traverses the routing decision and goes into the FORWARD 
chain and goes outgress...


So out of many experts here, I just wanted to take an advice on where to 
keep the DROP/REJECT firewall rules ? Is it in the PREROUGING or the 
INPUT? If I keep it at INPUT then the packets which needs to be DNAT'ed 
will traverse bypassing the INPUT rule.


also,

Q2)
 I was guessing from the man pages of iptables that I can give multiple 
source ip addresses in a single stretch by seperating them with a ',' . I 
couldnt apparently do it, and  below is the command line I used. Could 
someone point me on what is the mistake I am doing please ?


iptables -A INPUT ! -s 1.1.1.1,1.1.1.2 -j ACCEPT

This command is trying to resolve 1.1.1.1,1.1.1.2 ignoring the ',' in the 
ip addresses taking this as a complete name.


---
root@mac1:/# iptables -A INPUT ! -s 1.1.1.1,1.1.1.2 -j ACCEPT
iptables v1.4.2: host/network `1.1.1.1,1.1.1.2' not found
Try `iptables -h' or 'iptables --help' for more information.
---


--
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/alpine.deb.1.10.110218160.12...@server.uk.unixindia.com



Re: The PREROUTING or the INPUT (iptables)

2011-02-12 Thread Bhasker C V

Thanks Steven for the reply.

On Sun, 13 Feb 2011, Steven wrote:


Hi

On Sat, 2011-02-12 at 22:39 +, Bhasker C V wrote:

Hi all,

  I am asking 2 questions in this and apologies if this is a bit too much
in a single mail.

Q1)
  I came to understand that the first rule to take the hit is the
PREROUTING nat table (after the mangle). So in case I want to do a DNAT of
input packets to one of the interfaces in another machine on the same
network as the router, then, I can apply a DNAT rule in the PREROUTING.
But if I want to also select that the packet must be DNAT'ed only if
the input is from a specific ip address, then applying the DROP rule for
'anything other-than' type of packets is not effective in the INPUT chain
since the packet traverses the routing decision and goes into the FORWARD
chain and goes outgress...

So out of many experts here, I just wanted to take an advice on where to
keep the DROP/REJECT firewall rules ? Is it in the PREROUGING or the
INPUT? If I keep it at INPUT then the packets which needs to be DNAT'ed
will traverse bypassing the INPUT rule.


What I do is use the PREROUTING table to set up the general forwarding,
and use the FORWARDING and INPUT tables to actually allow or block
traffic. A rule for PREROUTING could be this:
iptables -t nat -A PREROUTING -i $EXTIF -p tcp -d $EXTIP -m multiport
--destination-port 20,21,22,80 -j DNAT --to-destination $WEBSERVER


So if I am blocking an IP from entering, I have to do it both in the input 
chain and also in the FORWARDING chain so that wherever it gets hit, it 
will be dropped. Thanks I will do the same


In this case forwarding ftp, ssh and http ports.
The forwarding and input tables should be used to block unwanted traffic
(or allow wanted traffic).

iptables -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT
allows everything from outside to be forwarded to the internal lan in
this case.

An advice is to limit the rules to the smallest possible match, not
allowing anything to slip by that was unintended.
Yes I usually allow the needed IPs and block all others in a plain DROP 
rule. Thanks again.




also,

Q2)
  I was guessing from the man pages of iptables that I can give multiple
source ip addresses in a single stretch by seperating them with a ',' . I
couldnt apparently do it, and  below is the command line I used. Could
someone point me on what is the mistake I am doing please ?

iptables -A INPUT ! -s 1.1.1.1,1.1.1.2 -j ACCEPT

This command is trying to resolve 1.1.1.1,1.1.1.2 ignoring the ',' in the
ip addresses taking this as a complete name.


Perhaps you are looking for the iprange module?
iptables -m iprange --src-range 192.168.1.1-192.168.1.254 -j ACCEPT
That allows you to specify a range of ip's.

Using the -s argument for source ip's, you can only give a single
address, however, it is possible to define a complete subnet like this:
iptables -s 192.168.1.0/24 -j ACCEPT
In other cases you'd need 2 separate rules.



---
root@mac1:/# iptables -A INPUT ! -s 1.1.1.1,1.1.1.2 -j ACCEPT
iptables v1.4.2: host/network `1.1.1.1,1.1.1.2' not found
Try `iptables -h' or 'iptables --help' for more information.
---




Kind regards,
Steven



--
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/1297554772.6502.21.ca...@pc-steven.lan





--
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/alpine.deb.1.10.1102130006460.12...@server.uk.unixindia.com



Re: How do I set up compiz ? No xorg.conf anymore ?

2010-12-12 Thread Bhasker C V

Shirish,

 Can you try X -configure
 That will give you a base xorg.conf.new with auto-detected values (this 
file will be present in your home directory (/root/xorg.conf.new if you 
are running this as command as root)


 You can copy it to /etc/X11 after backing up the old file in that location (if 
any)
 After this, try to you can install compiz and do

 compiz --replace

 If that does not work, it would start giving out messages which you can google 
out
 and start fixing it...


On Sun, 12 Dec 2010, shirish शिरीष wrote:


I put my /var/log/Xorg.0.log at http://paste.debian.net/102188/

Also attaching it just in case.

Confused about which 'Module' it is loading , anyway to know that ?

Also why is this Logitech Mouse giving all those errors ? It also
works weirdly sometimes at my end.
--
 Regards,
 Shirish Agarwal  शिरीष अग्रवाल
 My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17


Re: Continue without install grub (y/n) confusion

2010-10-19 Thread Bhasker C V



On Mon, 18 Oct 2010, Andrei Popescu wrote:


On Lu, 18 oct 10, 14:46:23, Bhasker C V wrote:

Hi,

  Somewhere during the end of the installation there is a question
 Continue without installing (yes/no)
 This I assume is if I choose 'Yes' then Grub will not be installed
and when i choose 'No' grub will be installed. But when i choose no,
the installer keeps asking the saem question again and again. May be
this question needs to be re-phrased as Install grub (y/n) ?


And no error message? Check also the console (Ctrl+Alt+F4), use Alt+F5
to return to the install.
The console at F4 does not show error per-say but says that grub is not 
installed and pressing yes does the trick and installs it. But I jut 
wanted to point out that the question asked and task performed are not in 
sync. Either the yes/no must be toggled of their tasks or the question 
must be re-phrased.




Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic




--
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/alpine.deb.2.00.1010190845140.7...@server.uk.unixindia.com



Continue without install grub (y/n) confusion

2010-10-18 Thread Bhasker C V

Hi,

  Somewhere during the end of the installation there is a question
 Continue without installing (yes/no)
 This I assume is if I choose 'Yes' then Grub will not be installed and 
when i choose 'No' grub will be installed. But when i choose no, the 
installer keeps asking the saem question again and again. May be this 
question needs to be re-phrased as Install grub (y/n) ?





--
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/alpine.deb.2.00.1010181444250.24...@server.uk.unixindia.com



Re: Where is /boot/grub/menu.lst ?

2010-09-21 Thread Bhasker C V

The menu.lst is now changed in grub2 as grub.cfg
If you are compiling your kernel and want to give non-standard naming 
convention to the kernel and the initrd files of your kernel , please

edit /boot/grub/grub.cfg to add your kernel to the boot loader



On Tue, 21 Sep 2010, Mathieu Malaterre wrote:


Hi,

 I have just finished installing debian (testing installer). During
installation d-i properly reported finding Vista. However after
reboot, there was no option in grub for it.
 I then followed instructions from:
http://www.debian.org/releases/testing/amd64/ch05s01.html.en#boot-initrd
 But I cannot find the file  /boot/grub/menu.lst

Is there another more up to date documentation ?

Thanks !
--
Mathieu


--
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/aanlktinwwe5y8v=rtenxbppwqdn1roxf4gjzekenx...@mail.gmail.com



Regards

Bhasker C V
Registered linux user #306349


--
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/alpine.deb.2.00.1009211404540.15...@server.uk.unixindia.com



Re: Backing up email to a CD

2010-09-06 Thread Bhasker C V


If the tool you are looking for is to do a mirror of all the mails from 
IMAP erver to your local disk, then, toy can look at this


http://freshmeat.net/projects/imapsync/

This will create a copy of the complete mails in all your folders in the 
imap server to your disk so that you can later copy them into a DVD with 
the burner of your choice (i particularly like mkisofs and 
growisofs/cdrecord appropriately)


In case it is pop, then it is easy. Use the mail folders present in the
client machine which will contain all the mails.


On Sat, 4 Sep 2010, James Stuckey wrote:


Hi, I asked a question a week or so ago about backing up e-mail. What I meant 
was that I wanted
to back it up to a CD. The responses I got talked about backing it up to an 
IMAP server. Does
anyone know how to back it up to a CD?




Bhasker C V
Registered linux user #306349
Fedora Ambassador: Bhaslinux



--
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/alpine.deb.2.00.1009061640260.15...@server.uk.unixindia.com



kvm Vs qemu-kvm Vs qemu -enable-kvm

2010-08-21 Thread Bhasker C V

Hi all,

 I could not google out and get an effective information on what is the 
difference between the above. Can someone explain me please ?


 I am talking here about the user space application only and not the 
kernel module or kqemu.


 I can see kvm is supplied by the kvm developer site which is a modified 
qemu


 I can also see qemu-kvm which is installed in the machines by package 
managers


 I can also see qemu (the original version from qemu.org) has support for kvm 
using the switch -enable-kvm

 In all the 3 cases i can see all of them using the kvm_intel module (mine 
is an intel machine).


 So what is the difference ? Qemu (from the qemu.org by Fabrice Bellard 
) also supports kvm and the kvm site gives its own kvm whcih is also 
modfied qemu. The qemu from the qemu.org site looks better since it has 
support for gigabit ethernet emulation as-well-as it can do USB 2.0 
emulation which I am seeing it lacking in kvm versions (atleast untill 88)


 what to use ? kvm or qemu with -enable-kvm ? is there a difference 
between these two in the subject of performance ?


Bhasker C V
Registered linux user #306349
Fedora Ambassador: Bhaslinux



--
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/alpine.deb.1.10.1008211747010.15...@server.uk.unixindia.com



Re: File system for linux and windows

2010-01-28 Thread Bhasker C V

On Sat, 23 Jan 2010, Bhasker C V wrote:


Camaleón wrote:

On Fri, 22 Jan 2010 22:28:26 +, Bhasker C V wrote:

(...)



  So, the question... what FS to use which is good and reliable in both
windows and also linux  ?

  Is there any file system in linux which can work in windows also
(meaning it can be read and optionally written-to in windows even if the
FS is not in a partition) ?



I wonder if nowadays UDF could be used to deal with this problematic :-?

Tried it. UDF from udftools(1.0.0b2 ) on etch creates an UDF which is not 
working with windows.
I am then left only with an option to use the backup only with linux. For 
data in windows, ntfs partitions
can be mounted in linux and then copied over to the backup disk. The external 
disk can _only_ be used in

linux and not in windows.
Finally found issue was with the SATA to USB converter which has issues 
when used for a long time period and heats up. Once I moved to another USB 
casing things starting falling in place. So, it is a hardware issue



 TO SUMMARISE

 the best way to do it (if i can call it that) would be to use ntfs. Ntfs
supports most of the 'features' you would like to have after using ext2/ext3. 
NTFS (both kernel one and the ntfs-3g) works fine and can be used without 
any data loss issues if properly and carefully used.



Greetings,





--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
Fedora Ambassador: Bhaslinux




Bhasker C V
Registered linux user #306349


File system for linux and windows

2010-01-23 Thread Bhasker C V

Hi,

This may not be debian-specific question, but with the group expertise, 
I think this would be a good reference for

anybody.

I think this question has been debated a lot but still there is no clear
information on what to do.

The question is, if you want to share data between linux and windows 
what is the best file system to use[plus adding

security complexity].

Using Ext3 on windows is good but has its limitations. This does not work
unless the ext3 file system is on a partition. The limitation comes when
using applications like freeOTFE which can read LUKS volumes. The volume 
is mounted as a drive but not detected as a disk

by any of the written
ext3 drivers in windows.

Using NTFS on linux and windows is cool. I have consistently seen that 
when there are large number of files, undoubtably,
ntfs volume goes corrupt and chkdsk simply removes files and creates 
data loss. I do not have any clue on when the FS goes
corrupt (either when writing using linux or when using in windows - Used 
ntfs (kernel), ntfs-3g ... all in vain).


Anyone can recommend VFAT. FAT32 being supported by XP and well 
supported by linux makes it a good candidate. The problem
with FAT32, I guess (correct me if I am wrong), there is no support for 
case-sensitive file names in the FAT32 file system.


So, the question... what FS to use which is good and reliable in both 
windows and also linux  ?


Is there any file system in linux which can work in windows also 
(meaning it can be read and optionally written-to in

windows even if the
FS is not in a partition) ?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




File system for linux and windows

2010-01-23 Thread Bhasker C V

Hi,

 This may not be debian-specific question, but with the group expertise, I 
think this would be a good reference for anybody.


 I think this question has been debated a lot but still there is no clear
information on what to do.

 The question is, if you want to share data between linux and windows what 
is the best file system to use[plus adding security complexity].


 Using Ext3 on windows is good but has its limitations. This does not work
unless the ext3 file system is on a partition. The limitation comes when
using applications like freeOTFE which can read LUKS volumes. The volume 
is mounted as a drive but not detected as a disk by any of the written

ext3 drivers in windows.

 Using NTFS on linux and windows is cool. I have consistently seen that 
when there are large number of files, undoubtably, ntfs volume goes 
corrupt and chkdsk simply removes files and creates data loss. I do not 
have any clue on when the FS goes corrupt (either when writing using linux 
or when using in windows - Used ntfs (kernel), ntfs-3g ... all in vain).


 Anyone can recommend VFAT. FAT32 being supported by XP and well supported 
by linux makes it a good candidate. The problem with FAT32, I guess 
(correct me if I am wrong), there is no support for case-sensitive file 
names in the FAT32 file system.


 So, the question... what FS to use which is good and reliable in both 
windows and also linux  ?


 Is there any file system in linux which can work in windows also 
(meaning it can be read and optionally written-to in windows even if the

FS is not in a partition) ?


Bhasker C V
Registered linux user #306349



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Unable to start tightvncserver

2010-01-23 Thread Bhasker C V

On Sat, 23 Jan 2010, Foss User wrote:


On Sat, Jan 23, 2010 at 3:03 AM, Eric Gerlach
egerl...@feds.uwaterloo.ca wrote:

On Fri, Jan 22, 2010 at 12:07:57AM +0530, Foss User wrote:

foss...@squeeze:~$ ps -aef | grep 4847
fossist     4987  3680  0 00:02 pts/3    00:00:00 grep 4847

foss...@squeeze:~$ netstat -na | grep tcp | grep 59
foss...@squeeze:~$


If you run the ps command again at this point, is it still running (btw, pgrep
is helpful for this type of command)?  Have you check the vncserver logs (I
can't recall off the top of my head where they are... maybe ~/.vnc)?  I assume
you have network interfaces up and running.


Yes, I have included the VNC server logs in my original post. If you
see in the logs, it is unable to find some font directories and thus
ignoring those paths. Could it be a reason for the problem?

Here are the logs again for your convenience:

foss...@squeeze:~$ cat .vnc/squeeze\:1.log
22/01/10 00:01:33 Xvnc version TightVNC-1.3.9
22/01/10 00:01:33 Copyright (C) 2000-2007 TightVNC Group
22/01/10 00:01:33 Copyright (C) 1999 ATT Laboratories Cambridge
22/01/10 00:01:33 All Rights Reserved.
22/01/10 00:01:33 See http://www.tightvnc.com/ for information on TightVNC
22/01/10 00:01:33 Desktop name 'X' (squeeze:1)
22/01/10 00:01:33 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
22/01/10 00:01:33 Listening for VNC connections on TCP port 5901
Font directory '/usr/X11R6/lib/X11/fonts/misc' not found - ignoring
Font directory '/usr/share/fonts/X11/cyrillic' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/cyrillic' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/:unscaled' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi/:unscaled' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Type1' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi' not found - ignoring

Seeing this, are the font directories installed properly ?
If yes, I could remember that there was an issue with starting vnc on 
fedora which could be fixed by finding the 'fixed' font directory and 
passing the name of that directory as an arguement to the tightvnc server

something like

  [tight]vncserver -fp path  :1





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bhasker C V
Registered linux user #306349
Fedora Ambassador: Bhaslinux


Re: File system for linux and windows

2010-01-23 Thread Bhasker C V

Nick Douma wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 23-1-2010 9:13, Bhasker C V wrote:
  

Hi,

This may not be debian-specific question, but with the group expertise,
I think this would be a good reference for
anybody.

I think this question has been debated a lot but still there is no clear
information on what to do.

The question is, if you want to share data between linux and windows
what is the best file system to use[plus adding
security complexity].



I have two 1TB drives, both with two partitions on them. One drive has
two EXT3 partitions, the other two NTFS.

  

Using Ext3 on windows is good but has its limitations. This does not work
unless the ext3 file system is on a partition. The limitation comes when
using applications like freeOTFE which can read LUKS volumes. The volume
is mounted as a drive but not detected as a disk
by any of the written
ext3 drivers in windows.



I would expect that the problem does not occur when the encrypted
partition is NTFS.

  

Using NTFS on linux and windows is cool. I have consistently seen that
when there are large number of files, undoubtably,
ntfs volume goes corrupt and chkdsk simply removes files and creates
data loss. I do not have any clue on when the FS goes
corrupt (either when writing using linux or when using in windows - Used
ntfs (kernel), ntfs-3g ... all in vain).



I have never had a corrupted NTFS partition from using it with ntfs-3g.
I've been using the setup I described above for years now, and the NTFS
partitions are used intensively on both Windows and Linux as download
partitions (usenet, torrents, etc).
  
I think this is the near best solution. This is the 3rd time I am trying 
to capture all data (around 10,000 files)
from my linux box into the luks ntfs partition. Everything works fine. 
There is no file corruption. But it all
starts to cruble the moment you use chkdsk. Chkdsk starts deleting lots 
of files and says they are corrupt
and then on the next run it salvages files saying they are orphaned. On 
total, I lose a lot of files.
  

Anyone can recommend VFAT. FAT32 being supported by XP and well
supported by linux makes it a good candidate. The problem
with FAT32, I guess (correct me if I am wrong), there is no support for
case-sensitive file names in the FAT32 file system.



Don't expect NTFS to be case-sensitive either when using it with
Windows. I had two identically named folders, only with a single letter
in a different case. Windows could not distinguish between the two folders.

I would not use FAT32 if you didn't have to. It fragments like mad, and
has no built in journaling to protect from data loss in case of a power
outage.

  

So, the question... what FS to use which is good and reliable in both
windows and also linux  ?



Really depends on what OS you are using the most. Using EXT3 means you
lose the security information when using it with Windows. The same with
NTFS and Linux. Both just ignore the information. If this is not an
issue, then I would suggest using NTFS, because Windows supports it
natively, and ntfs-3g is still being developed, unlike the EXT3 drivers
for Windows.

  

Is there any file system in linux which can work in windows also
(meaning it can be read and optionally written-to in
windows even if the
FS is not in a partition) ?




I have no real experience with this, but I have a file-based Truecrypt
partition in NTFS, and use them with both Linux and Windows.

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkta6usACgkQkPq5zKsAFiiTTgCfW59xkr9qesGrjFUoGAJDwC/3
00sAn1Mz2pqWEF0PAsYiYriDYxRODi99
=YDym
-END PGP SIGNATURE-


  



--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
Fedora Ambassador: Bhaslinux


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: File system for linux and windows

2010-01-23 Thread Bhasker C V

Camaleón wrote:

On Fri, 22 Jan 2010 22:28:26 +, Bhasker C V wrote:

(...)

  

  So, the question... what FS to use which is good and reliable in both
windows and also linux  ?

  Is there any file system in linux which can work in windows also
(meaning it can be read and optionally written-to in windows even if the
FS is not in a partition) ?



I wonder if nowadays UDF could be used to deal with this problematic :-?
  
Tried it. UDF from udftools(1.0.0b2 ) on etch creates an UDF which is 
not working with windows.
I am then left only with an option to use the backup only with linux. 
For data in windows, ntfs partitions
can be mounted in linux and then copied over to the backup disk. The 
external disk can _only_ be used in

linux and not in windows.

Greetings,

  



--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
Fedora Ambassador: Bhaslinux


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




ext3 mkfs issues with a fresh file system ?

2010-01-23 Thread Bhasker C V

Hi all,

This is strange.
I created a file system on top of luks and does not have any data yet.
The very first fsck gives an error in the freshly created file system !


$ sudo mke2fs -j /dev/mapper/cryptvol
mke2fs 1.41.2 (02-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
19537920 inodes, 78142677 blocks
3907133 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
2385 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
   4096000, 7962624, 11239424, 2048, 23887872, 71663616

Writing inode tables: done   
Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
$ sudo e2fsck -f -C0 /dev/mapper/cryptvol
e2fsck 1.41.2 (02-Oct-2008)
Superblock has an invalid ext3 journal (inode 8).
Cleary?


--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
Fedora Ambassador: Bhaslinux


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: ext3 mkfs issues with a fresh file system ?

2010-01-23 Thread Bhasker C V

Bhasker C V wrote:

Hi all,

This is strange.
I created a file system on top of luks and does not have any data yet.
The very first fsck gives an error in the freshly created file system !


$ sudo mke2fs -j /dev/mapper/cryptvol
mke2fs 1.41.2 (02-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
19537920 inodes, 78142677 blocks
3907133 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
2385 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 
2654208,

   4096000, 7962624, 11239424, 2048, 23887872, 71663616

Writing inode tables: done   Creating journal 
(32768 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
$ sudo e2fsck -f -C0 /dev/mapper/cryptvol
e2fsck 1.41.2 (02-Oct-2008)
Superblock has an invalid ext3 journal (inode 8).
Cleary?



on etch .
K 2.6.32
ext3:mke2fs 1.41.2 (02-Oct-2008)

--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
Fedora Ambassador: Bhaslinux


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: ext3 mkfs issues with a fresh file system ?

2010-01-23 Thread Bhasker C V

Bhasker C V wrote:

Bhasker C V wrote:

Hi all,

This is strange.
I created a file system on top of luks and does not have any data yet.
The very first fsck gives an error in the freshly created file system !


$ sudo mke2fs -j /dev/mapper/cryptvol
mke2fs 1.41.2 (02-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
19537920 inodes, 78142677 blocks
3907133 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
2385 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 
2654208,

   4096000, 7962624, 11239424, 2048, 23887872, 71663616

Writing inode tables: done   Creating journal 
(32768 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
$ sudo e2fsck -f -C0 /dev/mapper/cryptvol
e2fsck 1.41.2 (02-Oct-2008)
Superblock has an invalid ext3 journal (inode 8).
Cleary?



on etch .
K 2.6.32
ext3:mke2fs 1.41.2 (02-Oct-2008)


hardware issue ... please ignore...

--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
Fedora Ambassador: Bhaslinux


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




  1   2   >