Re: Processors older than Intel Pentium 4

2022-07-21 Thread Bijan Soleymani

On 2022-07-21 02:03, Marco wrote:

Am Wed, 20 Jul 2022 22:11:08 +0300
schrieb Oskar Skog :


When the x32 port becomes official, the only reason (that I can
imagine) to use the i386 port would be for really old computers.


What is the x32 port?
I haven't heard about that yet.


Seems it is a set of ports for 64 bit amd64 and arm64, etc but with 32 
but pointers and integers, so it uses less memory if you have small 
amount of RAM.


On 64 bit machines it would have the same memory usage as i386 and arm32 
but with the extra registers and features that the newer processors 
support.


Something like that.

Bijan



Re: Problem with csh

2022-07-02 Thread Bijan Soleymani

On 2022-07-02 14:24, Greg Wooledge wrote:

On Sat, Jul 02, 2022 at 01:18:08PM -0400, Stephen P. Molnar wrote:

I have one application that I compile which requires the csh shell.




comp@AbNormal:~$ csh
Bad : modifier in $ '/'.
AbNormal:~%

I've never seen this before but the compilation process still worked.

What's going on?


Ask your academia comrades.  Nobody outside of academia will know, 
because

nobody else still uses csh.  For anything.  It's just bad.


Quick Google search shows it is an issue with the syntax of defining 
environment variables:

https://stackoverflow.com/questions/40968061/bad-modifier-in

Bijan



Re: Monitoring which of a list of machines is up

2022-07-02 Thread Bijan Soleymani

On 7/2/2022 2:12 AM, deb...@list.simonhoffmann.net wrote:

https://github.com/louislam/uptime-kuma


This looks good.

I managed to run the docker version.

However the minimum ping/heartbeat interval is 20 seconds. I'd like to 
set it to 1 seconds.


I can't seem to change the setting. (I managed to run bash in the docker 
as root, and install vim, and edit the EditMonitor page and change the 
minimum from 20 to 1, but either that's the wrong file or I can't figure 
out how to restart or rebuild the server).


Bijan



On 2 July 2022 07:44:30 CEST, Bijan Soleymani  wrote:

Hi,

I want to monitor a half dozen machines and have a screen with a green dot for 
those that are up and a red dot for those that are down. For this it's enough 
that they're responding to pings. Half the machines are Linux half are not.

Any suggestions?

Bijan







Monitoring which of a list of machines is up

2022-07-01 Thread Bijan Soleymani

Hi,

I want to monitor a half dozen machines and have a screen with a green 
dot for those that are up and a red dot for those that are down. For 
this it's enough that they're responding to pings. Half the machines are 
Linux half are not.


Any suggestions?

Bijan



Re: Customizing firefox-esr.

2022-06-28 Thread Bijan Soleymani

On 6/28/2022 11:04 AM, Greg Wooledge wrote:

Sadly, Firefox and Chrome no longer behave like regular X applications.
They're written by and for Microsoft Windows users, and they behave
the way an MS Windows user expects.

The concept that anyone would want the original behavior, or that an
option should be offered to the user, is not one that will occur to
these developers.


It would be nice if they would provide a config option for this.

But I don't think this is a windows vs Linux or whatever issue. It's how 
people use browsers.


The average user doesn't type URLs anymore.

The average user wants to go to facebook and instead of typing:

facebook.com

they type facebook

and expect either facebook to open or google to find it for them

If they want yahoo mail, they don't type mail.yahoo.com

They type:

yahoo mail login

And click on the first result.

The only time they care about the URL is to copy and paste it into some 
email or chat program.


I think this is the motivation for the current behavior.

Users want to copy the current URL, or wipe it out and type a new search 
string (not a URL).


Bijan



Re: Proprietary WiFi drivers for live mode

2022-06-25 Thread Bijan Soleymani

On 6/25/2022 5:05 PM, piorunz wrote:

On 25/06/2022 22:01, Bijan Soleymani wrote:


Unfortunately in this case that might not work.

The file that is needed is wl.ko


That's what dmesg says? Can you copy entire line here? 


I think the dmesg output is of the form

[time] wl: ...

I guess between that wl kernel module and the output of lspci you could 
find the package through apt-file and apt-cache.


Bijan


Re: Proprietary WiFi drivers for live mode

2022-06-25 Thread Bijan Soleymani

On 6/25/2022 4:07 PM, piorunz wrote:

Don't walk in the dark. Instead, do the following:
sudo dmesg (in live mode without internet)

Error in red about network adapter will tell you exact name of the file
you need to download on machine with internet.

You do it as follows:
sudo apt update
sudo apt install apt-file
sudo apt-file update
apt-file search filename

where "filename" is exact filename missing from laptop without WiFi. 


Unfortunately in this case that might not work.

The file that is needed is wl.ko

But it is compiled on install of the dkms package.

so:

apt-file search /wl.ko

Doesn't give anything.

You'd have to search for one of the source files:

apt-file search wl_linux.c

bijan@bijan-xps:~$ apt-file search wl_linux.c
bcmwl-kernel-source: /usr/src/bcmwl-6.30.223.271+bdcom/src/wl/sys/wl_linux.c
broadcom-sta-dkms: /usr/src/broadcom-sta-6.30.223.271/src/wl/sys/wl_linux.c

Bijan




Re: Proprietary WiFi drivers for live mode

2022-06-25 Thread Bijan Soleymani

On 6/25/2022 2:40 PM, Bijan Soleymani wrote:


And after that I see:

/lib/modules/5.15.0-25-generic/updates/dkms/wk.ko 


That should be wl.ko

Also once you boot the live cd you can choose:

try ubuntu

then at the ubuntu desktop instead of the sudo apt install 
bcmwl-kernel-source


you can choose additional drivers (from the list of programs in activities)

Bijan





Re: Proprietary WiFi drivers for live mode

2022-06-25 Thread Bijan Soleymani

On 6/25/2022 12:12 PM, Kristijonas Lukas Bukauskas wrote:
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') 
linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

Would these packages be in 11.3.0-live+nonfree image?
I just tried in virtualbox. It looks like broadcmon-sta-dkms wasn't 
available (didn't check all the other packages).

I would really prefer building an image to the USB stick so that I could
use Wi-fi right after booting the system without a need to install
packages every single time (The laptop is used by someone else who isn't
that programming/configuring things/terminal-commands friendly).


If you can find the instructions to make a live CD, you should be able 
to add that module or any necessary utilities.


Although it looks like it is on the ubuntu 22.04 install/live CD as package:

sudo apt install bcmwl-kernel-source

(I just booted ubuntu dekstop 22.04 live install/DVD in virtualbox with 
no networking and installed that package)


And after that I see:

/lib/modules/5.15.0-25-generic/updates/dkms/wk.ko

Bijan



Re: Proprietary WiFi drivers for live mode

2022-06-25 Thread Bijan Soleymani

 6/25/2022 11:48 AM, Bijan Soleymani wrote:
You can install packages on the live CD. (sudo apt update, sudo apt 
install, etc.)


Obviously if that wifi adapter is your only networking option on that 
machine, you won't be able to download packages


and will have to make sure they are on the bootable drive or some other 
drive.


Bijan




Re: Proprietary WiFi drivers for live mode

2022-06-25 Thread Bijan Soleymani

On 6/25/2022 11:11 AM, Kristijonas Lukas Bukauskas wrote:

How do I get Wifi working right in live mode? I would prefer Debian, but
any Linux ready-to-use image would work for me.

Thanks for any help!


You can install packages on the live CD. (sudo apt update, sudo apt 
install, etc.)


Whatever actions are required to get it to work on a full install you 
can do on the live CD (assuming you have enough RAM to hold stuff on 
ramdisk I guess).


As long as you don't need to reboot (which you shouldn't to load a 
kernel module) you should be fine.


Bijan



Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani

On 6/24/2022 2:24 PM, David Wright wrote:

This strikes me as a nightmare waiting to happen.

There was probably a similar feeling when .deb and dpkg and apt rolled out.

I think you made this up. I'm sure there were some people who were
happy enough with Slackware when dpkg was evolving, but I never read
of anyone using Debian who would have preferred dpkg not to exist.
As for APT, well, using dselect was getting gradually less able to
cope as the number of packages increased into the thousands.
Effectively, the apt method in dselect came to its rescue. The idea
of dist-upgrading with dselect is "Aaargh".


Thanks!

Sorry, my memory of the state of things around Potato when I started 
with Debian is very hazy. I remember dselect and a lot of fumbling.


Bijan


Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani

On 6/24/2022 10:03 AM, Bijan Soleymani wrote:


To me anytime you need to use su or sudo to do something, you should 
not think it is harmless, no matter how simple or easy. 


Although all that being said, I remember a long time ago getting into a 
situation with apt or dpkg (removing libc or installing an incompatible 
libc), where I got a message, along the lines of:


Warning you're probably about to destroy your system. Please literally type:

Yes, do what I say!

to proceed.

:)

Bijan




Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani

Hi Didier,

On 6/24/2022 4:36 AM, didier gaumet wrote:

Le jeudi 23 juin 2022 à 16:27 -0400, Bijan Soleymani a écrit :

rm wrongfile

how do I undelete?

better put deleted files in the "recycling box" and prompt users on
every deletion by default

rm -rf /

oops!

sigh...

Bijan

Hello,

Please open a new thread when you have a question, do not answer to another 
one's post to ask it :-)

I have never used it but basically just use commands from the trash-cli package 
instead of rm.


I definitely appreciate all the helpful replies I received, but my message was 
mainly a comment and not a request for help.

My point was that Unix/Linux has a lot of sharp edges where the user can hurt 
themselves if not careful.

And when doing system administration tasks it is routine to run commands under 
sudo (and sudo caches the password).

And then if you do:
sudo rm -rf $x/$y and x and y are not defined...

Or you mean to format a bootable usb and use: dd but end up with the wrong 
output device...

Anyways it was meant as a response to op, who said:
On 6/23/2022 12:03 PM, Person the human wrote:


The easier something is to do, the more harmless people will think it 
is, so you're right. Thanks.


To me anytime you need to use su or sudo to do something, you should not think 
it is harmless, no matter how simple or easy.

Bijan



Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani

On 6/24/2022 4:01 AM, Darac Marjal wrote:


On 22/06/2022 18:04, Person the human wrote:
I just want to get everyone's opinion on this before I request it 
from the developers or possibly try to add it myself.


