tag:blogger.com,1999:blog-40270371576721875832019-02-21T17:34:41.764+08:00Mind Map ApplicationDebian Linux, Rethinking Linux And Beyond, Making OpenBSD An Important Option For My Server Lifemmappnoreply@blogger.comBlogger369125tag:blogger.com,1999:blog-4027037157672187583.post-63408178264558286982018-10-27T10:41:00.002+08:002018-10-27T10:41:52.726+08:00Style of server installation steps: OpenBSD versus CentOSThe current version of OpenBSD is 6.4. The current version of CentOS is 7 (1804).
I am talking about setting servers. There are many types of servers, for example, file servers, application servers and database servers. Both OpenBSD and CentOS can serve as one of these types of servers.
(adsbygoogle = window.adsbygoogle || []).push({});
The first impression lets you know mmappnoreply@blogger.com1tag:blogger.com,1999:blog-4027037157672187583.post-37494381421557951642018-03-04T22:35:00.002+08:002018-03-04T22:35:59.256+08:00OpenBSD tests: file writing and downloadPart 1: File writing
512MB RAM1 CPU vCore mkdir -p test && cd test# OS: OpenBSD# Test 100: start here rm ../test/* repeat_times=100 x=1 while [ $x -le "$repeat_times" ] do dd if=/dev/zero of=r.$x.bin bs=1024 count=4096 2>> testLogger.log x=$(( $x + 1 )) done cat testLogger.log | grep secs | awk -v FS="(in|secs)" '{print $2}' >> tmpLogger.file echo 'Total time taken (in secs): ' mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-42354731714899084212018-02-25T14:17:00.000+08:002018-03-04T22:29:36.195+08:00Install OpenBSD and use its httpd as fast as possibleThis is an FAQ-style guide on installing OpenBSD and its httpd.
Difficulty to use this guide: beginner to intermediate.
Time spent on using this guide: around one to two hours.
Length of this guide: about 280 lines / paragraphs
Is this guide helpful?
To be helpful to you, you should be comfortable when you use the command line. (Type commands on Linux or OpenBSD)
Please back up your data mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-76597031067812363992017-08-26T10:04:00.000+08:002018-02-25T20:03:07.242+08:00A conservative general user is considering OpenBSDHello, I have tried different operating systems in the past ten years, Red Hat, CentOS, Ubuntu, Debian, Fedora, Apple Mac and Microsoft Windows. I would like to try something new. I would like to try OpenBSD.
What "try"? I try something to test if it suits my purpose, e.g. desktop usage including basic text editing in office software (OpenOffice / LibreOffice) as well as server usage including mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-78665368496177187042017-08-19T09:32:00.000+08:002017-08-19T09:32:53.760+08:00Old admins think of systemd commands
My view echoes that of Carlos Fenollosa:
I had been riding the Linux wave for years, until I recently realized that my admin skills needed a total recycling. In a few years we've gone from /etc/init.d/sshd restart to service sshd restart to systemctl start sshd. That's a bit fast in my opinion, but I understand it's the price of progress, aimed to make computers boot faster and theoretically mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-34840348250704156202017-08-06T08:16:00.004+08:002017-08-06T08:19:34.998+08:00Public key of Google Chrome changed leading to NO_PUBKEY errorMy terminal output
... Fetched 12.4 kB in 5s (2,191 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
W: Failed to fetchmmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-18170520817000436792017-06-14T22:59:00.001+08:002017-06-14T22:59:34.735+08:00Firefox print freeze solved by iptables rules on Debian LinuxFirefox is a web browser you use to view web pages.
Try these if Firefox hangs when you press Ctrl + P to print:
# allow local connections to port 631iptables -A INPUT -p tcp --sport 631 -s 127.0.0.1 -d 127.0.0.1 -j ACCEPTiptables -A INPUT -p tcp --dport 631 -s 127.0.0.1 -d 127.0.0.1 -j ACCEPTiptables -A INPUT -p tcp --dport 631 -j DROPiptables -A INPUT -p tcp --sport 631 -j DROPiptables -A mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-3004088117642873682017-01-24T09:17:00.004+08:002017-01-24T09:18:05.929+08:00A start job is running for Raise network interfaces (long time / 5 minutes)This is January 2017. "systemd" should not be used for critical missions.
When the network was down (without electricity), I noticed:
A start job is running for Raise network interfaces (long time / 5 minutes)
In /etc/systemd/system.conf,
#default#DefaultTimeoutStartSec=90s#changedDefaultTimeoutStartSec=40s#default#DefaultTimeoutStopSec=90s#changedDefaultTimeoutStopSec=40s
These settings didmmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-19858186857300069192016-06-09T12:42:00.002+08:002016-06-09T12:42:20.954+08:00Workaround: A stop / start job is runningA stop / start job is running ...
For this error, I do:
echo '' >> /etc/systemd/system.conf echo 'DefaultTimeoutStartSec=6s' >> /etc/systemd/system.conf echo 'DefaultTimeoutStopSec=6s' >> /etc/systemd/system.conf
systemctl reboot
This works for me. mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-23525679786930967602016-06-04T08:57:00.001+08:002016-06-04T08:57:32.891+08:00Print a page as a PDF file on Debian JessieFor those people wondering how to print a page in a web browser as a PDF file successfully on Debian Jessie:
The command
aptitude install cups-core-drivers
The following NEW packages will be installed:
avahi-daemon{a} bc{a} bind9-host{a} cups-browsed{a}
cups-core-drivers cups-daemon{a} cups-filters-core-drivers{a}
geoip-database{a} libavahi-core7{a} libbind9-90{a} libcupsmime1{a}
mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-36741615254149868512016-06-03T23:27:00.003+08:002016-06-09T12:46:49.982+08:00Go back to sysvinit while keeping systemdLatest workaround:
Another workaround.
If I want systemd, see the workaround above.
If I want to use sysvinit, continue...
---
This is June 2016. systemd is still not for me. My current workaround:
The command
aptitude install sysvinit-core init-select
Choose sysvinit.
What does the command do?
This helps me to use sysvinit instead. I could not boot or shut down properly with mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-51365965819511995092016-05-07T11:33:00.002+08:002016-06-09T12:44:55.182+08:00Workaround: A stop job is running for Avahi mDNS/DNS-SD stackThe error message appears when shutting down or rebooting the computer:
A stop job is running for Avahi mDNS/DNS-SD stack (seemingly forever/1 minute 55 seconds)
My temporary workaround:
systemctl stop avahi-daemon.service
# reboot
systemctl reboot
# shutdown
systemctl poweroff
Make this workaround above automatic:
Create a file:
nano /home/user_name/systemd_workaround.sh
The contents ofmmappnoreply@blogger.com2tag:blogger.com,1999:blog-4027037157672187583.post-81889338656594598692016-05-02T20:45:00.003+08:002016-05-02T20:45:49.735+08:00How to change the terminal or console font size?
To change the terminal or console font size, type:
dpkg-reconfigure -plow console-setup
Reference:
Can I change the font of terminal?
http://unix.stackexchange.com/questions/49779/can-i-change-the-font-of-terminalmmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-14011970659344824072016-05-02T12:55:00.003+08:002016-05-02T12:55:34.014+08:00Reviewing my Debian experience up to April 2016
What does "stable" mean? To me, this means that the system boots correctly all the time. The system shuts down correctly too. There is no "blue / black screen of death". The chart shows my experience.mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-43324813666650926432016-05-02T12:10:00.000+08:002016-05-02T12:16:08.555+08:00Upgrade the kernel on Debian JessieNote: Back up your / my data first.
When there is a booting problem, I could upgrade the kernel to see if it helps:
Type the command:
nano /etc/apt/sources.list
Add this line:
deb http://httpredir.debian.org/debian/ jessie-backports main
Save by typing:
Ctrl+x
Type the command:
apt-get update
apt-cache search linux-image
See:
linux-image-_version_ linux-headers-_version_
Type:
apt-getmmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-86626313874144645972016-05-02T11:04:00.001+08:002016-05-02T11:49:33.717+08:00Xfce on Debian Jessie 8.4 experiment againI said it worked. Debian Jessie worked.
I still got 'A start job is running...' error that I had seen previously. No luck. I have seen this error on Debian (supposedly stable) and on Fedora (supposedly cutting edge).
This error showed that such process would run for, eh, the time of no limit. Scary and frustrating.
Then, I thought that this might be a kernel issue as Jessie depends on systemdmmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-83655730331933921542016-04-24T23:00:00.002+08:002016-04-24T23:00:19.722+08:00Xfce on Debian Jessie 8.4 experiment#!/bin/bash# Xfce on Debian Jessie 8.4 experiment## Here was how## I installed Xfce on Debian Jessie 8.4.## I chose the _expert install_ option.## (I was not an expert. :) )## I installed the _base utilities_ at first.## I didn't install the desktop or print server.## Afterwards, I ran the commands:# for Xfce4:aptitude install xfce4# for the commands:aptitude install xfce4-terminal# for the loginmmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-8562285372939326952016-03-24T13:05:00.001+08:002016-03-25T11:26:01.834+08:00iPhone started to get cheaper and other phones tooiPhone started to get cheaper. Perhaps, many mobile phones get cheaper.
iPhone SE costs US$399.
iPhone 6s costs US$649.
A Meizu phone costs US$155, for example.
Samsung S7 costs US$695.
References:
iPhone SE
http://www.apple.com/shop/buy-iphone/iphone-se/16gb-silver-att
iPhone
http://techcrunch.com/2016/03/22/apples-new-iphone-se-unlikely-to-make-a-splash-in-asia-despite-low-price/
mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-67898347386946460412016-03-24T13:02:00.000+08:002016-03-25T11:10:55.312+08:00Cyberbullying? Which site was seriously affected? Solutions?I came across an old article on cyberbullying. It said that Tumblr was the worst for bullying.
Technology has changed. "Reword" can help to ask the people to change insulting words.
References:
"Worst" site(s) for bullying
https://nakedsecurity.sophos.com/2014/12/12/the-social-media-network-thats-worst-for-bullying-is/
Reword the insulting words
http://edition.cnn.com/2016/03/24/health/mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-8566478210552435732016-03-24T12:58:00.000+08:002016-03-24T12:58:24.372+08:00Ransomware? Software that asks for ransom?I am no security expert.
I have heard of the wide spread of ransomware. It may work like this:
Delete all your back up files. (Dangerous)
Encrypt the rest of the files without you knowing it. (Disastrous)
Ask for your money to decrypt the files. (Horrible)
What can be done before all the bad things happen?
Back up your data to an offline disk. When saving data offline, the chance of being mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-23233463941323402092016-01-03T11:43:00.003+08:002016-01-03T11:43:56.688+08:00Good things about OpenOffice / LibreOffice OpenOffice / LibreOffice is good for these things:
No need to pay for it.
No need to pay a monthly fee or yearly fee.
No activation key is necessary.
No need to register. No personal details such as email addresses are required.
No need to buy a license for a computer or a number of computers.
Unlimited number of installation / reinstallation on the same computer is allowed.
You are allowed mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-91777599124149074742016-01-02T12:28:00.002+08:002016-01-03T11:24:20.957+08:00Ian Murdock, thank you.Ian Murdock, thank you for starting Debian, the system enabling me to produce results every day.
Debian has helped me to access the technology field. It is sad that Ian passed away.mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-28661168490184322782015-12-04T12:25:00.000+08:002015-12-04T12:25:08.596+08:00Why doesn't OpenOffice / LibreOffice win in the office suite competition?People are more familiar with MS Office (Microsoft Office). They don't want to change. Being reluctant to change may explain parts of the human nature. Okay, someone likes the Ribbon UI MS Office promotes. Someone doesn't like this UI but she or he becomes familiar with it.Secondly, people expect OpenOffice / LibreOffice to be a Microsoft clone. Whatever MS Office can do, OpenOffice / LibreOfficemmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-7415694746047620462015-12-04T11:31:00.003+08:002015-12-04T11:31:45.413+08:00Apparently less time to boot on LinuxWhen comparing Windows with Debian Linux, it is noted that Debian Linux does not display a message such as this one:"Preparing to configure Windows.Do not turn off your computer."This message says that some sorts of configuration is going on. I don't know exactly what's going on. Regardless of this lack of information, I know that it takes minutes of time for the computer user to wait.Debian mmappnoreply@blogger.com0tag:blogger.com,1999:blog-4027037157672187583.post-26610020983374044122015-12-02T23:38:00.001+08:002015-12-02T23:38:27.739+08:00No more Google Chrome supportReportedly, Google will stop supporting Google Chrome on some platforms. What does this mean? For 32-bit Linux users, this could be bad news. For users of older operating systems, this could be bad news too.
That is why having a private company controlling a piece of software could create some trouble for some users. Private companies are companies which want to make a lot of money, or to save ammappnoreply@blogger.com0