Categories
Linux Mastering Development Ubuntu

Ubuntu PC vs ethernet

I have been experiencing a conflict so bizarre between my ubuntu PC vs my tp-link router that I don’t know where or what to be searching for. A few months ago, I assembled an AMD-ryzen + ASUS prime computer – and installed ubuntu 19.10 on it. This machine has been great, no problems whatsoever – […]

Categories
Linux Mastering Development Ubuntu

When i open my webbook it need a log in password and i forgot it

Is there another way to pass this log in site. Because i have more the 5 years trying to open it.

Categories
Linux Mastering Development Ubuntu

Sorting and moving a directory with files into subdirectories

Im trying to move and sort a directory of files into alphabetically named subdirs. Only based on first letter. An easy way to do this in BASH ? Possibly generating the subdirs in the script !

Categories
Linux Mastering Development Ubuntu

Mounting a WD Livebook share on raspberry Pi using fstab

I have managed to successfully mount a WD Livebook share (called tv with Public access) using the following command: sudo mount -t cifs -o credentials=/smb-credentials,dir_mode=0777,file_mode=0777,rw,soft,sec=ntlm,vers=1.0 //192.168.0.18/tv /home/pi/livebook However, I would like to do this automatically by amending /etc/fstab. But doing that just doesn’t seem to work. Here is the line I added to the fstab […]

Categories
Linux Mastering Development Ubuntu

Help synchronizing my intuos pro l with bigger monitor

I have a graphics tablet of about 15.4 inches (I think) and a 23-inch monitor. Because it was a stretch to draw, I tried to limit the drawing area on the monitor to the size of the tablet’s active area. Wacom Intuos Pro L Pen stylus id: 12 type: STYLUS Wacom Intuos Pro L Pad […]

Categories
Linux Mastering Development Ubuntu

Ubuntu 18.04.4 LTS USB drive not working

I am new to ubuntu. I plug in my usb harddrive, but that harddrive didn’t show in files > other locations area. Where can I open my usb hardriver? I looked at disk and I do see my USB drive under /dev/sdd1. But when I try to go there it said it isn’t a directory. […]

Categories
Linux Mastering Development

ls + file globbing + grep

I am having trouble using the ls command, file globbing, and the grep command. Consider the following file/directory tree. abc/ def ghi.txt jkl def/ f01 abc abc.txt ghi.txt Suppose If I want to completely ignore the abc/ directory and report everything else. Trying ls -lR -Iabc . does report the /def/abc.txt file but ignores the […]

Categories
Linux Mastering Development

How to speed up the usb drives?

Lately I’m using usb 2.0 drives to move things around,in order to free a bit of local traffic, but unfortunately it takes so much time to write things. A first approach is to use a no sync feature on fstab based on the UUID; but this carry the risk of data losing if (by whatever […]

Categories
Linux Mastering Development

Debugging systemd service

I’m trying to create a daemon to monitor my system’s CPU temps and adjust the clock-rate if it gets too high, but I’ve never written a daemon before and I’m not sure I’ve done any of it right. I created two files in a folder inside of /usr/local/lib as according to the file-heirarchy, called throttle_daemon […]

Categories
Linux Mastering Development

BASH Script running as root, tidy way to group commands run as another user?

I’m aware that i can run each command as a different user with: su -s /bin/bash “command” – user But there’s several commands to run and i was looking for a neater way to do it than putting su on every line. How can i say ‘all commands from here run as userX’ and then […]