Forumi


Povratak   PC Ekspert Forum > Računala > Software > Operativni sustavi
Ime
Lozinka

Odgovori
 
Uređivanje
Staro 01.10.2024., 09:52   #3661
Nikky
Moderator
 
Nikky's Avatar
 
Datum registracije: Sep 2006
Lokacija: St
Postovi: 23,056
Na kojij particiji je Linux, ova Partition 7 ?

Prije svega zapiši / negdje kopiraj GUID od Linux particije, eventualno i od prve particije gdje je Boot loader i GRUB.
Prvo kopiraj na početak diska tu prvu particiju, potom kopiraj Linux particiju s tim da bude normalna particija a ne u okviru extended,
ako je prevelika treba je smanjiti (shrink).
Nakon toga ako ne prolazi boot na lapu treba popraviti GRUB tj. boot da mu je u opisu particija sa Linux - om.
Nikky je offline   Reply With Quote
Staro 01.10.2024., 14:10   #3662
spiderhr
Premium
 
Datum registracije: Jul 2021
Lokacija: Sesvete
Postovi: 756
Tnx.

Instalirao sve ispočetka. Nije dugo trajalo i lakše je bilo. Ove vaše savjete ću možda drugi puta isprobati tj. prvo ću se poigrati s VM-ovima.


Bojao sam se da nešto ne zeznem i onda mi se oduži vrijeme.

Nisam do sada instalirao sistem. Odradio sam to vrlo brzi i prebacio samo fajlove koji mi trebaju (baze i projekti). LAMP se isto brzo instalirao a već imam i korake zapisane otprije što trebam sve napraviti pa je ubrzalo vrijeme. Kuharica je odradila svoje.

Bilo je još letanja po uredu sim-tam.


Hvala dečki na savjetu.
__________________
Mali Čile SAD Češka Peru
spiderhr je offline   Reply With Quote
Oglasni prostor
Oglas
 
Oglas
Staro 01.10.2024., 15:52   #3663
tomek@vz
Premium
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 3,927
Citiraj:
Autor spiderhr Pregled postova
Tnx.

Instalirao sve ispočetka. Nije dugo trajalo i lakše je bilo. Ove vaše savjete ću možda drugi puta isprobati tj. prvo ću se poigrati s VM-ovima.


Bojao sam se da nešto ne zeznem i onda mi se oduži vrijeme.

Nisam do sada instalirao sistem. Odradio sam to vrlo brzi i prebacio samo fajlove koji mi trebaju (baze i projekti). LAMP se isto brzo instalirao a već imam i korake zapisane otprije što trebam sve napraviti pa je ubrzalo vrijeme. Kuharica je odradila svoje.

Bilo je još letanja po uredu sim-tam.


Hvala dečki na savjetu.
Neka ti Ansible ubuduce bude prijatelj....jednom napises playbook i nakon reinstalacije si nakon 1 klika spreman za rad.

https://docs.ansible.com/

Topla preporuka, nije komplicirano, ulozis 2-3 sata i krenes jednostavno.

Dodatno - ako koristis LVM imas opciju migracije sustava na novi disk (imas i kod BTRFS-a recimo nekaj slicno ali BTRFS i dalje ne preporucam).
__________________

tomek@vz je offline   Reply With Quote
Staro 01.10.2024., 20:53   #3664
mkey
Premium
Moj komp
 
Datum registracije: Sep 2018
Lokacija: tu
Postovi: 2,533
Iz perspektive nekoga tko je proveo previše vremena na preslagivanju particija, smatram da si odabrao pravi put Da se to sve popraviti, ali pitanje je koliko je isplativo na kraju dana, pogotovo ako si zbog toga prisiljen zanemarivati stvari koje ne bi trebalo zanemariti.
__________________
Citiraj:
Autor George Carlin
But there’s a reason. There’s a reason. There’s a reason for this, there’s a reason education sucks, and it’s the same reason that it will never, ever, ever be fixed. It’s never gonna get any better. Don’t look for it. Be happy with what you got. Because the owners of this country don't want that. I'm talking about the real owners now, the real owners, the big wealthy business interests that control things and make all the important decisions. Forget the politicians. The politicians are put there to give you the idea that you have freedom of choice. You don't. You have no choice. You have owners. They own you. They own everything. They own all the important land. They own and control the corporations. They’ve long since bought and paid for the senate, the congress, the state houses, the city halls, they got the judges in their back pockets and they own all the big media companies so they control just about all of the news and information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying, lobbying, to get what they want. Well, we know what they want. They want more for themselves and less for everybody else, but I'll tell you what they don’t want: They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them. Thats against their interests. Thats right. They don’t want people who are smart enough to sit around a kitchen table to figure out how badly they’re getting f*cked by a system that threw them overboard 30 f*cking years ago. They don’t want that. You know what they want? They want obedient workers. Obedient workers. People who are just smart enough to run the machines and do the paperwork, and just dumb enough to passively accept all these increasingly shittier jobs with the lower pay, the longer hours, the reduced benefits, the end of overtime and the vanishing pension that disappears the minute you go to collect it, and now they’re coming for your Social Security money. They want your retirement money. They want it back so they can give it to their criminal friends on Wall Street, and you know something? They’ll get it. They’ll get it all from you, sooner or later, 'cause they own this f*cking place. It's a big club, and you ain’t in it. You and I are not in the big club. And by the way, it's the same big club they use to beat you over the head with all day long when they tell you what to believe. All day long beating you over the head in their media telling you what to believe, what to think and what to buy. The table is tilted folks. The game is rigged, and nobody seems to notice, nobody seems to care. Good honest hard-working people -- white collar, blue collar, it doesn’t matter what color shirt you have on -- good honest hard-working people continue -- these are people of modest means -- continue to elect these rich c*cksuckers who don’t give a f*ck about them. They don’t give a f*ck about you. They don’t give a f*ck about you. They don't care about you at all -- at all -- at all. And nobody seems to notice, nobody seems to care. That's what the owners count on; the fact that Americans will probably remain willfully ignorant of the big red, white and blue dick that's being jammed up their assholes everyday. Because the owners of this country know the truth: it's called the American Dream, because you have to be asleep to believe it.
mkey je online   Reply With Quote
Staro 01.10.2024., 20:59   #3665
spiderhr
Premium
 
