Search found 967 matches

by Dai_trying
2021-09-01 10:44
Forum: Hardware
Topic: Logitech mouse sporadically freezes
Replies: 5
Views: 1089

Re: Logitech mouse sporadically freezes

Sometimes a (cordless) mouse will have it's own in-built power-saving feature and can "switch off" by itself to save power, this is usually overcome by simply clicking the mouse button and wait a few seconds for it to become responsive again. This might not be your problem but it might be ...
by Dai_trying
2021-08-31 10:41
Forum: General Questions
Topic: Debian 11 set path at login ?
Replies: 28
Views: 1870

Re: Debian 11 set path at login ?

One thing you could try is to add a line to each config file you are running like this logger "running bashrc now" obviously you should change bashrc in this command to whichever config file you want to follow, and then simply look at /var/log/syslog to see which files are run when your te...
by Dai_trying
2021-08-30 17:26
Forum: General Questions
Topic: Debian 11 set path at login ?
Replies: 28
Views: 1870

Re: Debian 11 set path at login ?

It could be that you have a (global settings) bash.bashrc file in /etc/ that gets called and therefore prevents the .profile in ~/ being called, I haven't looked into this recently but am going from memory when I wanted my ~/bin/ added to $PATH.
by Dai_trying
2021-08-30 10:25
Forum: General Questions
Topic: Debian 11 set path at login ?
Replies: 28
Views: 1870

Re: Debian 11 set path at login ?

You could try the following which works on my system . ~/.profile I usually copy the code you showed # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH" echo 1 fi to my ~/.bashrc file to ensure all terminals have access to ...
by Dai_trying
2021-08-20 08:51
Forum: General Questions
Topic: Software for remote control of the GUI desktop
Replies: 6
Views: 1168

Re: Software for remote control of the GUI desktop

I use teamviewer for times when I need to remote access other machines, it has worked well for me and is free to use for personal use.
by Dai_trying
2021-08-05 07:11
Forum: Installation
Topic: Is my system not good enough for graphic environment?
Replies: 14
Views: 1771

Re: Is my system not good enough for graphic environment?

Have you tried the 64 bit versions rather than 32 bit? I don't know how different it would be but I always use 64 bit where the machine is capable (which yours is).
by Dai_trying
2021-07-20 16:05
Forum: Beginners Questions
Topic: crash logs
Replies: 3
Views: 1646

Re: crash logs

Generally speaking logs can be found at /var/log/ some applications have their own folder there. the syslog file is often useful to me but it really depends where the application writes it's logs to.
by Dai_trying
2021-04-04 09:43
Forum: System and Network configuration
Topic: Mail command use with msmtp + msmtp-mta doesn't work
Replies: 5
Views: 2685

Re: Mail command use with msmtp + msmtp-mta doesn't work

You are welcome, I was just offering an alternative as I don't use your method to send mails, hopefully someone with more/better understanding will be along to offer something.
by Dai_trying
2021-04-03 08:46
Forum: System and Network configuration
Topic: Mail command use with msmtp + msmtp-mta doesn't work
Replies: 5
Views: 2685

Re: Mail command use with msmtp + msmtp-mta doesn't work

I have a script that sends emails (via gmail) as required using "sendemail", there are two caveats though 1. when using gmail you must first enable "less secure apps" in google settings. 2. the password is in plain text inside your scripts. if those don't put you off you can use ...
by Dai_trying
2021-03-17 09:11
Forum: General Questions
Topic: Two debian accounts and sound gets disabled in one of them
Replies: 16
Views: 8904

Re: Two debian accounts and sound gets disabled in one of th

Personally I would try adding the group(s) to see if it helps although as sound sometimes works and sometimes doesn't this might not help, and HOAS's advice is most likely a better way to go about this.
by Dai_trying
2021-03-17 09:01
Forum: Beginners Questions
Topic: Help needed on setting up a debian mirror
Replies: 1
Views: 2415

Re: Help needed on setting up a debian mirror

I had similar issue with apt-mirror, I use the postmirror.sh script to download the files I needed for creating live-images from my local mirror with wget, here are some of the lines I use, you will need to adjust yours to reflect the files you need and the repository you use, but it should get you ...
by Dai_trying
2021-03-16 09:10
Forum: General Questions
Topic: Two debian accounts and sound gets disabled in one of them
Replies: 16
Views: 8904

Re: Two debian accounts and sound gets disabled in one of th

check the second user has group permissions set (just type groups from a terminal), check against your own user and add groups as required

Code: Select all

# usermod -aG <group> <user>
This may or may not be the problem but is has caught me out before so worth checking.
by Dai_trying
2021-03-10 21:56
Forum: General Questions
Topic: Help creating an alias
Replies: 12
Views: 3424

Re: Help creating an alias

placing the script in $HOME/bin does work, as long as I don't remove the .sh extension, if I do, then I get the "one parm" error, otherwise running cearch.sh pkg_name works as expected. I can't see why you get any error by changing the name of the file from cearch to cearch.sh, when I tes...
by Dai_trying
2021-03-10 19:54
Forum: General Questions
Topic: Help creating an alias
Replies: 12
Views: 3424

Re: Help creating an alias

Thanks, that works. Do you know why it works as a script but not as a bash function or alias? I think it is either something to do with passing a parameter or a problem with pipes, not too sure really, either way it's just much easier (IMO) to throw a script in a local bin. I usually have one in my...
by Dai_trying
2021-03-10 08:49
Forum: General Questions
Topic: Help creating an alias
Replies: 12
Views: 3424

Re: Help creating an alias

create a bash script (called "cearch" for your example) and place it in /usr/local/bin/ and it will work.

example bash script

Code: Select all

#!/bin/bash
apt-cache search $1 | sort | less
P.s. dont forget to make it executable (chmod +x)
by Dai_trying
2021-02-16 23:19
Forum: Beginners Questions
Topic: Keepassxc re-installation gives errors
Replies: 11
Views: 5778

Re: Keepassxc re-installation gives errors

Looks like I have some housekeeping to do. Any suggestions? I would first try apt autoremove to see if any kernels can be easily removed, I believe it leaves at least the current and 1st previous ones intact and so should be safe to use, just check what is to be removed first in case anything else ...
by Dai_trying
2021-02-15 21:10
Forum: Beginners Questions
Topic: Keepassxc re-installation gives errors
Replies: 11
Views: 5778

Re: Keepassxc re-installation gives errors

E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-4.19.0-14-amd64 with 1.
/boot is not (usually) in your efi partition, I would guess that "df -h" might show where your space is lacking (my bet is on /)
by Dai_trying
2021-02-09 16:22
Forum: Programming
Topic: [SOLVED] Practicality of Bash with unconventional pathnames
Replies: 11
Views: 8943

Re: Practicality of Bash with unconventional pathnames

I recently had a problem with file and path names with a bash script and the way I managed to solve it was to change the IFS to newline only, this allowed spaces and special characters in filenames and paths, it has worked so far (script used daily for last couple of weeks) but I don't know if it wi...
by Dai_trying
2021-01-22 16:14
Forum: System and Network configuration
Topic: Bullseye: "no bootable device"
Replies: 4
Views: 2627

Re: Bullseye: "no bootable device"

Absolutely, my apologies. :oops: