Previous Post: The new PlayStation 5 is here

Stop asking password when mounting another internal hard drive on Linux

June 15, 2020.

Whenever I change the operating system or update

we find that in order to access the additional internal hard drives in our machines, we must necessarily type the administrator password.
How boring!Let’s see how to overcome this annoying procedure and how to stop the operating system from asking password when mounting another internal hard drive on Linux.
First of all, it will already be clear to everyone that this is a question of permissions , then immediately we go to the fstab and we add our group.
It is easy, simply add the ‘user’ group option to the /etc/fstab line relative to the partition of the interesting hard drive.
Something like this:/dev/sdc1 /data ext4 rw,noauto,nofail,nodev,nosuid,userIt is so simple, but it doesn’t always work, so here comes a useful and longer-lasting solution.
Open the file /etc/polkit-default-privs.local with this command:$ sudo vim /etc/polkit-default-privs.localAdd these lines in that file:org.freedesktop.udisks2.filesystem-mount-system auth_admin:auth_admin:yesorg.freedesktop.udisks2.filesystem-mount auth_admin:auth_admin:yesAnd, at the end, run this command in the terminal session:$ sudo set_polkit_default_privsThen you can mount other drives in your file manager without needing to enter the root password every time.
References and resources .

OpenSUSE | SDB Mount additional disk – https://en.opensuse.org/SDB:Mount_additional_disk

Stop Ubuntu asking for password to mount second drive – https://askubuntu.com/questions/445224/stop-ubuntu-asking-for-password-to-mount-second-drive.
How can I turn off password prompt when mounting another hard drive.
I want mounting (and mounted partitions) to be accessible without root privileges | Reddit – https://www.reddit.com/r/openSUSE/comments/c9ljd4/how_can_i_turn_off_password_prompt_when_mounting/.
AdminfstabHard DiskHardwareMountopenSUSEPassword Permissions PoliciesUbuntu Post navigation.
Previous Post: The new PlayStation 5 is here.
Futuristic design and powerful hardware Next Post: How to disable and remove completely Snaps in Ubuntu Linux Load Comments.

Looks like you”re using new Reddit on an old browser

Looks like you”re using new Reddit on an old browser.
The site may not work properly if you don”t !  If you do not update your browser, we suggest you visit.
Log insign up Create a post Drafts PostImages & VideoLinkPoll 0/300 Bold Italics Link Strikethrough Inline Code Superscript Spoiler Heading Bulleted List Numbered List Quote Block Code Block Table Add an image Add a video Switch to markdown This community does not allow original content tag OC Mark as a spoiler Spoiler Mark as Not Safe For Work NSFW Select a subreddit to enable flair Flair Post Cancel Send me post reply notifications Posting to Reddit Please be mindful of reddit”s and practice good.
Reddit Inc © 2020.

All rights reserved Cookies help us deliver our Services

By using our Services or clicking I agree

you agree to our use of cookies..
I Agree.

I am going to look into WP-Super Cache

Dev Master – Your source for game development .
Yesterday’s ideas tomorrow!.
Holly West – Author of ‘Diary of Bedlam’.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
Mark J.
Derulo on.
Christian Smith on.
on.
Fyodor on.
on.
on.
on.
on.
Mick on.
on.
Lancechop on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
Matt C.
on.
Bill on.
on.
on.
Erik on.
on.
on.
on.
Stan R.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
clabbers on.
on.
on.
on.
on.
on.
on.
on.
on.
Phil Ivey on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
Patil S K on.
on.
on.
on.
Justin on.
Omar on.
danny on.
Marc on.
on.
on.
Ash on.
on.
EvaUnit02 on.
Shakor on.
Cindy on.
nielsbot on.
Miles3298 on.
on.
Smartie77 on.
Smartie77 on.
bholly on.
on.
on.
on.
on.
on.
Phillip on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
Steven on.
on.
on.
on.
on.
on.
on.
on.
on.
Lee Rimar on.
on.
on.
on.
Krishna on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
on.
jason on.
Brian on.
Brian on.
on.
on.
on.
on.
Zed Shaw on.
Andy on.
Andy on.
on.
Niner on.
Doug on.
on.
ggn on.
ggn on.
on.
on.
Bill on.
on.
on.
3m0k1D on.
on.
on.
on.
Bjrn on.
on.
Bjrn on.
on.
on.
on.
Ali on.
tony on.
on.
Gareth Lees on.
on.
Manu on.
Arul Inthirarajah on.
on.
on.
on.
Free Games Download on.
on.
on.
on.
on.
on.
Prev/Next Posts « | | » Tuesday, October 23rd, .

