Re: not wanting to delete somebody's home directory
That is certainly an annoying default. Make you have to rethink your naming convention. Wolf Strategic Cybersecurity AdvisoryCloud https://Bit.ly/WolfHalton > On Jul 6, 2019, at 08:31, Curt wrote: > >> On 2019-07-06, songbird wrote: >> Curt wrote: >>> On 2019-07-05, mick crane wrote: >> ... I'm incrementing the number by the loop and some software sees 2 as bigger that 10 or something like this. I can probably get around that by >>> >>> Not sure exactly what you mean by some software, but you must be sorting >>> lexicographically (the numbers are treated as strings, in which case >>> alphabetically speaking 1 goes before 2). >>> >>> I don't think anybody's pointed this out yet (to my surprise) so I >>> thought I would (maybe I missed it), although my ignorance is nearly >>> total in the matter. >> >> i have no perl programming experience so i could >> not speak to that issue. > > This wasn't a criticism of anyone but rather an observation. > > In the bash shell I have wondered about this sorting "anomaly" myself and so > looked it up this very day. As the simple (and pretty obvious, really) answer > was completely amenable to my intellectual powers, I was kind of enjoying > myself believing I'd mastered a trivial programming concept and wished to > share > my joyful discovery with the group. That it happened to be the result of the > OP's explicit interrogation and so proves itself to be on-topic is a matter of > pure serendipity. > > ;-) > > # sort numerically ascending > my @articles = sort {$a <=> $b} @files; > > # sort numerically descending > my @articles = sort {$b <=> $a} @files; > > The default must be to sort lexicographically. > >> >> songbird >> >> > > > -- > "These findings demonstrate that under appropriate conditions the isolated, > intact large mammalian brain possesses an underappreciated capacity for > restoration of microcirculation and molecular and cellular activity after a > prolonged post-mortem interval." From a recent article in *Nature*. Holy > shit. >
Re: Hosting in Spain - targeting Indonesian audience
Check AWS prices, host at nearest Datacenter and use AWS cloudfront service to cache content nearer to your audience. If it is a static content site, you could run the whole thing off of an S3 storage bucket (no OS maintenance). Can also spin up Debian instances from virtual machine snapshots. Wolf Strategic Cybersecurity AdvisoryCloud https://Bit.ly/WolfHalton > On Jul 5, 2019, at 23:36, Bagas Sanjaya wrote: > > Hello, > > I'd like to host my website on a local hosting provider. However, the > provider have datacenter in Spain, which is far > from my targeted audiences in Indonesia. Since the datacenter is far from the > audiences, I expected that my website > speed will be somewhat slower than if I choose hosting provider which offer > datacenters in Indonesia or Singapore. > > Regarding hosting type, I will choose VPS. In VPS, I will choose either > Debian or CENTOS. > > Any suggestions? > > Cheers, Bagas > -- > An old man doll... just what I always wanted! - Clara
Re: what calculator do you use?
I know you are looking for a GUI calculator app, however I would like to entice you with a CLI app that is easy to use, but will make your coworkers think you are secretly a computer expert. I tend to use python3 in the terminal window. I open a terminal, type python or python3 in the command line. It lets me do relatively complex calculations, and makes easy copy/paste of the entire calculation where required I use powershell in Windows the same way. Can just use the up-arrow to repeat similar calculations. Python is a programming language and it’s pretty simple to set up all kinds of repetitive math quite easily, but you probably won’t need all the capability (at least at first). 4/5 (enter) gets you 0 which is good for estimating but 4.0/5 gets you 0.8 like you probably expect Wolf Halton Strategic Cybersecurity https://AtlantaCloudTech.com > On Jul 13, 2020, at 03:31, kaye n wrote: > > > Hello Friends, > Correct me if I'm wrong, but I don't see any calculator app in my Debian os. > What do you guys use? I'm having trouble with Galculator. > Thank you! >
mpt raid status change
Hi, I am new on this list, but not entirely new to Debian. I get a couple of hundred messages per month to my local root user on each debian server VM I run that mention that "mpt raid status change." This comes from systems that have one virtual drive or two, and I do not have raid set up on. Is that a default install setting I have to disable? Is it simple to disable the messages since I am not running raid at all? These messages dilute the actual messages of importance that the system sends through at intervals. cron jobs and whatnot. Wolf Halton -- This Apt Has Super Cow Powers - http://sourcefreedom.com Open-Source Software in Libraries - http://FOSS4Lib.org Advancing Libraries Together - http://LYRASIS.org Apache Open Office Developer wolfhal...@apache.org
Fwd: RE: /var/spool/mail ?
Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org -- Forwarded message -- From: "Wolf Halton" Date: Sep 25, 2012 6:50 AM Subject: RE: /var/spool/mail ? To: "Hadi Motamedi" , # echo "" > /var/spool/mail/root will replace the content of the file with an empty string, however you might want to see what has been accumulating there. Usually you get system events notifications. You might or might not care about those. My servers send crontab results notifications and I like to periodically audit those to make sure they are working. To automatically purge the root mail file, you could just add a crontab line for root of the above command preceeded by 0 0 1 * * that purges the file once per month. It is a little like pasting a happyface sticker over your car's oil pressure readout, so I would suggest not doing it that way, but instead going in and find the issues behind the symptom of "full root mailbox." Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Sep 25, 2012 6:25 AM, "Hadi Motamedi" wrote: > > > > Date: Tue, 25 Sep 2012 11:13:38 +0100 > > From: karl.jorgen...@nice.com > > To: debian-user@lists.debian.org > > Subject: Re: /var/spool/mail ? > > > > Hi > > > > On Tue, Sep 25, 2012 at 10:47:44AM +0100, Hadi Motamedi wrote: > > > Dear All > > > On my server , the /var/spool/mail/root is getting very big in size. > To free up > > > more space, can you please let me know how can I solve the problem ? > > > > Sounds like you have lots of mail accumulated in root's mailbox... > > > > Do you read and delete the mail that is sent to root? > > > > -- > > Karl E. Jorgensen > > > > > > -- > > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > > Archive: http://lists.debian.org/20120925101338.GD18682@hawking > > > > Thank you for your reply. Can you please let me know how can I delete them > automatically or preventing from accumulating huge amount of mails there ? > >
Re: Fwd: RE: /var/spool/mail ?
I like the smiley of death! Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Sep 25, 2012 10:35 AM, "Jon Dowland" wrote: > On Tue, Sep 25, 2012 at 06:52:24AM -0400, Wolf Halton wrote: > > # echo "" > /var/spool/mail/root > > will replace the content of the file with an empty string > > The smiley of death is better: > > # :> /var/spool/mail/root > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/20120925143514.GB23708@debian > >
Re: fsck -fvy ?
On Sat, Sep 29, 2012 at 9:04 AM, Brian wrote: > On Sat 29 Sep 2012 at 12:58:38 +, Hadi Motamedi wrote: > >> Thank you for your reply. I got file system inconsistency check and >> the prompt to enter the root password to get system maintenance. At >> there , I issued fsck and then reboot. > > Ah, I see. > > Did you try holding down the shift key to make the GRUB menu visible? > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/20120929130417.GI22368@desktop > Remember to hold the shift key at the very beginning of the boot - black screen. If you actually see a debian splash-screen (if you have a gui front end on) or any of the startup lines for debian, you are too late. You could also try using a live disc and mounting the hard drive partition and check the rcN.d folders (where N= a number from 0 to 6) look for the Sxxomcd link and remove it (where xx= some number from 00 to 99). This used to work for almost all services, but it is a legacy system that works on fewer things all the time.. -- This Apt Has Super Cow Powers - http://sourcefreedom.com Open-Source Software in Libraries - http://FOSS4Lib.org Advancing Libraries Together - http://LYRASIS.org Apache Open Office Developer wolfhal...@apache.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CALRLYE=m0yepz_-38t4bdj5pf1aoglxh4jap35d5qdfhcqy...@mail.gmail.com
Re: IA64 or AMD64?
How long after end-of-life of the itanium chip will Debian keep the port to IA64? sorry for top-posting; that is how droid does. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Sep 30, 2012 6:40 AM, "Martin Steigerwald" wrote: > Am Sonntag, 30. September 2012 schrieb Stan Hoeppner: > > > Having said that, I am aware that something is changing as the > > > IA64/AMD64 question is getting asked more frequently these days. > > > Whether that's because there are more adopters that are not quite as > > > competent as before, I couldn't say. > > > > There are multiple reasons for it, but the reasons/causes are > > irrelevant. What matters is that people aren't "getting it". If we > > change the port names they more than likely will get it. > > So or so I think if someone likes to propose a change of the current > naming time its not sufficient to discuss this in this user mailing list. > ;) > > -- > Martin 'Helios' Steigerwald - http://www.Lichtvoll.de > GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/201209301240.25255.mar...@lichtvoll.de > >
Re: Security support for CMSes
I am sorry to hear your site was cracked. I run Drupal on Debian as well. The fundamental flaw here is the lag time between drupal update and packaging on debian. I run drupal 7 for new sites. Installs are not the simplest things in the world, but it comes in handy in an ongoing fashion to have done the work. That way you are sure of your database user and pass as well as exact location of files. As an engineer, you reasonably want to make the process as simple as possible but no simpler. Packages with public web interfaces like drupal take more care and feeding than any other kind of package I can think of. It is not a Debian issue. Any Linux packager would have a hard time keeping up with a community-maintained monster like drupal. Even if you are running Sid, not suggested for production environment, there is too much lag to trust package maintainers to do the updates for you. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Oct 7, 2012 6:22 AM, "Peter Viskup" wrote: > Hello everybody, > I am using Drupal6 from Debian repositories as I thought that Debian is > taking care of the security fixes and therefore I do not have to take care > too much. > Unfortunately one of my sites was cracked and there were none of security > fixes released in June 2012 by Drupal community backported to main release > till today. The only 'fixed' version of Drupal6 is available on > backports.debian.org. > Do you use Debian versions of CMSes? > Are you continuously checking the main releases and checking the states of > Debian packages? > What are your proposals for running any CMS available in Debian > repositories? > Does somebody have similar experience from the past or with another CMS > from Debian repositories? > Thank you. > > Best regards, > -- > Peter Viskup > > > -- > To UNSUBSCRIBE, email to > debian-user-REQUEST@lists.**debian.orgwith > a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/**50715734.8040...@gmail.com<http://lists.debian.org/50715734.8040...@gmail.com> > >
Re: Security support for CMSes
Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Oct 7, 2012 10:01 AM, "Robert Pommrich" wrote: > > Hi, > > Am 07.10.2012 12:19, schrieb Peter Viskup: > > Hello everybody, > > I am using Drupal6 from Debian repositories as I thought that Debian is > > taking care of the security fixes and therefore I do not have to take > > care too much. > > Unfortunately one of my sites was cracked and there were none of > > security fixes released in June 2012 by Drupal community backported to > > main release till today. The only 'fixed' version of Drupal6 is > > available on backports.debian.org. > > Do you use Debian versions of CMSes? > > Are you continuously checking the main releases and checking the states > > of Debian packages? > > What are your proposals for running any CMS available in Debian > > repositories? > > Does somebody have similar experience from the past or with another CMS > > from Debian repositories? > > you should address the issue to the maintainer lu...@debian.org, > and the security team [1] (secur...@debian.org or > t...@security.debian.org), which I put in CC. > > Looking at > > http://security-tracker.debian.org/tracker/status/release/stable > > there are 2 issues which are not fixed in the current stable version of > drupal6. Perhaps the maintainer and/or the security team overlooked them. > > [1] http://www.debian.org/security/faq#contact > > Robert > > Thank you. > > > > Best regards, > > -- > > Peter Viskup > > > > > The reason to have a drupal package or any other community or multiverse package is most likely that somebody had the inclination to do the packaging. Whether it be a good plan to use it is up to the individual user. Wolf PS I know it is hard to be objective when ones own site has neen cracked. Computer security is not a state; it is a process. The more third-parties involved in ones security, the easier it is to delegate security to them. I get email updates from my drupal sites with module and core updates. I use drush to update all and the whole process takes less than 10 minutes. One could automate this with a cron job, but I like to know which modules are neing updated. > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/50718b62.1030...@gmx.de >
Re: Security support for CMSes
Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Oct 7, 2012 11:54 AM, "Johan Grönqvist" wrote: > > 2012-10-07 17:38, Wolf Halton skrev: > >> The reason to have a drupal package or any other community or multiverse >> package is most likely that somebody had the inclination to do the >> packaging. Whether it be a good plan to use it is up to the individual user. > > > > I typically think of it as a downside of ubuntu installations that their security support policy separates their large repository into a small main section with security support, and a large universe section which does not promise any security support. > > I always thought debian was "better" in the sense that there was security support for all of debian main, which is much larger than ubuntu main. > > Is that belief misguided? > Debian has main, contrib and non-free categories. I don't think drupal is in main. Could easily be wrong about that. -Wolf > [I am aware that this is a community distribution, that everyone has too little spare time to solve my problems, etc. This is in no way a complaint, I enjoy debian a lot. This is merely a question.] > > (I do not use drupal myself anymore, but both mediawiki and gallery, as well as webservers without CMSs) > > Regards > > Johan > > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/k4s8j6$cif$1...@ger.gmane.org >
Re: Partition Scheme for installing Debian Squeeze
Wally, looks like an ok partitioning scheme. Having /home on its own partition means you can keep its contents even if you change the linux installed. Personally, I don't use a /boot partition; I just use / and /home. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Oct 9, 2012 7:32 PM, "Wally Lepore" wrote: > Hi > > In order to be sure that Debian installs successfully, I also have a > USB stick that has the required debian firmware files loaded in the > event the debian installer asks for it during set-up. > > Debian said: > If any of the hardware in your system requires non-free firmware to be > loaded with the device driver, you can use one of the tarballs of > common firmware packages or download an non official image including > these non-free firmwares. Instructions how to use the tarballs and > general information about loading firmware during an installation can > be found in the Installation Guide (see Documentation below). > > source: http://www.debian.org/releases/stable/debian-installer/ > > The firmware files were downloaded from: > > http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/squeeze/current/ > > Thank you > Wally > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/CALDXikooWbA=f_voqzjwy9dzn9gebihreby5fpekvpoluru...@mail.gmail.com > >
Re: Partition Scheme for installing Debian Squeeze
The sizes look sane. 2*ram=swap If your machine hibernates, all the contents of ram goes to swap. 15GB / plenty of space. .5GB Boot partition. Safe enough, but every 3 months or so, check capacity with df -h as the drive can fill up with old Linux images. The rest for home files makes sense as well. Wolf PS make sure you Reply All or your email goes off-list. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Oct 9, 2012 8:13 PM, "Wally Lepore" wrote: > On Tue, Oct 9, 2012 at 7:48 PM, Wolf Halton wrote: > > Wally, > > looks like an ok partitioning scheme. Having /home on its own partition > > means you can keep its contents even if you change the linux installed. > > Personally, I don't use a /boot partition; I just use / and /home. > > Hi Wolf, > > Ok thanks. I guess I'm 'okay to go'. What do you think about how much > space I have allocated to each partition? As you can see I have an 80 > gig drive (total) that I'm installing debian too. Should I leave some > 'free space' in the event I want to add another directory in the > future? > > Thank you for your support. > Wally > > > > > Wolf Halton > > http://sourcefreedom.com > > Apache developer: > > wolfhal...@apache.org > > > > On Oct 9, 2012 7:32 PM, "Wally Lepore" wrote: > >> > >> Hi > >> > >> In order to be sure that Debian installs successfully, I also have a > >> USB stick that has the required debian firmware files loaded in the > >> event the debian installer asks for it during set-up. > >> > >> Debian said: > >> If any of the hardware in your system requires non-free firmware to be > >> loaded with the device driver, you can use one of the tarballs of > >> common firmware packages or download an non official image including > >> these non-free firmwares. Instructions how to use the tarballs and > >> general information about loading firmware during an installation can > >> be found in the Installation Guide (see Documentation below). > >> > >> source: http://www.debian.org/releases/stable/debian-installer/ > >> > >> The firmware files were downloaded from: > >> > >> > http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/squeeze/current/ > >> > >> Thank you > >> Wally > >> > >> > >> -- > >> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > >> with a subject of "unsubscribe". Trouble? Contact > >> listmas...@lists.debian.org > >> Archive: > >> > http://lists.debian.org/CALDXikooWbA=f_voqzjwy9dzn9gebihreby5fpekvpoluru...@mail.gmail.com > >> > > >
Re: xrandr dual-screen question
+1 for arandr. I use it on a similar laptop/spare monitor set-up. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Oct 30, 2012 4:04 PM, "Sébastien Kalt" wrote: > Hi, > > 2012/10/16 Roman V.Leon. > >> Hello all. >> I use dual monitor configuration on my notebook. One screen is notebook's >> screen and second screen is just an external monitor with different >> resolution, which connected to notebook via VGA cable. All settings were >> made with help of "xrand" util, I use the following script when the desktop >> is loading: >> --- >> xrandr --output LVDS --pos 1920x312 --mode 1366x768 >> xrandr --output VGA-0 --pos 0x0 --mode 1920x1080 >> xrandr --output LVDS --primary >> --- >> >> The problem is all applications which use full-screen mode, are working >> across first and second monitor, but i would like that they go to >> full-screen only on one monitor. Please advise how I could do it? Thanks in >> advance. >> > I'm using this script, with my external monitor on the left of my laptop : > > xrandr --output VGA1 --auto --rotate normal --primary > xrandr --output LVDS1 --auto --right-of VGA1 > > And as I sometimes rotate my monitor to watch documents in portrait > layout, I use this one : > > xrandr --output VGA1 --auto --rotate left > > And when I'm done, I use again the first script ;) > > You can try grandr/arandr while in an X session, I don't remember if it > displays the xrandr commands when launched from a console. > > Sebastien > >
Re: Apace Redirect Question
Make these changes in sites-available files. That is what those files in there are for. I don't have the specific directive but I can put up one of my servers' apache files for you. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Nov 2, 2012 9:02 PM, wrote: > Good evening folks, > > I am trying to teach myself Apache and have run into what seems to be a > real > simple problem for which I can not find a solution. > > I have two virtual hosts with files in /var/www/htdocs/domain1.com and > /var/www/htdocs/domain2.com. I have a fairly simple configuration file > for the > default site that points any requests for my IP address, for > http://domain1.com > or for http://domain2.com to a 404 document. The virtual hosts have > ServerNames > defined as www.domain1.com and www.domain2.com, and requests to either > http://www.domain1.com or http://www.domain2.com are served the correct > pages, > var/www/htdocs/domain1.com/index.html or /var/www/htdocs/ > domain2.com/index.html. > > What I want to do is, if the reqest is for my IP address, or if it is for > http://domain2.com I want the server to continue to serve the ErrorDoc. > But I > want to take anything that comes in for http://domain1.com and redirect > it to > http://www.domain1.com, with the URL changing in the user's navigation > bar (if > that is the correct term). How would I go about accomplishing this goal? > > Relevant files (BTW, I am playing on a series of virtual boxes right now): > > Myapache2.conf is the stock file from the apache2-mpm-prefork package > installation, with the addition of the following line: >DefaultType text/plain > > /etc/apache2/ports.conf: >NameVirtualHost *:80 >Listen 192.168.26.10:80 > > /etc/apache2/sites-available/default: > > ServerAdmin webmas...@domain1.com > ServerName default > DocumentRoot /var/www > ErrorDocument 404 /error404.html > > > Options FollowSymLinks > AllowOverride None > > > > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > allow fromall > > > # Possible values include: debug, info, notice, warn, error, crit, > # alert, emerg. > LogLevel warn > ErrorLog ${APACHE_LOG_DIR}/error.log > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > /etc/apache2/sites-available/domain1: > > ServerAdmin webmas...@domain1.com > ServerName www.domain1.com > DocumentRoot /var/www/htdocs/domain1.com > > > Options FollowSymLinks > AllowOverride None > > > # Possible values include: debug, info, notice, warn, error, crit, > # alert, emerg. > LogLevel warn > ErrorLog ${APACHE_LOG_DIR}/domain1.com/error.log > CustomLog ${APACHE_LOG_DIR}/domain1.com/access.log combined > > > /etc/apache2/sites-available/domain2 is identical, other than domain2 being > used where domain1 is. > > /var/www contains the simple error404.html, and /var/www/htdocs/ > domain1.com and > /var/www/htdocs/domain2.com each contain a simple index.html, which is > just the > usual Apache "It Works" file with "It" replaced by the appropriate domain > name. > > Thanks, > Craig > > > Sent - Gtek Web Mail > > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/1351904512.9916...@webmail.gtek.biz > >
Re: Apache (was Apace) Redirect Question
On Sat, Nov 3, 2012 at 8:31 AM, wrote: > > > On Friday, November 2, 2012 21:48, "Wolf Halton" said: > >> Make these changes in sites-available files. That is what those files in >> there are for. >> I don't have the specific directive but I can put up one of my servers' >> apache files for you. >> >> Wolf Halton >> http://sourcefreedom.com >> Apache developer: >> wolfhal...@apache.org > > Thanks Wolf, and it makes sense that the directives that apply to a site would > go in that site's definition. I just don't quite understand what I need to put > in there. When I check the default site access logs, I see the request for > http://domain1.com come in as /, but I also see the same for domain2.com and > for the IP address. All three show up as "GET / HTTP/1.1" I understand that > the > server does not know about the sites by those names because I haven't > configured it to do so. > > Obviously Apache is capable of this distinction because if I change the > ServerName in domain1's sites-available to domain1.com then the index.html > file > in /var/www/htdocs/domain1.com is returned to the client. If I add the > ServerAlias www.domain1.com directive then both the request for domain1.com > and > the request for www.domain1.com return /var/www/htdocs/domain1.com/index.html, > but the URL does not change in the navigation bar, and both show up in the log > as "GET / HTTP/1.1". > > I know I've entered URL's into my browser's navigation bar and watched them > change to something else, such as entering http://example.com and being > redirected to http://www.example.com, with that URL then populating the > navigation bar. So I'm close in that both requests return the file that I > want returned, but I don't know how to have the URL change so the user sees > the URL I want them to see. > > So I guess what I'm asking is, how do I configure things so that the server > knows a request for domain1.com should be handled as if it were a request for > www.domain1.com, and sends the client to that URL? > > Thanks, > Craig > > > Sent - Gtek Web Mail > > Here are the settings for one of my multisite servers. I am using Apache2.2 on Debian Squeeze with the backports repo enabled - thus it is not a stock Squeeze install This is even simpler than I thought I would be giving you as the NameVirtualHost directive is in conf.d/virtual.conf If you notice, the apache2.conf file has only the generic server info and all of the specific user configs are in other places. It handles the "did they type www. or not in the virtual config as a server alias. This is not a redirect, which would add details to the url, like you get when you type http://evergreen.lyrasistechnology.org into the address bar, because these 2 directories are simply not shared. The evergreen address is pointed at a directory outside of /var/www and can be shared by multiple clients and the search scope is different in each. ** You may get a warning when you restart apache with this setup because default-ssl is listening on port 443 - the complaint will be that apache does not like mixing virtual servers with port numbers and others without. I haven't had to restart this setup for months, so I don't remember the exact warning message. -Wolf #===snippet from apache2.conf # Include generic snippets of statements Include conf.d/ #===Contents of conf.d directory=== wolf@SERVER-01:/etc/apache2/conf.d$ ls charset localized-error-pages other-vhosts-access-log security virtual.conf #===Configuration of virtual.conf=== wolf@SERVER-01:/etc/apache2/conf.d$ cat virtual.conf # running virtual hosts # NameVirtualHost * #==Contents of the sites-available directory wolf@SERVER-01:/etc/apache2/sites-available$ ls default default-ssl legacy #==Configuration for dev.example.net wolf@SERVER-01:/etc/apache2/sites-available$ cat default ServerAdmin wolf.hal...@lyrasis.org ServerName dev.example.net ServerAlias www.dev.example.net DocumentRoot /var/www/http/ Options FollowSymLinks AllowOverride All Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error,
Re: Apache (was Apace) Redirect Question
did you link the sites in sites-available to sites-enabled? Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Nov 4, 2012 6:45 PM, wrote: > On Saturday, November 3, 2012 19:38, "mouss" said: > > > Le 03/11/2012 13:31, cr...@gtek.biz a écrit : > >> > >> [snip] > >> I know I've entered URL's into my browser's navigation bar and watched > them > >> change to something else, such as entering http://example.com and being > >> redirected to http://www.example.com, with that URL then populating the > >> navigation bar. So I'm close in that both requests return the file that > I > >> want returned, but I don't know how to have the URL change so the user > sees > >> the URL I want them to see. > >> > >> So I guess what I'm asking is, how do I configure things so that the > server > >> knows a request for domain1.com should be handled as if it were a > request for > >> www.domain1.com, and sends the client to that URL? > >> > > > > in domain1.com vhost config: > > > > redirect permanent / http://www.domain1.com/ > > > > > > source: > > http://httpd.apache.org/docs/2.2/en/mod/mod_alias.html#redirect > > Hi mouss, > > Unfortunately, if I leave the "ServerAlias domain1.com" line out of the > sites-available/domain1.com file, all requests for http://domain1.comresult > in a 404 error, with or without this redirect. If I put that line in the > file then this redirect results in an error page that states something to > the effect of "Icedove has detected that this page is being redirected in > a manner that will never complete." > > > Sent - Gtek Web Mail > > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/1352072715.965918...@webmail.gtek.biz > >
Re: vim -- adduser vs useradd/usermod
right. usermod makes changes to user. useradd is not interactive, so makes an automated script for adding many users more possible to write. including setting nonstandard home directory or extra groups. adduser is interactive but does not let you put a user in multiple groups, i don't think. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org On Nov 24, 2012 8:16 AM, "Osamu Aoki" wrote: > Hi, > > On Fri, Nov 23, 2012 at 07:56:24AM -0600, Nate Bargmann wrote: > > * On 2012 23 Nov 06:14 -0600, Andrei POPESCU wrote: > > > On Vi, 16 nov 12, 16:33:17, Nate Bargmann wrote: > > > > * On 2012 16 Nov 14:02 -0600, james gray wrote: > > > > > i am using vim to add the one and only name in a usr account to > the groups > > > > > file for printing. > > > > > > > > I would use, as super user: > > > > > > > > # usermod -Ga lp > > > > > > On Debian the 'adduser' tool should be used. > > Maybe this is a bit strong statement. I would just say the use of > adduser on Debian system makes life easy on Debian. > > > Unfortunately, the name alone doesn't lend itself to knowing that it > > will modify a user account although the man page says: > > > >Add an existing user to an existing group > > If called with two non-option arguments, adduser will add an > > existing user to an existing group. > > > > The page is silent as to whether existing group membership is preserved > > as with the command example I offered. To know it would be required for > > each adminstrator to test this command due to this documentation bug. > > I think there is a reason why adduser is not called changeuser (or > updateuser) (just joking though). I am very certain this only "ADD" > things. If it REMOVES something, this is a serious documentation bug > not to mention it. But it just works as expected... I think. > > > In this case, 'usermod' provides the adminstrator *exactly* the options > > Although adduser for this is the popular utility to use here and the one I > probably use, usermod seems to be as legitimate utility and it comes as a > part > of shadow-utils i.e. the passwd package. > > Both should work. Otherwise, file a bug report :-) > > > needed to modify a user account. A single or multiple groups may be > > easily added, or the group list may be passed in such a way as to easily > > remove an account from several groups at once while preserving or adding > > membership in those passed. > > If adduser should do such things, there should be a lot of unhappy people > filing bug report ... > > > I don't see that capability in 'adduser' > > although there is the complementary 'deluser' which removes a sepcific > > user from a specific group. To remove an account from multiple groups > > would require multiple invocations. > > > > Power or simplicity? The choice is yours. > > Power -- certainly. If you read /usr/share/doc/adduser/examples/README, > there are good power tools described. > > For not so much involved like me, adduser is a friendlier interactive > frontend to useradd. At least, this is my impression and that is why I > used it for Debian Reference. > > I google and find interesting old post here. > > > Subject: Re: adduser, useradd: are there any differences > > From: "Peter J. Holzer" > > Date: Sun, 12 Sep 2004 20:55:39 +0200 > > On 2004-09-12 18:12:02 +0200, Roland Wegmann wrote: > ... > > useradd and groupadd are the posix or SUS-standardized tools to create > > users and groups. You can expect them to work (almost) identically on > all Linux > > distributions as well as on HP-UX, Solaris, AIX, ... > > > > adduser and groupadd are distribution specific wrappers which make it > > simpler to create users which conform to some (distribution-specific or > > local) policy. The options vary wildly between different distributions > > and other UNIXes may not have these commands at all. > > (As I checked web, FEDORA/CENTOS/GENTOO, adduser seems to be the symlink > to useradd.) > > Osamu > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/20121124131224.GB22175@goofy.localdomain > >
Re: [OT] End of the world
On Dec 1, 2012 4:24 PM, "Beco" wrote: > > On Sat, Dec 1, 2012 at 5:24 PM, darkestkhan wrote: > > > > Isn't this a bit too fast ? Wasn't End of the World scheduled in > > crontab for 21.12.2012 ? ;) > > > > -- > > darkestkhan > > > I wrote earlier because I'll be busy these last 20 days travelling and > spending money in installments. > > Bye! Have a nice last days y'all! > > Beco. > > PS. Hey guys... About that thread I wrote, to estimate the release > date of wheezy, well, never mind! :) > > > > -- > Dr Beco > A.I. researcher > > "My psychiatrist told me I was crazy. I told him I wanted a second > opinion. He told me that I was also ugly." > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/caluyw2wj2legazgpwsemf1852t_ig6tafkyvx-r4ugq7t1s...@mail.gmail.com > I already got the next Mayan Calendar from my insurance company. Wolf Halton http://sourcefreedom.com Apache developer: wolfhal...@apache.org
Re: [OT] End of the world
I thought it always did. Isn't that about the same time as the Winter Solstice? On Mon, Dec 3, 2012 at 3:52 PM, Urs Thuermann wrote: > darkestkhan writes: > > > Isn't this a bit too fast ? Wasn't End of the World scheduled in > > crontab for 21.12.2012 ? ;) > > You cannot specify a year using crontab(1) or in /etc/crontab. You > could, however, specify that the end of the world will happen on each > December 21, in any year :-) > > urs > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/ygfobiakge3@janus.isnogud.escape.de > > -- This Apt Has Super Cow Powers - http://sourcefreedom.com Open-Source Software in Libraries - http://FOSS4Lib.org Advancing Libraries Together - http://LYRASIS.org Apache Open Office Developer wolfhal...@apache.org
Re: Shell prompt
If you are doing large-scale packing lists, invoices or inventory, friction feed printers will wear out in days (I imagine) and you will have to hire somebody to do nothing but mess around with loading paper, taking care of jams and moving the paper off the printer. If that worker slips the pages may well be irretrievably out of order. Tractor-fed, 5000-sheet boxes of paper makes more sense, either green-bar or white paper is available. Much cheaper to run than laser or inkjet. I don't know anybody running these at home, though Wolf On Mon, Dec 10, 2012 at 6:38 AM, Andrei POPESCU wrote: > On Lu, 10 dec 12, 00:12:05, Bob Proulx wrote: > > > > P.S. What I find most surprising is that you can still buy green bar > > tractor feed continuous computer paper. There must still be some of > > those in use! Wow. > > Yep. > > Kind regards, > Andrei > -- > Offtopic discussions among Debian users and developers: > http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic > -- Wolf Halton This Apt Has Super Cow Powers - http://sourcefreedom.com Open-Source Software in Libraries - http://FOSS4Lib.org Advancing Libraries Together - http://LYRASIS.org Apache Open Office Developer wolfhal...@apache.org
Re: Heartbleed
As soon as heartbleed was found, they patched the OpenSSL package. My servers are in the process of being patched and when they are, the SSL certs will be updated. This door was open for a long time when nobody had seen it, but the door was shut and nailed closed as soon as the problem was noticed. OpenSource is still the best way to go. Wolf Halton -- This Apt Has Super Cow Powers - http://sourcefreedom.com Security in the Cloud - http://AtlantaCloudTech.com<http://atlantaCloudTech.com> On Wed, Apr 16, 2014 at 9:35 PM, Ralf Mardorf wrote: > > > On Wed, 2014-04-16 at 21:18 -0400, Brad Alexander wrote: > > *Everybody* has something to hide. Everyone. Don't believe me? Offer > > to put a public webcam in their bathroom. :D > > That's why I don't have a webcam in my bathroom and assumed my iPad > would be connected to the Internet, I would paste a light-tight thingy > to the cams of it. > > When I mentioned that the German news talk about openssl nowadays, but > nobody on Linux and BSD mailing lists care about those news, I wanted to > pointed out, that our communities are aware about the issues and not > that we are ignorant, but it simply is known. > > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: https://lists.debian.org/1397698532.13149.107.camel@archlinux > >
Re: CRON: Authentication token is no longer valid; new one required
The '!' Means root login is disabled, not that the root account is disabled. su - With a blank root password lets anyone switch user to root without slowing down to crack the password. That is not a safe goal. Sent from my iPhone > On Feb 6, 2015, at 3:41 AM, ML mail wrote: > > The result of running passwd --status tells me that the password needs to be > changed as actually I had in my /etc/shadow file only a "!" as password in > order to safely disable the root account. It looks like this is not > compatible with the cron.d system. I have changed the password and then > locked the account (passwd -l) and now it works. The thing is that I wanted > to remove the password from the /etc/shadow file as with the lock option the > password is still there but with a "!" before it. > > > > >> On Thursday, February 5, 2015 10:18 PM, Bob Proulx wrote: >> ML mail wrote: >> I am trying to run cron from /etc/cron.d with the root account which >> has password disabled in order not to be able to login as root but >> when the cron entry wants to run it simply does not and show the >> following error message in the log file: >> >> CRON[16785]: Authentication token is no longer valid; new one required > > This reads to me that the password for root has expired. It is the > state of an expired password that is a problem. > > When you say that the root password has been disabled what exactly do > you mean by that statement? Did you 'passwd -e root'? If so that is > the source of the problem. Root should not have an expired password. > > What does this say? Example from a system of mine. > > $ passwd --status root > root P 05/01/2010 0 9 7 -1 > > >> Any idea how to run a cronjob from /etc/cron.d with the root account >> disabled? > > I didn't have time to test this procedure but I would use 'passwd > root' to change the password and to fix the expiration. (Actually *I* > would simply edit the /etc/shadow file and fix it but for others I > recommend using the tool to avoid a file editing mistake in that very > critical file.) After updating the password I think the expiration > problem will have been fixed. You don't actually ever have to use > that password. > > Bob > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: > https://lists.debian.org/1326385422.691043.1423212080587.javamail.ya...@mail.yahoo.com > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/18c531b7-3530-46b3-8288-2ee5e61e7...@gmail.com
Re: Sudo
Sudo -i opens a session as root with environment as if you did su - except your non-root admin user doesn't have to know the root password. Wolf Halton Atlanta Cloud Technology Cybersecurity & Disaster Recovery Solutions Mobile/Text 678-687-6104 -- Sent from my iPhone. Creative word completion courtesy of Apple, Inc. > On Mar 21, 2016, at 00:30, Michael Milliman > wrote: > > > >> On 03/20/2016 03:26 AM, Adam Wilson wrote: >> On Sat, 19 Mar 2016 19:30:57 + >> Joe wrote: >> >>> On Sat, 19 Mar 2016 19:57:56 +0100 >>> Sven Arvidsson wrote: >>> >>>>> On Sat, 2016-03-19 at 18:38 +, Joe wrote: >>>>> I've never seen sudo installed by default in any Debian, and I >>>>> begin with expert minimal netinstalls of stable, and I've never >>>>> seen it offered as an option there. My first two actions on >>>>> reboot are to install sudo and mc. >>>> By default you are asked to provide a password for the “root” >>>> (administrator) account and information necessary to create one >>>> regular user account. If you do not specify a password for the >>>> “root” user this account will be disabled but the sudo package >>>> will be installed later to enable administrative tasks to be carried >>>> out on the new system. >>>> >>>> From https://www.debian.org/releases/stable/amd64/apas03.html.en >>> OK, I didn't know that. >> When you carry out a net install (or any installation, in fact) if you >> decline to provide a root password then sudo is automatically installed >> and configured for you, with the first user you create able to become >> root with sudo. >> >> This is all explained in the installer at the root password stage- >> there is no need to install sudo manually post-installation. >> >> If you want sudo, just don't provide a root password in the >> installation. > On the other hand, I use both su and sudo. If I have a protracted session > with several different tasks that I need to complete all requiring root > access I su to the root user. If on the other hand, I only need to perform a > single command, or so, I use sudo. Both have their uses, though as already > noted, Debian generally does one or the other as a default. I install with a > root password, and then bring in the sudo package post-installation. > > -- > Mike >