Re: OT: Re: Trolling

2024-11-24 Thread Bitfox

On 2024-11-25 01:01, to...@tuxteam.de wrote:



For $DEITY's sake, folks. Try to stick to the message, not the person.
Everything else makes a mailing list unlivable.



Totally agree with you Tomas.

Everyone's knowledge background is different, like me who is a beginner. 
The community should try to be inclusive and accepting, just like the 
open culture of Linux itself.


Thanks.



Re: where is mail.log

2024-11-29 Thread Bitfox

On 2024-11-29 10:08, Greg Wooledge wrote:

On Thu, Nov 28, 2024 at 19:13:12 -0500, Dan Ritter wrote:

Bitfox wrote:
> My OS is debian 12 without GUI.
>
> After I installed postifx by apt, I can't find the path to mail.log.
>
> the log file in /var/log doesn't exist.
>
> do you know where is my mail.log now?

by default, it's in /var/log.


No.  As of bookworm, rsyslog is no longer installed by default, and
there are no human-readable log files by default.

https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#changes-to-system-logging


Update:

following Greg's help, I run 'apt install rsyslog' and 'service postfix 
restart', now mail.log has been working.


2024-11-29T18:27:50.514443+08:00 mgw postfix/postfix-script[61549]: 
starting the Postfix mail system
2024-11-29T18:27:50.522266+08:00 mgw postfix/master[61551]: daemon 
started -- version 3.7.11, configuration /etc/postfix


Thanks a lot.



Re: Issues installing Erling using apt (Ubuntu 20.04)

2024-11-29 Thread Bitfox

On 2024-11-29 17:49, Michael Kjörling wrote:



While Debian and Ubuntu are similar in some respects (for example by
using the same package management tools, modulo exact versions), it's
always better to ask people who are likely familiar with what you are
running.



I found debian 12 has much difference than ubuntu.
for example, mysql in debian 12 is not a default apt package, but in 
ubuntu 22 it is.
and, as my last thread shows, debian 12 has no plain text logs by 
default.

also the snap way is different than ubuntu.

Just my limited experience.
Thanks.



sudo question

2024-11-20 Thread Bitfox

Hello,

In my bash shell script, when I say:

sudo echo "something" >>/etc/postfix/virtual_alias_maps

it could not run with the prompts:

bin/mask.sh: line 18: /etc/postfix/virtual_alias_maps: Permission denied


but, if I just say:

echo "something" >>/etc/postfix/virtual_alias_maps

and run that script with the form of "sudo bin/mask.sh", it successes.

Can you help me why the first sudo failed?

Thanks.



debian for limited ram

2024-11-22 Thread Bitfox

Hi

I got a vps from BF flash sale (vps dot blackfriday) which has only 
512mb ram.

for this limited ram what debian release should be better to install?

Thanks.



Re: Package name question

2024-11-28 Thread Bitfox

On 2024-11-29 03:06, Darac Marjal wrote:



* "systemctl list-units --all" will list all the services installed on 
your system. You can search that for something likely looking (e.g. 
something beginning with "mysql" or similar).




this works for me. thank you for your help.



where is mail.log

2024-11-28 Thread Bitfox

My OS is debian 12 without GUI.

After I installed postifx by apt, I can't find the path to mail.log.

the log file in /var/log doesn't exist.

do you know where is my mail.log now?

Thanks.



Re: where is mail.log

2024-11-28 Thread Bitfox

On 2024-11-29 10:08, Greg Wooledge wrote:

On Thu, Nov 28, 2024 at 19:13:12 -0500, Dan Ritter wrote:

Bitfox wrote:
> My OS is debian 12 without GUI.
>
> After I installed postifx by apt, I can't find the path to mail.log.
>
> the log file in /var/log doesn't exist.
>
> do you know where is my mail.log now?

by default, it's in /var/log.


No.  As of bookworm, rsyslog is no longer installed by default, and
there are no human-readable log files by default.

https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#changes-to-system-logging


Thank you so much Greg.
I will install rsyslog instead.
Some tools like pflogsumm must use plain text logging.



Package name question

2024-11-28 Thread Bitfox

Hello

After I installed mysql 8.0 via apt install mysql-server, I tried to 
restart mysql server.


I issued the following commands,

systemctl restart mysql-server
systemctl restart mysqld

They got failed, no package was found.

Then I run systemctl restart mysql it successed finally.

My question is how I can know the installed package name rather than by 
guessing?


Thanks



Re: sudo question

2024-11-20 Thread Bitfox

On 2024-11-21 13:21, Jeffrey Walton wrote:

On Wed, Nov 20, 2024 at 9:42 PM Bitfox  wrote:


In my bash shell script, when I say:

sudo echo "something" >>/etc/postfix/virtual_alias_maps

it could not run with the prompts:

bin/mask.sh: line 18: /etc/postfix/virtual_alias_maps: Permission 
denied



but, if I just say:

echo "something" >>/etc/postfix/virtual_alias_maps

and run that script with the form of "sudo bin/mask.sh", it successes.

Can you help me why the first sudo failed?


Greg gave you the answer.

What I do in this case is, I don't use sudo in the script. Instead I
run the script with sudo like Keith suggested. However, I add this to
the beginning of the script to gracefully exit:


