linux – Make CUPS refresh status (specifically ink)

I finally got an Epson printer to work on Linux. But my Windows family was working the printer hard, and it was out of ink. So the first Linux job I submitted got held, because no ink. No problem, I have ink and I installed it. Now, my problem is, I can’t make CUPS go query the printer again and notice that it has ink…or it’s a problem with the driver. CUPS (or something) is caching data, I know this because I shut down the machine and network, then rebooted the machine. As soon as CUPS starts with a held job it says there’s no ink, and there’s no network to ask the printer.

It’s not the printer, it says the ink is fine and Windows machines are printing just fine.

So, I need to make CUPS forget status and ask the printer again.

linux – Host key verification failed SSH Github

I’ve taken a relatively simple approach to try and securely clone my GitHub repo but still struggling.

On My Mac I ran specifying name as MyKey and no password

ssh-keygen -t rsa

I uploaded the contents of the public key to GitHub with read and write access. Then I ran the following commands on my server:

cat > /root/.ssh/github.id_rsa << EOF
The private key 

chmod 600 /root/.ssh/github.id_rsa
cat > /root/.ssh/config << EOF
    IdentityFile ~/.ssh/github.id_rsa
chmod 600 /root/.ssh/config

git clone /var/www/test

However the error I get back is:

Cloning into '/var/www/test'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Where might I have gone wrong?

power management – Hard disk spin-up on demand only under linux

I have a PC where the system (Debian 11) resides on an SSD. As an addition to this I would like to set up two hard drives as a RAID (level 1). Because I would use the RAID only for occasional backups I would like to keep the disks spun down when not requested for the backup.

I would like to use Power-up in standby or something similar to keep the disks from spinning up when the PC is started/waken from hibernation. I have read warnings not to use the feature unless I am sure that it is supported by the OS, HHD and motherboard.
I know that it is supported by the linux kernel and I guess that I can just try the disk. However, I have no idea how to check if the motherboard supports the feature (no info on its website) and it seems to me that I should check it to prevent no being able to wake the disk. How can I safely use this feature or any alternative?

Moreover, I would like to know, how is the setup affected by the fact that there would be software RAID running on the disks.

[WTS] KVM SSD VPS ⚡ Linux & Windows RDP ⚡ Custom ISO ⚡ Unmetered 1 Gbps Bandwidth ⚡

KVM VPS Sale @ Veeble Hosting –
Flat 20% Discount


  • Starting from $8.5 per month
  • Unmetered 1000 Mbps bandwidth
  • FREE Basic Management on all Plans
  • Dedicated Resources
  • Smart Control Panel with Shutdown, Boot, Reboot, Re-install and console access.
  • Instant Setup
  • US located servers
  • RAID-10 SSD Storage
  • Linux & Windows OS
  • Custom ISO Load on request

Order KVM VPS here

We accept the following payment methods

  • PayPal
  • Skrill
  • All Major International Credit Cards
  • Perfectmoney
  • Payeer
  • Bitcoin, Ethereum, Litecoin, Ripple, Tether, Dogecoin
  • All Indian Credit/Debit cards and Netbanking
  • Webmoney
  • Paysafecard
  • Alipay
  • Tenpay
  • QIWI
  • Local Bank transfer in US, UK
  • SEPA Transfer
  • Wire/Swift Transfer

Know more about the payment methods here –

Our Support

(/FONT)(/COLOR)We tirelessly work around the clock to ensure top notch support and a wonderful customer experience.
You can contact us through

  • Email/tickets (24×7)
  • Live Chat (24×7)



