General :: Cleaner Neater Configuration Files
May 18, 2011
Not exactly new to Linux but - over the years I have been appalled to find hundreds of configuration files for every known program/service in Linux with millions of lines of useless comments that you have to endlessly scroll up-and-down in a text-editor to find anything of value and then make sense of what you need to configure/change, etc.
Is there an automated way to clean up any given configuration file and get rid of the "filler" stuff ?Seems like a shell script should be able to accomplish the task by getting rid of all lines that start with # ..
View 14 Replies
ADVERTISEMENT
May 23, 2011
Is there a cc cleaner equivalent for linux to clear out tmp, internet files, etc.?
View 9 Replies
View Related
Mar 14, 2010
i have the following script which takes as input parameter a webpage and extract the emails from it. The results are correct but i was wondering whether i could rewrite it in a better, 'cleaner' manner. I think my for loop is a bit. primitive and also each email is printed twice
Code:
#!/bin/bash
echo $1
echo "The script starts now."
echo "Hi, $USER!"
wget $1 -O webpage.txt
awk '
{
for (i=1;i<=NF;i++) {
[Code].....
View 3 Replies
View Related
Aug 18, 2010
I have been using Fedora Core 6 off and on for awhile.I could not update it so I downloaded and installed Fedora core 13. A lot of things seem to be missing compared to the earlier package: I cannot get a response to "Detect Monitor" and I do not have any choices with better screen resolution than 800 x 600. The file /etc/X11/xorg.conf does not exist. I have used this in the past to control the resolution although I have generally used the gui stuff to accomplish all the tasks up to this time.
I also do not find a "services" menu item where I can get ssh and web server working.I suspect I need to download some more software to get all this stuff working again but I do not know which packages I need. I am not an expert on Linux and am trying to learn it. On the older version of fedora I had these things working well.
View 3 Replies
View Related
Jul 6, 2010
I would like to be able to do what the package cleaner does in Ubuntu Tweak. What sort of command line magic is needed to clear unused config files, old kernels, cache and packages?
View 5 Replies
View Related
Feb 2, 2010
why my fedora 11 computer shows an application that launches every couple of minutes called launching HTTPcache cleaner? i searched installed programs and i cant find that in annything ive installed
View 1 Replies
View Related
Apr 21, 2010
Is there a way to clean up OpenSuse's applications menu with alacarte? It takes forever for me to find an existing menu item if I want to change or delete it, but deleting existing pre-defined groups (such as "Amusement", "Art and Culture", and "Games for Kids") doesn't work. They simply won't delete.
View 2 Replies
View Related
Apr 28, 2011
I am writing some code in matlab and I would like to do some reading of how to write cleaner code and how to name variables and write comments. One more questions. Let's say that I find for example a file that has really nice structured comments. For example specific format commenting function inputs, outputs author code. Can afterwards copy and paste and use someone's comments format or this is might some copyright problem?
View 1 Replies
View Related
Aug 3, 2010
I get this : Code: [root@Fedora philip]# gedit (gedit:3132): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) I now tested it being not root and it's ok:
Code:
[philip@Fedora ~]$ gedit
[philip@Fedora ~]$
No error when I'm not root. So it's only when I become root and run gedit in terminal I get errors, why?
View 4 Replies
View Related
May 8, 2010
I want to store some of my configuration files (~/.emacs.d/, .Xdefaults, etc. linux $HOME stuff) in version control so I can easily sync them with my notebook/workplace and see my past changes and revert to them should the need arise.
So far it seems to me that there are quite some people using git for this and I think that I too want to use a distributed vcs for this (if only to get more used to them) but I can't say that I am very experienced with all things dvcs. I did use darcs and git briefly and so far I can say that I really like the way git handles branches, and I think the possibility to have different branches within the same directory is especially useful for my use case. Darcs on the other hand has cherry picking of patches, which too is quite the convenient feature when managing configuration files (at least I assume it is).
So, what would you recommend to use? And what would be your reasoning for your recommendation? What other vcs with nice feature that I haven't mentioned exist and would make a good vcs to store configuration files and why?
View 2 Replies
View Related
Jan 7, 2011
In linux, why are folders for configuration files always named *.d?
View 1 Replies
View Related
Jul 27, 2010
I am trying to set up the LDAP database but it will not really work. Maybe some of you knows the answer.At this moment I get stuck at point 5: Load the LDIF data file into the database.
View 10 Replies
View Related
Feb 5, 2011
I've been struggling for a couple of days to understand how configuration files work in Linux but haven't really found any clear information regarding that.My main question, as there is not a standard configuration file format in Linux, is how the format of a configuration file is understood by a Linux program? How the program reads its configuration file and how it understands its syntax (file format)? Also, a further question is how the program knows where its configuration file is being located?
For example inittab has its own "Identifier:RunLevel:Action:Command" format. How this is recognised by the "init" process?
View 8 Replies
View Related
Apr 1, 2010
Are there any commands or software that can do any of the following:
cache cleaner
orphan removal
View 5 Replies
View Related
Jul 29, 2010
Any-one using the Linux version of Click-Repair? [URL] I have been trying Gnome Wave Cleaner but no matter how I configure it there is unacceptable deterioration of audio quality when used in any auto modes. In the past I have trialled Wave Repair and found it acceptable though they have no Linux version. [URL]
Can I expect an improvement over GWC using Click-Repair ? for the outlay of some $$$, or is GWC the best I can hope for using Ubuntu. Or, is it back to the tedious 'manual de-click' for every LP.
View 7 Replies
View Related
Oct 4, 2010
I have a number of versions of gnome installed on a number of different hosts. All users have network mounted home directories. In some cases gnome works poorly when reading configuration from the .gnome2 directory. I would like to read config files from version specific directories. Is there any way to specify this when starting gnome? Environment variables perhaps? I know how to move the .gconf directories but this is not sufficient. I need to read the .gnome2 from a different path.
View 1 Replies
View Related
Apr 19, 2011
how do i view configuration files for passwords and groups?
View 5 Replies
View Related
Jun 3, 2011
I had installed ssh but something went wrong and I uninstalled it. I removed the SSH configuration files by hand (I deleted all /etc/ssh folder).After ssh installation (I mean apt-get install ssh) I noticed that I have no SSH configuration files.I tried apt-get install openssh-server but i still have no SSH configuration files.
View 2 Replies
View Related
Mar 25, 2010
Is there any Linux tool to create new or modify exiting key/value pairs in text configuration files? For example, to change a setting in xorg.conf, or change something in etc/networking/interfaces? I know it could be done by sed or by perl scripts, but it could be easier to have a program for this purpose. There are many difficulties for this job that the program should consider, and I am facing nearly all of them:
- Some configuration files may have sections. Like in Windows-type INI files (for example: "[something]"), or like Section in xorg.conf. More sections with the same name can occur, like in xorg.conf.
- If the key/value pair originally does not exist, then the program should add it. But not to the end of the file, but tothe end of a predefined section.
- Config files can have remark lines. Remark text can be even at the same line than the key/value pair. After modifying the value, the original remark text should not change at the end of the line. The remark-starting symbol is not always.
- The values in configuration files are not always simple numbers or simple words, but in rare cases, they are composed by more words, for example: item=name address phone
And of course, we can have remark at the end, like this: item=name address phone # remark text
- The key-value separator depends on the file. Some files use "key=value" format, some other use "key value" format, or even "key1 key2 value", like xorg.conf. The as separator can also occur.
- Case sensitivity can also be an issue.
- Sometime to desired task is not to modify a value, but to add or remove a line beginning remark to a certain line.
I think that managing all these possible cases by a perl or sed program is nearly impossible. I begun to write a C program, but maybe there is already one?
View 6 Replies
View Related
Oct 2, 2010
On a Fedora Core box, I have a normal non-privileged user and I also have sole access to the root account. Because I am the only administrator of this box, I frequently su over to root for administrative tasks. The problem is that many of the user configuration I've become accustomed to are only configured on my day-to-day account (.vimrc, .bashrc, .screenrc, etc). Other than giving my day-to-day user account privileges to perform administration tasks, how would I go about sharing configuration between these two accounts?
View 1 Replies
View Related
Oct 22, 2010
since arch has started using python3, bleachbit is broken, so i am looking for a system cleaner to replace it. i need something that will overwrite file contents and clear firefox cache + the all the normal functions of a system cleaner.
View 8 Replies
View Related
Aug 3, 2011
I'm trying to get Gnome Wave Cleaner (audio wave cleaner) working. I get an error when I try to configure saying that "Gnomeui2 development libraries not found." Goggle just shows several other people having the same error, without any having any success getting GWC working. Anyone familiar with this?
View 5 Replies
View Related
Feb 22, 2011
I want to see what is the configuration of my Wind River Linux (actually I want to see what modules are installed in it when it was built). I can't find the configuration file.
View 14 Replies
View Related
May 21, 2010
I have a slow machine, mainly a Celeron with 250gb HD.This machine is not being used, so I was planning to install a Linux distro and create a bunch of VMs for development.Which distro should I choose? I plan to use this machine mainly as a small "hypervisor" to other vms.Is it possible? What do you suggest? (Buying another machine is out of question, since I would like to know if it's possible give a purpose like this to the Celeron)
View 4 Replies
View Related
Mar 30, 2014
Before I used to make a copy of configuration file and give the end of the file name as 'something.conf.bkp' . Later realized it was a mistake. The correct wording should end in .bak and not bkp .
As per (See apt.conf(5) manpage, section DIRECTORIES, last paragraph.)
The Ignore-Files-Silently list can be used to specify which files APT should silently ignore while parsing the files in the fragment directories. Per default a file which end with .disabled, ~, .bak or .dpkg-[a-z]+ is silently ignored. As seen in the last default value these patterns can use regular expression syntax.
View 7 Replies
View Related
Jun 23, 2014
I just moved from Ubuntu to Debian, managed to get the WiFi printer working, installed flash player etc. Just seemed to have trouble opening files over the LAN, is there a firewall setting I need to set. Files work fine if i copy them to the desktop and open them from there but not over the LAN. I have looked on the web with no luck.
View 9 Replies
View Related
Feb 10, 2016
I am trying to access logs Apache logs (I just installed Apache) and it is giving me permission denied errors. What permissions did you give to yourself in order to access these logs or should I just add this user(myself) to adm group?I can access other log files with no problems for example ssh logs.
View 6 Replies
View Related
Jan 31, 2010
I run a Squeeze system and have recently updated various packages. As far as I can tell one of the changes has deprecated HAL FDI files (used for, among other things, configuring various input devices). I am hence wondering how one should go about configuring such devices --- without having to resort to an xorg.conf file.The two devices in question, an TouchPad and TrackPoint can both be configured via XInput when I log-in, however, it is somewhat tedious. Writing a log-on script to do this also seems rather hacky.So my question is: what is the most elegant way of configuring XInput devices?
View 7 Replies
View Related
Jan 1, 2011
i want to make a script to change the sound configuration from "balanced right/left and low volume" to "louder right speaker and louder volume" and back.i want to learn where i can find the configuration file and what command i have to use to restart pulse audio after my script changes the file.(if you can also tell me what the changes have to be to get the above mentioned results , i will send you a tasty popcorn emoticon )
View 1 Replies
View Related
Aug 31, 2010
Lately I adapted my /etc/fstab to mount samba shared network drives. I had to put the password in the configuration file in order to log in automatically. Isn't there another way? It feels a little akward to me to put passwords in a plain text-file.
View 2 Replies
View Related