Datum registracije: Jul 2021
Lokacija: Sesvete
Postovi: 756
Citiraj:
Autor tomek@vz Pregled postova
Neka ti Ansible ubuduce bude prijatelj....jednom napises playbook i nakon reinstalacije si nakon 1 klika spreman za rad.

https://docs.ansible.com/

Topla preporuka, nije komplicirano, ulozis 2-3 sata i krenes jednostavno.

Dodatno - ako koristis LVM imas opciju migracije sustava na novi disk (imas i kod BTRFS-a recimo nekaj slicno ali BTRFS i dalje ne preporucam).

Radio sam nešto slično sa bash fajlom. Meni pa instaliraš cijeli LAMP ili kaj ti treba pa i konfig fajlove sam preslagivao. Ali... negdje je zagubljeno u bespućima diskovlja.


Ali poigrat ću se možda i Ansibleom ili dalje bash.



Citiraj:
Autor mkey Pregled postova
Iz perspektive nekoga tko je proveo previše vremena na preslagivanju particija, smatram da si odabrao pravi put Da se to sve popraviti, ali pitanje je koliko je isplativo na kraju dana, pogotovo ako si zbog toga prisiljen zanemarivati stvari koje ne bi trebalo zanemariti.

Da, jesam, ali dobro je znati da se može. Možda se u budućnosti poigram i s ovakvim rješenjem.


Dečkima Hvala na dobroj volji.
__________________
Mali Čile SAD Češka Peru
spiderhr je offline   Reply With Quote
Staro 02.10.2024., 22:45   #3666
The Exiled
McG
Moj komp
 
The Exiled's Avatar
 
Datum registracije: Feb 2014
Lokacija: Varaždin
Postovi: 7,322
Obzirom da se Fedora 41 bliži, tj. stiže sredinom ovog mjeseca, upogonil sam (in-place upgrade) sasvim funkcionalnu betu na konkretnom hardveru, jer ionako radi skroz vredu unutar virtualne mašine, a usput sam napokon složil i Mission Center (Linux System Monitor) (1 - 2 - 3), jer u prijašnjim verzijama (mi) nikak nije htjelo profunkcionirati. I moram priznati, poprilično pristojan komad softvera.

__________________
AMD Ryzen 9 9950X | Noctua NH-U12A chromax.black | MSI MAG B650 Tomahawk Wi-Fi | 128GB Kingston FURY Beast DDR5-5200 | 256GB AData SX8200 Pro NVMe | 2x4TB WD Red Plus | Fractal Define 7 Compact | Seasonic GX-750
AMD Ryzen 5 7600 | Noctua NH-U12A chromax.black | MSI MAG B650 Tomahawk Wi-Fi | 128GB Kingston FURY Beast DDR5-5200 | 256GB AData SX8200 Pro NVMe | 2x12TB WD Red Plus | Fractal Define 7 Compact | eVGA 650 B5
The Exiled je offline   Reply With Quote
Staro 03.10.2024., 07:20   #3667
tomek@vz
Premium
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 3,927
Citiraj:
Autor The Exiled Pregled postova
Obzirom da se Fedora 41 bliži, tj. stiže sredinom ovog mjeseca, upogonil sam (in-place upgrade) sasvim funkcionalnu betu na konkretnom hardveru, jer ionako radi skroz vredu unutar virtualne mašine, a usput sam napokon složil i Mission Center (Linux System Monitor) (1 - 2 - 3), jer u prijašnjim verzijama (mi) nikak nije htjelo profunkcionirati. I moram priznati, poprilično pristojan komad softvera.

O da Ne preferiram instaliranje Beta vezija na produkcijski ili main PC ali cak i u Beti Fedora se zadnjih par verzija pokazala funkcionalnim i stabilnim OS-om sto za OS koji vise tezi bleeding-edge paketima je u najmanju ruku interesantno Planiram upgrejd glavne masine cca 2 mjeseca nakon izlaska 41. Just in case
__________________

tomek@vz je offline   Reply With Quote
Staro 03.10.2024., 14:51   #3668
Ivo_Strojnica
PRO
Moj komp
 
Ivo_Strojnica's Avatar
 
Datum registracije: Apr 2010
Lokacija: Zagreb
Postovi: 4,430
ja sam se prebacija na Zorin OS, baš mi je lijepo
__________________
"Who is your daddy and what does he do?"
Ivo_Strojnica je offline   Reply With Quote
Staro 03.10.2024., 18:53   #3669
domy_os
EMP moderator
 
domy_os's Avatar
 
Datum registracije: Apr 2005
Lokacija: Osijek
Postovi: 18,620
Bolje da si se prebacio na Zoru...
__________________
"Kako su krojači novog svjetskog poretka uspjeli u tako kratko vrijeme slomiti intelektualne sposobnosti društva, uništiti kritičku svijest i ljudima nametnuti izvrnutu logiku?"

Nisu slomili u kratko vrijeme. Slamali su godinama, desetljećima pa i stoljećima. Svaka odgledana epizoda Big Brothera, svaki dečko koji ne zna niti promijeniti žarulju, a kamoli uzeti sjekiru i pocijepati drva, svaka cura koja misli da je briga za vlastitu obitelj robija, ali rad za par tisuća kuna u korporaciji 12 sati dnevno blagodat, svako promicanje terora političke korektnosti, svaka podrška promociji svih oblika poremećenosti… Sve to nas je dovelo do ovdje. Korona je samo zakucavanje lopte u gol nakon što je obrana već izigrana i golman odletio u prazno.




Lenovo ThinkPad T14 Gen 2 + Lenovo ThinkPad Universal Thunderbolt 4 Dock