(/FONT)(/COLOR)(COLOR=#000000)(COLOR=#000000)(FONT=verdana)(FONT=verdana)(FONT=verdana)Connect with us through (/FONT)(COLOR=#000000)(COLOR=#000000)(FONT=verdana)social networks(/FONT)(/COLOR)(/COLOR)

(/FONT)(/FONT)(/COLOR)(/COLOR)(COLOR=#000000)(COLOR=#000000)(FONT=verdana)(FONT=verdana)(COLOR=#000000)(COLOR=#000000)(FONT=verdana)Twitter: (/FONT)(/COLOR)(/COLOR)
(COLOR=#000000)(COLOR=#000000)(FONT=verdana)Facebook: (/FONT)(/COLOR)(/COLOR)
(COLOR=#000000)(COLOR=#000000)(FONT=verdana)LinkedIn: (/FONT)(/COLOR)(/COLOR)

If you have any questions please log on to (/FONT)(/COLOR)(/COLOR)

.(tagsToTranslate)webmaster forum(t)internet marketing(t)search engine optimization(t)web designing(t)seo(t)ppc(t)affiliate marketing(t)search engine marketing(t)web hosting(t)domain name(t)social media

bash – I can’t verify that the environment variable “SECRET_KEY_BASE” is properly set in Linux with this command: $ printenv | grep SECRET_KEY_BASE

My ruby ​​version is 2.6.6, my mysql version is 8.0.23, my mysql2 version is 0.5.3, my bundler version is 2.2.21, my rails version is, and my Xcode version is 12.5.

I use macOS Big Sur(version 11.4) and the text editor “Atom”.

I’m planning to release my Rails application with the URL of HEROKU(example. https://(My APP Name)

I ran the following command.

$ heroku open

The following error occured.

An unhandled lowlevel error occurred. The application logs may have details.

I set two environment variables as below with this command: $ heroku config:set (ENVIRONMENT VARIABLE NAME).

$ heroku config:set DATABASE_USERNAME=****
$ heroku config:set DATABASE_PASSWORD=****

I ran the following command.

$ heroku config

DATABASE_URL: postgres://****
RACK_ENV: production
RAILS_ENV: production

I ran the following command to get GENERATED_CODE.

$ RAILS_ENV=production rake secret


I ran the following command.

$ vi /etc/profile

I set the environment variable SECRET_KEY_BASE as below in Vim editor.

# System-wide .profile for sh(1)

if ( -x /usr/libexec/path_helper ); then
        eval `/usr/libexec/path_helper -s`

if ( "${BASH-no}" != "no" ); then
        ( -r /etc/bashrc ) && . /etc/bashrc


I saved the above SECRET_KEY_BASE and ended Vim editor with the two below commands.

:w !sudo tee %

I opened the vim editor again as below with this command:$ vi /etc/profile.

# System-wide .profile for sh(1)

if ( -x /usr/libexec/path_helper ); then
        eval `/usr/libexec/path_helper -s`

if ( "${BASH-no}" != "no" ); then
        ( -r /etc/bashrc ) && . /etc/bashrc


"/etc/profile" (readonly) 13L, 346B

I ran the two following command for verifying that the environment variable SECRET_KEY_BASE is properly set in Linux.

$ printenv | grep SECRET_KEY_BASE

But I can’t verify that the environment variable SECRET_KEY_BASE is properly set in Linux with this command:

$ printenv | grep SECRET_KEY_BASE

or with:


Would you like to tell me the reason why I can’t verify that the environment variable SECRET_KEY_BASE is properly set in Linux with the two following command?

$ printenv | grep SECRET_KEY_BASE

mariadb 10.3 – Authentication relying on mysql_native_password seems to also check for Linux user?

I have a mariaDB 10.3 install. The mysql.table states that ‘root’ login relies on mysql_native_password plugin, with no password set.

If my linux user is root, I am able to connect to mysql using;

mysql -u root -h localhost

If I login as a non privileged Linux user, when I try to connect to mysql, I get the following error:

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

Usually people having this issue have a plugin like unix_sock enabled (ex see this reply), but I don’t. And by reading the mysql_native_password doc, I don’t think the plugin is the issue. This plugin doesn’t seem to rely on the Linux user to authenticate (I’m not native English, I may missed the point).

Any idea ? NL Linux Virtual Servers| 99.9% Network Uptime! | Forum Promotion
Fast Offshore Hosting

LibertyVPS is commited to protect your data, privacy and provide you with high quality hosting. We offer KVM VPS that have the option to run Linux and Windows, we only use high quality hardware and high speed gigabit connections. All our VPS come with secured storage, high bandwidth limits and dedicated RAM. We accept Bitcoin as one of our many payment methods for our bitcoin vps. Bitcoin is the best and easiest way to pay online and is fully anonymous to keep your privacy. All Bitcoin payments are processed automatically via BitPay and will be credited once the payment has been made.

LibertyVPS offshore VPS are great for running websites, game servers, bitcoin wallets, email servers, file servers, and much more. All our Linux servers come with a wide variety of OS templates you can choose from to install and all the resources are dedicated. The best choice for beginners or professionals, is LibertyVPS offshore VPS. Our offshore VPS are located in our NL datacenter. Our datacenter is secured and located offshore for the best privacy and security. You can use your server to host websites, download files and more! We use the Ecatel Datacenter, located in Amsterdam. Ecatel uses the best networking equipment, hardware and transit providers. All bandwidth is premium bandwidth that results in very low ping and very fast speeds.

Check out OUR OFFSHORE Linux VPS Hosting Packages:

Bronze VPS plan
CPU Cores – 1 Core
Dedicated RAM – 1 GB
Disk Space – 25 GB
Monthly Bandwidth – 2 TB
Virtualization – Linux KVM
ORDER NOW$19.99/month

Silver VPS plan
CPU Cores – 2 Cores
Dedicated RAM – 2 GB
Disk Space – 50 GB
Monthly Bandwidth – 4 TB
Virtualization – Linux KVM
ORDER NOW$39.99/month

Gold VPS plan
CPU Cores – 4 Cores
Dedicated RAM – 3 GB
Disk Space – 75 GB
Monthly Bandwidth – 8 TB
Virtualization – Linux KVM
ORDER NOW$59.99/month

Platinum VPS plan
CPU Cores – 8 Cores
Dedicated RAM – 4 GB
Disk Space – 100 GB
Monthly Bandwidth – 10 TB
Virtualization – Linux KVM
ORDER NOW$79.99/month

Payment Methods
You can order our VPS using the following payment methods: PayPal, Bitcoin (Anonymous Shared Wallet), Perfect Money, OKPAY. If you require other payment method, we are flexible! Feel free to contact us!

Support / Contact
You can contact us at our ticketing system, or click here to use our contact form!

Terms of Service
We do not allow: Illegal Pornography, DDoS / DoS, Malware, SPAM / Phishing, Terrorism.

command line – Reference all paths in single linux script – like a header file for better portability

Shell Scripting newbie here.

Please bear with me.

Linux 3.0.101-108.87-default x86_64

I have which is referencing folders . I am trying to include all these paths in the script in a single and then reference the in

I am doing this right now
setenv SCRIPT  /../site/SCRIPTS
setenv TOP     /../site/TOP
setenv SUB1    /../site/../.../SUB1
setenv SUB2    /../site/../.../SUB2
setenv SUB3    /../site/../.../SUB3
setenv SUB4    /../site/../.../SUB4
setenv SUB5    /../site/../.../SUB5

Instead I want to do something like this 


and will look something like this

setenv SCRIPT  /../site/SCRIPTS
setenv TOP     /../site/TOP
setenv SUB1    /../site/../.../SUB1
setenv SUB2    /../site/../.../SUB2
setenv SUB3    /../site/../.../SUB3
setenv SUB4    /../site/../.../SUB4
setenv SUB5    /../site/../.../SUB5

This allows me to make the script modular by just including in another script and easier to debug.

What should I be doing ?

I don’t want to include this in .alias

linux – rEFInd entering to initramfs

I have POP OS 20.10 in a dual boot with Windows 10. Windows and my BIOS are in UEFI mode. I installed reFInd and installed the Matrix theme. When I rebooted the system and booted into POP I got into the initramfs screen. Searching on the internet to get out I needed to execute the command

fsck -c -y /dev/sdaX 

I did and still dint boot into Pop. Then I change the order in the BIOS to the old grub loader and everything worked fine. The I remembered that when I installed pop I had to do a special thing in order to have a grub loader, the commands where

sudo apt update -y && sudo apt upgrade -y
sudo apt install grub-efi grub2-common grub-customizer
sudo grub-install
sudo cp /boot/grub/x86_64-efi/grub.efi /boot/efi/EFI/pop/grubx64.efi

and then changing inside grub customizer the OUTPUT_FILE enty to /boot/efi/EFI/pop/grub.cfg. The procedure I followed is in this page.

I suspect that this is the reason reFind is not working. But I’m clueless on how to solve it and haven’t found a similar case. Please can someone help me fix this?


I forgot to explain my disk layout. I have 2 disks, 1 SSD and 1 HDD. There are 2 partitions in the HDD, one for Windows data and the other one is /home. In the SSD I have installed Windows, the boot, Linux swap, and /root partitions

linux – Is there a way to transfer SMS mesages from a Samsung Galaxy S5) to an Ubuntu PC, in a form in which I can view the SMS messages on my PC?

I want to transfer the SMS messages on my Samsung Galaxy S5 smartphone to my PC (with Linux Ubuntu 20.04.2 LTS), in a form in which I can open and view the messages on my PC as I do on my smartphone.

I know about the apps which can back up smartphone data, such as Kies and Smart Switch for Samsung phones and ADB and Android File Transfer for Android devices. But as far as I can tell, these only back the SMS data up rather than save them as files which can be opened on PC desktop.