General :: Optimization - Set The Timezone In A Non-standard Distro?

Apr 27, 2010

I'm trying to set the time in an embedded system ... There isn't a link/file /etc/localtime and /usr/ has only two subdirectories /usr/bin and /usr/sbin.Is there something I can try or do I just give up and make UTC be my timezone?

View 2 Replies


ADVERTISEMENT

General :: Memory Optimization For Child Processes?

Sep 6, 2010

I work on Linux for ARM processor for cable modem. There is a tool that I have written (as the job demands) that sends/storms customized UDP packets using raw sockets. I form the packet from scratch so that we have the flexibility to play with different options. This tool is mainly for stress testing routers.I actually have multiple interfaces created. Each interface will obtain IP addresses using DHCP. This is done in order to make the modem behave as virtual customer premises equipment (vcpe).

When the system comes up, I start those processes that are asked to. Every process that I start will continuously send packets. So process 0 will send packets using interface 0 and so on. Each of these processes that send packets would allow configuration (change in UDP parameters and other options at run time). Thats the reason I decide to have separate processes. I start these processes using fork and excec from the provisioning processes of the modem. The problem now is that each process takes up a lot of memory. Starting just 3 such processes, causes the system to crash and reboot.

I have tried the following:-

1-I have always assumed that pushing more code to the Shared Libraries will. when I tried moving many functions into shared library and keeping minimum code in the processes, it made no difference to my surprise.

2-I also removed all arrays and made them use the heap. However it made no difference. This maybe because the processes runs continuously and it makes no difference if it is stack or heap?

3-I suspect the process from I where I call the fork is huge and that is the reason for the processes that I make result being huge. I am not sure how else I could go about. say process A is huge -> I start process B by forking and excec. B inherits A's memory area. So now I do this -> A starts C which inturn starts B will also not help as C still inherits A?. I used vfork as an alternative which did not help either. I do wonder why.

View 1 Replies View Related

General :: Ubuntu Boot Optimization Strategy And Oddity

Jan 7, 2010

I want to get Ubuntu blazing fast and I started out by changing the swappiness to just 10 and got a huge performance spike. I was very happy with that. Then I used rcconf and GNOME's startup applications GUI and edited out quite a bit but still have a somewhat slow boot. Well, the next thing I thought I should do is edit the inittab and rid my self of some surely unneeded services. Well, according to this website, Ubuntu doesn't use this inittab, but etc/event.d doesn't exist either! Well I looked in /etc for something related to init, and I believe I have found where these services are called upon. /etc/init.d and /etc/init.

Now the files contain many scripts for different services so I was wondering how to edit these to turn them off to optimize my boot! Do I comment out the unneeded ones? My next question is what strategy should I use as I edit these? I think I can get rid of "ssh" and "cups" and "samba" since I don't use these. Can someone point me to a nice list of services and their functions? I just want to optimize Ubuntu as much as possible to not only have a fast computer for my self and family to use, but to impress Windows users with the speed that can be obtained from Linux!

View 4 Replies View Related

General :: How To Set Timezone In Fedora 12

Aug 19, 2010

In the panel at the top of the screen it shows the time of day - perhaps at the international date line. Is there a setting somewhere that allows me to inform the system of my time zone? Tried "info timezone" - drew a blank. Don't know where to look.

View 1 Replies View Related

General :: Use To Set The Timezone Of The Entire System Using C?

Aug 4, 2010

Is there any function I can use to set the timezone of the entire system in linux using C? (Other than creating a symbolic link between /etc/localtime and /usr/share/zoneinfo/). Could I specify the timezone offset in seconds by any chance?

View 2 Replies View Related

General :: How To Make Own Custom Timezone

Feb 17, 2010

I don't really like Los Angeles (they steal all our water) and neither Tijuana nor Vancouver make sense to me, so I am trying to make my own, custom timezone of Felton, California. How do I do this? I changed my /etc/timezone to "America/Felton" but upon reboot my calendar still says "Los Angeles". Which files do I need to change?

View 8 Replies View Related

