[RISOLTO]script bash per backup

Linguaggi di programmazione: php, perl, python, C, bash e tutti gli altri.
axr
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1892
Iscrizione: sabato 1 aprile 2006, 16:10
Distribuzione: kubuntu 22.04

Re: [RISOLTO]script bash per backup

Messaggio da axr »

no se lo avvio normalmente no, ma ho lo stesso problema con kwrite!
non so se centra ma se avvio una qualsia applicazione da root, ho questyo errore:
axenx@axenx:~$ kdesudo kate
kdesudo(26332) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kate: cannot connect to X server :0
axenx@axenx:~$

forse il problema è questo!
neanche dolphin e bleachbit mi partono da root
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12943
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: [RISOLTO]script bash per backup

Messaggio da thece »

Prova a dare il comando

Codice: Seleziona tutto

xhost +
poi ripeti

Codice: Seleziona tutto

kdesudo kate
funziona?
axr
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1892
Iscrizione: sabato 1 aprile 2006, 16:10
Distribuzione: kubuntu 22.04

Re: [RISOLTO]script bash per backup

Messaggio da axr »

axenx@axenx:~$ xhost +
access control disabled, clients can connect from any host
axenx@axenx:~$ sudo xhost +
[sudo] password for axenx:
access control disabled, clients can connect from any host
dopo una ricerca ho dato questo:

Codice: Seleziona tutto

axenx@axenx:~$ xhost + axenx
axenx being added to access control list
axenx@axenx:~$ crontab -e
crontab: installing new crontab
axenx@axenx:~$ xhost
access control disabled, clients can connect from any host
INET:axenx
INET:localhost
SI:localuser:axenx
axenx@axenx:~$ 
da terminale kate si apre con kdesudo ma da cron mi va sempre in crash

Codice: Seleziona tutto

axenx@axenx:~$ kdesudo kate 
kdesudo(26571) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display  ":0" 

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kate(26588)/kate-filetree KateFileTreePluginView::KateFileTreePluginView: BEGIN: mw: Kate::MainWindow(0x10ce600)
kate(26588)/kate-filetree ProxyItem::ProxyItem: ProxyItem(0x127f100,0x0,-1,QObject(0x0) ,"m_root")
kate(26588)/kate-filetree ProxyItem::ProxyItem: ProxyItem(0x127fdf0,0x0,-1,QObject(0x0) ,"Senza nome")
kate(26588)/kate-filetree KateFileTreeModel::documentOpened: before add: ProxyItem(0x127fdf0,0x0,-1,KateDocument(0x1131fe0) , "Senza nome" )
kate(26588)/kate-filetree KateFileTreeModel::setupIcon: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::setupIcon: END!
kate(26588)/kate-filetree KateFileTreeModel::handleInsert: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::handleInsert: empty item
kate(26588)/kate-filetree ProxyItem::addChild: added ProxyItem(0x127fdf0,0x127f100,0,KateDocument(0x1131fe0) , "Senza nome" )   to ProxyItemDir(0x127f100,0x0,-1,"m_root", children:1)
kate(26588)/kate-filetree KateFileTreeModel::documentOpened: after add: ProxyItem(0x127fdf0,0x127f100,0,KateDocument(0x1131fe0) , "Senza nome" )
kate(26588)/kate-filetree KateFileTreeProxyModel::KateFileTreeProxyModel: BEGIN!
kate(26588)/kate-filetree KateFileTreePluginView::setListMode: BEGIN
kate(26588)/kate-filetree KateFileTreePluginView::setListMode: treeMode
kate(26588)/kate-filetree KateFileTreePluginView::setListMode: END
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: BEGIN!
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: BEGIN!
kate(26588)/kate-filetree KateFileTreeProxyModel::docIndex: !
kate(26588)/kate-filetree KateFileTreeModel::docIndex: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::docIndex: END!
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: selected doc= KateDocument(0x1131fe0) QModelIndex(0,0,0x127f1c0,KateFileTreeProxyModel(0x10ca270) )
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: display= "Senza nome"
kate(26588)/kate-filetree KateFileTreeModel::documentActivated: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::documentActivated: adding viewHistory ProxyItem(0x127fdf0,0x127f100,0,KateDocument(0x1131fe0) , "Senza nome" )
kate(26588)/kate-filetree KateFileTreeModel::updateBackgrounds: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::updateBackgrounds: m_editHistory contains  0  elements
kate(26588)/kate-filetree KateFileTreeModel::updateBackgrounds: END!
kate(26588)/kate-filetree KateFileTreeModel::documentActivated: END!
kate(26588)/kate-filetree KateFileTree::slotCurrentChanged: current: QModelIndex(0,0,0x127f1c0,KateFileTreeProxyModel(0x10ca270) )  previous: QModelIndex(-1,-1,0x0,QObject(0x0) )
kate(26588)/kate-filetree KateFileTree::slotCurrentChanged: got doc, setting prev: QModelIndex(0,0,0x127f1c0,KateFileTreeProxyModel(0x10ca270) )
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: END!                                                   
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: BEGIN!                                                 
kate(26588)/kate-filetree KateFileTreeProxyModel::docIndex: !                                                         
kate(26588)/kate-filetree KateFileTreeModel::docIndex: BEGIN!                                                         
kate(26588)/kate-filetree KateFileTreeModel::docIndex: END!                                                           
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: selected doc= KateDocument(0x1131fe0) QModelIndex(0,0,0x127f1c0,KateFileTreeProxyModel(0x10ca270) )                                                                          
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: display= "Senza nome"                                  
kate(26588)/kate-filetree KateFileTreeModel::documentActivated: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::documentActivated: adding viewHistory ProxyItem(0x127fdf0,0x127f100,0,KateDocument(0x1131fe0) , "Senza nome" )
kate(26588)/kate-filetree KateFileTreeModel::updateBackgrounds: BEGIN!
kate(26588)/kate-filetree KateFileTreeModel::updateBackgrounds: m_editHistory contains  0  elements
kate(26588)/kate-filetree KateFileTreeModel::updateBackgrounds: END!
kate(26588)/kate-filetree KateFileTreeModel::documentActivated: END!
kate(26588)/kate-filetree KateFileTreePluginView::viewChanged: END!

