Re: PDF editor

2024-08-07 Thread coreyh
On 2024-08-07 09:27, Arbol One wrote: Anyone knows about a PDF editor for Debian? do you mean CLI or windows tool for PDF editor? -- corey hickman

webp in Image Viewer

2024-08-06 Thread coreyh
Hi My Image Viewer on desktop seems not to support webp format. do you have any ideas? Thank you. -- corey hickman

SeLinux

2024-07-27 Thread coreyh
Hello I have checked this doc, https://wiki.debian.org/SELinux/Setup Is selinux necessary in a production environment? Will it affect running services such as web, database, mail, etc., causing potential problems? Thanks. -- corey hickman

Re: combine two commands via pipe

2024-07-25 Thread coreyh
So, in summary, the glob solution: * Is shorter. * Is easier to read and understand. * Is more efficient. * Doesn't break if someone creates /tmp/apache420. I know few about glob. But after checking the man page I think it is a good idea. Many thanks! -- corey hickman

Re: combine two commands via pipe

2024-07-25 Thread coreyh
I found this works though it's ugly. $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)" total 4 Thanks for all help. On 2024-07-26 09:42, Max Nikulin wrote: On 26/07/2024 06:59, cor...@free.fr wrote: My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. that subdir is apache's

Re: combine two commands via pipe

2024-07-25 Thread coreyh
There is only one subdir exists with chars ‘apache’ included in /tmp. Regards On 2024-07-26 08:14, Greg Wooledge wrote: On Fri, Jul 26, 2024 at 07:59:42 +0800, cor...@free.fr wrote: > > I won't go any fancier than this until I know it's actually needed. My actual requirement is that I want t

Re: combine two commands via pipe

2024-07-25 Thread coreyh
I won't go any fancier than this until I know it's actually needed. My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. that subdir is apache's tmp dir. but the name of the subdir is too long (hard to copy&paste), so I am looking for a easier way. Thank you. -- core

Re: combine two commands via pipe

2024-07-25 Thread coreyh
On 2024-07-26 07:14, Alain D D Williams wrote: On Fri, Jul 26, 2024 at 07:04:37AM +0800, cor...@free.fr wrote: Hello gurus, I have the following commands: $ ls /tmp/|grep apache2 systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL $ sudo ls -ltr /tmp/systemd-private-653536

combine two commands via pipe

2024-07-25 Thread coreyh
Hello gurus, I have the following commands: $ ls /tmp/|grep apache2 systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL $ sudo ls -ltr /tmp/systemd-private-653536fdd8d04538ab68da7469570d0c-apache2.service-UiHjaL total 4 When I tried to run them in one line as follows, $

Re: /var/run disappear after reboot

2024-07-22 Thread coreyh
For coreyh, here is the link to Linux Filesystem Hierarchy, v3: <https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf>. And here is Wikipedia's page digesting it: <https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard>. The documents discuss where various bits should

/var/run disappear after reboot