General :: Set Timezone For Nagios In Ubuntu 9.10

Aug 5, 2010

so as the title says.

i saw this in nagios.cfg:

Code:
# TIMEZONE OFFSET
# This option is used to override the default timezone that this
# instance of Nagios runs in. If not specified, Nagios will use
# the system configured timezone.

[Code]....

View 7 Replies View Related

General :: Distro - Nominate A Disastrous Distro From Past Or Present

Jan 9, 2010

nominate a disastrous distro from past or present that was simply AWFUL and what exactly was so bad about it?

View 14 Replies View Related

General :: Update Timezone After Relinking /etc/localtime?

Sep 20, 2010

I wanted to change the timezone from Asia/Shanghai to Asia/Hong_Kong on RHEL5U5 in a non-interactive way. After I executed the following command:

Code:

ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime

I checked the timezone with the 'setup' command, and found the timezone is still Asia/Shanghai. Did I change the timezone to Asia/Hong_Kong successfully? Why the 'setup' program still shows the former timezone? Is there any other way to change timezone in a non-interactive way other than relinking the /etc/localtime?

View 2 Replies View Related

Server :: Difference Between America/Mexico_City And Mexico/General Timezone Files?

Nov 25, 2010

I have a Centos 5.5 server and I had a problem with its time because it was 1 one hour ahead of my local time. I installed and activated NTP and I created a link for /etc/localtime:

Code:

ln -sf /usr/share/zoneinfo/America/Mexico_City /etc/localtime

I reboot the server and waited for 1 hour but the time wasnt correct. The server's BIOS clock has UTC time so I edited /etc/sysconfig/clock file replacing:

Code:

UTC=false for
UTC=true

I reboot the server and waited for 1 hour but the time wasnt correct. After breaking my head for about 1 hour, I realized that there is a directory /usr/share/zoneinfo/Mexico and changed my link for /etc/localtime

Code:

ln -sf /usr/share/zoneinfo/Mexico/General /etc/localtime

And It worked. What is the difference between America/Mexico_City and Mexico/General files in /usr/share/timezones, they should be identical but of course they are not?

View 1 Replies View Related

General :: Good Desktop/application Or Command Line Tool To Show Two Different Timezone Concurrently?

Jul 18, 2011

I want to find a desktop application or command line tool to show two different timezone concurrently under LINUX.

Anyone knows there are such application?

Say i want to know the time at london and USA at the same time. (different time zone)

View 4 Replies View Related

Debian :: RAM Or Memory Optimization

Jul 19, 2015

I think linux must has something like RAM or memory optimization , when system can not find enough RAM .some process must be control and control some process for eat RAM .

View 4 Replies View Related

Ubuntu Multimedia :: Flash Troubleshooting And Optimization ?

Jun 25, 2010

Due to the enormous quantity of flash plugin related problems, I decided to expand my tutorials and create this thread to provide support for flash issues (is getting really hard to follow all the flash related threads and provide a decent support)

Current available tutorials:
Flash Optimization
Flash Issues & Solutions

Firefox extensions:

When asking for support, please describe your problem in detail and provide the output of the following commands and instructions. This will make sure I will have a good understanding of your Firefox and Flash installations, so I don't need to guess what might be happening to your system:

1 - Flash Version

Type about:config in Firefox address bar, then type plugin.expose_full_path in the filter, then double-click the same item in the results to make it true. Then type about:plugins in the address bar, find Shockwave Flash, copy the corresponding Path and Version and paste here. it should look lie the image below:

2 - Firefox version and architecture

To find Firefox version and architecture, click "Help >> About Mozilla Firefox" in the menu. The info will be located at the bottom of the info dialog:

3 - System Info

Execute the following commands then copy the generated file, named firefox-report.txt from your Desktop and upload it here or paste the contents.

To execute those commands, select the entire content below, then go to "Applications >> Accessories >> Terminal" and click the terminal with the middle-mouse button.

Code:

View 9 Replies View Related

Programming :: Memory Optimization For Child Processes?

Sep 6, 2010