2007 at 1:42 pm Reddit-proofing WordPress

By Mick West [UPDATE] Since writing this

I had another huge spike in traffic (20,000 visitors in a day), which again caused a crash.
As a result, I installed WP-Super Cache, which is much more robust that WP-Cache.
I also adjusted the theme to use a static stylesheet (style.css) rather than a dynamic one (style.php) -.

This totally eliminates all load on the PHP and MySQL backend

vastly improving the situation.
The use of style.php vs.
style.css varies by theme, it’s an option in the tiga theme used here, but for many themes is unnecessary.
….
Some time this morning my blog started acting a bit wonky, giving me errors about not being able to connect to the database, and then finally becoming inaccessible.
I could not even get into my server control panel , and had to request a power cycle.
After it came back up, I found out why it was having problems.
I’d been linked from reddit.com, a user-generated news site, and I was getting a new connection every few seconds, already several thousand connection had been made, and the sheer number of requests was crashing the server.
All of the request were for this page: http://cowboy programming .com/2007/01/04/mature-optimization-2/ But why was this making the server crash.
Well, the most immediate problem was that wp-cache was not enabled.

This meant that every page view had to be re-built from the MySQL database using PHP

If the requests are coming in faster than the page can be built, then they’ll get backed up.
Eventually thing crunch to a stop, seeing as the basic workings of WordPress also require database connections .
And since cPanel also uses a database, it too fails to work.
I could probably improve this somewhat by increasing the number of connections , but really they should be cached.
So I re-enabled the cache, and things seemed to go swimmingly.
I then took a look at what was being downloaded as part of the page.
I was rather surprised to discover that the SyntaxHighlighter plugin was serving up a bunch of JavaScript, even though it was not used on this particular page.
That seems like a bit of a bug.
I was able to trim this down quite a bit by disabling every language except for C++.  later I hacked it to only include the JavaScript if needed.
I then noticed that my header image and my background image were about 100K each, which is rather silly.
I took them both into photoshop, and tweaked them down to about 15K.
The background image was a GIF, but this was still compressable by a significant amount by just setting “lossy” to a small number like 4 or 5, and there was no perceptible degradation .
Finally.

My Reddit effect was seemingly having a knock-on effect in South Korea

where I had linked to a 2.5MB pdf file that was hosted at Seoul National University.
This was currently inaccessible.
I’m not sure, but suspect a few people were trying to download it (I was at 5,000 visitors by then).
I wanted to re-host it locally, but I could not even read it myself.
So I just deleted the link, then 20 minutes later things had died down, so I was able to grab the file.
I re-hosted it on my server, and put up a new link.
So my server has been up about six hours now, .

And since then it’s been continued to be hit fairly constantly from Reddit

In that time there has been 70,000 accesses (3.17 per second) , accounting for 724MB.
It’s about 20 times the normal daily traffic for this site.
Here’s a graphical look at what happened: As you can see, bandwidth is not really the problem .
It peaks at 1Mb/sec, and my server can serve at 100Mb/sec.
You could probably handle this load on a 768K DSL line.
The Server degrades severely at around 8:00AM, then around 8:20 is when I reboot it.
I re-enable the cache a few minutes after this, but this does not have any effect on the bandwidth, seeing as the pages being served are identical, .

Just less load on the PHP/MySQL back end

Then at around 10:00AM I start optimizing, shrinking the background and header images, and trimming the syntax highlighter, which more than halves the bandwidth.
This entry is filed under Internet, WordPress.
You can follow any responses to this entry through the RSS 2.0 feed.
You can , or trackback from your own site.
36 Responses to “Reddit-proofing WordPress” 1 Jim Mirkalami says: February 6th, 2008 at 4:02 pm I have been a frequent visitor of this blog for some time now, so I thought it would be a good idea to leave you with my thanks.
Regards, Jim Mirkalami 2 David says: March 7th, 2008 at 3:50 pm If you’re on a hosting plan with tight bandwidth restrictions, submitting content to social networks could be more harmful to you than good.
This article has saved me a lot of hassle in handling with vast amounts of requests easily and a lot less painfully; thanks.
3 eddy says: March 21st, 2008 at 3:11 pm i use super cache to nice plugin 4 burun says: March 21st, .

2008 at 10:19 pm Very good plugin

