/srv/irclogs.ubuntu.com/2015/10/29/#ubuntu-server.txt

cliluwKFKG_: Type something like "xclock &".00:00
KFKG_heh i see the clock00:00
KFKG_how will this launch the gui viewable via vnc00:00
KFKG_I am looking for a full-time gui btw00:01
cliluwKFKG_: Haha, the clock is just to test if the connection is there. To see the full GUI, type "gnome-session" or "startkde".00:01
KFKG_ok00:01
sarnoldthe downside is that if the connection between your windows box and the linux box does down, the clients you start there are almost certainly going to die too00:02
KFKG_Right so if i have the radio program running and I disconnect I will shut that off, I want ot so it will run no matter what00:03
KFKG_can we work on the steps for that00:03
KFKG_I see the kde desktop and a hard drive icon but nothing else00:03
KFKG_there are a bunch of icons, kind of like a mac bar showing up00:04
KFKG_nothing is clickable00:04
KFKG_I want this server to allow us to leave things running and login remotely to the gui00:05
cliluwKFKG_: It might take a while since you're loading the full desktop. I don't think I've ever loaded the full desktop through X11 forwarding. I usually launch just the app that I'm interested in using like Firefox.00:05
sarnoldhow fast is the link / what kind of latency do you have? it might be pretty slow, especially compared to e.g. vnc..00:05
KFKG_like remote desktop00:05
sarnoldyeah, I think x11 forwarding would only work for you  guys if the application was written to make it easy00:05
KFKG_the link is 300 mbps00:05
KFKG_roughly00:05
sarnoldit's hard to tell if it is written that way00:05
KFKG_sarnold00:05
sarnoldthen it oughto be snappy :) hehe00:06
KFKG_no the radio app must be run full time, thats why vnc is the way we need to go00:06
KFKG_I see the clock and half the desktop now00:07
KFKG_Is there another way so that I can login via teamviewer/vnc to control the desktop via a gui00:08
cliluwKFKG_: I don't know anything about this program but it sounds like x11vnc fits your needs.00:08
sarnoldKFKG_: I think x11vnc is probably the way to go; this guide looks tolerable, https://www.lxtreme.nl/blog/headless-x11/00:08
KFKG_I tried to install that through apt and it said no such package00:08
KFKG_i am familiar with x11vnc from back in the debian days00:09
cliluwKFKG_: Also, try asking in #ubuntu. In #ubuntu-server, people only use command-line interfaces.00:09
sarnoldx11vnc is in universe; perhaps if you only enabled main, it might not be there..00:09
KFKG_#ubuntu sent me here lol00:09
sarnoldhehe00:10
KFKG_this guide is written in debian will it work for ubuntu00:11
JanCif you run a GNOME based desktop, it has a built-in VNC server called 'vino'00:11
KFKG_JanC00:12
KFKG_let me see whats going on with Gnome00:12
JanCyou might have to configure it to start listening00:12
sarnoldKFKG_: it looks like it's decent, skip the bit about gdm3, and I have no idea about 'light-locker', that doesn't sound familiar00:12
JanCmaybe KDE has something similar too00:12
sarnoldJanC: any idea how to get it to start from an upstart script or sysv-init script?00:13
cliluwJanC: I think he/she has both GNOME and KDE installed.00:13
KFKG_the key is I am on the command line now which i an entirely unfamiliar with00:13
KFKG_cliluw, there are a total of 4 desktop guis that I installed00:13
KFKG_I was sort of just grasping at straws00:13
cliluwKFKG_: Wow, that's hardcore. :-)00:13
JanCsarnold: vino is started when the GNOME session starts, I think00:14
sarnoldKFKG_: hey, check this out :) a guide just for ubuntu stuff https://help.ubuntu.com/community/VNC/Servers#x11vnc00:14
JanCstarted by /etc/xdg/autostart/vino-server.desktop I guess00:14
KFKG_root@u18018703:~# gnome-session-check-accelerated: Helper exited with code 256 gnome-session-check-accelerated:: command not found root@u18018703:~# gnome-session-is-accelerated: No composite extension. gnome-session-is-accelerated:: command not found root@u18018703:~# gnome-session-check-accelerated: Helper exited with code 256 gnome-session-check-accelerated:: command not found root@u18018703:~# gnome-session[26158]: WARNING: software acc00:15
KFKG_it didnt like gnome00:15
JanCI wonder if it likes mate or some other ancient desktop then  :)00:19
JanCor maybe xfce00:19
JanCfor less ancient00:20
sarnoldprobably those errors are coming from the X11 forwarding00:20
sarnoldI'm not shocked that ming x11 doesn't have composite extension ;)00:20
KFKG_so do I open port 5900 on the server to connect to the x11vnc?00:21
sarnoldyes, but be sure to restrict it to only the IP ranges that shuold be allowed00:22
KFKG_ok be back in a few00:22
JanCsarnold: 3D acceleration doesn't real work well over the internet anyway  :)00:22
sarnoldJanC: dunno, 300mbps it might work out alright.. ;)00:23
JanCand maybe better not open that port publicly but connect using ssh and forward it00:24
sarnoldyeah, I trust ssh a lot further than vnc00:24
sarnoldgood idea00:24
cliluwI assumed this was all over a LAN so it wouldn't matter than VNC sends passwords in plaintext.00:25
cliluwthat*00:25
JanCcliluw: <KFKG_> the server has no display, its in a network center00:26
cliluwJanC: Haha, I assumed he was in the network center too.00:27
KFKG_ok I connected through the firewall to the server, i am looking at an all black screen inside realvnc00:31
sarnoldKFKG_: that sounds like real progress; this looks like the next step http://www.karlrunge.com/x11vnc/faq.html#faq-headless00:34
KFKG_sarnold, now I am really llost00:36
sarnoldKFKG_: you need to create an x11 server on the machine for x11vnc to export; the karlrunge.com link shows some small configuration sections for an xorg.conf file that will create the X11 server00:38
KFKG_ok when I try to run the x11vnc its failing now00:39
sarnoldwith what error message?00:39
KFKG_xopen_display failed00:40
KFKG_and they say windoze is complicated lol00:40
KFKG_in the old days we just used remote desktop/vnc to connect and we could see kde fine00:42
sarnoldit'd probably be easier if someone around here had done this recently; the handful of times I've run programs remotely, the usual x11 forwarding over ssh worked perfectly, but it was for things like netscape navigator or mozilla that I didn't care if they died if the link went dead..00:42
sarnoldbut doing the whole gui session, and for an x11 server that has no hardware, it's a bit more complicated :)00:42
KFKG_sarnold, would you advise to go back to windows server?00:46
KFKG_thats what we are migrating from00:46
sarnoldKFKG_: the last windows server I used was NT 4.0. It bluescreened every thursday and we never figured out why.00:46
sarnoldso my advice on windows issues may not be entirely up to date with modern things :)00:47
KFKG_sarnold lol00:47
KFKG_We were running a cloud server with windows 2008 server dedicated datacenter r200:47
KFKG_we thought we could migrate to linux to save on license fees00:48
KFKG_but if we cannot even get a gui thats not showing promises00:48
KFKG_it took a week to get the windows server running and all setup00:48
KFKG_I have no issue with linux, to be very fair00:48
KFKG_when I can see it....00:48
sarnoldhehe00:48
KFKG_we have just completed a plesk config with 11 websites, we had just gotten the ftp / email servers running00:50
KFKG_I have no issue with debian or suse or even ubuntu, when I can configure and install the programs00:51
KFKG_when they turned on this box they gave us a blinking cursor and that was it00:51
sarnoldplease tell me the plesk server is firewalled agressively00:51
KFKG_on windows it is yes00:51
KFKG_we have rules setup like you would not believe00:52
KFKG_only ports open on that server are the ones we need to communicate with the outside world00:52
KFKG_I personally hate plesk00:52
KFKG_we uninstalled the mail and ftp clients and only used it for the websites, plesk is just a cover window dressing for IIS00:52
sarnoldthose sorts of web management frontends are the cause of most hacked linux boxes. or maybe they're number two, right behind guessed ssh passwords.00:53
KFKG_hacked linux?00:53
KFKG_our plesk was in windows00:53
KFKG_lol00:53
sarnoldI suspect their windows versions are no better ;)00:53
KFKG_they wanted us to do a managed linux with plesk but said we would have no gui00:53
sarnoldnot to crap on plesk specifically, I further expect it's parity with all the others00:54
KFKG_not that I need to confer with my partner the licensing fees are not looking so bad now00:56
KFKG_doh i meant now00:56
sarnoldKFKG_: skimming the rivendell wiki it looks like it ought to be possible to run the rivendell server on one machine and use other workstations as clients01:01
=== markthomas is now known as markthomas|away
KFKG_sarnold riv is very powerful01:02
KFKG_but it needs a gui01:02
sarnoldKFKG_: it might be worth trying to figure out if you actuyally need a gui on the server at all; if you can just connect to it with rivendell clients on your other computers, that'd feel a lot esier to me than managing a vnc server..01:02
KFKG_we are only running one riv host01:02
KFKG_the riv client is the riv server01:03
KFKG_same machine01:03
sarnoldow :/01:03
sarnolddang01:03
KFKG_mysql qwill be installed as well for the wordpress sites so we will just add a database01:03
KFKG_but honestly getting to rivendell may prove challenging and honestly I am not seeing the benefits01:04
KFKG_the goals of moving to linux box were to use rivendell and run the server like a normal gui server01:05
=== sesev is now known as sivir
sarnoldI think that's still possible, I just hoped there was an easier way :)01:13
=== markthomas|away is now known as markthomas
KFKG_sarnold01:13
KFKG_its been a day now and still no gui01:13
KFKG_care to login and take a crack at it ;)01:13
sarnoldKFKG_: sure, you got one, all black, but you got one :)01:13
KFKG_LMAO01:13
sarnoldhah, figures, karl's got a script to run to set the whole thing up! http://www.karlrunge.com/x11vnc/Xdummy01:16
KFKG_sarnold its not a package on any source01:31
sarnoldKFKG_?01:31
KFKG_I tried to apt the pacakge01:32
sarnoldKFKG_: hmm, funny, now that I read a bit more of http://www.karlrunge.com/x11vnc/ I start to think there might be something easier, perhaps vnc4server or tightvncserver would do better01:35
sarnoldKFKG_: (that Xdummy script you could just download with wget or curl, chmod 755 the thing, and run it if you trust the author..)01:35
sarnoldI have no idea which would be easier..01:36
KFKG_sarnold the issue still remains that for whatever reason these things do not want to work for me01:36
KFKG_I remember tightvnc for windows that is01:36
KFKG_I just need a gui so I can config this box01:36
Contigierrmagawd01:52
Contigiso I just use a command to manually move files from a download to my media folder but I did sudo cp download/* media/*01:53
Contigiinstead of the mv command .. erased everything that was in there01:53
Contigiany good way to go about getting this restored back to before it was cp01:54
sarnoldContigi: so, you want to take e.g. half the stuff from media/ and move them back to download/  ?01:56
Contigiwell the files in media were far more important. I guess im looking for a way to get the media folder back rather than the download01:57
sarnoldhmm, I guess I'm confused then.. can you pastebin the actual commands you ran, from history?01:58
Contigisudo cp -r Downloads/* Media/*01:59
ContigiI then ctrl+c out of that command as I releaized I just wanted to do sudo mv Downloads/* Media/*02:00
Contiginot I find that the entire directoy in Media/ is empty02:00
Contigiexcpet the 3 files that got moved into there from Downloads/02:00
sarnoldare there any directories in Media? it could be all the Media stuff got moved into that subdirectory02:02
Contigiwell how the hell did that happen02:04
Contigilol thanks sarnold02:04
sarnoldcp assumes the finaly argument is the directory to move multiple  things into02:04
sarnoldfoo/* bar/* tells the shell to glob both those directories...02:05
Contigiso it takes the last directory in bar/* and places it all in there than?02:05
sarnoldif the last argument on the command line, e.g. Media/zz  just happens to be a directory, cp will shove everything that you listed into the named directory02:05
sarnoldnow, of course, 'last' is funny, some shells sort it, some shells don't, etc. but IFF the last argument is a directory, cp will start doing what it was told to do :)02:06
Contigiahh, i'm ok with that - just glad I didn't lose that directory02:06
sarnoldif the last thing isn't a directory it bitches:02:06
sarnoldcp: target ‘b/4’ is not a directory02:06
Contigiinteresting. I will have to go read some more on this mystical cp command I thought was simple. Thanks so much sarnold, I really appreciate your help here02:07
ContigiI thought I lost all my porn there for a minute...02:08
Contigilol jk02:08
=== markthomas is now known as markthomas|away
=== sysdoc_ is now known as sysdoc
=== sysdoc_ is now known as sysdoc
=== sysdoc_ is now known as sysdoc
jonahhi is any body any good with cups and could please help? I've tried in the cups channel but no replies. I'm running ubuntu server and cups was working great with shared printer to local network but not to outside world. Now all of a sudden I can no longer connect to cups and just get "unable to connect" error when i visit 192.168.0.100:631 which used to work?08:05
jonahany help to get this working again would be really appreciated08:05
lordievaderGood morning.09:55
pmatulismorning10:51
lordievaderHey pmatulis10:53
=== Lcawte|Away is now known as Lcawte
mborgesmorning12:15
mborges:-)12:15
tewardgood morning all12:48
teward:)12:48
rbasako/12:49
tewardhiya rbasak12:49
thebwtmorning folks14:55
RoyKlocaltime();14:59
gugathebwt: good evening )15:13
thebwt:)15:13
=== markthomas|away is now known as markthomas
wehdedoes anyone know of some good open source linux management tools like puppet or landscape that are free?16:54
wehdelooking to manage 70+ ubuntu machines and landscape is a bit expensive for our blood16:55
maswanlike puppet or quattor?16:55
jpdswehde: puppet/ansible/chef/...16:56
wehdejpds, puppet has a pretty big price tag. ill look into ansible16:56
maswanmy collegues are deploying puppet right now and are def not paying anything16:57
jpdswehde: puppet enterprise has a price tag16:57
thebwtwehde: what kind of management?16:57
jpdswehde: puppet itself doesn't16:57
jpdswehde: sudo apt-get install puppetmaster on the server, sudo apt-get install puppet on the clients16:58
RoyKwehde: puppet is OSS16:58
RoyKwe're looking at ansible atm16:58
jpdsansible is all the rage these days16:58
* RoyK gets a headache even thinking about Ruby16:58
* thebwt prefers saltstack, though some people may hold past silly things against them.16:58
RoyKcfengine is another16:58
wehdebasically i'm looking at basic operations such as managing upgrades and packages16:58
RoyKwehde: all of them can do that16:59
wehdebut i would also like some at a glance info and be able to copy down files to groups of machines16:59
RoyKwehde: all of them can do that too16:59
wehdeis ansible OSS?16:59
jpdswehde: Yes17:00
RoyKeven pssh should work17:00
RoyKwehde: all mentioned tools are OSS17:00
thebwtwehde: https://docs.saltstack.com/en/getstarted/fundamentals/index.html17:00
thebwtfor what you're doing, any of these will work17:00
jpdswehde: At this point, it's literally a matter of preference17:01
wehdei'll check out puppet's community edition and ansible17:01
thebwtmy specific case, and the reasons I'm looking at spacewalk, is that I can't necessarily keep an agent on each of the client machines like that.17:01
RoyKwehde: are all machines linux, or is it a mixed environment?17:01
RoyKthebwt: you don't need that with ansible, it uses ssh17:01
wehdei currently use cssh and webmin for servers but i'm looking at up to 150 clients that need to be managed17:01
RoyK!webmin17:02
ubottuwebmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system.17:02
thebwtRoyK: still problematic :( we need rhel style repo channels17:02
thebwtfor compliance BS17:02
RoyKouch17:02
RoyKnot my cup of tea17:02
wehdeits a mixed environment but we are slowly going all linux17:02
wehdefront office is windows but our production floor is purely linux now17:03
wehdeeventually i'll convince front office to dump M$17:03
wehde*eventually win10 will convince them to dump M$17:04
wehdeRoyK, do you prefer ansible over puppet?17:04
jpdswehde: Do you prefer vim or emacs?17:06
RoyKwehde: I do, although I haven't implementet neither. I don't really like Ruby, the language of choice in Puppet. Ansible is rather easy https://www.youtube.com/watch?v=xew7CMkL7jY17:06
RoyKjpds: https://xkcd.com/378/17:07
jpdsPuppet doesn't completely use Ruby, it has its own thing kind of based off it17:07
jpdsAnd actually, Puppet is alright once you have it all up and running17:07
wehdeill just try puppet and ansible both17:09
wehdethanks for the suggestions17:09
RoyKjpds: sure, but ansible is alright after an apt-get install on the central server, no agents needed ;)17:12
jpdsRoyK: Sometimes, agents are nice17:12
RoyKjpds: sometimes, but usually not needed17:12
wehdechecking out ansible after lunch17:13
wehdethanks17:13
jpdsRoyK: I do a change on my puppetmaster, test on one machine, walk away and let the others do it17:13
wehdei prefer nano btw17:13
RoyKhaha :)17:13
wehdeor the butterfly17:13
* patdk-wk sticks to wordstar17:13
RoyK:)17:13
pmatulisi remember wordstar, just barely17:37
catphishi just upgraded a host with software RAID + LVM from 12.04 to 14.04, the result is that grub can't find its modules at boot and drops me to a rescue prompt, is there an obvious reason for this, and something i can do to prevent it?18:46
bekksWhats the actual error message you get?18:47
catphishi'll reboot and paste it18:48
catphish"error: file not found." http://i.imgur.com/AS8RGIM.png18:49
catphishinteresting, booting from my second drive fixed it, i guess grub was updated but only installed to sda18:57
catphishi guess now it's booted, a grub-install to both drives will sort it18:58
catphishboot is now being interrupted with a warning "diskfilter writes are not supported" but it boots19:01
teknomegahi all19:03
teknomegaif i installed postfix using apt-get install postfix19:03
teknomegahow do i reconfigure it19:03
teknomegawhen i first installed it.. it asked me how i wanted to set it up19:03
teknomegai want to rerun that initial setup application that apt-get gave me19:03
teknomeganvm i figured it19:03
teknomegadpkg-reconfigure19:04
catphishtry dpkg-reconfigure19:04
catphish^^ :)19:04
KFKG_Hey everyone, day 3 of this madness, I am trying to install and run a GUI on Ubuntu server 14, I want to be able to remotely login and view the desktop like we can in windows RDP, can someone help me? I have installed KDE and X11vnc and i can login via X11vnc but the screen just shows a few icons and the desktop is completely frozen19:23
jrwrenis there a way to configure apt http proxy to NOT use the Acquire::http::Proxy value for localhost19:23
sarnoldjrwren: Acquire::http::proxy::192.168.122.1 DIRECT;19:24
sarnoldsigh I didn't mean to get the newline, too..19:24
sarnoldjrwren: replace the 192.168.122.1 with 127.0.0.119:24
jrwrensarnold: thank you!19:24
jrwrenI've used that before and had forgotten!19:24
sarnold:)19:25
sarnoldKFKG_: I wonder if the kde windowmanager is going to want to do too many graphics-hungry things while decorating windows and so forth; try a simple stupid window manager without a desktop environment, perhaps? openbox or fluxbox or twm or fvwm or i3 or notion or evilwm or something else that's just simple..19:26
thebwtmodern kde hasn't worked well with vnc for me. Any desktop that uses 3d accell could be like that I imagine19:50
thebwthave you tried the xubuntu-desktop ?19:50
thebwtand how fast is your pipe?19:51
* thebwt grins19:51
thebwtIn college I'd run crazy crazy stuff over "ssh -X"19:51
thebwtso, depending on what you need the "desktop" for,  you may not need all that19:52
thebwtjust get in with ssh w/ x forwarding and start x19:52
jrwrenI occasionally miss the LBX exension19:54
sarnoldthebwt: he does have a Fast Enough pipe, but ssh -X won't work because he needs the application to continue running when clients disconnect :(19:54
thebwtoh, got it19:56
|TheWolf|Hi! I'm not sure this is the right channel, if it's not, feel free to point me to a better suited one :-) I have a (Debian) server on which I run a Ubuntu virtual machine whose virtual disk I want to increase. I guess after doing so I need to adjust the root partition of the Ubuntu installation. How do I do that without any kind of graphical interface? Every solution I can find on the net requires me to either sit in front of th20:02
|TheWolf|e host machine or at least have some kind of graphical interface to it...20:02
thebwtso is the physical disk bigger, but the partition hasn't grown?20:02
thebwtsorry, the 'virtual block device'20:03
|TheWolf|Well, the physical size of the host machine is still the same. But I am going to adjust the size of the virtual disk ("the .img file").20:04
|TheWolf|yes20:04
thebwtI think this is what you're looking for: http://linux.die.net/man/8/resize2fs20:04
|TheWolf|Haven't done that, but I guess the Ubuntu root partition won't auto-adjust to it. If it did, that would be perfect, of course...20:04
thebwtit may, depends on the virt system20:04
|TheWolf|I use kvm20:05
thebwti've not touched anything but xen in a while (which doesn't), so I can't say20:06
|TheWolf|Okay, that looks pretty good. So the introductory sentence of --> http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/ about not being able to resize Ubuntu partitions without a kind of live CD is not true?20:06
thebwtbut I'm mostly sure that's what you need20:06
RoyK|TheWolf|: virt-manager is rather useful for that20:06
RoyK|TheWolf|: just use it over remote X20:06
RoyK|TheWolf|: add a new storage device and add it to your LVM setup20:06
RoyK|TheWolf|: increasing a storage device should be possible as well, but I've never done that20:07
|TheWolf|RoyK : unfortunately, there is no LVM in the VM -.- that would make my life so much easier20:07
thebwt|TheWolf|:  yea, you don't need a live cd, thats crazy talk20:07
thebwtwell, no I get it20:07
RoyK|TheWolf|: try to ask on #virt @ irc.oftc.net20:07
thebwtthey're assuming single disk20:07
thebwtresize2fs should handle what you need20:08
RoyKthebwt: partitions need to be changed as well20:08
thebwtohoh20:08
thebwtderp20:08
* RoyK never sets up anything without LVM20:08
thebwtthat's the catch20:08
thebwtnow, I am betting kvm grows the partition20:08
thebwtthough20:08
shaunoyeah.  if you've formatted a raw device, resize2fs will work.  if it's partitioned, you need to grow the partition, then the filesystem20:09
thebwtI'm a terrible gambler20:09
|TheWolf|RoyK : I don't, either. Unfortunately, though, I wasn't the responsible for that server until a week ago...20:09
shaunothe easiest way I know of to grow the partition is simple to delete it and create a new one that starts in exactly the same place.  of course, backup is step 0 there.20:09
jrwren|TheWolf|: once the img is rezized, resize2fs will work, or maybe you have partitions in the VM on that img. you'd need to expand the partition and then run resize2fs20:09
RoyK|TheWolf|: try named channel20:09
|TheWolf|jrwren : yep, of course there's partitions in there. Everything else would be too easy...20:10
jrwren|TheWolf|: hehe. just root and swap or even more partitions?20:10
jrwren|TheWolf|: on plus side, now is a great opportunity to simplify :)20:11
|TheWolf|just root and swap20:11
|TheWolf|4GB of both, actually. No idea why anyone would create such a small root partition on a host that has >1TB of free storage...20:12
jrwren|TheWolf|: I would deactivate the swap, delete that partition and expand root partition to fill block, run resize2fs and then apt-get install swapspace for my swap.20:12
* RoyK would reinstall the PoS with LVM20:12
|TheWolf|ok guys, thanks for the suggestions. I'll try my best tomorrow ;-)20:13
|TheWolf|thanks a lot!20:13
jrwrengood luck, have fun20:13
|TheWolf|yeah, I have been thinking about reinstalling the whole thing too20:13
|TheWolf|I'll see if I can sell that to the customer20:13
RoyK|TheWolf|: probably worth the effort so you don't have to spend hours on this next time20:14
|TheWolf|RoyK : yep, but according to customers there will never be a next time ;-)20:14
|TheWolf|we'll see20:14
|TheWolf|cu20:14
=== cmagina_ is now known as cmagina
pauljw!I22:26
jak2016hi all22:40
jak2016i want get the date in this format   YYYY_MM_DD_HH_SS i try: http://pastie.org/10517007    but not work any advice?22:40
sarnoldjak2016: bash is very different from dos command.com or cmd.exe scripting; if you're going to be doing a lot of it, it might be worth a day or two at http://mywiki.wooledge.org/BashFAQ22:43
sarnoldjak2016: try this:  DATE=`date +"%y-%m-%d-%H-%M-%S"`   echo $DATE22:44
jak2016ok thanks22:46
=== jak2016 is now known as jak2000
ponyofdeathhi, anyone know how I can mount a read only iso, then modify files i need added to it then repackage it. with something like aufs? or overlayfs?22:57
sarnoldponyofdeath: the bsdtar program may be able to help, http://www.libarchive.org/23:06
sarnoldponyofdeath: if that doesn't, then xorriso probably can, but I have a vague feeling that that's work23:07
ponyofdeathsarnold: thanks23:07
jak2000thanks23:12
jak2000for copy a file from server1 to server2(remote servers) wich is better? scp or rsync?23:12
sarnoldI choose between scp and rsync depending upon the size of the file, whether or not the file on the other system is "close" to the file I'm sending, etc23:13
sarnold.. and the network between the two systems23:13
jak2000450Kb23:16
jak2000scp /home/user/table.csv jane@host.example.com:/home/jane/mytable1.csv   ?23:16
sarnoldyeah that should work; for one smallish file, scp is probably fine23:17
jak2000and with rsync?23:17
sarnoldI'd start with rsync -avzP /home/user/table.csv jane@host.example.com:/home/jane/mytable1.csv23:18
jak2000man you know about mysqldump command?23:26
sarnoldI know it exists but that's it..23:28
sturmflutGood evening! I happen to be in Austin, Texas in about two weeks and if you would like to hang out, please just contact me in private.23:29
jak2000i not want put the password on my backup script: http://pastie.org/1051706923:29
sarnoldjak2000: put the "> /backup/$MYDATE2" part at the end of the line23:31
jak2000in wich line?23:32
sarnoldthe mysqldump line23:32
jak2000like this: mysqldump --opt dbtarimas tmtarima ttarcprod ttarclote > /backup/$MYDATE223:34
jak2000and user and password?23:34
jak2000i want automate the task23:34
sarnoldI'd move the user and password stuff to be immediately after "mysqldump" -- maybe you can specify a file to use instead of command line, that'd be better if it is an option23:35
jak2000yes23:35
jak2000but i down want specify the user and password in this file23:35
jak2000ok i am reading someting23:35
jak2000man when execute this line:23:36
jak2000 rsync -avzP /home/user/table.csv jane@host.example.com:/home/jane/mytable1.csv   ask me a password23:36
jak2000where put the password for my cron job take the password and execute the task??23:36
sarnoldcreate an ssh key for that, ssh keys are great things23:37
jak2000sarnold have a link for follow?23:37
jak2000for read/learn?23:37
sarnoldjak2000: this is a decent short guide. https://help.ubuntu.com/community/SSH/OpenSSH/Keys  -- this one is a lot more detailed and covers a lot of stuff that's less likely to be useful, https://wiki.archlinux.org/index.php/SSH_keys23:39
jak2000ok i am reading thanks23:39
jak2000other question (last of the day i think) with crontab, how to execute a script all days exept Sunday?23:40
sarnoldjak2000: "1-6" for the day-of-week field should do it23:40
jak2000ok23:40
sarnoldjak2000: see crontab(5) for full syntax23:41
jak2000and: every 10 minutes from 8am to 8pm ?23:41
jak2000ok23:41
sarnold8-20 in the hour field, 0,10,20,30,40,50  in the minute field23:42
jak20000,10,20,30,40,50 * * * 1-6 /usr/scripts/respsql.sh23:42
jak2000?23:42
jak2000error23:43
jak20000,10,20,30,40,50 8-20 * * 1-6 /usr/scripts/respsql.sh23:43
sarnoldthat looks right23:44
jak2000sarnold you worked with certificates? (forget the last question of the day :)   ?23:44
sarnoldjak2000: not much23:44
jak2000my dude, is, i need pay for generate a .cer?   (f course i can generate it without paying but is invalid)23:45
jak2000?23:45
sarnoldjak2000: https://letsencrypt.org/23:45
sarnoldjak2000: https://www.startssl.com/23:46
jak2000interesting the first23:46
jak2000ooooo goood23:47
jak2000thanks23:47
jak2000much to read.... thanks friend23:47
sarnoldnote that startssl charges for revocation23:48
sarnoldI don't know how letsencrypt does revocation..23:48
jak2000charges is $$$$ ?23:48
tewardsarnold: i didn't know letsencrypt was open for business yet?23:49
sarnoldteward: I think I saw a third-party site with a letsencrypt cert the other day23:50
tewardsarnold: i know they've got beta and such for some sponsors23:50
tewardbut we're talking sums of money there23:50
teward"In Limited Beta"23:50
tewardso, not 'public beta'23:51
jak2000scp /backup/tari.sql jak:mypaas@mydomain.noip.me:/home/jak/sql/    <--- not work :(23:53
jak2000ssh: Could not resolve hostname jak: Name or service not known23:53
sarnoldjak2000: probably user:pass won't work23:53
sarnolduser@host should work23:54
jak2000and the pass?23:54
sarnoldssh keys :)23:54
jak2000only ?23:54
sarnoldI think so23:54
jak2000same as rsync23:54
sarnoldyeah, rsync just runs over ssh, so it expects the same things23:55
sarnoldand ssh keys are easiest to use23:55
jak2000then reading https://help.ubuntu.com/community/SSH/OpenSSH/Keys     https://wiki.archlinux.org/index.php/SSH_keys23:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!