I work on Linux for ARM processor for cable modem. There is a tool that I have written (as the job demands) that sends/storms customized UDP packets using raw sockets. I form the packet from scratch so that we have the flexibility to play with different options. This tool is mainly for stress testing routers.

The details are here.

I actually have multiple interfaces created. Each interface will obtain IP addresses using DHCP. This is done in order to make the modem behave as virtual customer premises equipment (vcpe).

When the system comes up, I start those processes that are asked to. Every process that I start will continuously send packets. So process 0 will send packets using interface 0 and so on. Each of these processes that send packets would allow configuration (change in UDP parameters and other options at run time). Thats the reason I decide to have separate processes.

I start these processes using fork and excec from the provisioning processes of the modem.

The problem now is that each process takes up a lot of memory. Starting just 3 such processes, causes the system to crash and reboot.

I have tried the following:- 1-I have always assumed that pushing more code to the Shared Libraries will help. So when I tried moving many functions into shared library and keeping minimum code in the processes, it made no difference to my surprise.

2-I also removed all arrays and made them use the heap. However it made no difference. This maybe because the processes runs continuously and it makes no difference if it is stack or heap?

3-I suspect the process from I where I call the fork is huge and that is the reason for the processes that I make result being huge. I am not sure how else I could go about. say process A is huge -> I start process B by forking and excec. B inherits A's memory area. So now I do this -> A starts C which inturn starts B will also not help as C still inherits A?. I used vfork as an alternative which did not help either. I do wonder why.

reduce the memory used by each independent child processes.

View 1 Replies View Related

Server :: Blocking Bad Bots & HTACCESS Optimization?

Nov 7, 2010

My Pastebin for .HTACCESSIf you can offer any tips on improvements..but the main reason: I cannot get the bots to stop showing up.Esp the first one in the list.I need to block these two specifically

Code:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
&

[code]....

View 5 Replies View Related

Server :: Postfix & Anti-spam Optimization

Jun 21, 2011

My postfix server has been working great for the last 1-2 years. Lately the number of spams encreased (from 1-2 every day to aprox 8-10 every day per domain for some domains ).I post here the output of postconf -n. Maybe someone gives me some advices about what cat I change or how can I optimize. I must recognise that I don't fully understand details of how postfix and all the restrictions works together, but I will document every advice.

View 4 Replies View Related

Programming :: Implementing Search Engine Optimization (SEO)

Mar 31, 2011

Though I have developed some web applications (automation tools) using PHP which have been primarily meant for Intranet (within the organizations I have worked for), I have paid little attention to SEO (it was not required until now). But now I want to understand how do we go about implementing SEO and where do we fit this mechanism in a system / website?

Do we need any other tools or learn some specific programming /scripting language to achieve it?Will implementing a good SEO yield identical results irrespective of what search engine (be it Google or Yahoo!) is being used by users?

View 1 Replies View Related

General :: Best LXDE Based Distro/distro That Supports LXDE?

Dec 15, 2010

Lubuntu is nice - but it seems the LXDE version is not as up to date as Fedora LXDE Spin or even Debian squeeze with LXDE installed. I do like Chromium on Lubuntu though... its faster and a nice touch. I am looking for a lightweight 64-bit distribution for my main laptop (it is by no means "old" or "low spec" but I like that Lubuntu starts up in like 2 secs).

LXDE version seems not to be recent (esp in 10.04 version which seems to work more stably for me - with Nvidia drivers etc)64 bit install is currently a pain - requires first install of minimal CD or alternate CD both of which required wired Ethernet, then install of lubuntu from PPA. Native 64-bit support would be nice. Linux Mint LXDE, for example, is also only 32-bit.

View 4 Replies View Related

Fedora Installation :: Partitioning / Mounting Points For SSD Optimization

Feb 23, 2011

I am building a new MiniITX system and partitioning/mounting points for SSD optimization. The majority of / will be on the SSD, but files that are written to often shouldn't be there as the high write operations will diminish the lifetime of the SSD. I will also have a 450G SATAIII drive where I believe that directories like /tmp and /home should be. I also like the idea of a RamDisk for browser/etc files