CPU: Intel Core i7-1165G7 @ 2.8 GHz
RAM: 2 x 16 GB DDR4-3200
SSD: Samsung 970 EVO Plus 2 TB NVMe M.2
LCD: 14" FHD IPS 400nits Low Power
WLAN: Intel Wi-Fi 6 AX201
WWAN: Quectel EM120R-GL 4G LTE CAT12
OS: Windows 11 Pro

LCD monitor: AOC AG493UCX
Keyboard: Razer Huntsman V2 Analog
Mice: Logitech G502 Proteus Spectrum
SB: Mackie Onyx Producer 2x2
Speakers: 2 x JBL LSR305
MFP: Canon Pixma MP240
NAS: Synology DS420+ with 4 x WD Red Pro 8 TB
HDD Dock: LC Power LC-DOCK-U3-CR + 12 x Hitachi/Samsung/Seagate/WD 1/2 TB

domy_os je offline   Reply With Quote
Staro 03.10.2024., 19:36   #3670
mkey
Premium
Moj komp
 
Datum registracije: Sep 2018
Lokacija: tu
Postovi: 2,533
Kako se zove paket za taj mission center a.k.a. windows 10+ task manager? S ovim nesretnim discoverom kako sam prešao na fedoru nikad nisam siguran da li toga što tražim nema ili on ne nalazi.


EDIT: dnf search monitor|center|mission ne daje očite rezultate. Pa bi se reklo da nema.
__________________
Citiraj:
Autor George Carlin
But there’s a reason. There’s a reason. There’s a reason for this, there’s a reason education sucks, and it’s the same reason that it will never, ever, ever be fixed. It’s never gonna get any better. Don’t look for it. Be happy with what you got. Because the owners of this country don't want that. I'm talking about the real owners now, the real owners, the big wealthy business interests that control things and make all the important decisions. Forget the politicians. The politicians are put there to give you the idea that you have freedom of choice. You don't. You have no choice. You have owners. They own you. They own everything. They own all the important land. They own and control the corporations. They’ve long since bought and paid for the senate, the congress, the state houses, the city halls, they got the judges in their back pockets and they own all the big media companies so they control just about all of the news and information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying, lobbying, to get what they want. Well, we know what they want. They want more for themselves and less for everybody else, but I'll tell you what they don’t want: They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them. Thats against their interests. Thats right. They don’t want people who are smart enough to sit around a kitchen table to figure out how badly they’re getting f*cked by a system that threw them overboard 30 f*cking years ago. They don’t want that. You know what they want? They want obedient workers. Obedient workers. People who are just smart enough to run the machines and do the paperwork, and just dumb enough to passively accept all these increasingly shittier jobs with the lower pay, the longer hours, the reduced benefits, the end of overtime and the vanishing pension that disappears the minute you go to collect it, and now they’re coming for your Social Security money. They want your retirement money. They want it back so they can give it to their criminal friends on Wall Street, and you know something? They’ll get it. They’ll get it all from you, sooner or later, 'cause they own this f*cking place. It's a big club, and you ain’t in it. You and I are not in the big club. And by the way, it's the same big club they use to beat you over the head with all day long when they tell you what to believe. All day long beating you over the head in their media telling you what to believe, what to think and what to buy. The table is tilted folks. The game is rigged, and nobody seems to notice, nobody seems to care. Good honest hard-working people -- white collar, blue collar, it doesn’t matter what color shirt you have on -- good honest hard-working people continue -- these are people of modest means -- continue to elect these rich c*cksuckers who don’t give a f*ck about them. They don’t give a f*ck about you. They don’t give a f*ck about you. They don't care about you at all -- at all -- at all. And nobody seems to notice, nobody seems to care. That's what the owners count on; the fact that Americans will probably remain willfully ignorant of the big red, white and blue dick that's being jammed up their assholes everyday. Because the owners of this country know the truth: it's called the American Dream, because you have to be asleep to believe it.

Zadnje izmijenjeno od: mkey. 03.10.2024. u 19:42.
mkey je online   Reply With Quote
Oglasni prostor
Oglas
 
Oglas
Staro 03.10.2024., 19:42   #3671
The Exiled
McG
Moj komp
 
The Exiled's Avatar
 
Datum registracije: Feb 2014
Lokacija: Varaždin
Postovi: 7,322
Ima samo kroz Flatpak/Flathub (koji ga automatski upogoni) ili direktno kroz source-code.
__________________
AMD Ryzen 9 9950X | Noctua NH-U12A chromax.black | MSI MAG B650 Tomahawk Wi-Fi | 128GB Kingston FURY Beast DDR5-5200 | 256GB AData SX8200 Pro NVMe | 2x4TB WD Red Plus | Fractal Define 7 Compact | Seasonic GX-750
AMD Ryzen 5 7600 | Noctua NH-U12A chromax.black | MSI MAG B650 Tomahawk Wi-Fi | 128GB Kingston FURY Beast DDR5-5200 | 256GB AData SX8200 Pro NVMe | 2x12TB WD Red Plus | Fractal Define 7 Compact | eVGA 650 B5
The Exiled je offline   Reply With Quote
Staro 03.10.2024., 20:18   #3672
tomek@vz
Premium
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 3,927
__________________

tomek@vz je offline   Reply With Quote
Staro 03.10.2024., 20:20   #3673
mkey
Premium
Moj komp
 
