=== arrrghhh is now known as arrrghhhAWAY | ||
=== peter is now known as Guest58286 | ||
darkxploit | hello guys i got ubuntu server 13.04 .. how do i upgrade to latest version?. because each time i made an upgrade it gives me error 404 | 03:48 |
---|---|---|
chriys | hey guys I know this might not be the best channel to ask this question, but I hope some of you can give good hints. I want to setup a streaming solution to stream our live events. I tried Kaltura and Red5 and for some reason I never been able to make them work together. Do you have any suggestion for this sake? | 04:36 |
ahmadgbg | Hi, is it possible to change an existing user's home dir to and existing dir? | 05:04 |
andol | ahmadgbg: Yes, but you might need to set permissions, etc manually. | 05:05 |
ahmadgbg | andol: ok how? | 05:05 |
andol | ahmadgbg: usermod --home | 05:06 |
ahmadgbg | andol, thanks | 05:07 |
andol | ahmadgbg: There is also the --move-home option, but you might want to try that one out with a test account first. | 05:08 |
andol | !ops | 05:08 |
ubottu | Help! Channel emergency! infinity, soren, lamont, mathiaz, Pici, Daviey, Tm_T, pmatulis, Corey, IdleOne, ikonia, funkyhat, Myrtti, ocean, genii, phunyguy! | 05:08 |
andol | ^^ The user nanaima appear to be spamming people. | 05:08 |
andol | Ok, might not stricitly have been an emergency. Any good way to alerts ops in a less drastic way? | 05:09 |
=== TDog_ is now known as TDog | ||
darkxploit | hello guys i got ubuntu server 13.04 .. how do i upgrade to latest version?. because each time i made an upgrade it gives me error 404 | 05:20 |
TJ- | darkxploit: 13.04 is EOL so its archives have been moved to http://old-releases.ubuntu.com | 05:28 |
darkxploit | TJ-, dude any idea how to sort that then? | 05:30 |
darkxploit | TJ-, should i modify the repository and launch an update. wont it crash the system if i do this ? | 05:31 |
TJ- | Yes | 05:32 |
TJ- | darkxploit: Edit apt's sources.list | 05:32 |
darkxploit | which repo should i then insert to have the new ubuntu server | 05:33 |
TJ- | darkxploit: I just told you ^^^^ | 05:33 |
darkxploit | u mean it would crash the system ? | 05:34 |
TJ- | darkxploit: see https://help.ubuntu.com/community/EOLUpgrades | 05:35 |
darkxploit | TJ-, so according to the links that distro of mine has reached EOL. I can still upgrade to other version. right? | 05:38 |
riz0n | Hello, I have an Ubuntu Server that I admin from the shell using SSH. I am new to writing shell scripts. I would like to write a "shortcut" script that, when I type lg from the shell, it would logout. can someone lead me in the right direction to setting this up? | 05:44 |
riz0n | btw nanaima is spamming people in this channel. | 05:45 |
sarnold | riz0n: alias lg=logout | 05:47 |
riz0n | sarnold Thank you. :) Should I sudo it or just run as-is? | 06:15 |
sarnold | riz0n: just run as-is | 06:15 |
sarnold | riz0n: if you want it to stick around, you can add it to your ~/.bash_aliases file -- at least I think that is automatically loaded by ~/.bashrc if it exists | 06:16 |
riz0n | Yeah I want it to always exist. When I get done with a ssh session I want to "lg" and get out | 06:19 |
riz0n | but would like the shortcut to be systemw-de | 06:19 |
sarnold | riz0n: I don't really want to take away some fun.. | 06:20 |
sarnold | riz0n: but have you seen that ^D will log you out? | 06:20 |
sarnold | it's even easier than 'lg' since that requires hitting enter, too :) | 06:21 |
sarnold | but just hitting ^D will kill your shell and log out | 06:21 |
riz0n | I am also curious about one more thing. When I do a sudo adduser, I want to be able to have it automatically set the shell (/bin/false) and also want it to create some default IMAP folders. For example, Archive, Drafts, Junk, Notes, and Sent. In addition place a "Welcome" email in the inbox. I understand I can set the default shell through -s in adduser, so that part I'm not too worried | 06:24 |
riz0n | about, but is there an easy way to have it intialize the data in the Maildir (Such as a default folder template that would get copied when a new user is created) ..... Also i want to ensure the integrity and security of my server is the strongest possible. The designated users that have /bin/false shells, I don't want being able to go any lower than their own home directory. Is there a | 06:24 |
riz0n | way to change the root to be their home directory (chroot I guess?) | 06:24 |
riz0n | And I will remember the ^D thanks for that ... the lg would be handy on my iPhone as I have an SSH terminal emulator installed as a jailbreak app and there's no ^D in there ;) | 06:24 |
sarnold | riz0n: see the /usr/local/sbin/adduser.local program mentioned in the adduser(8) manpage -- you could definitely populate some mail folders using that script, but it'd be some work | 06:25 |
sarnold | ahhhh | 06:25 |
sarnold | riz0n: setting up chroot environments for users to use when they log in via sshd takes some work | 06:26 |
sarnold | riz0n: it would be best to instead modify sshd_config to also forbid them from logging in and only allow sftp for example.. | 06:26 |
sarnold | sftp chroot is far easier to configure | 06:27 |
riz0n | I tried to configure sftp and it just didn't like me. Plus I would like to entertain the thought of keeping everything on a secure level to prevent traffic snoopers across the path (trying to keep all plaintext password authentication methods unavailable if possible) | 06:30 |
sarnold | good plan, keys-only is excellent | 06:31 |
riz0n | I will check out the adduser.local though ... I don't mind the work as long as the end result is what I'm after. Eventually I'm going to bring on a couple of extra hands to assist in maintaing this server, so I would like for them to be able to create new accounts and those accoounts be pre-configured | 06:31 |
sarnold | yeah you don't want to go crazy doing that by hand :) | 06:32 |
riz0n | I would like to script the adduser process too, so that my other admins won't set initial passwords. I want a generic starter password (like Starter!123) that the end user can change themselves. | 06:32 |
sarnold | riz0n: hrm, setting passwords, I don't see any administrative interface in adduser for that; useradd has a -p option, though, that might be a better place to start. you'll have to do more work with useradd, but if you're writing scripts already anyway | 06:34 |
riz0n | I have set up HTTPS SSL, and moved my webmail to it, and ditched Squirrelmail for Roundcube, which I really like! And set up the password plugin so that end users can manage their own password. The good thing about Roundcube's password plugin is that you can force password complexity through the plugin without necessarily having it coded in Linux. So Roundcube ensures when a user changes | 06:34 |
riz0n | their password, that it's 10 characters long, contains one upper letter, one lower letter, one number, and one special character. (no lame passwords like "test123" allowed on my system) | 06:34 |
* sarnold tries 321tset | 06:35 | |
riz0n | right but what I'm thinking is a script that the admin runs, like "generate" for example, they could type "generate tom" and then it asks for Tom's name, then it would "adduser -s /bin/false %1 -p Welcome!123" then, maybe, cp /usr/var/template/* /home/%1" | 06:36 |
riz0n | Now, I guess you can see that my ADHD is showing. I'm getting ready to build a new server and want to "migrate" the install I currently have from the server that's in use now to a VMware Virtual Machine running on a RAID5 host. Do you know if there is a way to generate a new virtual machine from hard disk for Ubuntu partitions? | 06:38 |
sarnold | adduser would copy from /etc/skel/ for you -- useradd you might need to do some work yourself, hehe | 06:38 |
riz0n | yeah I try to stay away from useradd altogether | 06:38 |
riz0n | so what I could do, for my email for instance, is "adduser template" and then create the IMAP structure, drop the welcome message in the inbox, then cp /home/template/* to /etc/skel | 06:39 |
sarnold | riz0n: qemu-img can probably convert from raw to vmware-sometihng | 06:39 |
riz0n | Thanks for the info sarnold. At some point in time I noticed that VMWare had a create from hard disk option, but I didn't know if that was for Windows only hard disks, or if I could do that with an Ubuntu as well. To keep things simple, we will most likely use Windows Server 2008 as the host operating system on our hypervisor so that the disk maintenance of the RAID array won't be as | 06:43 |
riz0n | bad, plus managing the virtual machine farm remotely won't be so bad either (Use remote desktop for that). Right now my Linux server is DANGEROUSLY running from one hard disk, and I want to migrate it to a more modern machine (been thinking about building a dual 12-core opteron system with 32-gigs ram, and 3x1TB Western Digital VelociRaptors)... the primary goal is to eliminate a domain | 06:43 |
riz0n | controller, the linux server, as well as my "cloud computer" , and combine them into one system to save space in the server closet. | 06:43 |
riz0n | The servers I have now are aging, they are 6 years old. I've replaced motherboards, cpu and ram in the Linux server but simply pulled the disk from old server machine to put in the new one. I've left the domain controller untouched, because I know that pulling the drive and putting it in a new machine won't be as simple. I am hoping the new server will lead us 10 years into the future. | 06:48 |
riz0n | My main goal with virtualizing the whole gig is to accomplish two things. First, the ability to "port" the VM's to a backup machine in the event of machine failure while the machine is repaired, and to seamlessly migrate them to a whole new server in the future if we need more cores, RAM, more disk storage space in a new raid array, etc. for example. | 06:48 |
sarnold | yeah I've never had good luck moving windows hard drives from computer to computer or even just changing the motherboard. unhappy thing. | 06:49 |
riz0n | We have licenses for Windows Server 2008 and VMWare, so that's covered. We also recently obtained a Server 2012 license but holding off on setting that up until I have the new server built so that it can be 100% virtualized. | 06:49 |
riz0n | Well you know M$... they don't make it simple. Now the good news is that they have made Windows 8/8.1 more portable so you can swap disks to a new machine. I haven't tested myself. I assume that since 2012 runs off the same Windows 8 kernel that it would be the same. But I do know from education and training that migrating/porting Windows VM's from one system to another is a breeze. | 06:51 |
riz0n | And I really want to ride the Windows 2008 train til the end of the ride because I like how well it works. And to be totally honest I would ditch Windows 2008 altogether if I could replicate all the Active directory features in Linux. | 06:52 |
sarnold | look into the new stuff in samba4 | 06:52 |
sarnold | I wouldn't jump into it without doing a fair pile of testing first | 06:52 |
sarnold | but it sounds like they've got it pretty well nailed down now | 06:53 |
riz0n | That's what we do is test stuff to see how it will work for our environment. We have a lab of "hand me down" equipment for that :) Another thing I failed to mention in my virtual machine farm, is the need to easily back up these servers. Right now I really have no way to back up the servers to an external disk. To back up my domain controller, I have a Windows 2008 server in a VM on my | 06:57 |
riz0n | laptop that I have set up as a SDC that replicates when I boot it, and I try to do a backup once a week. Not what I really want to do. I would much rather, say on a weekly basis, power down the VM's and copy the contents to an external disk that can be stored off-site. | 06:57 |
riz0n | The only true benefits we are getting out of Windows Server is each user gets their home directory, when it gets mapped in the login script, it gets mapped to the root of the drive letter (for example \\server\home\tom gets mapped straight to Z:\) but also each user's home space is NTFS-encrypted. We already have a second machine in place with 4x 2TB disks in a RAID5 that is used as the | 07:01 |
riz0n | file server. \\Fileserver\Home\Tom or \\Fileserver\Media (We don't encrypt the media directory) but if our domain controller were to fail then trying to recover the encrypted homespace is going to be next to impossible if we don't have a good redundant SDC in place. We'd be F'd in the butt on that one. | 07:01 |
riz0n | Our ISP is in the process of running fiber and we are hoping that by end year we will be on 100 megabit fiber. At this time we are looking to utilize a partnership we already have with a firm in Denver to have our SDC and a secondary Linux server hosted off their hypervisor (and we will do the same for them in return on our new hypervisor) and have a VPN tunnel established between the | 07:04 |
riz0n | PDC and SDC for the purpose of replication. | 07:04 |
riz0n | This is a lot of stuff that we have been wanting to do between our Denver site and our site here in Western NC, but our biggest barrier has been waiting for fiber optics to become a reality here. We've had several meetings, discussions, and planning to prepare us for this day. | 07:06 |
sarnold | fun fun :) | 07:06 |
riz0n | I know! I have also been looking at trying to do some kind of Open VPN solution through our DD-WRT routers to link our LAN's together to avoid having to use Windows VPN to build the bridge. | 07:07 |
riz0n | right now as it stands, we have three locations that are linked together here in Western NC. We have tower space on a high ridge and have microwave backhauls linking the two satellite offices into the main LAN where the servers are housed. | 07:09 |
riz0n | we have a building with offices next to the main office where our servers are at, and we have a higher speed backhaul from rooftop to rooftop using N-wireless so we are getting 100 megabit speed over that link now. | 07:11 |
riz0n | so 4 locations total in WNC (3 of the locations are home offices more or less) and we route our IP phones and data traffic over the wireless backhauls. It works very well except our biggest problem right now is that the fastest speed our ISP can give us is 8 megs down, 1 meg up unless we choose to pay $thousands to get full duplex T1 lines. | 07:13 |
sarnold | wow, and t1 looks so cute these days | 07:13 |
riz0n | The 100 megabit business fiber will cost us the same as our 8x1 small business cable connection costs us now, so we are excited about them finishing that up. | 07:13 |
riz0n | The last time I had 6 megs full duplex quoted it was going to cost us $3,000 a month. That's crack prices for Internet. The only reason we really need the Internet link is (well besides the obvious Internet connection) is to host our web pages, email, vpn, IP phone service, everything else we achieve on our own through the wireless links, and that costs us nothing a month to maintain. | 07:15 |
sarnold | bed time, have fun riz0n :) | 07:15 |
riz0n | Thanks so much for the chat sarnold. I know a lot of the stuff I've discussed is outside the scope of Ubuntu Server, and I apologize to the channel ops if I have upset them, but sometimes its really nice to ping ideas off others to see what others have done, their experience with that, and learn other methods of doing things :) There's not many people that have really got as in-depth | 07:17 |
riz0n | into creating network systems like we have, at least not here in Western NC. | 07:17 |
riz0n | I am going to play with the /etc/skel and see where that gets me. My next project is trying to set up FreeRadius and trying to integrate that into our DD-WRT access points so that we can assign individual users with their own credentials to get into the wireless network infrastructure, instead of having one shared WPA2 passphrase, and having to rekey all devices when an individual leaves | 07:19 |
riz0n | the company. | 07:19 |
lordievader | Good morning. | 08:25 |
_2_Lily97 | Hi | 08:44 |
Leegaert | Hi, since I upgraded from 12.04 to 14.04 my server keeps getting stuck on boot on a black screen with "Scanning for BTRFS filesystems". I have a BTRFS volume which is mounted through /etc/fstab. Most solutions I've read for this problem involve removing the btrfs-tools. Should I just wait for the scanning to end (been going on for more then 10 minu | 08:59 |
Leegaert | tes now)? | 08:59 |
streulma | can someone solve this? No module named linecache | 09:10 |
ikonia | streulma: install the module ? | 09:25 |
Leegaert | Apparantly I had to append device options in my fstab file... | 10:14 |
Leegaert | Bit weird | 10:14 |
=== CripperZ- is now known as cripperz | ||
=== Acilim_A is now known as Acilim | ||
=== Acilim is now known as Acilim_A | ||
Guest31251 | how do i get i get date in filename in a bash-script ? | 11:06 |
TJ- | Guest31251: "$(date +%Y-%m-%d)" or any other date format you require; see "man date" | 11:14 |
Guest31251 | i made a simple backup-script | 11:28 |
Guest31251 | http://paste.ubuntu.com/8062094/ | 11:29 |
Guest31251 | my first backup script | 11:29 |
Guest31251 | dont know if it works even | 11:29 |
Guest31251 | gonna try it now | 11:29 |
Guest31251 | hmm working good so far | 11:31 |
Guest31251 | doestn use absolute paths :P | 11:32 |
_2_Lily97 | Yes | 11:32 |
Guest31251 | backups take 917M | 11:52 |
Guest31251 | how large files can gmail take ? | 11:52 |
Guest31251 | my home is only 51M | 11:52 |
Guest31251 | i forgot my commercial vps :D | 11:53 |
Guest31251 | i can just scp them there if i remember my password | 11:53 |
Guest31251 | have to check also when the domain has to be renewed | 11:53 |
Guest31251 | my grandfathers book-store | 11:53 |
Guest31251 | 17.7.2015 no problem | 11:54 |
rostam | HI I am using ubuntu 14.04. accroding to dpkg --list | grep linux-image I have two linux image installed on my system: linux-image-3.13.0-24 and linux-image-3.13.0-32. Currently my system has booted to later one, 3.13.0-32, How could I boot to older release, 3.13.0-24? thanks | 12:45 |
cfhowlett_ | rostam, reboot. choose advanced options. select ubuntu version (kernel) | 12:45 |
rostam | cfhowlett_, I have been struggling with this, could you please expand on advanced options, Is this a grub thing I believe? but not sure how to set it up... thanks for your help | 12:48 |
cfhowlett_ | rostam, yes, you can select which linux-header, i.e. kernel, from the grub menu on rebooting | 12:49 |
cfhowlett_ | rostam, nothing to set up. you're old headers will appear automatically | 12:49 |
rostam | cfhowlett_, thanks for your feedback. I tried to use GRUB_DEFAULT , or grub-set-default still coming up with newer version. | 12:51 |
cfhowlett_ | !grub2 | 12:52 |
ubottu | GRUB2 is the default Ubuntu boot manager. Lost GRUB after installing Windows? See https://help.ubuntu.com/community/RestoreGrub - For more information and troubleshooting for GRUB2 please refer to https://help.ubuntu.com/community/Grub2 | 12:52 |
cfhowlett_ | rostam, by default, the newest kernel boots. | 12:52 |
rostam | cfhowlett_, I understand but I can not reverse it back to older one ... Here is the grub.cfg: http://paste.ubuntu.com/8062651/ | 12:55 |
TJ- | rostam: There may be a bug in the Trusty default setting; I've been investigating. However, when the system starts hold down the Shift key until the GRUB boot menu is displayed, then choose "Advanced Options" and then the alternative kernel you wish to use | 13:13 |
rostam | TJ- I need to automate this in field so I need a script solution. How about removing the newer kernel would that break anything? thanks | 13:15 |
rostam | or even is that possible? | 13:16 |
TJ- | rostam: how are you using "grub-set-default" .. what command-line, exactly? | 13:23 |
rostam | TJ-, Based on instruction I got from this page: http://ubuntuforums.org/showthread.php?t=1195275 I set the GRUB_DEFAULT=saved then I call grub-set-default="Ubuntu, Linux 3.13.0-24-generic" | 13:28 |
TJ- | rostam: Instead of the menu title, use it's --id | 13:31 |
TJ- | rostam: If you look in "/boot/grub.cfg" you'll see the id's of each entry at the end of the menuentry line. They look like "gnulinux-3.13.0-32-generic-advanced-55b34add-90c2-4bd9-b2d3-ea7b4cf5efc8" ... so you should try "grub-set-default gnulinux-3.13.0-32-generic-advanced-55b34add-90c2-4bd9-b2d3-ea7b4cf5efc8" | 13:33 |
rostam | TJ-, ok, so the syntax would be grub-set-default=gnulinux-..... ? | 13:35 |
rostam | TJ-, do I still need to call update-grub ? | 13:35 |
TJ- | rostam: there is no "=" sign to the command.... or are you doing it some other way? | 13:36 |
TJ- | rostam: "update-grub" is only required if changes to the config via "/etc/default/grub" or the scripts in "/etc/grub.d/" are made | 13:37 |
rostam | TJ- THanks I do not use "=" that was elapsed on my side.. thanks | 13:38 |
=== darkness is now known as Guest97152 | ||
=== Lcawte|Away is now known as Lcawte | ||
darkxploit | hello.. i have wrongly uninstall apache and deleted /etc/apache2 [debian] but the service is still on. ANy idea how to stop it tcp6 0 0 :::80 :::* LISTEN 12709/apache2 service apache2 stop dont work usr/sbin/apache2 dont exist, kill -9 on the pid keeps on changing | 15:03 |
samba35 | i am running two guest on 14.04.1 with kvm but host/guest use swap memory upto 800 mb and keeping phyiscal memory un-use ,is there any way force touse physical memory or disable swap is good option ? | 15:20 |
=== PryMar56 is now known as ChmEarl | ||
=== ChmEarl is now known as PryMar56 | ||
=== tomaw is now known as 5EXAAABVN | ||
=== unreal is now known as Guest90721 | ||
=== 5EXAAABVN is now known as tomaw | ||
=== FreezingDroid is now known as FreezingCold | ||
rostam | TJ- The default setting for grub does not work for me. I wonder if this is ubuntu bug or something on my side .... | 22:20 |
TJ- | rostam: I believe it to be a bug - I had a similar issue last week but not had time to fully debug it yet | 22:21 |
rostam | TJ-, is there a bug ID associate it with it do you have a work around I can use? thanks | 23:08 |
TJ- | rostam: Nothing so far, I have it on a long ToDo list :) | 23:09 |
rostam | TJ-, the only thing I think I should do is to pin not to update the newer kernel do you see any issue on that please? thanks | 23:18 |
=== Lcawte is now known as Lcawte|Away |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!