Intended system:
MoBo: Minix 890GX-USB3
CPU: AMD Phenom II X4 910e Deneb
RAM: G.SKILL 8GB (2 x 4GB) DDR3 1333 (PC3 10666)
HDA: SSD Corsair SATAIII 2.5" 128GB
HDB: Western Digital SATAIII 2.5" 450GB
PSU: Pico 160W PSU
Case: MiniBox M350
OS: Fedora (with Win7 in VM or DualBoot)

View 3 Replies View Related

Networking :: Local Dns Server Cache Size Optimization

Apr 24, 2011

Does anybody have some thoughts about a local dns server cache size? What is the optimal one? In terms of memory consumption and number of re-enters into the cache. Lets say that default size is 150, so I've change this to 500 and after some time I see 379 re-enters into the cache. Simply put I need to increase the cache size 2 times. But due to the fact that browser preloads dns names it is not possible to interpret the number of overwrites in terms that it is not possible to say if useful cache entries were overwritten or those that the browser precached ( in other words not needed ). In this case it is ok to overwrite unwanted entries because it is not likely that I'll need these entries anyway

I'm running the dnsmasq on an embedded system with limited ram and with an umts dongle attached. It is important to keep the cache size as small as possible to reduce memory usage and at the same time to reduce number of external lookups because dns latency of the umts connection is high (1-2sec for the dns query)

View 1 Replies View Related

Server :: Mysql Optimization -- Copying To Tmp Table On Disk?

Nov 16, 2010

we had a CENTOS 5.5 x86_64 machine with 8ered with MySQL 5.0.91-community.Currently we had a very high number of Created_tmp_disk_tables (31k in 4,5 hours!!!).I've read suggestion that we need to increase tmp_table_size, and we've set tmp_table_size to 64M, but this drupal modul's query still cause mysql create tmp table on disk

Code:
SELECT DISTINCT node.nid AS nid,
comments.subject AS comments_subject,

[code]...

View 4 Replies View Related

Ubuntu Servers :: Fan Control - Power-Noise Optimization On The Proliant DL120 G6 ?

Jul 12, 2011

I'm trying to get the HP Proliant DL120 G6 server a lot quieter after startup under Ubuntu Server 11.04 (x64).

For now, it seems like there is no fan control at all: when I start the server, the fans start running at max speed, then it slightly lowers to 3.5K-5K RPM. Once there, it never goes down or up. There's just no fan or power control at all.

In no specific order, I will describe as much as I can my situation.

The system is IPMI 2.0 compliant, so when using the ipmitool package I can get the values of the sensors like this:

Code:

I tried to follow the procedures for using the fancontrol package together with lm-sensors, as shown at [url]. One of the very first steps is to launch "sensors-detect", which gives:

Code:

View 8 Replies View Related

Programming :: BASH Script Optimization For Testing Large Number Of Files

Sep 18, 2010

I want to move files from a $SOURCEDIR to a $DESTBASE/$DESTDIR. Under $DESTBASE there are many directories, and I need to test beforehand if a file from $SOURCEDIR already exists in any of them.

This is obviously extremely slow, and the real use case involves dozens of dirs and thousands of files. Creating a temporary "index" file for the find command (instead of running it every iteration) speeds it up a little, but it's still very clumsy.

View 14 Replies View Related

General :: Which Regex Standard Is Used In Grep?

Apr 12, 2011

I'm wondering if it's POSIX + ASCII or something else is mixed in?

View 1 Replies View Related

General :: How To Redirect Wget To Standard Out

Aug 9, 2011

I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output to /dev/null. I couldn't find it in the wget manual.

I'm looking for something like:

wget -o stout http://whatever.com/page.php > /dev/null

View 4 Replies View Related

General :: What Versions Of G++ And Gcc Come Standard With RHEL 5.3

Feb 23, 2011

I ran into an issue that was written up here on LQ and/or on other sites, the one dealing with an error similar to the following one: error trying to exec 'cc1plus': execvp: No such file or directoryThe solution seems is to make g++ and gcc versions consistent. I've since remedied that, but am slightly confused with my findings and concerned with my solution.