Datum registracije: Sep 2018
Lokacija: tu
Postovi: 2,533
Appimage sam na kraju uzeo. To mi je OK za aplikaciju koju ću pokrenuti 2 puta flatpak mi je turn off.
__________________
Citiraj:
Autor George Carlin
But there’s a reason. There’s a reason. There’s a reason for this, there’s a reason education sucks, and it’s the same reason that it will never, ever, ever be fixed. It’s never gonna get any better. Don’t look for it. Be happy with what you got. Because the owners of this country don't want that. I'm talking about the real owners now, the real owners, the big wealthy business interests that control things and make all the important decisions. Forget the politicians. The politicians are put there to give you the idea that you have freedom of choice. You don't. You have no choice. You have owners. They own you. They own everything. They own all the important land. They own and control the corporations. They’ve long since bought and paid for the senate, the congress, the state houses, the city halls, they got the judges in their back pockets and they own all the big media companies so they control just about all of the news and information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying, lobbying, to get what they want. Well, we know what they want. They want more for themselves and less for everybody else, but I'll tell you what they don’t want: They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them. Thats against their interests. Thats right. They don’t want people who are smart enough to sit around a kitchen table to figure out how badly they’re getting f*cked by a system that threw them overboard 30 f*cking years ago. They don’t want that. You know what they want? They want obedient workers. Obedient workers. People who are just smart enough to run the machines and do the paperwork, and just dumb enough to passively accept all these increasingly shittier jobs with the lower pay, the longer hours, the reduced benefits, the end of overtime and the vanishing pension that disappears the minute you go to collect it, and now they’re coming for your Social Security money. They want your retirement money. They want it back so they can give it to their criminal friends on Wall Street, and you know something? They’ll get it. They’ll get it all from you, sooner or later, 'cause they own this f*cking place. It's a big club, and you ain’t in it. You and I are not in the big club. And by the way, it's the same big club they use to beat you over the head with all day long when they tell you what to believe. All day long beating you over the head in their media telling you what to believe, what to think and what to buy. The table is tilted folks. The game is rigged, and nobody seems to notice, nobody seems to care. Good honest hard-working people -- white collar, blue collar, it doesn’t matter what color shirt you have on -- good honest hard-working people continue -- these are people of modest means -- continue to elect these rich c*cksuckers who don’t give a f*ck about them. They don’t give a f*ck about you. They don’t give a f*ck about you. They don't care about you at all -- at all -- at all. And nobody seems to notice, nobody seems to care. That's what the owners count on; the fact that Americans will probably remain willfully ignorant of the big red, white and blue dick that's being jammed up their assholes everyday. Because the owners of this country know the truth: it's called the American Dream, because you have to be asleep to believe it.
mkey je online   Reply With Quote
Staro 03.10.2024., 21:35   #3674
strikoo
Premium
 
strikoo's Avatar
 
Datum registracije: Nov 2004
Lokacija: HR
Postovi: 846
Citiraj:
Autor tomek@vz Pregled postova
btop
strikoo je offline   Reply With Quote
Staro 03.10.2024., 22:36   #3675
tomek@vz
Premium
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 3,927
Citiraj:
Autor strikoo Pregled postova
btop

muy bien
__________________

tomek@vz je offline   Reply With Quote
Staro 03.10.2024., 22:43   #3676
spiderhr
Premium
 
Datum registracije: Jul 2021
Lokacija: Sesvete
Postovi: 756
atop, btop, htop. Ima li još koji top?
__________________
Mali Čile SAD Češka Peru
spiderhr je offline   Reply With Quote
Staro 03.10.2024., 22:44   #3677
Ivo_Strojnica
PRO
Moj komp
 
Ivo_Strojnica's Avatar
 
Datum registracije: Apr 2010
Lokacija: Zagreb
Postovi: 4,430
iftop!
__________________
"Who is your daddy and what does he do?"
Ivo_Strojnica je offline   Reply With Quote
Staro 03.10.2024., 22:58   #3678
domy_os
EMP moderator
 
domy_os's Avatar
 
Datum registracije: Apr 2005
Lokacija: Osijek
Postovi: 18,620
Bashtop, iotop, gputop,...
__________________
"Kako su krojači novog svjetskog poretka uspjeli u tako kratko vrijeme slomiti intelektualne sposobnosti društva, uništiti kritičku svijest i ljudima nametnuti izvrnutu logiku?"

Nisu slomili u kratko vrijeme. Slamali su godinama, desetljećima pa i stoljećima. Svaka odgledana epizoda Big Brothera, svaki dečko koji ne zna niti promijeniti žarulju, a kamoli uzeti sjekiru i pocijepati drva, svaka cura koja misli da je briga za vlastitu obitelj robija, ali rad za par tisuća kuna u korporaciji 12 sati dnevno blagodat, svako promicanje terora političke korektnosti, svaka podrška promociji svih oblika poremećenosti… Sve to nas je dovelo do ovdje. Korona je samo zakucavanje lopte u gol nakon što je obrana već izigrana i golman odletio u prazno.




Lenovo ThinkPad T14 Gen 2 + Lenovo ThinkPad Universal Thunderbolt 4 Dock

CPU: Intel Core i7-1165G7 @ 2.8 GHz
RAM: 2 x 16 GB DDR4-3200
SSD: Samsung 970 EVO Plus 2 TB NVMe M.2
LCD: 14" FHD IPS 400nits Low Power
WLAN: Intel Wi-Fi 6 AX201
WWAN: Quectel EM120R-GL 4G LTE CAT12
OS: Windows 11 Pro

LCD monitor: AOC AG493UCX
Keyboard: Razer Huntsman V2 Analog
Mice: Logitech G502 Proteus Spectrum
SB: Mackie Onyx Producer 2x2
Speakers: 2 x JBL LSR305
MFP: Canon Pixma MP240
NAS: Synology DS420+ with 4 x WD Red Pro 8 TB
HDD Dock: LC Power LC-DOCK-U3-CR + 12 x Hitachi/Samsung/Seagate/WD 1/2 TB

domy_os je offline   Reply With Quote
Staro 04.10.2024., 00:28   #3679
mkey
Premium
Moj komp
 
