How does one reload the /etc/hosts (clear cache?) after adding a domain to 127.0.0.1
location: ubuntuforums.com - date: February 28, 2011
I often manually add a troublesome domain (e.g., advertisements, fake virus alerts, etc.) to my /etc/hosts file on Ubuntu 10.04 Lucid; but the effect isn't immediate.
My hosts file is already fifteen thousand lines long (having combined all the hosts files I could find on the net, including the MVP one); but I still, almost daily, find a new irritant to add to my /etc/hosts file.
My problem is I do not understand WHEN the /etc/hosts file is next read after a change.
I've been rebooting to make sure the hosts is re-read; but there must be a simpler way.
- WHEN is the /etc/hosts file reconsidered in Ubuntu?
- Is there a way to have the /etc/hosts file re-read sooner?
How does one change terminal colors after a change root?
location: ubuntuforums.com - date: January 31, 2011
Now I know that in order to change the colors in your terminal you have to play around with ~/.bashrc
But the effects don't stay in place after a change-root is taken affect. It just reverts to black.
Is there any way I can change that too in .bashrc?
In bash, how does one clear the current input?
location: linuxexchange.com - date: March 20, 2014
Suppose in bash you start writing a command like:
$ rm -rf /foo/bar/really/long/path/here
and then realize you don't want to execute this after all. Is there a way to clear the input with one or two keystrokes?
What I have been doing lately is prepending echo and enclosing the input in quotes (Ctrl+A, echo ", Ctrl+E, ") then hitting enter. Is there a faster way?
How does one write code that best utilizes the CPU cache to improve performance?
location: linuxexchange.com - date: August 1, 2015
This could sound like a subjective question, but what I am looking for are specific instances, which you could have encountered related to this.
How to make code, cache effective/cache friendly (more cache hits, as few cache misses as possible)? From both perspectives, data cache & program cache (instruction cache),
i.e. what things in one's code, related to data structures and code constructs, should one take care of to make it cache effective.
Are there any particular data structures one must use/avoid, or is there a particular way of accessing the members of that structure etc... to make code cache effective.
Are there any program constructs (if, for, switch, break, goto,...), code-flow (for inside an if, if inside a for, etc ...) one should follow/avoid in this matter?
I am looking forward to hearing individual experiences related to making cache efficient code in general. It can be any programming language (C, C++, Assembly, ...), any hardware target (ARM, Intel, PowerPC,
How does one make Adobe Flashplayer and Ubuntu 12.04 work as it should?
- date: June 6, 2012
This question has gone unaswered for days over on the Ubuntu forum.
Since upgrading to 12.04 (32 bit), Firefox applications that need Adobe Flash Player will not work. I have tried various solutions, but nothing seems to work. Last solution I tried was:
:~$ sudo apt-get install adobe-flashplugin
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package adobe-flashplugin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'adobe-flashplugin' has no installation candidate
How do I fix this problem? It is a major one. The intro pages on my two websites don't work (work okay under IE). Also YouTube does not work.
How does one "zip" a folder with Linux .? How does Windows user "unzip" same ?
location: linuxquestions.com - date: December 18, 2010
Can you shed some light on:
1. How do I compress or zip a folder in Linux ?
2. How would a windows user open such a folder With Windows ?
I upload images and send them to a Windows user. The images are sent in a folder via yousendit - a large file upload service. Yousendit has a proprietary Windows app that zips the folder for you and sends it from an e-mail like GUI. Nice. No such interface/GUI exists for Linux users; I would need to upload a folder at their website.
I want to start using Linux which means that I need to zip the folders myself while using Linux. My Windows user - the recipient of the folder - is NOT techie. He needs to be able to open the folder that has been compressed in Linux easily.
How does one remove debconf data from ubuntu
location: linuxquestions.com - date: July 25, 2008
Below is a set of instructions relating to the use of tasksel to install apache, mysql, and php (Lamp) in ubuntu 8.04.
To remove the LAMP stack remove the following packages:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
To also remove the debconf data, use the purge option when removing. To get rid of any configurations you may have made to apache, manually remove the /etc/apache2 directory once the packages have been removed.
The above information came from this from this url: https://help.ubuntu.com/community/ApacheMySQLPHP
I have already removed the packages mentioned above. Can someone show or point me to some material on how to remove the debconf data?
Unity 2d 10.10 How does one move the launcher icons?
location: ubuntuforums.com - date: March 18, 2011
Hey guys, long time lurker here. I was just wondering how I could reorder/drag n drop/move the unity-2d (qt version) icons in ubuntu 10.10, like you would in the mutter version unity. I can move the launcher up and down, I just can't pull them off the launcher and drag them around. Is this a bug or has it just not been implemented yet? Other than this, I love unity 2d and can't wait for the compiz-based unity 3D to use in 11.04
Thanks in advance
how does one open .eml emails?
location: ubuntuforums.com - date: August 29, 2008
A friend using microsoft outlook sends me forwarded .eml emails and except for the first part of the email message, the body of the message looks like this: "CaydY5mzxGm2QCqAGLObHwVAAAAAAAACAAAAAECQKTQ0gfj0h GX8ACgyV6oUCwBAAAAAAAABQAY
..." and so on. And the file name has a .wmv windows media extension. How do I open these attachments and how can I check the extension of the file before I open it and if it's safe to open?
I run Hardy Heron and use gmail and evolution for email right now.
How does one locate the linux driver .c source file for a network adapter?
location: ubuntuforums.com - date: December 7, 2011
How can I locate the correct linux .c driver file for my network adaptor (Marvell Yukon Gigabit Ethernet Driver)? I have all the kernel files but there doesnt seem to be a referenced way of locating per device?
Is there some orderly way of searching for my adaptor and being told which .c file the driver is?
(Knowing generally where I can find driver Y for adaptor X would be useful in case I change adaptors in the future)
EDIT: Just been on the marvell website and downloaded the driver, it appears to be skge.c, sky2.c, skdim.c and skproc.c ?
Page: 1 2 3 4 5 6 7 8 9 10