Jump to content

All Activity

This stream auto-updates

  1. Yesterday
  2. Hello, I'm new to shell scripting and I know little basics. Could you please check my below requirement and then suggest me how can I write a logic. I've to read files(krb5cc_a_db is the filename) from below folder in a sequence and should be written into environment variable , and then connects to database using sqlplus in a sequence for different databases. /var/kerberos/a_system/cc/krb5cc_a_db /var/kerberos/a_system/cc/krb5cc_a_db1 /var/kerberos/a_system/cc/krb5cc_a_db2 for this requirement I've written below proto type code so please check and correct m
  3. Last week
  4. Hi Meurig, Did you try pressing <Tab> once? If it still did not solve your problem, it could be an operating system bug.
  5. Hi Chris, The command should be, $ sudo chown -Rf pi:pi /var/www/html Here, chown expects an username and a group name. $(pi) is used to run the pi command and substitute the result in the command sudo chown -Rf $(pi):$(pi) /var/www/html. There is no command pi. Thats why you get this error. If you want to use command substitution here, the command will be, $ sudo chown -Rf $(whoami):$(whoami) /var/www/html Wishing you all the best. Shovon
  6. Great that you've found the solution. I wish you all the best. Shovon
  7. Hi, following on with your tutorial, i was editing the " sudo nano /etc/apache2/envvars " file which had the following lines , export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data If you don’t know what the username is, you can use the whoami command to find it out pi@WP:~ $ whoami pi I then went back to " sudo nano /etc/apache2/envvars " and changed export APACHE_RUN_USER=www-data to APACHE_RUN_USER=pi export APACHE_RUN_GROUP=www-data to APACHE_RUN_GROUP=pi then an the following and the following results pi@WP:~ $ sud
  8. I have found the answer; The command should have been sudo mysql -u root -p. Sorry to have troubled you. Thanks.. Chris
  9. Hi Shahriar, I am following your tutorial hoping to get Wordpress installed on my raspberry pi 3B, Debian 10 Buster. I have installed LAMP and can login to mysql db. As shown below, but when trying to create the database, I get the error. pi@WP:~ $ sudo mysql -root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 41 Server version: 10.3.23-MariaDB-0+deb10u1 Raspbian 10 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input st
  10. Earlier
  11. Meurig Parri

    Mr

    Shahriar Shovon's article about installing multimedia codecs on Ubuntu was very clear and I followed it exactly. But when I came to the 'End-User License Agreement for Microsoft Software' I could go no further. The <OK> area was unresponsive to any mouse or keyboard response. I could only escape by exiting the terminal window, when I was told a procedure was still running. Help please!
  12. Here https://linuxhint.com/install_nextcloud_raspberry_pi/ update guide to show 20 instead of 15 Thank
  13. I think, you want to copy the project to the Docker container's HOME directory. The project is in the config/ directory. To copy the whole project into your Docker container, do the following steps: 1) Run cd $HOME in your Docker host. This will take you to your HOME directory. 2) Clone the git project in the HOME directory. Let's say, the project is in the myproject directory in your Docker host. 3) Navigate to myproject/ directory with cd myproject 4) In your Dockerfile , add the following line to copy the config/ directory to the HOME directory of y
  14. Hi You see that's my problem, I don't know much of what's going on, on the host (that's why I'm curious). Do you have a chance to look into my repository so you can see what I'm trying to do? https://github.com/JupyterPS/Slimline Thanks for your time
  15. Do you have the requirements.txt file in the current working directory of the Docker host?
  16. Hi again .......Tried this, but COPY requirements.txt /config/requirements.txt stmt in dockerfile COPY failed: stat /var/lib/docker/temp/docker-builder240834602/requirements.txt: no such file or directory when building Docker.txt Docker.rtf Docker.rtf
  17. Hi henning, You don't have to use relative paths in WORKDIR. You can use absolute paths as WORKDIR if you want. WORKDIR /path/to/CONFIG/folder That's all you need to navigate to the CONFIG directory. If you just want to copy the item requirements.txt to the CONFIG directory of your Docker container, you can use the COPY command like this: COPY requirements.txt /path/to/CONFIG/folder I hope this helps. Shovon
  18. I'm yoused to using cd when shifting level; but in docker you only have to use WORKDIR every time you make a change of level(as many as you like). PROBLEM: I can see that ./ is the toplevel and I have seen examples like WORKDIR /A/B/C (I believe it must be to go to level 3 C). I have tried (almost every possibility); but are still not near! I have a repository in github https://github.com/JupyterPS/Slimline where I want to move item requirements.txt into folder CONFIG, that means shifting one level down. What would that look like in my dockerfile apart from ./? Looking forward
  19. I've figured out the solution. by mistake i didn't noticed my file on ntfs. Because i have ext4 filesystem for root partition so this thing skipped from my mind. Thanks @Shahriar Shovon for your valuable time and pointing out the solution.
  20. NOTE: It works fine while i'm root. Problem occurs when i'm using it with sudo.
  21. It doesn't have any flag because i just created this file using cat command and redirected some text on that file. Moreover if i have had changed any attribute on that file i could see the flag using sudo lsattr A_b.txt but lsattr also showing lsattr: Invalid argument While reading flags on A_b.txt I think something went wrong with the package e2fsprogs 1.45.6-3 ls -l Output: -rwxrwxrwx 1 fma fma 226 Oct 8 12:59 A_b.txt
  22. I think, you have the immutable flag set on that file. First, remove the immutable flag from the file as follows: $ sudo chattr -i A_b.txt Then, you should be able to set the append attribute as follows: $ sudo chattr +a A_b.txt I hope this helps. Shovon
  23. Hi Farhaan, What filesystem are you using on Arch Linux? BTRFS or EXT4?
  24. sudo chattr +a A_b.txt OUTPUT: chattr: Invalid argument while reading flags on A_b.txt System Info: Operating System: Arch Linux Kernel Version: 5.8.13-arch1-1 OS Type: 64-bit
  25. Hi Mosaddek, I can't see the image. Can you please reupload them? Thanks Shovon
  1. Load more activity


×
×
  • Create New...