Datum registracije: Sep 2018
Lokacija: tu
Postovi: 2,533
Vidim da postoji potreba za jos jedan top koji bi objedinio sve topove.
__________________
Citiraj:
Autor George Carlin
But there’s a reason. There’s a reason. There’s a reason for this, there’s a reason education sucks, and it’s the same reason that it will never, ever, ever be fixed. It’s never gonna get any better. Don’t look for it. Be happy with what you got. Because the owners of this country don't want that. I'm talking about the real owners now, the real owners, the big wealthy business interests that control things and make all the important decisions. Forget the politicians. The politicians are put there to give you the idea that you have freedom of choice. You don't. You have no choice. You have owners. They own you. They own everything. They own all the important land. They own and control the corporations. They’ve long since bought and paid for the senate, the congress, the state houses, the city halls, they got the judges in their back pockets and they own all the big media companies so they control just about all of the news and information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying, lobbying, to get what they want. Well, we know what they want. They want more for themselves and less for everybody else, but I'll tell you what they don’t want: They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them. Thats against their interests. Thats right. They don’t want people who are smart enough to sit around a kitchen table to figure out how badly they’re getting f*cked by a system that threw them overboard 30 f*cking years ago. They don’t want that. You know what they want? They want obedient workers. Obedient workers. People who are just smart enough to run the machines and do the paperwork, and just dumb enough to passively accept all these increasingly shittier jobs with the lower pay, the longer hours, the reduced benefits, the end of overtime and the vanishing pension that disappears the minute you go to collect it, and now they’re coming for your Social Security money. They want your retirement money. They want it back so they can give it to their criminal friends on Wall Street, and you know something? They’ll get it. They’ll get it all from you, sooner or later, 'cause they own this f*cking place. It's a big club, and you ain’t in it. You and I are not in the big club. And by the way, it's the same big club they use to beat you over the head with all day long when they tell you what to believe. All day long beating you over the head in their media telling you what to believe, what to think and what to buy. The table is tilted folks. The game is rigged, and nobody seems to notice, nobody seems to care. Good honest hard-working people -- white collar, blue collar, it doesn’t matter what color shirt you have on -- good honest hard-working people continue -- these are people of modest means -- continue to elect these rich c*cksuckers who don’t give a f*ck about them. They don’t give a f*ck about you. They don’t give a f*ck about you. They don't care about you at all -- at all -- at all. And nobody seems to notice, nobody seems to care. That's what the owners count on; the fact that Americans will probably remain willfully ignorant of the big red, white and blue dick that's being jammed up their assholes everyday. Because the owners of this country know the truth: it's called the American Dream, because you have to be asleep to believe it.
mkey je online   Reply With Quote
Staro 04.10.2024., 01:18   #3680
Ivo_Strojnica
PRO
Moj komp
 
Ivo_Strojnica's Avatar
 
Datum registracije: Apr 2010
Lokacija: Zagreb
Postovi: 4,430
Uglavnom, volim backupirati stvari i volim da je to automatizirano, pa rekoh, zašto ne napraviti automatizaciju koja će, kad se ušteka određeni USB, mountati ga i napraviti incrementalni backup na njega, te kad završi, unmountati ga?

Na kraju se ispostavilo da je to poprilično jednostavno:

Prvo valja izvući uuid vašeg diska za koji želite napraviti trigger:
Code:
sudo blkid
Nađete koji je vaš disk i kopirate njegov UUID

1. Napraviti skriptu koja će raditi backup, ja osobno radim rsync:
Code:
nano /usr/local/bin/backup_data.sh
Code:
#!/bin/bash

# Variables
UUID="e6f8b3fb-9a44-4962-b33f-e1fd98df8230"    # Replace with your disk's UUID
MOUNT_POINT="/mnt/mydisk"                      # Adjust the mount point as needed
SOURCE_FOLDER="/path/to/folder_X"              # Replace with the path to the folder "X"
BACKUP_FOLDER="$MOUNT_POINT/backup"            # Backup location on the mounted disk
LOG_DIR="/var/log/mount_backup"                # Directory to store log files
LOG_FILE="$LOG_DIR/backup_$(date +'%Y%m%d_%H%M%S').log"  # Log file with timestamp

# Ensure the log directory exists
[ ! -d "$LOG_DIR" ] && mkdir -p "$LOG_DIR"

# Function to perform the backup
perform_backup() {
    echo "[$(date)] Starting backup from $SOURCE_FOLDER to $BACKUP_FOLDER" | tee -a "$LOG_FILE"
    
    # Use rsync to perform the backup, excluding the specified folder
    rsync -av "$SOURCE_FOLDER/" "$BACKUP_FOLDER/" | tee -a "$LOG_FILE"

    if [ $? -eq 0 ]; then
        echo "[$(date)] Backup completed successfully." | tee -a "$LOG_FILE"
    else
        echo "[$(date)] Backup failed." | tee -a "$LOG_FILE"
    fi
}

# Function to clean up old log files (older than 7 days)
cleanup_logs() {
    echo "[$(date)] Cleaning up log files older than 7 days." | tee -a "$LOG_FILE"
    find "$LOG_DIR" -type f -name "*.log" -mtime +7 -exec rm {} \;
    echo "[$(date)] Log cleanup completed." | tee -a "$LOG_FILE"
}

# Check if the disk is already mounted using findmnt and UUID
if ! findmnt -rn -S "UUID=$UUID" > /dev/null; then
    # Create the mount point directory if it doesn't exist
    [ ! -d "$MOUNT_POINT" ] && mkdir -p "$MOUNT_POINT"

    # Mount the disk
    mount -U "$UUID" "$MOUNT_POINT"

    # Check if the mount was successful
    if findmnt -rn -S "UUID=$UUID" > /dev/null; then
        echo "[$(date)] Disk mounted successfully at $MOUNT_POINT" | tee -a "$LOG_FILE"
        
        # Ensure the backup directory exists
        [ ! -d "$BACKUP_FOLDER" ] && mkdir -p "$BACKUP_FOLDER"
        
        # Perform the backup
        perform_backup
    else
        echo "[$(date)] Failed to mount the disk" | tee -a "$LOG_FILE"
    fi
else
    echo "[$(date)] Disk is already mounted." | tee -a "$LOG_FILE"
    
    # Perform the backup even if the disk was already mounted
    perform_backup
fi

# Clean up old log files
cleanup_logs

# Unmount disk
umount "$MOUNT_POINT"
2. napraviti da je skripta executable:
Code:
sudo chmod +x /usr/local/bin/backup_data.sh
3. Napraviti servis koji će pokretati skriptu koristeći systemd:
Code:
sudo nano /etc/systemd/system/backup_data.service
Code:
[Unit]
Description=Backup Data on Insertion