5 estetik says: March 28th, 2008 at 12:12 am I think using the stylesheet file as style.css causes a fast web page load.
Great idea.
Thanks a lot.
6 pdf mania says: March 30th, 2008 at 1:09 am i’ve never heard the super caching plugin for wp.
better to try 🙂 thanks for sharing.

7 Steve Smith says: April 1st

2008 at 10:09 am Thanks for the great information, it was very helpful.
8 says: April 2nd, 2008 at 12:14 am I recommend this plugin.
Very useful for me.
9 rzrarti says: April 2nd, 2008 at 10:42 am thanks for this proofing 🙂 10 john says: April 2nd, 2008 at 9:25 pm thanks for plugin its useful 11 diablo 2 cd key says: April 5th.

2008 at 8:06 pm Very useful plugin

thx.
12 varun says: April 6th, 2008 at 12:34 am thanks for such a useful plugin….
13 Don says: April 6th, 2008 at 5:16 am what i found help s reduce the strain on wordpress or any server in general is caching (as you have mentioned) and enabeling gzip.
though I know the plugin has sissues with gziped content.
What you could also try is to cache sql queries (ask your host about this).
14 Gene says: April 11th, 2008 at 1:33 pm WordPress does seem to put a massive strain on my sites when one of the articles goes viral and I get a massive surge of traffic.
I think I’m going to follow some of your tips to see if they help 15 Vids says: April 12th, 2008 at 3:31 pm Usefull post.
Thank you.
Does WP Super cache works also with new wp 2.5.
16 says: April 12th, 2008 at 4:05 pm Yes, it works with 2.5, you just need to make sure you have the latest version (0.6.2) 17 Jen says: April 13th, 2008 at 9:33 am @Mick: Is WP-Super Cache still running well for you.
18 says: April 13th, 2008 at 10:12 am Seems fine.
I’ve not really had any huge spikes though.
I’m pretty sure it could handle a slashdotting though.

19 Jen says: April 13th

2008 at 10:34 am Ok, thanks Mick.
Going to install it right now.
20 WordPress Themes Park says: May 4th, 2008 at 3:33 pm wow huge traffic 21 dizi izle says: May 5th, 2008 at 12:10 am what i found help s reduce the strain on wordpress or any server in general is caching (as you have mentioned) and enabeling gzip.
though I know the plugin has sissues with gziped content.

22 Manish says: May 30th

2008 at 7:11 am Wow…real huge traffic.
The highest I ever got was around 8,000 till now in my new site: http://www.enfotainer.com/ Well, is this Super Cache recommended even if we don’t have huge traffic in our website.
Thanks in Advance.
23 Manish says: May 30th, 2008 at 7:13 am Generally, my site has only 200 visits per day, but if this SuperCache is going to increase their experience in surfing my page, then I’ll surely install it too…LOL 24 red heart yarn says: June 12th, 2008 at 6:03 am thanks for sharing the info there.it really helps me to understand reddit traffic more 25 abcteach.com says: June 12th, 2008 at 8:03 am thanks 😉 26 Denise says: August 4th, 2008 at 1:25 am Do you host this on your own servers or with a hosting company.
27 says: August 4th, 2008 at 6:37 am It was a virtual private server at GoDaddy 28 JGG says: August 12th, 2008 at 11:14 am Great post, This is why I have my site images as small as possible while not being graphic intensive.
I am going to look into WP-Super Cache.
Any significant problems you�ve faced since installing this plugin.
Anyone interested in video tutorials please visit: PCLicious � Video Tutorials For Personal Computing 29 says: August 12th, 2008 at 11:42 am WP-Super Cache seems to have worked just fine since I installed it.
30 webdesign says: February 1st, 2009 at 6:17 pm wow huge traffic , i want too 😛 31 perfect says: June 19th, 2009 at 1:15 pm my site images as small as possible while not being graphic intensive.
I am going to look into WP-Super Cache.
Any significant problems you�ve faced since installing this plugin.
32 götten sikis says: September 4th, 2009 at 3:02 pm wow huge traffic 33 james @ train horns for sale says: September 11th, 2009 at 10:48 pm That traffic is amazing.
Untill I start getting anywhere near that will I need super cache so you think?.
34 Adam says: January 11th, 2010 at 3:07 pm I use WP Cache plugin, it works great.
35 SEO Content Writing Service says: February 1st, 2011 at 11:39 pm I use only google analytics with my wordpress.
36 lost files recovery says: February 5th, 2011 at 3:01 am Google analytics is even better for this purpose.
Leave a Reply You must be logged in to post a comment.
Cowboy Programming is powered by | Using theme with a bit of +.