può aiutare?

Codice: Seleziona tutto

Feb 17 12:11:16 localhost CRON[24374]: (CRON) info (No MTA installed, discarding output)
Feb 17 12:13:01 localhost CRON[24667]: (axenx) CMD (export DISPLAY=:0 && /home/axenx/check.sh)
Feb 17 12:13:22 localhost CRON[24666]: (CRON) info (No MTA installed, discarding output)
Feb 17 12:17:01 localhost CRON[25163]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 17 12:23:01 localhost CRON[25794]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate)
Feb 17 12:23:07 localhost CRON[25793]: (CRON) info (No MTA installed, discarding output)
Feb 17 13:17:01 localhost CRON[18396]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 17 14:17:01 localhost CRON[17917]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 17 15:17:01 localhost CRON[16852]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 17 15:30:01 localhost CRON[18382]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate)
Feb 17 15:30:09 localhost CRON[18381]: (CRON) info (No MTA installed, discarding output)
Feb 17 15:31:01 localhost CRON[18518]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate)
Feb 17 15:31:07 localhost CRON[18517]: (CRON) info (No MTA installed, discarding output)
Feb 17 16:17:01 localhost CRON[6048]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 17 17:09:01 localhost CRON[26018]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate)
Feb 17 17:09:12 localhost CRON[26017]: (CRON) info (No MTA installed, discarding output)
Feb 17 17:13:01 localhost CRON[26635]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate >> /var/log/somelogfile.log)
Feb 17 17:13:01 localhost CRON[26634]: (CRON) info (No MTA installed, discarding output)
Feb 17 17:14:01 localhost CRON[26754]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate )
Feb 17 17:14:09 localhost CRON[26753]: (CRON) info (No MTA installed, discarding output)
Feb 17 17:15:01 localhost CRON[26906]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate >/dev/null 2>&1 )
Feb 17 17:17:01 localhost CRON[27111]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
axenx@axenx:~$ tail -f /var/log/syslog | grep CRON
Feb 17 17:14:01 localhost CRON[26754]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate )
Feb 17 17:14:09 localhost CRON[26753]: (CRON) info (No MTA installed, discarding output)
Feb 17 17:15:01 localhost CRON[26906]: (axenx) CMD (export DISPLAY=:0 && /usr/bin/kate >/dev/null 2>&1 )
Feb 17 17:17:01 localhost CRON[27111]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

Scrivi risposta

Ritorna a “Programmazione”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 17 ospiti