[Service]
ExecStart=/usr/local/bin/backup_data.sh
User=root
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
4. Napraviti servis koji će raditi monitoring /dev/disk/by-uuid/ foldera:
Code:
sudo nano /etc/systemd/system/monitor_disk.path
Code:
[Unit]
Description=Monitor USB Disk Path

[Path]
PathExists=/dev/disk/by-uuid/e6f8b3fb-9a44-4962-b33f-e1fd98df8230
DirectoryNotEmpty=/dev/disk/by-uuid/
Unit=backup_data.service

[Install]
WantedBy=multi-user.target
5. reloadati systemd:
Code:
sudo systemctl daemon-reload
6. aktivirati servis za monitoring:
Code:
sudo systemctl enable monitor_disk.path
sudo systemctl start monitor_disk.path

Ukratko, monitor_disk.path će čekati da se ušteka USB disk sa određenim UUID-jem i onda triggerati servis koji će pokrenuti vašu skriptu.


NAPOMENA: ne startati servis backup_data.service, njega će triggerati .path servis.

Eto, nadam se da sam nekom pomoga.
__________________
"Who is your daddy and what does he do?"
Ivo_Strojnica je offline   Reply With Quote
Staro 04.10.2024., 06:50   #3681
tomek@vz
Premium
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 3,927
Citiraj:
Autor Ivo_Strojnica Pregled postova
Uglavnom, volim backupirati stvari i volim da je to automatizirano, pa rekoh, zašto ne napraviti automatizaciju koja će, kad se ušteka određeni USB, mountati ga i napraviti incrementalni backup na njega, te kad završi, unmountati ga?

Na kraju se ispostavilo da je to poprilično jednostavno:

Prvo valja izvući uuid vašeg diska za koji želite napraviti trigger:
Code:
sudo blkid
Nađete koji je vaš disk i kopirate njegov UUID

1. Napraviti skriptu koja će raditi backup, ja osobno radim rsync:
Code:
nano /usr/local/bin/backup_data.sh
Code:
#!/bin/bash

# Variables
UUID="e6f8b3fb-9a44-4962-b33f-e1fd98df8230"    # Replace with your disk's UUID
MOUNT_POINT="/mnt/mydisk"                      # Adjust the mount point as needed
SOURCE_FOLDER="/path/to/folder_X"              # Replace with the path to the folder "X"
BACKUP_FOLDER="$MOUNT_POINT/backup"            # Backup location on the mounted disk
LOG_DIR="/var/log/mount_backup"                # Directory to store log files
LOG_FILE="$LOG_DIR/backup_$(date +'%Y%m%d_%H%M%S').log"  # Log file with timestamp

# Ensure the log directory exists
[ ! -d "$LOG_DIR" ] && mkdir -p "$LOG_DIR"

# Function to perform the backup
perform_backup() {
    echo "[$(date)] Starting backup from $SOURCE_FOLDER to $BACKUP_FOLDER" | tee -a "$LOG_FILE"
    
    # Use rsync to perform the backup, excluding the specified folder
    rsync -av "$SOURCE_FOLDER/" "$BACKUP_FOLDER/" | tee -a "$LOG_FILE"

    if [ $? -eq 0 ]; then
        echo "[$(date)] Backup completed successfully." | tee -a "$LOG_FILE"
    else
        echo "[$(date)] Backup failed." | tee -a "$LOG_FILE"
    fi
}

# Function to clean up old log files (older than 7 days)
cleanup_logs() {
    echo "[$(date)] Cleaning up log files older than 7 days." | tee -a "$LOG_FILE"
    find "$LOG_DIR" -type f -name "*.log" -mtime +7 -exec rm {} \;
    echo "[$(date)] Log cleanup completed." | tee -a "$LOG_FILE"
}

# Check if the disk is already mounted using findmnt and UUID
if ! findmnt -rn -S "UUID=$UUID" > /dev/null; then
    # Create the mount point directory if it doesn't exist
    [ ! -d "$MOUNT_POINT" ] && mkdir -p "$MOUNT_POINT"

    # Mount the disk
    mount -U "$UUID" "$MOUNT_POINT"

    # Check if the mount was successful
    if findmnt -rn -S "UUID=$UUID" > /dev/null; then
        echo "[$(date)] Disk mounted successfully at $MOUNT_POINT" | tee -a "$LOG_FILE"
        
        # Ensure the backup directory exists
        [ ! -d "$BACKUP_FOLDER" ] && mkdir -p "$BACKUP_FOLDER"
        
        # Perform the backup
        perform_backup
    else
        echo "[$(date)] Failed to mount the disk" | tee -a "$LOG_FILE"
    fi
else
    echo "[$(date)] Disk is already mounted." | tee -a "$LOG_FILE"
    
    # Perform the backup even if the disk was already mounted
    perform_backup
fi

# Clean up old log files
cleanup_logs

# Unmount disk
umount "$MOUNT_POINT"
2. napraviti da je skripta executable:
Code:
sudo chmod +x /usr/local/bin/backup_data.sh
3. Napraviti servis koji će pokretati skriptu koristeći systemd:
Code:
sudo nano /etc/systemd/system/backup_data.service
Code:
[Unit]
Description=Backup Data on Insertion

[Service]
ExecStart=/usr/local/bin/backup_data.sh
User=root
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
4. Napraviti servis koji će raditi monitoring /dev/disk/by-uuid/ foldera:
Code:
sudo nano /etc/systemd/system/monitor_disk.path
Code:
[Unit]
Description=Monitor USB Disk Path

[Path]
PathExists=/dev/disk/by-uuid/e6f8b3fb-9a44-4962-b33f-e1fd98df8230
DirectoryNotEmpty=/dev/disk/by-uuid/
Unit=backup_data.service

[Install]
WantedBy=multi-user.target
5. reloadati systemd:
Code:
sudo systemctl daemon-reload
6. aktivirati servis za monitoring:
Code:
sudo systemctl enable monitor_disk.path
sudo systemctl start monitor_disk.path
Ukratko, monitor_disk.path će čekati da se ušteka USB disk sa određenim UUID-jem i onda triggerati servis koji će pokrenuti vašu skriptu.


NAPOMENA: ne startati servis backup_data.service, njega će triggerati .path servis.

Eto, nadam se da sam nekom pomoga.

Nice. No da ti jos malo olaksam zivot...nemoj rsync za inkrementalni backup koristiti vec rsnapshot.
Sa cleanup_logs funkcijom oprezno da ti ne pocne brisat sve logove u /var/log starije od 7 dana. Čekiraj logrotate.
__________________

tomek@vz je offline   Reply With Quote
Staro 04.10.2024., 10:45   #3682
Ivo_Strojnica
PRO
Moj komp
 
Ivo_Strojnica's Avatar
 
Datum registracije: Apr 2010
Lokacija: Zagreb
Postovi: 4,430
e hvala, bacim oko na rsnapshot.
Šta je najgore, logrotate sam već koristija nekad, ali iz nekog razloga sam ga ditchao. Da me ubiješ, nemam pojma šta je bilo.

Inače, obavezno skripta mora imati svoj folder sa logovima, nikako ne direktno u /var/log
__________________
"Who is your daddy and what does he do?"
Ivo_Strojnica je offline   Reply With Quote
Staro 04.10.2024., 19:13   #3683
medo
#erase startup-config
Moj komp
 
medo's Avatar
 
Datum registracije: Nov 2001
Lokacija: Zagreb
Postovi: 3,299
Linux OS - info, how-to, pitanja, novosti, savjeti, problemi...

Citiraj:
Autor tomek@vz Pregled postova
Neka ti Ansible ubuduce bude prijatelj....jednom napises playbook i nakon reinstalacije si nakon 1 klika spreman za rad.

https://docs.ansible.com/

Topla preporuka, nije komplicirano, ulozis 2-3 sata i krenes jednostavno.
Ma da. 2-3 sata. Piece of cake

Pogotovo za nekoga tko prvi puta vidi takvu sintaksu

BTW: prije koju godinu sam složio takav backup preko udeva. Radilo je super. Još da sam zapisao korake kako to složiti…
__________________
"It's not a bug, it's a feature!"
1N6pJsvusP7afu23qs1uBscK16wfcG7C8m
medo je offline   Reply With Quote
Staro 04.10.2024., 19:47   #3684
tomek@vz
Premium
 
tomek@vz's Avatar
 
Datum registracije: May 2006
Lokacija: München/Varaždin
Postovi: 3,927
Citiraj:
Autor medo Pregled postova
Ma da. 2-3 sata. Piece of cake

Pogotovo za nekoga tko prvi puta vidi takvu sintaksu

Ak sam ga ja skuzio koji sam dibidus za skripte i programiranje ...
__________________

tomek@vz je offline   Reply With Quote
Staro 04.10.2024., 20:20   #3685
spiderhr
Premium
 
Datum registracije: Jul 2021
Lokacija: Sesvete
Postovi: 756
Ajde ajde ide test a i chatgpt je tu...

a i znam složiti bash skriptu
__________________
Mali Čile SAD Češka Peru
spiderhr je offline   Reply With Quote
Staro 08.10.2024., 22:36   #3686
mkey
Premium
Moj komp
 
Datum registracije: Sep 2018
Lokacija: tu
Postovi: 2,533
Vjerojatno se već komentiralo x puta ali lijen sam tražiti. Lako moguće da sam i sam pitao Dajte neke preporuke za alternativu teamvieweru.
__________________
Citiraj:
Autor George Carlin
But there’s a reason. There’s a reason. There’s a reason for this, there’s a reason education sucks, and it’s the same reason that it will never, ever, ever be fixed. It’s never gonna get any better. Don’t look for it. Be happy with what you got. Because the owners of this country don't want that. I'm talking about the real owners now, the real owners, the big wealthy business interests that control things and make all the important decisions. Forget the politicians. The politicians are put there to give you the idea that you have freedom of choice. You don't. You have no choice. You have owners. They own you. They own everything. They own all the important land. They own and control the corporations. They’ve long since bought and paid for the senate, the congress, the state houses, the city halls, they got the judges in their back pockets and they own all the big media companies so they control just about all of the news and information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying, lobbying, to get what they want. Well, we know what they want. They want more for themselves and less for everybody else, but I'll tell you what they don’t want: They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them. Thats against their interests. Thats right. They don’t want people who are smart enough to sit around a kitchen table to figure out how badly they’re getting f*cked by a system that threw them overboard 30 f*cking years ago. They don’t want that. You know what they want? They want obedient workers. Obedient workers. People who are just smart enough to run the machines and do the paperwork, and just dumb enough to passively accept all these increasingly shittier jobs with the lower pay, the longer hours, the reduced benefits, the end of overtime and the vanishing pension that disappears the minute you go to collect it, and now they’re coming for your Social Security money. They want your retirement money. They want it back so they can give it to their criminal friends on Wall Street, and you know something? They’ll get it. They’ll get it all from you, sooner or later, 'cause they own this f*cking place. It's a big club, and you ain’t in it. You and I are not in the big club. And by the way, it's the same big club they use to beat you over the head with all day long when they tell you what to believe. All day long beating you over the head in their media telling you what to believe, what to think and what to buy. The table is tilted folks. The game is rigged, and nobody seems to notice, nobody seems to care. Good honest hard-working people -- white collar, blue collar, it doesn’t matter what color shirt you have on -- good honest hard-working people continue -- these are people of modest means -- continue to elect these rich c*cksuckers who don’t give a f*ck about them. They don’t give a f*ck about you. They don’t give a f*ck about you. They don't care about you at all -- at all -- at all. And nobody seems to notice, nobody seems to care. That's what the owners count on; the fact that Americans will probably remain willfully ignorant of the big red, white and blue dick that's being jammed up their assholes everyday. Because the owners of this country know the truth: it's called the American Dream, because you have to be asleep to believe it.
mkey je online   Reply With Quote
Staro 08.10.2024., 22:38   #3687
spiderhr
Premium
 
Datum registracije: Jul 2021
Lokacija: Sesvete
Postovi: 756
anydesk


ili rustdesk ako sam hostaš
__________________
Mali Čile SAD Češka Peru
spiderhr je offline   Reply With Quote
Staro 08.10.2024., 22:45   #3688
domy_os
EMP moderator
 
domy_os's Avatar
 
Datum registracije: Apr 2005
Lokacija: Osijek
Postovi: 18,620
Rustdesk definitivno, iako sam koristio i TeamViewer jer ga dosta klijenata ima.
__________________
"Kako su krojači novog svjetskog poretka uspjeli u tako kratko vrijeme slomiti intelektualne sposobnosti društva, uništiti kritičku svijest i ljudima nametnuti izvrnutu logiku?"

Nisu slomili u kratko vrijeme. Slamali su godinama, desetljećima pa i stoljećima. Svaka odgledana epizoda Big Brothera, svaki dečko koji ne zna niti promijeniti žarulju, a kamoli uzeti sjekiru i pocijepati drva, svaka cura koja misli da je briga za vlastitu obitelj robija, ali rad za par tisuća kuna u korporaciji 12 sati dnevno blagodat, svako promicanje terora političke korektnosti, svaka podrška promociji svih oblika poremećenosti… Sve to nas je dovelo do ovdje. Korona je samo zakucavanje lopte u gol nakon što je obrana već izigrana i golman odletio u prazno.




Lenovo ThinkPad T14 Gen 2 + Lenovo ThinkPad Universal Thunderbolt 4 Dock

CPU: Intel Core i7-1165G7 @ 2.8 GHz
RAM: 2 x 16 GB DDR4-3200
SSD: Samsung 970 EVO Plus 2 TB NVMe M.2
LCD: 14" FHD IPS 400nits Low Power
WLAN: Intel Wi-Fi 6 AX201
WWAN: Quectel EM120R-GL 4G LTE CAT12
OS: Windows 11 Pro

LCD monitor: AOC AG493UCX
Keyboard: Razer Huntsman V2 Analog
Mice: Logitech G502 Proteus Spectrum
SB: Mackie Onyx Producer 2x2
Speakers: 2 x JBL LSR305
MFP: Canon Pixma MP240
NAS: Synology DS420+ with 4 x WD Red Pro 8 TB
HDD Dock: LC Power LC-DOCK-U3-CR + 12 x Hitachi/Samsung/Seagate/WD 1/2 TB

domy_os je offline   Reply With Quote
Staro 08.10.2024., 23:01   #3689
mkey
Premium
Moj komp
 
Datum registracije: Sep 2018
Lokacija: tu
Postovi: 2,533
Teamviewer mi je malo nakrcao. Rustdesk izgleda OK, ali za sada ne mogu još ništa hostati sam.
__________________
Citiraj:
Autor George Carlin
But there’s a reason. There’s a reason. There’s a reason for this, there’s a reason education sucks, and it’s the same reason that it will never, ever, ever be fixed. It’s never gonna get any better. Don’t look for it. Be happy with what you got. Because the owners of this country don't want that. I'm talking about the real owners now, the real owners, the big wealthy business interests that control things and make all the important decisions. Forget the politicians. The politicians are put there to give you the idea that you have freedom of choice. You don't. You have no choice. You have owners. They own you. They own everything. They own all the important land. They own and control the corporations. They’ve long since bought and paid for the senate, the congress, the state houses, the city halls, they got the judges in their back pockets and they own all the big media companies so they control just about all of the news and information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying, lobbying, to get what they want. Well, we know what they want. They want more for themselves and less for everybody else, but I'll tell you what they don’t want: They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them. Thats against their interests. Thats right. They don’t want people who are smart enough to sit around a kitchen table to figure out how badly they’re getting f*cked by a system that threw them overboard 30 f*cking years ago. They don’t want that. You know what they want? They want obedient workers. Obedient workers. People who are just smart enough to run the machines and do the paperwork, and just dumb enough to passively accept all these increasingly shittier jobs with the lower pay, the longer hours, the reduced benefits, the end of overtime and the vanishing pension that disappears the minute you go to collect it, and now they’re coming for your Social Security money. They want your retirement money. They want it back so they can give it to their criminal friends on Wall Street, and you know something? They’ll get it. They’ll get it all from you, sooner or later, 'cause they own this f*cking place. It's a big club, and you ain’t in it. You and I are not in the big club. And by the way, it's the same big club they use to beat you over the head with all day long when they tell you what to believe. All day long beating you over the head in their media telling you what to believe, what to think and what to buy. The table is tilted folks. The game is rigged, and nobody seems to notice, nobody seems to care. Good honest hard-working people -- white collar, blue collar, it doesn’t matter what color shirt you have on -- good honest hard-working people continue -- these are people of modest means -- continue to elect these rich c*cksuckers who don’t give a f*ck about them. They don’t give a f*ck about you. They don’t give a f*ck about you. They don't care about you at all -- at all -- at all. And nobody seems to notice, nobody seems to care. That's what the owners count on; the fact that Americans will probably remain willfully ignorant of the big red, white and blue dick that's being jammed up their assholes everyday. Because the owners of this country know the truth: it's called the American Dream, because you have to be asleep to believe it.
mkey je online   Reply With Quote
Staro 08.10.2024., 23:17   #3690
xlr
49%winner
Moj komp
 
xlr's Avatar
 
Datum registracije: Sep 2007
Lokacija: PU
Postovi: 9,416
Rustdesk mi je isto nedavno postao favorit, ali ga ne hostam tako da... Svejedno vrijedi probati
__________________
Keep calm and fastboot oem unlock.
xlr je offline   Reply With Quote
Oglasni prostor
Oglas
 
Oglas
Odgovori


Uređivanje

Pravila postanja
Vi ne možete otvarati nove teme
Vi ne možete pisati odgovore
Vi ne možete uploadati priloge
Vi ne možete uređivati svoje poruke

BB code je Uključeno
Smajlići su Uključeno
[IMG] kod je Uključeno
HTML je Isključeno

Idi na