Ok I been playing with Conky now for months, 4 different Distro's and numerous hardware config's.
Most every situation I could search and dig and figure out what I needed.
But on my recent build I got everything working but one that worked for every other Distro I used it on previously.
Using Conky 1.10.8 as installed by this link. https://www.hiroom2.com/2018/07/21/linu ... -conky-en/
Which I have used on every LM install and hardware I have, and some other distro's as well.
Trying to get my NAS drive to show in Conky.
I used to use the folowing method checking the mount first:
[sudo mount -t cifs //192.168.1.9/Download /media/NAS1 -o username=xxxxxx,password=xxxxxx,nounix,uid=1000]
If that mounted then:
[sudo mkdir /media/NAS1]
Then I add line in fstab:
[//192.168.1.8/Download /media/DUDENETNAS1 cifs username=admin,password=akb2357,nounix,auto,user,uid=1000 0 0]
And all worked well up to Mint 19.1, which broke auto mounts, and NAS drive mounting.
Since then the only thing that seems to work well is install Giolo, add the NAS drives, and auto start Gigolo so the the NAS auto mounts and displays on desktop.
Now just trying to figure out how to make it show the NAS drive in Conky.
My conky line to do that used to work:
${color}NAS1:${color}${alignr}${fs_size /media/NAS1} ${fs_used /media/NAS1}
${color orange}${fs_bar 8 /media/NAS1}
Sorry for the long post but wanted to give as much info as necessary to get the needed result.
Adding NAS to Conky
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 2
- Posts: 57
- Joined: Sat Dec 09, 2017 2:15 pm
Adding NAS to Conky
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Adding NAS to Conky
I don't see how that could possibly work, even prior to Mint 19. Your mkdir is attempting to create a directory in a place that almost assuredly already exists if the drive is already mounted at that mount point, and the line in fstab is attempting to mount the network share to a directory that you don't seem to have created in the steps you've posted.dudesplace wrote: ⤴Sat Mar 23, 2019 11:19 pm I used to use the folowing method checking the mount first:If that mounted then:Code: Select all
sudo mount -t cifs //192.168.1.9/Download /media/NAS1 -o username=xxxxxx,password=xxxxxx,nounix,uid=1000
Then I add line in fstab:Code: Select all
sudo mkdir /media/NAS1
Code: Select all
//192.168.1.8/Download /media/DUDENETNAS1 cifs username=admin,password=akb2357,nounix,auto,user,uid=1000 0 0
BTW, unless you use code tags, it's difficult to read your post. Enclose the output between
[ⅽode]
and [/ⅽode]
code markers by selecting </>
from the mini toolbar above the textbox where you type your reply."There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
-
- Level 2
- Posts: 57
- Joined: Sat Dec 09, 2017 2:15 pm
Re: Adding NAS to Conky
Woops sorry pasted wrong line that was part of an old code.
Correction:
If that mounted then:
Then I add line in fstab:
Correction:
Code: Select all
sudo mount -t cifs //192.168.1.9/Download /media/NAS1 -o username=xxxxxx,password=xxxxxx,nounix,uid=1000
Code: Select all
sudo mkdir /media/NAS1
Code: Select all
//192.168.1.9/Download /media/NAS1 cifs username=xxxxxx,password=xxxxxx,nounix,auto,user,uid=1000 0 0
Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Adding NAS to Conky
The problem remains, you're trying to create a directory atdudesplace wrote: ⤴Sun Mar 24, 2019 3:12 am Woops sorry pasted wrong line that was part of an old code.
Correction:If that mounted then:Code: Select all
sudo mount -t cifs //192.168.1.9/Download /media/NAS1 -o username=xxxxxx,password=xxxxxx,nounix,uid=1000
Then I add line in fstab:Code: Select all
sudo mkdir /media/NAS1
Code: Select all
//192.168.1.9/Download /media/NAS1 cifs username=xxxxxx,password=xxxxxx,nounix,auto,user,uid=1000 0 0
/media/NAS1
while you've already got the device mounted at /media/NAS1
. It won't work. The only way it would work is to create /media/NAS1
, set the correct owner to the user, mount it, then if it mounts, add the line to fstab."There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
-
- Level 2
- Posts: 57
- Joined: Sat Dec 09, 2017 2:15 pm
Re: Adding NAS to Conky
So are you saying that I should delete /media/NAS1,catweazel wrote: ⤴Sun Mar 24, 2019 3:27 amThe problem remains, you're trying to create a directory atdudesplace wrote: ⤴Sun Mar 24, 2019 3:12 am Woops sorry pasted wrong line that was part of an old code.
Correction:If that mounted then:Code: Select all
sudo mount -t cifs //192.168.1.9/Download /media/NAS1 -o username=xxxxxx,password=xxxxxx,nounix,uid=1000
Then I add line in fstab:Code: Select all
sudo mkdir /media/NAS1
Code: Select all
//192.168.1.9/Download /media/NAS1 cifs username=xxxxxx,password=xxxxxx,nounix,auto,user,uid=1000 0 0
/media/NAS1
while you've already got the device mounted at/media/NAS1
. It won't work. The only way it would work is to create/media/NAS1
, set the correct owner to the user, mount it, then if it mounts, add the line to fstab.
and then add //192.168.1.9/Download /media/NAS1 cifs username=xxxxxx,password=xxxxxx,nounix,auto,user,uid=1000 0 0
Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
Re: Adding NAS to Conky
Just create the directory BEFORE you try to mount the drive there. And you only need to type it once.