2024-07-22 Thread coreyh
I found that after I rebooted the system, the dir /var/run/*** disappeared. I put my app's web sessions under /var/run. so they got lost. Is there an effective tool to manage /var/run dirs? Thank you -- corey hickman

update system periodically

2024-07-21 Thread coreyh
Hi list, I have been running an old debian 11 for many days. is it safe to run 'apt upgrade' and 'apt update' periodically? for example put them into crontab. I ask this question because I am worried that some software updates may conflict with each other after running in this way, resulting in

file descriptor VS file handle

2023-07-12 Thread coreyh
Hello, In linux systems, are file descriptor and file handle meaning the same stuff? Thanks.

ipv6 on debian

2023-05-23 Thread coreyh
greetings, today I got a server from OVH with ipv6 only. is there any lightweight getting started tutorial for using ipv6 on debian? such as ipv6 setup, route, filters, DNS, etc. thanks in advance. Corey

Re: netmask question

2023-05-22 Thread coreyh
On 22/05/2023 11:08, Tim Woodall wrote: On Mon, 22 May 2023, cor...@free.fr wrote: Hello, In CIDR a host address is xx.xx.xx.xx/32 which means 255.255.255.255. isn't it? It depends on what question you're asking. An individual address is a /32, but a host address might be listed as a /2

Re: netmask question

2023-05-22 Thread coreyh
On 22/05/2023 09:41, Tim Woodall wrote: On Sun, 21 May 2023, Timothy M Butterworth wrote: The only address that should have a netmask of 255.255.255.255 is the Loopback interface. I don't much use ipv4 any more if I can avoid it but isn't it normal for point-to-point links to have a netmas

netmask question

2023-05-21 Thread coreyh
Hello list, currently the netmask for an IPv4 is 255.255.255.255. I am just not sure, why can't the netmask for IPv4 be 768.768.768.768? Can I set that a netmask directly in linux OS? If so we have much more IPv4 space available, even no IPv6 is needed. Thank you. Corey H.

how to reverse an IPv4

2023-04-30 Thread coreyh
Hello list, I wrote this script for reversing an IP: #!/bin/bash IP=$1 if [ -z $IP ];then echo "$0 IP" exit 1 fi REVERSE=$(echo $IP|awk -F\. '{print $4.$3.$2.$1}') echo $REVERSE it won't work as the output below. $ bin/rbl.sh 61.144.56.32 325614461 The "." was lost. If I changed the

Re: sudo and echo

2023-04-28 Thread coreyh
On 29/04/2023 02:35, Greg Wooledge wrote: On Sat, Apr 29, 2023 at 01:52:11AM +0200, cor...@free.fr wrote: $ sudo echo 123 > /root/123.txt It tells me "permission rejected". Why this sudo can't get success? Because the redirection is done by your shell before sudo is executed. See

sudo and echo

2023-04-28 Thread coreyh
Hello list, When I run this command: $ sudo echo 123 > /root/123.txt It tells me "permission rejected". Why this sudo can't get success? Thanks. Corey H

how to change default nameserver?

2023-04-09 Thread coreyh
greetings, I know I can edit the entries in /etc/resolv.conf, but it will be overwritten by DHCP server. I searched the internet and got one of the answers: apt install resolvconf echo "nameserver 127.0.0.1" >> /etc/resolvconf/resolv.conf.d/head what's the difference for /etc/resolv.conf and

Re: my immature thoughts on perl

2023-04-07 Thread coreyh
On 08/04/2023 03:28, Emanuel Berg wrote: Andy Smith wrote: I think you should use Ruby if you like Ruby better! Perl is the best language, maybe Lisp is the best language. But everything else isn't as good. The Language Wars Are Over: ChatGPT Won https://bourgoin.dev/posts/programming-langu

questions about cron.daily

2023-04-06 Thread coreyh
Hello list, For scripts put under /etc/cron.daily, which special time will they be implemented? I know they will be run daily, but not sure about the special run time. And, I found some services like apache2, chkrootkit will put the scripts in this dir automatically. are they for system clea

Re: my immature thoughts on perl

2023-04-03 Thread coreyh
On 04/04/2023 11:50, Will Mengarini wrote: * cor...@free.fr [23-04/04=Tu 10:35 +0800]: For instance, in ruby (irb) this is quite smooth: irb(main):001:0> [1,2,3,4].map{|x|x+1}.reduce{|x,y|x+y} => 14 And in scala (shell): scala> List(1,2,3,4).map{ _+1 }.reduce{_+_} res1: Int = 14 In perl the

my immature thoughts on perl

2023-04-03 Thread coreyh
Hello list, I am not that familiar with perl (though I like it), but I found it maybe have two flaws as follows. 1. doesn't have an interactive shell. 2. the block statement (like lambda) is ugly. For instance, in ruby (irb) this is quite smooth: irb(main):001:0> [1,2,3,4].map{|x|x+1}.reduce

Re: Is perl still the No.1 language for sysadmin?

2023-04-02 Thread coreyh
On 03/04/2023 12:43, Andy Smith wrote: Hello, On Mon, Apr 03, 2023 at 12:23:19PM +0800, cor...@free.fr wrote: I am just not sure, why perl6 is named to raku? Because Perl 5 still exists and is still seeing new releases, and what is now Raku is a completely different language, so there is no p

Re: Is perl still the No.1 language for sysadmin?

2023-04-02 Thread coreyh
On 03/04/2023 04:59, Tom Browder wrote: On Sun, Apr 2, 2023 at 3:42 PM Michel Verdier wrote: Le 2 avril 2023 Nicholas Geovanis a écrit : > Python is a more modern programming language than perl, and more in the > European CS tradition. Larry Wall said directly that the OO features in > perl w

Is perl still the No.1 language for sysadmin?

2023-04-02 Thread coreyh
I saw many commands in /bin and /usr/bin are written by perl. is perl still the first choice for sysadmin on linux? Thanks.

mount a remote object storage

2023-03-31 Thread coreyh
Hello list, I have the object storage service from the big providers (google cloud storage, Amazon S3). Now I want to mount them in Debian Linux as a block device. Though I know there is s3fs: sudo apt-get install s3fs But i have no experience on it. Do you have any suggestion on using remo

debian 11 vs ubuntu 22

2023-03-28 Thread coreyh
Dear list, Though I have been using debian 11 for long days, I want to give a try on ubuntu 22.04. Do you know what's the main difference for these two systems on dev/ops environment? Thanks Corey Hickman

should CLI have a nice UI today?

2023-03-24 Thread coreyh
Hello, Should CLI (command line interface) have a nice UI library? today web dev has so many libraries that make web pages with rich/colorful interactive views. But CLI is still in dull mode. That should be improved in these days. for example, run "df -h" we got the statistics with plain text.

Re: question about net address

2023-03-19 Thread coreyh
On 19/03/2023 18:32, Jeremy Ardley wrote: On 19/3/23 18:28, cor...@free.fr wrote: "v=spf1 ip4:188.66.63.1/24 -all" According to an AI version 4 that cannot be named: This is an SPF (Sender Policy Framework) record, which is a TXT record in a domain's DNS settings. SPF records are used to help

Re: question about net address

2023-03-19 Thread coreyh
On 19/03/2023 18:00, David Christensen wrote: On 3/18/23 16:31, cor...@free.fr wrote: On 19/03/2023 06:17, Kushal Kumaran wrote: On Sat, Mar 18 2023 at 07:28:23 PM, cor...@free.fr wrote: Hello I know 192.168.1.0/24 is a valid C range for network address. but what does 192.168.1.1/24 mean? I

Re: question about net address

2023-03-18 Thread coreyh
On 19/03/2023 06:17, Kushal Kumaran wrote: On Sat, Mar 18 2023 at 07:28:23 PM, cor...@free.fr wrote: Hello I know 192.168.1.0/24 is a valid C range for network address. but what does 192.168.1.1/24 mean? I ask this just for a setting in the SPF: spf.pinoad.se. 300 IN TXT

question about net address

2023-03-18 Thread coreyh
Hello I know 192.168.1.0/24 is a valid C range for network address. but what does 192.168.1.1/24 mean? I ask this just for a setting in the SPF: spf.pinoad.se. 300 IN TXT "v=spf1 ip4:188.66.63.1/24 -all" Thanks.

Re: auto restarting in crontab

2023-03-15 Thread coreyh
updated: Thanks for all your helps, especially @Greg and @Yong Now this systemd service has been enabled and just works. I put a file on /etc/systemd/system/xxx.service whose content as, [Unit] Description=xxx Front After=network.target [Service] Type=simple Restart=always RestartSec=5 User=cor

Re: auto restarting in crontab

2023-03-15 Thread coreyh
On 16/03/2023 09:32, Greg Wooledge wrote: On Wed, Mar 15, 2023 at 08:00:20PM -0500, Nicholas Geovanis wrote: On Wed, Mar 15, 2023, 7:56 PM wrote: > My script for monitoring Node.js app as follows. I put it in crontab for > auto-check and restart if failure. There's so much wrong with that. I

auto restarting in crontab

2023-03-15 Thread coreyh
Greetings, My script for monitoring Node.js app as follows. I put it in crontab for auto-check and restart if failure. #!/bin/bash # scan the port nc -z 127.0.0.1 3000 if [ $? -eq 0 ];then exit else killall node sleep 1 nohup serve -s /home/myUsername/workspace/xxx-frontend/build &

Re: question on /var/run

2023-03-15 Thread coreyh
On 16/03/2023 02:08, Greg Wooledge wrote: On Thu, Mar 16, 2023 at 02:02:35AM +0800, cor...@free.fr wrote: I am having the question that why the dir I created in /var/run disappears after rebooting the system? how to prevent that? unicorn:~$ ls -ld /var/run lrwxrwxrwx 1 root root 4 Jan 11 201

question on /var/run

2023-03-15 Thread coreyh
Hello, I am having the question that why the dir I created in /var/run disappears after rebooting the system? how to prevent that? Thanks Corey

Re: real debian or true debian?

2023-03-12 Thread coreyh
On 13/03/2023 10:12, Jeffrey Walton wrote: On Sun, Mar 12, 2023 at 9:02 PM wrote: When such a debian (the digital product) is authentic, should we say it "real debian" or "true debian"? I am not sure about this statement. I am having trouble parsing what you are asking... What is the cont

real debian or true debian?

2023-03-12 Thread coreyh
Hello, When such a debian (the digital product) is authentic, should we say it "real debian" or "true debian"? I am not sure about this statement. Thanks Corey H

debian for DNS servers

2023-03-11 Thread coreyh
Now I have three debian nodes in different DCs. Can I deploy a distributed DNS service for fault tolerance? the first node (KVM, NL) # lsb_release -cd Description:Debian GNU/Linux 11 (bullseye) Codename: bullseye # netstat -nr Kernel IP routing table Destination Gateway Ge

Re: question about rc.local

2023-03-10 Thread coreyh
On 11/03/2023 10:04, David Wright wrote: On Fri 10 Mar 2023 at 18:47:02 (+0100), Vincent Lefevre wrote: On 2023-03-10 18:00:41 +0100, Christoph Brinkhaus wrote: > Am Fri, Mar 10, 2023 at 04:29:34PM +0100 schrieb Vincent Lefevre: > > On 2023-03-10 09:58:55 -0500, Greg Wooledge wrote: > > > On Fri

Re: choose the right email address to send to the lists

2023-03-10 Thread coreyh
On 10/03/2023 19:30, cor...@free.fr wrote: I saw some people using email addresses like yahoo, AOL, mail.ru to post messages to the lists (such as debian-user, postfix-user etc). I am thinking those addresses which have the strictest DKIM setup are not suitable to send a list mail, they will be

Re: home server for email box

2023-03-10 Thread coreyh
On 10/03/2023 19:57, Nicolas George wrote: Vincent Lefevre (12023-03-10): Mail may still be sent via the ISP's smarthost. Unless the ISP's relay refuses to take mail not from the ISP's domain, like I have seen a few times. Or use an outgoing mail relay, such as mail gun, mail channel, they e

choose the right email address to send to the lists

2023-03-10 Thread coreyh
I saw some people using email addresses like yahoo, AOL, mail.ru to post messages to the lists (such as debian-user, postfix-user etc). I am thinking those addresses which have the strictest DKIM setup are not suitable to send a list mail, they will be blocked by many recipients (list members)

Re: question about rc.local

2023-03-09 Thread coreyh
What’s the right way to run rsync —daemon then? Thanks On 09/03/2023 21:02, Greg Wooledge wrote: On Thu, Mar 09, 2023 at 01:32:54PM +0100, Nicolas George wrote: Corey Hickman (12023-03-09): > does debian 11 still use /etc/rc.local for startups after rebooting? No, Debian does not use it. It le