Would it be nice if it was possible to pass a URL to 'apt install' so 
that a package could be installed without first downloading its .deb 
file? I think it's good because it can save time and prevent 
unneeded damage to SSDs. Even if you don't have any info to add, 
please let me know what you think.


Our cousins Ubuntu already have this capability since 7.10: 
https://wiki.ubuntu.com/AptUrl


The fact that this functionality has been available for ~15 years but 
hasn't made it upstream into Debian suggests that Debian is not 
interested in such functionality.


From playing with that it looks like that triggers:

apt install package

(install from the apt sources the user already has, there's syntax to 
trigger a refresh, but I don't think you can add random apt sources or URLs)


I wondered why if Ubuntu has it, practically no 3rd party software 
distributors/developers were using it.


Bijan



Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani

On 6/24/2022 4:48 AM, Jonathan Dowland wrote:

On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote:

How do you handle dependencies where there is a version of the
dependency on the server, and another version on a repo in the user's
sources.list? Multiple nested dependencies?


You don't: just like "apt install ./foo.deb", apt takes its existing
package database, integrates knowledge of foo.deb, and nothing else.
If there are adjacent packages to https://example.com/foo.deb, apt
shouldn't know anything about them, IMHO.


Apparently some packages just add their apt sources to /etc/apt/ during 
the install of their .deb


(I think google chrome does that)



Re: Feature request: install package by passing URL to apt-get

2022-06-23 Thread Bijan Soleymani

On 6/23/2022 12:03 PM, Person the human wrote:
The easier something is to do, the more harmless people will think it 
is, so you're right. Thanks.


rm wrongfile

how do I undelete?

better put deleted files in the "recycling box" and prompt users on 
every deletion by default


rm -rf /

oops!

sigh...

Bijan




Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Bijan Soleymani

On 6/22/2022 5:22 PM, Charles Curley wrote:

On Wed, 22 Jun 2022 16:25:02 -0400
Bijan Soleymani  wrote:


Anyways it would be nice to do:

apt install http://domain/filename.deb

too. Wonder if there's some optimal/convenient way to handle
dependencies if they're on the same server too.

How do you handle dependencies where there is a version of the
dependency on the server, and another version on a repo in the user's
sources.list? Multiple nested dependencies?


I guess the same way you handle multiple apt sources, based on 
dependency versions declared in the deb and the priority of the sources.


Most packages with complex dependencies or that update often make the 
user edit their apt sources anyways.



Don't forget the public key for the packager, if any.


That could be handled as part of the process.

apt could prompt:

have you verified X signing key

do you want to add Y apt source

vs now users cut and paste:

echo "signing-key" >> /etc/apt/some-keyring.txt

echo "apt-source-url" >> /etc/apt/sources.list

from the developer's website


This strikes me as a nightmare waiting to happen.


There was probably a similar feeling when .deb and dpkg and apt rolled out.
Users are going to have dependency issues, etc. If libc breaks on upgrade then 
everything dies, etc.

Bijan



Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Bijan Soleymani

On 6/22/2022 1:04 PM, Person the human wrote:
I just want to get everyone's opinion on this before I request it from 
the developers or possibly try to add it myself.


Would it be nice if it was possible to pass a URL to 'apt install' so 
that a package could be installed without first downloading its .deb 
file? I think it's good because it can save time and prevent 
unneeded damage to SSDs. Even if you don't have any info to ad, please 
let me know what you think.


I like the idea.

I think you can now do:

apt install filename.deb

I feel like a long long time ago you had to do:

dpkg -i filename.deb

and

apt-get install package-name

But maybe apt-get could also install from debs, I just remember always 
using dpkg for invidivual debs.


Anyways it would be nice to do:

apt install http://domain/filename.deb

too. Wonder if there's some optimal/convenient way to handle 
dependencies if they're on the same server too.


Bijan



Re: debian-user message size limit

2022-06-17 Thread Bijan Soleymani

On 2022-06-17 19:01, Gareth Evans wrote:

On 17 Jun 2022, at 23:25, Bijan Soleymani  wrote:

Actually I didn't store the emails from some point in 2004 through part of 2008.

So I can't say when the limit was lowered but at least from 2009 until now 
there hasn't been anything over 101KB (103,424 bytes).

Bijan


Thanks for taking the time and effort to do that and letting us know.
G


No worries! I love extrapolating from data.

Actually it just occurred to me that I scanned the sizes, based on the 
filesizes of the Maildir files on my mail server, and not the actual 
sizes of the messages as sent to the list.


So taking the largest message from 2009-2022 that was:

103,384 bytes long

And finding it on the list archive:

https://marc.info/?l=debian-user=125432953215932

And downloading the raw message the size was actually:

99,925 bytes

So I guess the limit is likely 100 decimal kB. 100,000 bytes.

Bijan



Re: debian-user message size limit

2022-06-17 Thread Bijan Soleymani

On 2022-06-17 18:20, Bijan Soleymani wrote:

On 2022-06-17 11:24, Gareth Evans wrote:

Is there a limit for message size on debian-user?


I checked the data. I have been subscribed since 2003, though I
haven't been active for a lot of that period.


Actually I didn't store the emails from some point in 2004 through part 
of 2008.


So I can't say when the limit was lowered but at least from 2009 until 
now there hasn't been anything over 101KB (103,424 bytes).


Bijan



Re: debian-user message size limit

2022-06-17 Thread Bijan Soleymani

On 2022-06-17 11:24, Gareth Evans wrote:

Is there a limit for message size on debian-user?


I checked the data. I have been subscribed since 2003, though I haven't 
been active for a lot of that period.


In 2003 there were a handful of larger messages (largest 154KB).

But since then there hasn't been anything above 100KB (maybe one or two 
just under 101KB, one in 2009 was 103,384 bytes, this was the largest 
since 2003).


My guess is if in almost 20 years there haven't been any messages 101KB 
and above, that's the limit.


Bijan



Re: [EXTERNAL] Re: Does DEBIAN BullsEye has FIPS package available

2022-06-16 Thread Bijan Soleymani

On 2022-06-15 18:08, Dan Ritter wrote:

Tapas Das wrote:

Dan,

On Redhat Linux, to enable FIPS, FIPS package is available
	 https://access.redhat.com/discussions/3293631 ==> Explains how 
to validate if FIPS is enabled on Redhat Linux


I am looking for something like that, whereby I can install a package 
and enable FIPS on Debian.


No, if this is important to you, your deployment system should
ensure that the  boot system passes fips=1 to the kernel.

I'm not sure why you would need a package for that; it's a
configuration item that only makes sense if you set it at boot
time.


There may be user space components too. I don't know if Debian still 
ships with openssl or another SSL library now but openssl specifically 
can be compiled in some FIPS compatibility mode.


Bijan



Re: Printing the old way

2022-06-14 Thread Bijan Soleymani

On 6/14/2022 4:59 PM, pa...@quillandmouse.com wrote:

Folks:

Back in the dark days of early Linux, before CUPS, we printed with
printers all the time. There was an infrastructure for doing this. Does
anyone remember how that worked? As in, what packages were needed, etc.?


If you want to do this for practical reasons and not for nostalgia's sake then 
you can make a RAW spool/queue printer in CUPS. And then use the command line 
cups command as lp/lpr.

As in the olden days you'll have to make sure what you're sending to the 
printer is in some format it understands.

Unless you have a really weird printer or printer setup cthough you're better 
off having cups to the conversion to printer format for you.

https://stackoverflow.com/questions/26329186/creating-a-raw-printer-queue-in-cups-host-and-adding-them-through-cups-client

https://www.cups.org/doc/options.html

Bijan



Re: user perms

2022-06-13 Thread Bijan Soleymani



On 6/13/2022 2:33 PM, Greg Wooledge wrote:

On Mon, Jun 13, 2022 at 01:56:12PM -0400, gene heskett wrote:

I appear as user 1000 seem to be stuck behind some sort of a permissions
wall.

SHOW.  US.

No need to shout in all caps.

Why the hell

no need for language

You're a goddamned 20+ year Linux veteran.  You should be able to handle
something as ridiculously simple as this.

again language and personal attack

I just got an email saying there's a FAQ and a code of conduct.

Bijan



Re: How should learning to program in c++ be approached, if learning objectives are sought to be customised?

2022-06-13 Thread Bijan Soleymani

On 6/13/2022 1:57 AM, Bijan Soleymani wrote:
So again your choices in practice are assembly, C, a subset of C++ 
(essentially C + classes, but no standard library and practically no 
templates due to stack limitation), maybe rust or some language you 
design yourself. 


Here's a blog post about kernel drivers on Windows in Rust, turns out 
that just like C++ you can't use the standard library in rust:


https://not-matthias.github.io/posts/kernel-driver-with-rust/

"Rust provides lots of abstractions in thestandard library 
<https://doc.rust-lang.org/std/>which cannot be used in the kernel 
because it uses the Windows API behind the scenes. Thanks to the awesome 
language design, we can remove the standard library by specifying 
the|#![no_std]|attribute in|main.rs|."


The same thing would apply to linux, as there are almost certainly 
usermode/(g)libc calls in the rust standard library that you can't make 
from the kernel.


Bijan


Re: memtest86+ on 12th gen intel

2022-06-13 Thread Bijan Soleymani

On 6/13/2022 12:27 PM, Bijan Soleymani wrote:


Here's a post on the issues with memtest86+ (the free software 
version) and UEFI:


https://askubuntu.com/questions/917961/can-i-boot-memtest86-if-im-using-uefi


Sorry for the spam, looks like they just added UEFI support last week:

https://www.memtest.org/

"Changelog

 * Rewrite code for UEFI 32 & 64 bits"

Bijan


Re: memtest86+ on 12th gen intel

2022-06-13 Thread Bijan Soleymani

On 6/13/2022 12:22 PM, Bijan Soleymani wrote:

https://www.memtest86.com/download.htm


Sorry I didn't realize that version of memtest isn't free software.

Here's a post on the issues with memtest86+ (the free software version) 
and UEFI:


https://askubuntu.com/questions/917961/can-i-boot-memtest86-if-im-using-uefi

Bijan




Re: memtest86+ on 12th gen intel

2022-06-13 Thread Bijan Soleymani

On 6/13/2022 11:47 AM, Ram Ramesh wrote:

I had memtest86+ working just fine on a legacy bullseye install.

However, due to age of the CPU, I recently upgraded to 12th gen 
i3-12100. As part of the upgrade, I also changed over to UEFI boot.


Looks like current Memtest works only with UEFI boot (won't boot otherwise):

https://www.memtest86.com/download.htm

And the legacy version is needed if runing without UEFI (which you 
probably had since you hadn't enabled it before).


I'm guessing the legacy version won't boot with UEFI which is what you 
are seeing.


Bijan



Re: Screen power save in console mode

2022-06-13 Thread Bijan Soleymani

On 2022-06-13 03:49, Jeremy Ardley wrote:

I have a Debain (Armbian) server that does not boot to any form of
window manager, so what is seen on the screen is just the command
console.

What I would like  to do is have the console screen go into screen
power save mode after some period and recover when keyboard or mouse
are used.

Is there a simple way to configure that?


It seems this can be done via setterm command. It might require kernel 
or kernel command line parameter changes depending on what you need to 
do.


This link may be of some help:
https://superuser.com/questions/152347/change-linux-console-screen-blanking-behavior

Bijan



Re: How should learning to program in c++ be approached, if learning objectives are sought to be customised?

2022-06-13 Thread Bijan Soleymani

On 2022-05-30 05:12, Susmita/Rajib wrote:


Could I please be given a little more guidance on the following aspects 
please?:

(1)   exhaustive example codes


All Debian main packages have source code as they are free software.


(2)   object library resources, references, explanations, et al


All Debian main libraries have source code as they are free software.


(3)   Whether Eclipse could be used for c++


Yes, it can.


(4)   Whether Device Drivers and other lower-level programs could be
designed with c++, like they are done in c or assembly level languages
(I am aware that KDE was written in c++, but ...).


Yes with severe limitations as I described in my previous email.


(5)   Whether optimisation tools like valgrind and gdb are available
for c++ also


Yes I have used valgrind and gdb on C++.

However kernel mode debugging (for kernel or device drivers) can't use 
valgrind and needs a special debugger (this exists now for Linux but I 
don't think it did when I started using Linux 20+ years ago).



Please feel free to post any other general guidance and advice please,
considering that you are actually talking to a novice.


My advice is take advantage of the fact that Debian and all its software 
are free software (open source). Grab the code for some program you use 
and compile it then modify it to suit your needs. You will find this 
hard. But software is hard. This is something you need to accept. It is 
not primarily because people have done a bad job writing the software. 
It is reality.


As an intellectual philosophical read I recommend in the beginning was 
the command line by Neal Stephenson.


https://web.archive.org/web/20180218045352/http://www.cryptonomicon.com/beginning.html

To quote the end (apologies for the length):

THE RIGHT PINKY OF GOD


In his book The Life of the Cosmos, which everyone should read, Lee 
Smolin gives the best description I've ever read of how our universe 
emerged from an uncannily precise balancing of different fundamental 
constants. The mass of the proton, the strength of gravity, the range of 
the weak nuclear force, and a few dozen other fundamental constants 
completely determine what sort of universe will emerge from a Big Bang. 
If these values had been even slightly different, the universe would 
have been a vast ocean of tepid gas or a hot knot of plasma or some 
other basically uninteresting thing--a dud, in other words. The only way 
to get a universe that's not a dud--that has stars, heavy elements, 
planets, and life--is to get the basic numbers just right. If there were 
some machine, somewhere, that could spit out universes with randomly 
chosen values for their fundamental constants, then for every universe 
like ours it would produce 10^229 duds.


Though I haven't sat down and run the numbers on it, to me this seems 
comparable to the probability of making a Unix computer do something 
useful by logging into a tty and typing in command lines when you have 
forgotten all of the little options and keywords. Every time your right 
pinky slams that ENTER key, you are making another try. In some cases 
the operating system does nothing. In other cases it wipes out all of 
your files. In most cases it just gives you an error message. In other 
words, you get many duds. But sometimes, if you have it all just right, 
the computer grinds away for a while and then produces something like 
emacs. It actually generates complexity, which is Smolin's criterion for 
interestingness.


Not only that, but it's beginning to look as if, once you get below a 
certain size--way below the level of quarks, down into the realm of 
string theory--the universe can't be described very well by physics as 
it has been practiced since the days of Newton. If you look at a small 
enough scale, you see processes that look almost computational in 
nature.


I think that the message is very clear here: somewhere outside of and 
beyond our universe is an operating system, coded up over incalculable 
spans of time by some kind of hacker-demiurge. The cosmic operating 
system uses a command-line interface. It runs on something like a 
teletype, with lots of noise and heat; punched-out bits flutter down 
into its hopper like drifting stars. The demiurge sits at his teletype, 
pounding out one command line after another, specifying the values of 
fundamental constants of physics:


universe -G 6.672e-11 -e 1.602e-19 -h 6.626e-34 -protonmass 
1.673e-27


and when he's finished typing out the command line, his right pinky 
hesitates above the ENTER key for an aeon or two, wondering what's going 
to happen; then down it comes--and the WHACK you hear is another Big 
Bang.


Now THAT is a cool operating system, and if such a thing were actually 
made available on the Internet (for free, of course) every hacker in the 
world would download it right away and then stay up all night long 
messing with it, spitting out universes right and left. Most of them 
would be pretty dull 

Re: How should learning to program in c++ be approached, if learning objectives are sought to be customised?

2022-06-13 Thread Bijan Soleymani

On 2022-06-13 01:57, Bijan Soleymani wrote:

On 2022-05-30 13:01, Susmita/Rajib wrote:

I was trying to find out if c++ could be used to build device drivers.
You said, "... Linux drivers are written in C, but technically you can
mix languages: use C++ and link it against C ...". But I would request
more specificity here:(a)  if c++ could be used without using any
other programming language to build a device driver. (b)  If it is
practised industrially.


I work on a kernel mode driver for windows. It is written in C++. But
we can't use the C++ standard library, as Windows kernel mode doesn't
support exceptions. I think someone managed to make a version that did
but it never ended up being good enough to catch on.


Sorry this last bit wasn't clear. Someone made a version of the standard 
library that didn't use exceptions. But it wasn't that useful probably 
because of all the other limitations I mentioned.


Also before this I worked on a user space mobile app library. The 
initial version was in Java with only the cryptography done in C and 
accessed via JNI. This was because we started on Android and the server 
was written in Java.


But iOS (iPhones) doesn't run Java, so we had to move the core to C, and 
access that from Java/Kotlin on Android using JNI and from objective 
C/swift on iOS using the standard C interface.


Otherwise the Android and iOS implementations would need to be 
duplicated.


We could have done the core in C++ or objective C, but C had less 
headaches with portability.


Before this I worked on another project in perl (my code) and ruby (an 
existing software component) on Linux but it needed heavy access to OS 
syscalls to monitor file accesses (inotify), and so I had to have a 
C/C++ component that did the file access monitoring that the ruby/perl 
code needed to communicate with.


Bijan



Re: How should learning to program in c++ be approached, if learning objectives are sought to be customised?

2022-06-12 Thread Bijan Soleymani

On 2022-05-30 13:01, Susmita/Rajib wrote:

I was trying to find out if c++ could be used to build device drivers.
You said, "... Linux drivers are written in C, but technically you can
mix languages: use C++ and link it against C ...". But I would request
more specificity here:(a)  if c++ could be used without using any
other programming language to build a device driver. (b)  If it is
practised industrially.


I work on a kernel mode driver for windows. It is written in C++. But we 
can't use the C++ standard library, as Windows kernel mode doesn't 
support exceptions. I think someone managed to make a version that did 
but it never ended up being good enough to catch on.


Also stack space is tiny in kernel mode so you can't put much on the 
stack.


And you can't allocate memory at high IRQ level (when handling 
interrupts or in certain calls you will get from the OS).


Also at the high IRQ levels you can't access paged memory. Because you 
will die if the memory is not paged in (you can't have a page fault).


This means you have to deal with paged and non paged memory specifically 
with intention.


Also all kernel mode OS functions in windows (Linux syscall equivalents 
in windows) are C functions (as are most user mode OS functions in 
windows).


So you are limited to languages that allow you to control allocation 
(paged vs non paged) and deal with a stack size of a few kilobytes. And 
also to deal with CPU physical vs virtual memory vs GPU physical and 
virtual memory (I work on a graphics driver). So that means pointers.


So everything except assembly, C and C++ is out. Maybe rust I don't know 
but I think rust has something to manage allocations and someone would 
have to rewrite that to work in kernel mode and deal with all that.


So again your choices in practice are assembly, C, a subset of C++ 
(essentially C + classes, but no standard library and practically no 
templates due to stack limitation), maybe rust or some language you 
design yourself.


Best wishes,
Bijan



Re: 64 bit not 64

2022-06-12 Thread Bijan Soleymani

On 2022-06-04 18:54, bruce banter wrote:

So on my computer when I am trying to install Debian 64 it keeps on
telling me it cant do it and its because it’s a 32 bit program! Any
reasoning why that might be?



What's the exact message?

Is it in the installer or the bios boot up or in another OS like 
windows?


Also what computer are you trying to install on?

Edit: sorry for the direct mail, I meant to send to the list, my 
mistake!


Bijan



Re: moving dir with lots of files

2022-04-17 Thread Bijan Soleymani

On 2022-04-18 00:16, Adriel Peng wrote:

Hello

I plan to move a dir which has about 0.4 million files to a new 
location. This new location is a network storage.


I will run the command:

nohup mv dir /mnt/disk/newdir

I guess this will take a lot of hours to finish.

My question is, if the process gets an unexpected interruption, what 
will happen and how can I recover it?


Thanks.



If you can afford not to do a move but a copy and then a delete, then I 
would recommend using rsync


rsync will transfer what is missing if interrupted

If there is nothing missing it will finish pretty quickly.

I sync 130GB in 1.4 million files over the internet regularly and if 
there are no changes it take about 20 seconds to finish (the disks are 
fast on both ends).


If there are changes it transfers about as fast as the network can go.

Bijan



Re: Weird printing issue...

2022-04-09 Thread Bijan Soleymani

On 2022-04-09 03:52, nimrod wrote:
Thanks for your advice. Unfortunately I couldn't find any setting about 
Postscript, PCL or such in CUPS, HPLIP and the usual Gnome utilities to 
manage printers.


The only spot where I see something like what you say is from 
Libreoffice printer's details, File / Printer settings / Properties / 
Device / Printer language type. The choice is currently "Automatic: 
PDF", but I can choose also 3 level of Postscript or "Postscript: level 
from driver".


So there are two stages here. One the app (libre office) converts the 
document to postscript or PDF. And two cups converts the PDF or 
postscript to some format your printer understands. It is possible that 
either of these steps fails.


This is why I recommended trying print to file (which default to pdf) 
and seeing if that pdf file prints properly if opened and printed via 
chrome. That way you can tell whether it is stage one or stage two above 
which has an issue. Also I think there must be a cups command line 
command to print pdf and ps files that you could try, if it works in 
chrome, to see if chrome does another level of processing that fixes things.


Bijan



Re: Weird printing issue...

2022-04-09 Thread Bijan Soleymani

On 2022-04-09 03:52, nimrod wrote:
Thanks for your advice. Unfortunately I couldn't find any setting about 
Postscript, PCL or such in CUPS, HPLIP and the usual Gnome utilities to 
manage printers.


The only spot where I see something like what you say is from 
Libreoffice printer's details, File / Printer settings / Properties / 
Device / Printer language type. The choice is currently "Automatic: 
PDF", but I can choose also 3 level of Postscript or "Postscript: level 
from driver".


I guess I should look also in some configuration file.

Best regards.


Hi,

It's been a while since I had to adjust printer settings in cups.

I just checked I think the procedure is:
open:
localhost:631

in a browser on the computer.

Go to the printers tab.

Click modify printer.

Keep the same path to the printer (usb or tcp or whatever)
then click next
keep the same name for the printer click next,
on the 3rd screen there will be a selection of drivers or filters you 
can choose


In my case there are a half dozen options that match my printer, also it 
is possible to supply a .ppd file there which specifies additional settings.


In my case I see some of the options mention PCL, others mention other 
languages or drivers.


I recommend you try the options that match the model number of your 
printer or look on the web for the latest ppd file for your printer.


For example I see on the following possible drivers for my printer:
https://www.openprinting.org/printer/Brother/Brother-HL-2170W

And I think all 5 (possibly with more variations are available on my 
system).


Bijan



Re: Weird printing issue...

2022-04-07 Thread Bijan Soleymani

On 2022-04-07 18:20, nimrod wrote:

Hi,

I'm getting very strange, and ugly, prints with LibreOffice, Evince and 
Atril. You can see what I mean in the linked screenshot below.


The "screen " image shows what I see 
when I open a PDF file, with Evince, Atril, PDFmod and so on. The 
"printed " one shows the ugly 
results when I print the same file. It seems the problem is the 
monospace uppercase "A". But somewhere else the same horrible result 
seems caused by a monospace lowercase "b" in the word "sub".


My guess not knowing anything about your setup is that the printing is 
happening using some print language postscript or the HP one (PCL), and 
the fonts are not communicated properly or missing on the printer, but 
computer thinks they are there, etc.


You can try some experiments. You can print from LibreOffice to a PDF, 
and then print that pdf from a pdf viewer and from chrome (since you can 
print from chrome without issue), and that way narrow down the issue.


The other thing to do is switch your print settings in CUPS or whatever 
the print system is from Postscript to PCL, or vice versa and see if 
that fixes things.


Bijan



Re: Misremembered (was: Re: Stupid question)

2022-02-14 Thread Bijan Soleymani

On 2022-02-14 10:02, rhkra...@gmail.com wrote:

I think I did mis-remember this, and the behavior I described is more like the
behavior of the Debian installer (i.e., it boots an image (with a Linux
kernel)  into RAM to use temporarily for the installation.

I just wanted to try to correct this for posterity.

If anyone can confirm this (both my mistake about grub and my (new)
recollection about the Debian installer, those would be good things.:-)

Sorry for the noise!


Not sure about the Debian installer (except that it does boot and run 
Linux, but not sure it ever switches to another kernel midway), but the 
Grub bootloader is kind of a mini-OS, in that it can read files from 
filesystems (rather than some other bootloaders that read from specific 
sectors/blocks of a disk).


Which is to say if you boot to grub and you are in the grub menu and see 
there is no entry for the particular kernel (or OS) you want, you can 
edit the boot parameters for any menu entry you see and boot the missing 
kernel (or OS) from then and there. (with other bootloaders you'd have 
to boot to the OS or boot from a live CD to modify the boot loader 
parameters).


Bijan



Re: Uninstalling a package removes other essential packages: What is the best course of action?

2022-02-12 Thread Bijan Soleymani

On 2022-02-12 11:03, Stella Ashburne wrote:

What should I do? What is the best course of action?


It seems that basic X windows or GUI apps are compiled with libthai support.

This is probably done in a way that they won't run without it being 
installed (failed to load due to missing library).


If you remove it you probably won't be able to run those programs.

It would seem your options are:
1. Keep libthai installed

2. Remove it the way you are trying to do and lose all those GUI apps 
and libraries


3. Remove it some sneaky that only removes libthai but leaves everything 
else the same, and have things break and or apt/dpkg complain.


Bijan



Re: Request free live CD

2022-02-11 Thread Bijan Soleymani

On 2022-02-10 21:25, Celejar wrote:

I do understand and agree with this, but my point was that we (at least
the more helpful of us) on this list are perfectly willing to freely
give of our time to help others, so why would we (at least those of us
fortunate enough to have disposable income to spare) not be willing to
give of our money as well to help others who need it?


This does bring up two related points:

1. When you give time to help someone else it generally helps you too.

In the sense that if you help out on this mailing list, trying to figure 
out how to help solve other people's problems, you learn about solutions 
that can be helpful to you as well. And you learn more about how systems 
work in general.


If you maintain a package or write free software, it's generally 
packages or software that you yourself would find useful.


When it comes to money, it often does not help you. Burning a live CD 
and mailing it to someone else, involves both time and money but doesn't 
help you.


2. In this specific scenario of live CD, there's an element of the 
saying, give someone a fish and you feed them for a day, teach them how 
to fish and you feed them for a lifetime.


So you send this CD and they run or install the current version of the 
OS. Later on their system breaks down or they get a new one, or they 
want the next version of the OS, and what do they do then?


Bijan



Re: Memory leak

2022-02-11 Thread Bijan Soleymani

On 2022-02-11 14:52, Celejar wrote:

As I mentioned in another post, I do this occasionally, but I'm not
sure how to interpret the results. I just killed firefox; I got back
about 3.5 GB, but the system is still using about 4.8, and Xorg's usage
hasn't changed: ~ 4436M / 3081M / 105M.


Closing Firefox returns 100% of Firefox memory to OS (as long as all the 
processes are killed). I don't know that it would affect Xorg's usage 
though.


A lot of memory in Linux (and other OS's) is allocated to cache/buffers 
to speed things up. As programs use more memory the amount for that goes 
down.


For example on my system now with 16GB I have:
MiB Mem :  16007.9 total,   4564.8 free,
6306.2 used,   5136.9 buff/cache

(with thunderbird, chrome, etc. open).

So 5GB is used for cache and 6GB is used for programs and about 4GB is free.

Bijan



Re: Request free live CD

2022-02-10 Thread Bijan Soleymani

On 2022-02-10 20:05, Celejar wrote:

I'm genuinely curious about this: time and money are both scarce and
precious resources. Why is there an assumption that people will gladly
donate of their time to help others, but not their money? Is it because
the assumption is that the person asking for help should just spend
his own money, but may not be able to solve his problem by spending his
own time?


I think this is the distinction between free speech and free beer (two 
different meanings of the word free in English).


That is the difference between freedom (no restrictions), and something 
being gratis (no cost).


Debian is committed to free software, as in users are free to modify the 
software, and they have access to the source code.


Debian is not a charity that provides free hardware to people who need 
computers.


Since there is not much cost to distributing software online Debian does 
so for free (on their servers and through mirrors), but the important 
goal is that the users who get the software have the freedom to modify it.

See:
https://www.debian.org/social_contract#guidelines

and

https://www.gnu.org/philosophy/free-sw.en.html

(the related point in the Debian Free Software Guidelines that there 
cannot be a fee required to distribute the software, doesn't mean that 
one can't charge a fee (for either a CD or download), but rather that 
one can't put requirements on further redistribution after that)


Bijan



Re: Query

2022-02-07 Thread Bijan Soleymani

On 2022-02-07 10:50, William Lee Valentine wrote:

I am wondering whether a current Debian distribution can be installed
and run on an older Pentium III computer. (I have Debian 11.2 on a DVD.)

The computer is

    Dell Dimension XPS T500: Intel Pentium III processor (Katnai)
    memory: 756 megabytes, running at 500 megahertz
    IDE disc drive: 60 gigabytes
    Debian partition: currently 42 gigabytes
    Debian 6.0: Squeeze

If I install Debian 11.2, will it run on this machine? Will it preserve
the files and directories that I have on Squeeze?


My main worry would be performance if you use GUI applications. I don't 
know what apps you use, but browsers and desktop environments have 
probably gotten real greedy in terms of RAM since Squeeze and <1 GB is a 
very small amount of RAM these days.



I am not subscribed to this mailing list. I would appreciate advices.


I have BCC'd you but please follow your thread on the archives (or via 
one of the news relays):


https://lists.debian.org/debian-user/2022/02/threads.html
and
https://lists.debian.org/debian-user/2022/02/msg00187.html

Bijan



Re: OpenSSH: cause of random kex_exchange_identification errors?

2022-02-02 Thread Bijan Soleymani

On 2022-02-02 09:44, Vincent Lefevre wrote:

In the source, this corresponds to function kex_exchange_identification
in kex.c:

 len = atomicio(read, ssh_packet_get_connection_in(ssh),
 , 1);
 if (len != 1 && errno == EPIPE) {
 error_f("Connection closed by remote host");
 r = SSH_ERR_CONN_CLOSED;
 goto out;
 } else if (len != 1) {
 oerrno = errno;
 error_f("read: %.100s", strerror(errno));
 r = SSH_ERR_SYSTEM_ERROR;
 goto out;
 }

so either with EPIPE or with ECONNRESET, and this apparently occurs
before the exchange of banners.


If you look at the source of atomicio you will see that in this case it 
will do a read() of 1 byte on the file descriptor used for communicating 
with the other side.


atomicio will set errno to EPIPE if 0 bytes are returned on any of the 
reads it does


and it returns the number of bytes read, which will be 0 or 1 in this case.

So the failure modes are 0 bytes read and read didn't return an error 
(EPIPE), or 0 bytes read and read did return an error (read returns -1 
and sets errno to something other than EPIPE).


But I think basically this means that read on the socket fails, or 
basically can't read from the network.


Bijan



Re: One user system.

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 20:01, Nate Bargmann wrote:

I must be the odd one out as I interpreted the OP as having set a root
password but now wanting to remove it so as to have just the main user
set to do root's work and that root can no longer log in directly.  I
hope the OP can clarify!


I guess that would be:
sudo passwd -d

to delete the password

or:
sudo passwd -l

to lock the paassword
(this can be undone later with sudo passwd -u)

Bijan



Re: One user system.

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 14:47, pe...@easthope.ca wrote:

Thanks.  Still a multi-user system.

Whereas puppy linux has one user, root.

To make debian one-user I think of

...


Then proceed as root rather than me.


Oh! Is your goal to only have root? I assumed you wanted to login as 
root, but didn't configure a password for root at setup.


As far as I know there's no option in the standard install to not create 
a user account and only create a root account.


But assuming you have a root password set just remove non-root users:
deluser username

Just keep in mind stuff like ssh isn't configured to let root log in by 
default. (Important in case you're doing this remotely and won't be able 
to login again, without changing the default settings).


I can't think of a case where you'd want to remove all non root users 
though...


Bijan



Re: One user system.

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 13:29, john doe wrote:

If my understanding is correct, you will need to use 'sudo'.



Yes.

sudo passwd

Should allow you so set a password for root.

It will ask for your password first (if you haven't run sudo recently), 
and then new password for root and confirmation of that password.


Bijan



Re: folder compression issue

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 12:17, Bijan Soleymani wrote:

find | xargs stat


Oops that might not work if there are spaces in the filenames/directories.

You can do:
find -print0 | xargs -0 stat

In that case.

Bijan



Re: folder compression issue

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 12:04, Peter Ehlert wrote:

Ideas?


If you want to debug, do a binary search.

Move out half the files and try to compress again until it works. And 
then add back half the files until it fails.



should I file a bug report?


Sure.

Since there's not too many files you can include the output of:

find | xargs stat

Run from that directory in your bug report. That should give the names, 
permissions, etc of all files and directories.


There might be a permission issue or a filename issue.

Bijan



Re: Android apps on Debian

2022-01-30 Thread Bijan Soleymani

On 2022-01-30 21:54, John Hasler wrote:

I have a copy of the app. I'm not going to open a Google Play account.


Keep in mind the xapk/apk I saw online only had the arm64 shared 
libraries. So you'll either need to get an apk with the x86/x86_64/amd64 
shared libraries or add arm64 support to anbox. (there are some pages 
online that describe how to get that to work)


I managed to get the x86 apk since I have installed an x86 emulator. I 
could probably create an x86_64/amd64 image and get the x86_64 apk. I 
don't know which anbox would need or could use.


Bijan



Re: Android apps on Debian

2022-01-30 Thread Bijan Soleymani

On 2022-01-30 21:54, John Hasler wrote:

I have a copy of the app. I'm not going to open a Google Play account.


Oh ok, you can run the emulator without app store or without signing in 
and use adb install the apk to the emulator, in case anbox doesn't work.


Bijan



Re: Android apps on Debian

2022-01-30 Thread Bijan Soleymani

On 2022-01-29 13:29, John Hasler wrote:

Is there a simple way to run Android apps under Debian such as an
emulator?  My Starlink terminal is arriving next week and it would be
convenient to be able to run the Starlink app.  However, I do not have
either an IOS or an Android device.


Hi, don't know how far you got with anbox,

but the android sdk emulator / avd manager / android studio let's you 
create emualtor/AVD images with support for play store built in.


When you create an AVD image there's a column with play store icon for 
the versions that support play store. Looks like there's all pixel 
images up to version 4 support play store.


Steps are easy.
1. Download android studio
2. run android studio
3. open avd manager from tools menu
4. create pixel 4 x86 avd image
5. run the image in the emulator (click the play button next to the 
image name).


This will launch the emulator and you can open the play store and log in.

(I just now wanted to run an android lap on my desktop and laptop, so 
ran into the same issue).


Bijan



Re: Android apps on Debian

2022-01-29 Thread Bijan Soleymani

On 2022-01-29 13:29, John Hasler wrote:

Is there a simple way to run Android apps under Debian such as an
emulator?  My Starlink terminal is arriving next week and it would be
convenient to be able to run the Starlink app.  However, I do not have
either an IOS or an Android device.


Just to go in another direction and answer the original question:

1. Seems the Starlink router has a web interface:
https://www.reddit.com/r/Starlink/comments/of6wab/what_if_you_dont_have_a_cell_phone/

2. You can get an android phone tablet that can run the app between $45 
and $100 (and that's new, you can probably get a used one for 
practically free). Given that I think the Starlink terminal costs $499 
and the service is $99 a month, that may be a better way to go.


Bijan



Re: Android apps on Debian

2022-01-29 Thread Bijan Soleymani

On 2022-01-29 17:57, Bijan Soleymani wrote:
     Now, find the .obb file (usually named as “com.x.obb”) 
within the file and copy it into the location: 
/sdcard/storage/emulated/0/Android/obb/.
     Lastly, install the .apk file. Within a few minutes, you would 
be able to run the file successfully


Just a small correction, I believe in this case you would need to copy 
the sub apks:

config.*.apk

into:
/sdcard/storage/emulated/0/Android/obb/com.starlink.mobile/

Then install:
com.starlink.mobile.apk

from the android emulator file manager.

(Adapter from 
https://techbeasts.com/how-to-manually-install-xapk-files-on-android/ )


Bijan



Re: Android apps on Debian

2022-01-29 Thread Bijan Soleymani




On 2022-01-29 17:38, John Hasler wrote:

Bijan writes:

I don't know if they modify the apks they host but as far as I know
the original apk (from the play store) will be signed by the app
publisher/writer. So if they haven't removed that you can just verify
the signature is from the publisher, etc.


Apkpure says that apps downloaded from their site only work with their
app.  That's right out so I'll have to figure out something else.  At
least I now know how to run the thing under Debian if I can get a copy.
There may also be a way to get by without it.

Thanks.


First their xapk file contains the original app apk (as well the 
original sub apks required by that apk).


Second you can install without any app:
https://www.quora.com/How-can-I-install-Xapk-files-on-an-Android

"
Method 2: Download .XAPK file using File Manager:

Download the .XAPK file on your Android device.
Open file manager and discover the .XAPK file. Rename the 
extension to .zip format.

Extract the .zip file.
Now, find the .obb file (usually named as “com.x.obb”) 
within the file and copy it into the location: 
/sdcard/storage/emulated/0/Android/obb/.
Lastly, install the .apk file. Within a few minutes, you would 
be able to run the file successfully

"

Bijan



Re: Android apps on Debian

2022-01-29 Thread Bijan Soleymani

On 2022-01-29 17:25, Bijan Soleymani wrote:

On 2022-01-29 15:38, John Hasler wrote:

Apkpure has the Starlink app but as I had never heard of them (No reason
to, not having an Android phone) I didn't download it immediately.  Are
they reliable?


I don't know if they modify the apks they host but as far as I know the 
original apk (from the play store) will be signed by the app 
publisher/writer. So if they haven't removed that you can just verify 
the signature is from the publisher, etc.




Just as a follow up, I downloaded the Starlink xapk file from apkpure, 
unzipped it and ran:

apksigner verify --verbose --print-certs "com.starlink.mobile.apk"

This gives:
Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): true
Number of signers: 1
Signer #1 certificate DN: CN=Android, OU=Android, O=Google Inc., 
L=Mountain View, ST=California, C=US
Signer #1 certificate SHA-256 digest: 
cdfba780576f7a4800e2a609726f83f053b51bae6a239003abc16b7f75e9f588

Signer #1 certificate SHA-1 digest: c2b34a5ac1267e5d377eef89d0eb96fcddc1c9f1
Signer #1 certificate MD5 digest: eb2004799f4685bb04e49de3d8ed3f39
Signer #1 key algorithm: RSA
Signer #1 key size (bits): 4096
Signer #1 public key SHA-256 digest: 
a5fd4be5d047beae966c4a68cfa06951a8700e610d84f28b68ab1620a7eca434

Signer #1 public key SHA-1 digest: 324a6a9aa7e418d33bd98a0f81a0ae946d0dde71
Signer #1 public key MD5 digest: a30fdb38ff1050c59800bf83a94a4eb5

With a few files in the META-INF directory not being signed or not 
verifying.


I think the reason it is signed by Google is that the app uses Play app 
signing, where google signs the app on their servers on your behalf. 
That way if you lose your private key, you can change it on your end, 
without breaking app upgrades.


Also the main 64 bit binary apk:
config.arm64_v8a.apk checks out as does the English language config: 
config.en.apk


The only files that won't be signed will be those files from the 
META-INF directory as well as the manifest.json from the top level xapk 
file.


Bijan



Re: Android apps on Debian

2022-01-29 Thread Bijan Soleymani

On 2022-01-29 15:38, John Hasler wrote:

local10 writes:

First, identify the app you want to install, then download it from
apkpure ( https://apkpure.com/ ) or similar sites.


Apkpure has the Starlink app but as I had never heard of them (No reason
to, not having an Android phone) I didn't download it immediately.  Are
they reliable?


I don't know if they modify the apks they host but as far as I know the 
original apk (from the play store) will be signed by the app 
publisher/writer. So if they haven't removed that you can just verify 
the signature is from the publisher, etc.


Bijan



Re: Package name to report bug with KDE file open dialog

2022-01-28 Thread Bijan Soleymani

On 2022-01-28 11:36, Patrick Dunford wrote:
It is not relevant whether the issue occurs in other applications 
because they all use the file open dialogs in ways that are specific to 
their application which the end user has no control over and therefore 
it cannot be tested for


If it doesn't occur in other applications we don't know if it is an app 
issue or a file chooser issue.


The application has been tested on various operating systems and this 
problem only occurs on the version of kde which is installed by the 
debian bookworm package manager.


Still could be an app issue.

Therefore just give me the name of the specific kde package that relates 
to that dialog, as I previously requested.


I believe a KDE app would use dolphin or possibly qt file chooser.

Bijan



Re: Package name to report bug with KDE file open dialog

2022-01-28 Thread Bijan Soleymani

On 2022-01-28 11:10, Patrick Dunford wrote:
Which is the name of the package relating to the file open dialog to use 
in a bug report?


I think it depends on the application :)

Do you see it in other applications?

If so, you can figure out what GUI toolkit/environment it is gtk, qt, 
gnome, kde.


Otherwise probably file a bug on the app.

Bijan



Re: Screen goes blank for 1-2 seconds

2022-01-28 Thread Bijan Soleymani

On 2022-01-28 10:16, hdv@gmail wrote:
About the fan: I seem to remember I had to install amdgpu-fan (needed 
to look that up, forgot the name) when I got this setup. Not sure if 
it still is needed or that the driver can control the fan reliably 
nowadays. I need to check that out too when I get home. 


I've had my card since January 2020 and have not needed amdgpu-fan or 
similar software, and it has just worked with default settings from 
kernel drivers.


I would check amdgpu-fan settings to adjust more aggressively or maybe 
uninstall and try settings fan to max and see if that solves the issue.


Bijan




Re: Screen goes blank for 1-2 seconds

2022-01-28 Thread Bijan Soleymani

On 2022-01-28 08:40, hdv@gmail wrote:
I am reasonably sure the problem lies in some form or combination of 
software. Sadly, my expertise in that area is insufficient to find out 
what it is exactly.


What kernel/OS/driver are you using if it is software I can try to 
reproduce since I have a pretty similar card.


On the other hand: what goes in my case is not necessarily valid in 
yours.


In case it is is due to overheating this script will log temperature, 
power management and fan settings.


#!/bin/bash
cd /sys/class/drm/card0/device/hwmon/hwmon0
while `true`;
    do date;
    for x in fan1_enable fan1_input fan1_target pwm1 pwm1_enable 
temp1_input;

    do echo -n "$x: "; cat $x;
    done;
    echo; sleep 1;
done

Output will be the following about once a second:

Fri 28 Jan 2022 09:28:12 AM EST
fan1_enable: 0
fan1_input: 1714
fan1_target: 1714
pwm1: 0
pwm1_enable: 2
temp1_input: 36000

Also you can max out the fan to see if that helps:

echo 0 > /sys/class/drm/card0/device/hwmon/hwmon0/pwm1_enable

(If you can pwm1_enable after it will show 1 and not 0, but if you look 
at pwm1 it will be at max of 255).


Bijan



Re: SSD Memory Card (was The Raspberry Pi that Took a Day Off.)

2022-01-27 Thread Bijan Soleymani

On 2022-01-27 8:54 p.m., Martin McCormick wrote:

Great suggestions but I can't.  Part of the typescript output I
included was me doing just that and I was root when I did it but
the squawk is that I don't have permission as if I wasn't root.


Oops! Sorry I missed the operation not permitted messages (or at least 
the one in fdisk).


What does:
ls -l /dev/sdh*

show for permissions?

Bijan




Re: SSD Memory Card (was The Raspberry Pi that Took a Day Off.)

2022-01-27 Thread Bijan Soleymani

On 2022-01-26 10:07 p.m., Martin McCormick wrote:

The SSD passed a fsck test earlier in the day before I
blew it up so the chip should be salvageable.  I don't care for
recovering either of the two partitions which will be overwritten
anyway if the SSD can be made writable again.


Can you delete both partitions, create a new single linux partition, 
reboot then run mkfs.ext4 to create a single new partition and then just 
install linux onto it or try dd again?


Bijan



Re: Screen goes blank for 1-2 seconds

2022-01-27 Thread Bijan Soleymani

On 2022-01-27 5:30 a.m., hdv@gmail wrote:


Sadly I do not have access to this machine remotely. I do have my own 
VPN server, but that does not help when the machine in question is 
turned off. ;-)


I'll check the temperature when I am back, and when it happens again.


I played around a tiny bit.

My GPU temperature when logged in remotely via VNC was 29C.

Logging in on local system GPU went up to high 30s just on the desktop.

I ran a game and initially the temperature went.

pwm1 (the power management state) was 0 (off) until 53C when it got set 
to 43.


Temperature went up to 62C, and then dropped to 45C, and then pwm1 went 
back to 0.


Temp went back to 53C before the power management kicked in again.

I did:
echo 0 > pwm1_enable

Which apparently maxes the power management as:
pwm1 was now 255

Then I did:
echo 1 > pwm1_enable

This seemed more aggressive than the default setting of 2 on my system.

Looking at the kernel docs:
https://www.kernel.org/doc/Documentation/hwmon/g762

It seems 1 setting is open mode and 2 is closed mode.

In closed mode it seems there is some feedback mechanism involving the 
fan speed.


Undocumented but it seems setting pwm1_enable to 0, just maxes the power 
management out.


Turns out it is documented in the kernel source comments:
 *  0 : no fan speed control (i.e. fan at full speed)
 *  1 : manual fan speed control enabled (use pwm[1-*]) (open-loop)
 *  2+: automatic fan speed control enabled (use fan[1-*]_target) 
(closed-loop)


Anyways with all this playing around I got my temp down to 21C, when 
logged in locally but not running the game.


tl;dr

If anyone has this happen quickly enough you could try setting fan speed 
to max (echo 0 > pwm1_enable and check that pwm1 goes to 255) and see if 
it fixes it.


Bijan



Re: Screen goes blank for 1-2 seconds

2022-01-27 Thread Bijan Soleymani

On 2022-01-27 5:00 a.m., hdv@gmail wrote:
My guess is about once every week. The display is on for roughly 16 
hours each day. There seems to be no discernable relation to "load". At 
least not that I could confirm. I haven't found a link to a specific 
application either. This system is a general purpose workstation and it 
is exposed to most common types of use. I design and create courseware, 
which involves running virtual machines with libvirt, coding in several 
languages, video editing, graphics editing, sound editing, editing all 
kinds of documents, and the standard internet stuff. I haven't seen this 
happening more often with any of these uses.


Thanks for the reply!

This blog post seems to indicate it might be due to the fan not turning 
on enough at moderate load by default (it pulses off and on which is not 
enough):

https://zarino.co.uk/post/amp-gpu-fan-curve-pop-os-ubuntu/

cat /sys/class/drm/card0/device/hwmon/hwmon0/temp1_input

Should give temperature:
Mine right now is:
29000

which apparently is 29C.

/sys/class/drm/card0/device/hwmon/hwmon0/pwm1

is the power management.

I'll play around tomorrow.

Bijan



Re: Screen goes blank for 1-2 seconds

2022-01-27 Thread Bijan Soleymani



On 2022-01-27 4:23 a.m., Bijan Soleymani wrote:
Are you also connected via HDMI? I think I am using DVI to mini display 
port.


Seems the issues happens on windows and on HDMI but not DP:
https://www.reddit.com/r/AMDHelp/comments/ez2c4i/rx_570_screen_randomly_goes_black_during/

Two other cases:
https://www.reddit.com/r/AMDHelp/comments/o1r0y9/screen_goes_to_black_randomly_while_gaming_rx_570/

That one says upgrading the power supply fixed it.

https://forums.tomshardware.com/threads/screen-goes-black-for-3-5-seconds-then-goes-back.3397019/

This one said they had the card replaced.

Anyways I will test with HDMI tomorrow.

Let me know how often it happens, or if there is anything that can be 
done to trigger it.


Bijan



Re: Screen goes blank for 1-2 seconds

2022-01-27 Thread Bijan Soleymani

On 2022-01-27 4:06 a.m., hdv@gmail wrote:
You are not the only one. I see the exact same here. The system this 
happens on has an RX560 graphics card. I have been seeing these 
blackouts from the start on this configuration (more than 2 years now).


Interesting, I just checked and it turns out I have a:
Sapphire Technology Limited Radeon RX 570 Pulse 4GB

But I don't think I've seen the issue.

Let me know what kernel/drivers (plus exact OS version) you guys are 
using and I can try to see if I can reproduce it.


Also let me know how often this happens.

I can confirm it is not a mechanical issue (not of cable's connections, 
cable defects, or of the seating of the card in the motherboard). It is 
not the display either (I have tried multiple displays). I am almost 
sure it is a software issue.


Are you also connected via HDMI? I think I am using DVI to mini display 
port.


I can also confirm the system does not hang. I've tested this with a 
software timer and a request/response loop querying a daemon both 
locally and over a wired network.


Good to know!

Bijan



Re: Screen goes blank for 1-2 seconds

2022-01-26 Thread Bijan Soleymani
On 2022-01-26 11:35 p.m., Pankaj Jangid wrote> I don’t want to file any 
bug report till I have some concrete data. So

my question is - how do I diagnose such an issue and produce some data
for debugging. So that I can hand it over to maintainers.


This one line script will sleep for 0.01 seconds at a time and then 
print the current time in milliseconds to a file.


while `true`; do sleep 0.01; date +"%T.%3N" ; done > time.txt

Run that and look at the output in time.txt afterwards to make sure the 
system didn't actually stop. (even if it stopped it might still be a 
graphics issue, but at least it's another data point).


Output will look like:
23:41:20.670
23:41:20.686
23:41:20.701
23:41:20.715
23:41:20.732
23:41:20.749
23:41:20.766
23:41:20.785
23:41:20.803
23:41:20.821

(due to the overhead of running sleep and date there's more than 0.01 
seconds per iteration)


This script will give you the biggest time differences:
perl -e 'while(<>){chomp; $old_time = $time; $time = $_; $old_ms = 
$cur_ms ; $_ =~ s/.*[.]//; $cur_ms = $_; $delta = $cur_ms - $old_ms; 
$delta = $delta % 1000; if (defined($old_ms)){print "$delta: $old_time 
$time\n";}}' < time.txt  | sort -n | tail


The output is:
20: 23:50:50.384 23:50:50.404
20: 23:50:51.036 23:50:51.056
20: 23:51:06.262 23:51:06.282
20: 23:51:46.577 23:51:46.597
21: 23:50:42.553 23:50:42.574
21: 23:50:43.999 23:50:44.020
24: 23:50:59.126 23:50:59.150
25: 23:50:41.680 23:50:41.705
25: 23:50:50.192 23:50:50.217
25: 23:50:53.255 23:50:53.280

So in my case the biggest delay was 25ms (at time 23:50:53). If you see 
anything longer than 100ms you'll know the system has gotten stuck 
during the blank interval.


Bijan



Re: gnu screen and resizing terminal window

2022-01-26 Thread Bijan Soleymani

On 2022-01-26 5:55 p.m., Bijan Soleymani wrote:
Actually apparently putty does support remote resizing. It just seems 
that our systems lack the right termcap entries.


I managed to resize the putty window by running the command:
resize -s height width

so:
resize -s 24 80

Also adding this:
termcapinfo xterm WS=\E[8;%d;%dt

to:
/etc/screenrc

Allows screen to resize the putty session (with the :width and :height 
commands).


But when quitting/restarting screen it puts the putty and the screen 
session back to the original size.


Bijan



Re: gnu screen and resizing terminal window

2022-01-26 Thread Bijan Soleymani

On 2022-01-26 5:42 p.m., Bijan Soleymani wrote:
As far as I know this is not a screen feature. Putty controls the window 
size, it is determined by the default or whatever is saved for that 
session. You can change what happens when you resize the putty window on 
the machine running putty. There is no way for you to change the putty 
screen from the debian side.


Actually apparently putty does support remote resizing. It just seems 
that our systems lack the right termcap entries.


Bijan



Re: gnu screen and resizing terminal window

2022-01-26 Thread Bijan Soleymani




On 2022-01-26 1:45 p.m., Tim Woodall wrote:

I have to use PuTTY to connect to a debian server. For reasons that are
outwith my control the ssh session disconnects every 24 hrs.

Therefore I run screen so after reconnecting I can recover to whereever
I was at.

However, the PuTTY window does not resize to whatever it was previously.
I can find lots of questions asking how to turn this feature off but
nothing on why it doesn't work for me.


As far as I know this is not a screen feature. Putty controls the window 
size, it is determined by the default or whatever is saved for that 
session. You can change what happens when you resize the putty window on 
the machine running putty. There is no way for you to change the putty 
screen from the debian side.


Screen does provide commands to resize the virtual terminal, however 
neither putty nor xterm seem to support the termcap commands (apparently 
it is Z0 and Z1).


What happens when you try to resize the screen using screen's windowing 
commands:


^a : width 50
^a : height 15

(control-a, then colon, then width 50, then enter)

In my case I get a message that
Your termcap does not specify how to change the terminal's width to 50
and
Your termcap does not specify how to change the terminal's height to 15

That is with TERM set to xterm.

Bijan



procmail rule to filter debian-user

2008-09-23 Thread Bijan Soleymani

Hey everyone,

I need a rule to filter debian-user into a seperate maildir. I know 
there's the header:

X-Maling-List: debian-user...

so I tried:
* ^X-Mailing-List: debian-user.*
/home/bijan/Maildir/.lists.debian/

and several variations, but none of them worked.

Thank in advance,
Bijan


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




Re: Pick up a shell session after ssh timeout

2004-07-09 Thread Bijan Soleymani
Steve Lamb [EMAIL PROTECTED] writes:

 Brad Sims wrote:
 Nope, but thats why the fine folks at GNU made screen g

 Screen has me so spoiled I wish I could do the same with
 individal X programs.  I know I can do a whole session with VNC but
 I'd love to be able to start a program on one X session (say my VNC
 session) and then eventually pick it up on my game
 bo...er...workstation's local X session without having to get the
 rest of the programs in the VNC session.

There's a program called xmove that let's you move x applications
from one display to another (can be seperate computers).

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: newsgate

2004-07-08 Thread Bijan Soleymani
Richard A Nelson [EMAIL PROTECTED] writes:

 Environment:
 Linux 2.6.7
 Debian Sid/Unstable
 sendmail
 inn2
 newsgate

 I've got some (most Debian) mailing lists directed to a local nntp
 for viewing by the local denizens ... it is working well.

 What I'm still struggling with is supporting local posts - and having
 them redirected to the mailing list (without causing a mail loop by
 bouncing all mail back to the list).

 Can anyone provide some pointers ? (inn newbie)

I don't know if you're aware of it but:
www.gmane.org
is doing that with many mailing lists, including this one (this
message is being posted from gmane). You can check if they have
the lists you are looking for. If not you could ask the guy who
runs it (Lars) for some pointers.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: new gnome file selection

2004-07-08 Thread Bijan Soleymani
jakob bratkovic [EMAIL PROTECTED] writes:

 At the command prompt type:

 gconf-editor

 Then navigate to apps - nautilus - preferences
 and chech the always_use_browser value.

This works, but I still don't understand why they don't put options
like this into nautilus's preferences menu.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: NETGEAR MA311 802.11b Wireless PCI Network Adapter Card

2004-07-07 Thread Bijan Soleymani
Rodney D. Myers [EMAIL PROTECTED] writes:

 I am finding enough sites, to think it should be fairly straight
 forward, though not sure about the net install portion.

For net install simply find the right module and load it (by
switching to another virtual terminal (usually alt-f2 and alt-f1 to
get back) or by choosing the go to shell option in the menu if there
is one), then proceed to the part where you configure the network
settings and the setup program should then have no problems. Note that
if the net install cdrom doesn't include the right module, you're kind
of out of luck :)

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: tzconfig for Otario Canada

2004-07-07 Thread Bijan Soleymani
S.D.A. [EMAIL PROTECTED] writes:

 Well, it's easy enough to find;

 http://www.canadainfolink.ca/time.htm

 Manitoba is the western border for EDT.

Anywhere West of 90 degrees longitude in Ontario falls in the Central
time zone.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Can't surf with Mozilla

2004-07-07 Thread Bijan Soleymani
[EMAIL PROTECTED] writes:

 I recently installed installed Woody.  The system is real basic at this
 point, not many programs.  I then installed Mozilla.  When I startx, I can
 surf using Mozilla.  By the way, I'm somewhat new to linux, BUT THIS IS
 AWESOME!!! :O)  I now have several windows open.  How do I close these
 windows???  I can iconify them by clicking the circle in the upper left
 corner, and I can resize the window by clicking in the upper right and
 then dragging.  How do I completely shut the window down???

You're using twm, an ancient window manager :) It just let's you minimize
stuff. To kill stuff you have to find the quit function in the individual
program. Or you can run xkill, it kills whatever program you click on.
However it is possible to configure twm so that it does delete the window
when you middle click, or right clic, or ctrl-click and so on. That's
described in the man page.

But you should probably check out windowmaker (wmaker), icewm,
etc. For more recent window managers.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: PEAR Download

2004-07-07 Thread Bijan Soleymani
S.D.A. [EMAIL PROTECTED] writes:

 Hey Folks:

 I'm attempting to download a bunch of PEAR apps, and I'm getting an 'out of
 memory error' (output genearated below). Now I've looked in RPC.php, and I
 cannot figure out how to change the cache size. Anyone know?

I don't think the problem is with RPC.php. The problem is that the
default PHP installation is limited to allocating 8 megs of memory
so some runaway script doesn't cripple the computer, I think there
might also be some limit on how much time is spent on each script, etc.

To adjust this go in:
/etc/php{4}/apache/php.ini
and
/etc/php{4}/cgi/php.ini

and look for the line:
memory_limit = 8M   ; Maximum amount of memory a script may consume (8MB)

and increase the limit.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Samba and Codepages question (smbmount)

2004-07-07 Thread Bijan Soleymani
Ian Macdonald [EMAIL PROTECTED] writes:

 Now, I believe that the problem is with the last option, codepage. I
 hae tried with codepage=cp437, codepage=cp850, codepage=cp1252, and also
 just the raw numbers, i.e. codepage=437, codepage=850 . However, in all
 of these cases, the filename charset conversion seems to be wrong.

 What code should go here? It appears that newer versions of Windows use
 unicode, but WinME should should still use a particular codepage. I just
 can't find one that works...

 For reference, I am running kernel 2.6.6

Just a guess here but did you compile in support for the codepage you're
trying to use? That might be necessary.

You can find it under: 
File Systems - Native Language Support - Codepage XXX

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: new user

2004-07-07 Thread Bijan Soleymani
Andrea Zabala [EMAIL PROTECTED] writes:

 How can I subscribe to a Rational usergroup ?

Are you suggesting that debian-user is irrational?

Although this list can get pretty crazy sometimes, as long
as you EXPLAIN YOUR PROBLEM IN DETAIL, you shouldn't have
any problems. If you don't do that...

If your problem is that you don't want to receive tons of mail,
you can use the archives or gmane to access the list.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Copy Paste into vi??

2004-07-07 Thread Bijan Soleymani
[EMAIL PROTECTED] writes:

 Installed woody.  My system boots to a prompt.  I then do startx to run
 xserver.  I then run mozilla to surf.  What I would like to do is copy
 some text from the browser and paste it into the vi editor.  How can this
 be done?

Select the text in the browser (highlight it) and then switch to vi
and middle click (of course have to be in insert mode). If your mouse
doesn't have a middle button you might be able to click both buttons
at the same time.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Samba and Codepages question (smbmount)

2004-07-07 Thread Bijan Soleymani
Ian Macdonald [EMAIL PROTECTED] writes:

 Thanks Bijan. I double-checked, and yes, I have all the various
 codepages that come as options in linux are compiled in as *modules*.
 So, do I maybe need to configure the module loading for the codepages?
 Or should smbmount handle this for me automatically?

I'm not sure it does. It would be good if it did. You might need to
load the modules (but I'm not 100% on that). Try loading them manually
with modprobe. If that works then add the necessary modules to
/etc/modules.

 Any suggestions on how to check that the module loading is working
 correctly would be greatly apprecated, as my knowledge in this area
 is not very profound.

The lsmod command displays the names of all the modules which have been
loaded. It also displays the number of times the module is being used.
For example if you load a module it will be displayed in the list, but
the use count will be at zero, if you then use the module, the use count
will go to one.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Debian on a laptop....

2004-07-07 Thread Bijan Soleymani
Bill Gladney [EMAIL PROTECTED] writes:

 hello...I'm trying to remove the remnants of Debianbut it is password
 protected...

Can the laptop boot from a cd or floppy? If so just boot from a windows
CD or floppy and run:
fdisk /mbr c:

and it should wipe everything off. Heck just installing windows over it
should take care of it.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: postscript-enabled mozilla package anyone?

2004-07-07 Thread Bijan Soleymani
Brad Sims [EMAIL PROTECTED] writes:

 I actually have a postscript printer, and would like to continue to use it. 
 However, I guess I need to throw my laserjet out now that uber-devel got a
 bug up his butt. (How it got past his head is beyond me.)

Well I believe that xprint outputs postscript. It just does it in a
different way. I believe is xprint is like an x server. Mozilla or
whatever program sends it whatever you want to print as a series of
x-thingamabobs and it converts that to postscript, so that each
program doesn't have to have code to generate postscript.

But yeah, I think it's retarded to drop support for generic-postscript
if it's already there.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Recompile source after error

2004-07-07 Thread Bijan Soleymani
Thomas Adam [EMAIL PROTECTED] writes:

First here's the real answer to the question. There is a document
on the debian webpage called the Debian New Maintainers' Guide.
It describes the basics of making a deb package. The part you want
is the quick rebuild of the build chapter at:

http://www.debian.org/doc/maint-guide/ch-build.en.html#s-quickrebuild

6.2 Quick rebuild

With a large package, you may not want to rebuild from scratch
every time while you tune a detail in debian/rules. For
testing purposes, you can make a .deb file without rebuilding
the upstream sources like this:

   fakeroot debian/rules binary

Once you are finished with your tuning, remember to rebuild
following the above, proper procedure. You may not be able to
upload correctly if you try to upload .deb files built this
way.

And now for the reply to the reply,

 --- * Tong* [EMAIL PROTECTED] wrote: 
 Hi, 
 
 I was trying to compile the emacs from source deb package. The
 compilation
 stopped in the middle because of some error. 

 Well, let' see:

 a) Why on earth are you doing this? What could the kitchen sink of all
 editors possible *not* have pre-compiled into it that would cause you to
 want to re-compile emacs? The packaged binary works wonders (if you like
 Emacs), and there are a bazillion addons if the core-set wasn't enough for
 you.

He just wants to. Maybe he wants to add support for mongolian, or compile
in gtk support, etc.

 b) Since you don't bother saying what the errors were, how the hell can
 anyone help?

He doesn't want help with the simple error, he can fix the error, he
wants to know how he can resume compilation without it restarting from
the beginning.

 If I use dpkg-buildpackage, everything will be started all over again.
 Which command I can use to start from where I was left? 

 If you are unfamiliar with compiling applications you couldn't have picked
 a harder application.

He isn't unfamiliar with compiling applications, he's unfamiliar
with compiling debs froms source debs.

 I want to duplicate the error, fix it and continue on. 

 That statement is contradictory. I suggest you install the binary, and
 stop this idiocy.

He wants to rerun the compilation from the point it failed, note the
error, fix the error, then rerun the compilation from that point. He
doesn't want compilation restarting each time.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Debian Installation -- Kernel Link Failure --

2004-07-06 Thread Bijan Soleymani
Arthur E. Conrad [EMAIL PROTECTED] writes:

 What is this about and how do I fix it?

This is harmless. It's a warning that if you compile a kernel with
this version of binutils it might fail to link properly. If you have
that problem, then you should try the version of gcc or binutils or
whatever recommended in the kernel documentation.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: NETGEAR MA311 802.11b Wireless PCI Network Adapter Card

2004-07-06 Thread Bijan Soleymani
Rodney D. Myers [EMAIL PROTECTED] writes:

 I know this card is supported under Linux, and debian, but...

 What is involved in getting this card found/configured under Sarge?
 Specifically under the new net install cdrom?

Basically use google or whatever to find out what module (driver) is
required and simply try out that module with:

$ modprobe modulename

if that works add modulename to /etc/modules

if not, remove it with:
$ modprobe -r modulename

and try again.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


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



Re: Futile screenshot question

2004-03-03 Thread Bijan Soleymani
On Wed, Mar 03, 2004 at 05:47:56PM +0100, Tom wrote:
 When I try to take a single-window screenshot that is wider than my
 monitor can display, all I get is the visible part of that window. I
 guess there's a very logical explanation for that, but what I'd like
 to know is not the reason, but if there's a way around it?

I think a simple way to get around it would be to have a larger desktop.
There are several ways in which you can have a desktop that is larger
than your monitor can display. Off the top of my head I think you could
run a VNC session with crazy geometry settings 2048x1536.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: Emergency braking and bird anatomy [was: Re: DVD copying and CSS]

2004-02-25 Thread Bijan Soleymani
On Wed, Feb 25, 2004 at 09:40:01AM -0800, Paul Johnson wrote:
 I just keep well-tuned brakes and don't think about it anymore, since
 I can pretty close to stop on a dime up to about 20 MPH on my bike
 using the rear brake alone.

I don't know about that. Using just the rear break. I can completely lock
my back wheel and my bike will keep going (especially downhill). It's
not that the back break is too weak (it's locking the wheel). It's just
that there's only so much breaking the back wheel can do.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: Emergency braking and bird anatomy [was: Re: DVD copying and CSS]

2004-02-25 Thread Bijan Soleymani
On Wed, Feb 25, 2004 at 10:46:08PM +0100, Richard Lyons wrote:
 It's not too difficult to work out the maximum breaking force that can be 
 applied before you get thrown onto the road.

I believe it is 0.67g. Of course you can't achieve this with the rear
wheel alone so by not using the front wheel you're sure not to flip
over, but you're also getting much less deceleration.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: Emergency braking and bird anatomy [was: Re: DVD copying and CSS]

2004-02-24 Thread Bijan Soleymani
On Mon, Feb 23, 2004 at 10:29:39PM -0800, Paul Johnson wrote:
 What I never understood is locally they tell bicyclists that you stop
 faster locking the brakes and everybody else to absolutely avoid doing
 so.  Never mind that if you can stick a fast stop with good brakes, as
 hard as you can without locking the wheels, you stop way, way faster
 than skidding, especially going downhill...and I don't know anybody
 who enjoys the smell of burning rubber...

Locking the real wheel is easy and won't give you much breaking.
Locking the front wheel is not very fun :) as you tend to go
flying over the handlebars. Basically the wheel's not spinning
so you and the rest of the bike end up spinning over it.

I believe the proper technique is to brake harder with the front brakes
and apply enough pressure to the rear brakes so that you can feel when 
the rear wheel is just about to lift off.

There is some information along these lines on:
http://www.sheldonbrown.org/brakturn.html
http://draco.acs.uci.edu/rbfaq/FAQ/9.17.html

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: Emergency braking and bird anatomy [was: Re: DVD copying and CSS]

2004-02-24 Thread Bijan Soleymani
On Mon, Feb 23, 2004 at 10:29:39PM -0800, Paul Johnson wrote:
 I switch from four wheels to two in the snow and ice if I can.
 Nothing like sticking a wicked fishtail peelout going around the
 corner on a bicycle...

You might want to check out the icebike mailing list.
They have a website at:
http://www.icebike.org

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: jpeg to mpeg or avi

2004-02-24 Thread Bijan Soleymani
On Tue, Feb 24, 2004 at 03:09:05AM -0800, Nano Nano wrote:
 On Tue, Feb 24, 2004 at 11:50:07AM +0100, ?yvind A. Holm wrote:
  
  I got very good results by using
  
  http://ffmpeg.sourceforge.net/
  
 
 Strange, because Mplayer *uses* ffmpeg.  Sounds fishy.

Well not really. By default mplayer doesn't use mpeg audio, you
have to add in the lame library. And it doesn't make plain mpg
files. It will pack them into avis. And you have to be careful
which codec it used for video as well...

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: Emergency braking and bird anatomy [was: Re: DVD copying and CSS]

2004-02-24 Thread Bijan Soleymani
On Tue, Feb 24, 2004 at 09:53:45AM -0800, Paul Johnson wrote:
 On Tue, Feb 24, 2004 at 10:42:44AM -0500, Bijan Soleymani wrote:
  I believe the proper technique is to brake harder with the front brakes
  and apply enough pressure to the rear brakes so that you can feel when 
  the rear wheel is just about to lift off.
 
 Nope.  The proper technique is to brake harder with the back and use
 the front for auxillary power, since then the force of you braking is
 being used to torque yourself down to the ground instead of torquing
 you over the bars.  What you suggest is dangerously stupid and the
 source of a lot of bike/pedestrian collisions in Portland.

We're talking about emergency breaking (making a panic stop).
That's the way to stop in the least amount of time (using the
front break most). This is not the safest way to break, but it's
what you do in an emergency. Just like all these crazy car breaking
techniques aren't what you use at each stop sign.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: Emergency braking and bird anatomy [was: Re: DVD copying and CSS]

2004-02-24 Thread Bijan Soleymani
On Tue, Feb 24, 2004 at 09:53:45AM -0800, Paul Johnson wrote:
 what you suggest is dangerously stupid and the source of a lot of
 bike/pedestrian collisions in Portland.

Actually the last time I pulled a panic stop like this was when a
couple of kids jumped into the middle of the street and I needed to
avoid hitting them.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: QuickTime for Linux?

2004-02-23 Thread Bijan Soleymani
On Mon, Feb 23, 2004 at 09:34:02PM -0800, Paul Mackinney wrote:
 I'm running Debian/Sarge. Bummed that I can't watch those funny MoveOn
 political ads. Help? Other streaming video works fine.

Mplayer can play quicktime files (with the approriate plugin).
Check out their homepage:
http://www.mplayerhq.hu

Technical/legal/packaging/various other reasons prevent Debian
from shipping mplayer, but there are some precompiled debs out
there if you don't feel like compiling from source.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: DVD copying and CSS

2004-02-22 Thread Bijan Soleymani
On Sun, Feb 22, 2004 at 07:47:24AM -0600, John Hasler wrote:
 Vineet Kumar writes:
  This way if anything gets scratched, stolen, melted on the dash, etc.,
  I'm only out the cost of CDRs.
 
 But the publisher has lost the sale of a replacement CD, which is why they
 don't want you to do it (of course, if the CD only cost a buck or two you
 probably wouldn't).

The publisher would want you to pay them money everytime you listen to
the cd, whenever you look at the cd, etc. They'd even like it if you paid them
without any reason. The publisher wants money, period.

  Why wouldn't someone with a portable DVD player want to use the same
  method?  Why shouldn't she be allowed to?
 
 Why does copyright exist?

Copyright exists in most countries to encourage people to publish
works such as novels and music albums, by offering authors and/or
producers a financial incentive.

 I'm not sure copyright should exist, but I think those of you who think it
 should and yet want to carve out special exceptions for your own
 convenience are being hypocritical.

No these people are willing to tolerate a certain level of copyrights.
For example they think it is reasonable not to have to pay for 3 seperate
copies of the same album, or they think it is reasonable to tape copies
for friends, etc.

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


Re: DVD copying and CSS

2004-02-22 Thread Bijan Soleymani
On Sun, Feb 22, 2004 at 11:11:50AM -0600, John Hasler wrote:
 I.e., they are willing to tolerate copyrights that don't inconvenience
 them.

Yes that makes sense. People may tolerate speed limits because they make
their neighborhood a safer place. But they won't tolerate a 5 mile/hour
speed limit even though it's much safer. 

Bijan
-- 
Bijan Soleymani [EMAIL PROTECTED]
http://www.crasseux.com


signature.asc
Description: Digital signature


  1   2   3   4   5   6   >