Hello,
i'm using Porteus 4.0, xfce, installed on HDD.
I have installed the vnstat module to count the traffic,
but it only runs when i start the vnstat daemon in the terminal, like: # vnstatd -d.
I want to have it automaticaly run at startup,
so i tried several commands like: chmod 0755 /etc/rc.d/ rc.vnstat,
what is suggested somewhere, but nothing worked.
Did somebody with more skills had this problem and worked it out
and is ready to tell me the solution?
thanks
vnstat [Solved]
- Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
vnstat
Hi kihlstedt,
how about
?
how about
Code: Select all
su
toor
chmod 0755 /etc/rc.d/rc.vnstat
/etc/rc.d/rc.vnstat start
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
vnstat
Hi Blaze,
thanks for your reply,
your suggestion starts the daemon for the session
but after reboot the daemon doesn´t start automatically.
In the moment i think that, that is the problem:
guest@porteus:~$ /etc/rc.d/rc.vnstat start
Starting the vnstat daemon...
Error: pidfile: Permission denied
by the way: how do you create this nice frame and put the terminal quotes inside?
thanks
thanks for your reply,
your suggestion starts the daemon for the session
but after reboot the daemon doesn´t start automatically.
In the moment i think that, that is the problem:
guest@porteus:~$ /etc/rc.d/rc.vnstat start
Starting the vnstat daemon...
Error: pidfile: Permission denied
by the way: how do you create this nice frame and put the terminal quotes inside?
thanks
vnstat
kihlstedt,
You need to save the /etc/rc.d/ rc.vnstat as executable in your persistence, so that it survives a reboot.
You need to run this as root. Run the su command first that Blaze mentioned.
Select the text that you want to quote and click Code display (The </> button) from the button list from the top when you edit your reply.
vnstat
Hi jssouza,
thanks for your answer.
i thought to now, that the chmod 0755... makes it executable
and save in the persistence means that it is saved in the porteus/change folder, what is the case.
thanks for your answer.
i´m not sure, if i understand the meaning of that,
i thought to now, that the chmod 0755... makes it executable
and save in the persistence means that it is saved in the porteus/change folder, what is the case.
- Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
vnstat
Code: Select all
su
toor
chmod 0755 /etc/rc.d/rc.vnstat
echo '/etc/rc.d/rc.vnstat start' >> /etc/rc.d/rc.local
reboot
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16