#!/usr/bin/env bash

# Control our PATH
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
export PATH

if [[ "${UID}" -ne 0 ]]; then


Thank you for your support. That makes sense.

BTW, what’s the difference between [[ ]] and [ ] here? I know only the 
latter.


Regards



Backup mysql

2024-12-02 Thread Bitfox

I run mysql on debian.

I want to backup the tables for database grants and authentication. What 
tables should I pick to backup then?


Thank you.



Profile order

2024-11-30 Thread Bitfox
If /etc/profile and home dir’s .bash_profile have included the same 
command but with different arguments. Which one will be used then? Thank 
you.




Re: HP Elitebook 75% Off

2024-11-29 Thread Bitfox

On 2024-11-30 08:19, Timothy M Butterworth wrote:
If anyone is looking at getting a new Laptop HP has their Elitebook's 
on

sale for 75% Off. I just ordered one.

https://www.hp.com/us-en/shop/pdp/hp-elitebook-845-14-inch-g10-notebook-pc-p-b29xvua-aba-1


Can this have debian installed and all drives like touchpad works?

Thanks



Re: where is mail.log

2024-11-30 Thread Bitfox

On 2024-11-30 20:31, poc...@homemail.com wrote:





You did not comprehend what I posted.  I am on the systemd mail list.
They have dropped all sysV support.


May I ask what's the main difference between systemd and sysv for init 
system?




Re: Kate editor documentation as downloadable HTML file(s)?

2024-12-04 Thread Bitfox

On 2024-12-04 20:11, Michel Verdier wrote:

On 2024-12-04, Richard Owlett wrote:


I find HTML formatted documentation much more usable than PDF.
A fine manual at https://docs.kde.org/stable5/en/kate/kate/index.html 
.


Two questions:
  1. Has someone packaged it as a downloadable file?
  2. Is there a script that would download it to a specific local
 directory in a manner that all it's internal links work?


Try

  wget -r -L -k https://docs.kde.org/stable5/en/kate/kate/index.html

and man wget for more options


after downloading, is it possible to convert all html files into a 
single pdf? any tool in linux to do that? Thanks.




shall i install snapd

2024-12-10 Thread Bitfox
I am just not sure, should I install snapd on debian 12 for package 
management? or just use apt for everything?


I found that there are some apps like certbot and the latest ruby are 
installed by snapd only by default.


Thank you.



Re: auto interactive jobs

2024-11-21 Thread Bitfox

On 2024-11-22 08:28, e...@gmx.us wrote:

On 11/21/24 19:24, Bitfox wrote:

Hi

I have a interactive command like the following,

$ ./filen
/ > upload upt-snappy /
Uploading upt-snappy [] 100% | 
ETA:

0s | 1.4 KiB / 1.32 KiB
/ >


the command "filen" will open a interactive shell, and in this shell 
to

upload/download files.

How can I write a script for this case to upload file automatically?


Can you do something like
echo "upload upt-snappy p" | ./filen
?


That seems impossible.

$ echo "upload tmp" |./filen
upload tmp
Error trying to prompt for user input: readline was closed. (maybe 
you're in an environment without stdin, like a Docker container)

Error [ERR_USE_AFTER_CLOSE]: readline was closed

Regards



auto interactive jobs

2024-11-21 Thread Bitfox

Hi

I have a interactive command like the following,

$ ./filen
/ > upload upt-snappy /
Uploading upt-snappy [] 100% | 
ETA: 0s | 1.4 KiB / 1.32 KiB

/ >


the command "filen" will open a interactive shell, and in this shell to 
upload/download files.


How can I write a script for this case to upload file automatically?

Thanks.



Re: debian for limited ram

2024-11-22 Thread Bitfox





In addition to platform concerns, you'll have to figure out what you're
running on this VPS, how to make it all fit within the available RAM
(with or without swap), and which Debian version(s) support your
applications.


Do you think if it's suitable to run a apache2 + php7 server for my 
personal project (not wordpress)?


Thank you in advance.



restart crontab

2024-12-06 Thread Bitfox

How can I restart crontab daemon?
I tried "service crontab restart" and "dpkg --list |grep crontab", they 
have no help.


Please help. thanks.



Re: restart crontab

2024-12-06 Thread Bitfox

On 2024-12-07 07:47, Greg Wooledge wrote:

On Sat, Dec 07, 2024 at 07:20:12 +0800, Bitfox wrote:

How can I restart crontab daemon?
I tried "service crontab restart" and "dpkg --list |grep crontab", 
they have

no help.


crontab(1) is the name of the command that you use, as a user, to
display or alter your personal crontab.

The daemon (service) that runs your crontab jobs, however, is usually
named "cron".  Or possibly "crond" on some systems.

hobbit:~$ ps -ef | grep cron
root 826   1  0 Dec05 ?00:00:00 /usr/sbin/cron -f
greg   571361769  0 18:44 pts/14   00:00:00 man 1 crontab
greg   571611765  0 18:44 pts/13   00:00:00 grep cron

Given that the daemon's name is "cron", the service name is probably
similar.  Let's just take a guess that it's the same:



Thanks Greg.

Now it has been working after this command,
sudo systemctl restart cron

Regards.