When I first looked in /usr/bin for all references to g++ and gcc, I saw that there were two version of gcc and one version of g++:

(Note the "??? ?? ????" as date for gcc. I've since made some changes, but this was essentially the set of gcc and g++ files that existed before I started.)

I'm told that the system I'm using is an "out of the box" installation, i.e. no modifications. As installed, gcc is the newer version and does not correspond to g++34:

Confusion and concern: When I use makefiles from software I've adopted, I run into the cc1plus problem eluded to above. The cc1plus error occurred because the makefiles expected there to be a command named "g++," so I created a symbolic link, pointing /usr/bin/g++ -> /usr/bin/g++34. And in doing so, g++ was not consistent with gcc. I've since fixed that, i.e. copied the gcc34 version to gcc and my software builds fine.

My question are:

1. Will copying the gcc34 version to gcc cause issues in the future, possibly related to upgrades and/or istallations of other packages that rely on "gcc"? Currently the files are as follows:

2. Were the g++ and gcc files in /usr/bin the "out of the box" versions?

3. How can I answer a question like this in the future, without posting to LQ, i.e. is there a reference to find this type of information?

View 1 Replies View Related

General :: Standard File Paths?

Aug 23, 2010

Is there some sort of standards file path convention for installing softwares that I could follow through? For example, I just learnt how to build Nginx from source. But the default binary path set by nginx is "/usr/local/nginx/sbin". I have seen a couple of tutorials which they specify the location of the installed binary and it is very different from those usual default paths. Thus, got me thinking whether is there some form of file path convention that I should follow?Is there some kind of list which states where do those packages on Debian.org Repository usually installed to?

View 6 Replies View Related

General :: .WMA Streaming - Standard - Windows ?

Feb 9, 2010

[1st off...I used to host my music (A&R) website on a dedicated windows server...'cause I thought it was necessary for streaming .wma files. when I discovered it wasn't...I went w/ a standard hosting package, w/ GoDaddy...

BUT...

I moved my recording studio's site to it's own domain. [it used to be a series of pages on my A&R site.]

I now need to create a '301 Redirect' in my old site's directory to redirect surfers (who have my old url) to the new site...but more importantly...to retain my ranking w/ the major search engines...!

It cannot be done on a Windows server (which I'm on, w/ GoDaddy)...not an .htm redirect anyway, which I need. I've tried all the php, asp, etc. scripts...they don't work. [&...I don't think I really need windows features like php or asp...I code my site(s) in Dreamweaver as html pages.]

so...If I migrate my site(s) to a Linux server...

1) Will standard .wma streaming continue to work...? (i.e., a .wax file in the directory that points to the .wma).

2) Which type of server is FASTER for this task...(if any)...Linux or Windows...?

View 3 Replies View Related

General :: Ruby Program Which Use Standard Input?

May 15, 2010

I am using Red Hat Enterprise Version 5. There is a ruby program which use standard input as its input (e.g. the Ruby program process input from standard input). I think standard input should be keyboard, correct?

So, I think other kinds of input (non-standard input) should not work (i.e. the ruby program should not be able to read input from such non-standard input), but actually I have tried using pipe works, I am so confused because I think pipe should be some other kinds of input -- other than standard input, why it could work? i.e. put text "123" in abc.txt with pipe, could achieve the same result as using keyboard as input to type "123" for the ruby program.

cat abc.txt | ~/test/rubysrc/foo.rb

View 4 Replies View Related

General :: Clone Standard Output To /dev/tty0?

Jan 10, 2011

I'm working on a SBC9261 board with touchscreen, running Linux 2.6.24./dev/ttyS0 is the standard output and /dev/tty0 is the console on the touchscreen.What I would like to do is to clone the standard output to the touchscreen, so the console would be displayed twice.

It would be like :

Code:

~ $ ./whatEverScript > /dev/tty0

but the output would also appear on /dev/ttyS0.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved