Programming :: Why ZONE_HIGHMEM Is Starting From 896
Jul 20, 2010I read that ZONE_HIGHMEM (high memory) in linux starts from 896MB. Why it is starting from 896? what is the reason behind that?
View 1 RepliesI read that ZONE_HIGHMEM (high memory) in linux starts from 896MB. Why it is starting from 896? what is the reason behind that?
View 1 RepliesI have a multiple txt file in one folder. I would like to remove everything from starting until find string keyword in one folder. Here is the sample of my text:
Code:
5a651a62sf1a54f2a1sf6a4f50a5f4a2f1a2d1sfs11231211f61d021sd1fs1Reassembles21f2sdf122dfs21fs212sdfdsf1s65f1s62f1
So i want to remove everything from starting until reassemble. Here is the sample output:
Code:
s21f2sdf122dfs21fs212sdfdsf1s65f1s62f1
I have multiple file in one folder. So how to use any script to read in one directory folder and do a same task. I prefer using awk, sed or perl.
I've been recently interested in shell scripts.. and my friend wants me to create a script that allows you to ping.Ive been trying to find info about how i could set this up but found nothing..also all i really need to create a shell script is the note pad and set it as a .bat file?? or do i need a program to make a shell?
View 8 Replies View RelatedI tried, of course:
Code:
awk '/^./ {print}' FILE.TXT
That does not work, I just get an empty output, even if FILE.TXT contains lines which fit the desired regexp I've searched but did not found my way. I'd like to do it with awk, as I want my program to rely only on awk, nothing else such as sed, grep, etc.
I created a small C++ program which starts a server in a separate thread and waits the user to press q using the standard input/output. Something like:
Code:
printf(...);
server->Start();
[code]....
I'm trying to start Chrome in kiosk mode from a systemd service on boot. The 'webserver app' named 'xx' in the samples launches but chromium never comes up.
xx.service :
Code: Select all[Unit]
Description=xx Service
After=syslog.target
[Service]
Environment="DISPLAY=:0.0"
Type=forking
WorkingDirectory=/usr/bin/xx/
ExecStart=/usr/bin/xx/xx
ExecStartPost=/usr/local/xx/chromium.sh
Restart=on-abort
[Install]
WantedBy=multi-user.target
chromium.sh
Code: Select allchromium-browser --kiosk http://xx-01.local:8081 &
How can i use different starting and ending delimiters in awk to search for strings or numbers like:
:string"another_string
'number+another_number
now i want string and number as output from above lines. But if i use delimiter as : or ' it will print the entire line coz second delimiter is not same as first one.
So, DnD is cool - and in Java, it works. Just set the component where the drag starts to allow that:
Quote: tblMain.setDragEnabled(true);
and - yes - the rest pretty much runs itself. I have a JTextField that happily takes the drop from the JTable (be it the whole row - I'm not there yet, still working on that)...but does not raise any events. I'd like the JTextField to raise an event:
- cleaning up the received data, now it gets the raw stuff, and I need an ID from that string
- starting up another void() with the received ID
I read the tutorials but - for blisters - cannot see the "light", please shed some (light, that is)
I am loading the file in Fortran. File looks something like this (shown below) I am interested in Velocity values and not Pressure values. Is there a way to code in Fortran which finds the staring LINE of Velocity values and ending LINE of values or I have to manually find the lines? IN this case it should return Starting line : 9 Ending line: 11
PHP Code:
[code]....
I have an old-address-list file which is having around 1500 entries. I need to convert this addresses in to a specific format.
The old-address-list file>
# cat old-address-list-file
dn: CN=Muhammad Hadhi K.M,OU=IT Dept,OU=Example Company H.O,DC=example,DC=com
cn: Muhammad Hadhi K.M
[code]....
I am facing a problem with my AT91SAM9260 customized board. Board is almost same as the evaluation kit.
I could download the binaries ( Bootstrap-v1.16, u-boot-1.3.4, linux kernel 2.6.20) successfully to the DATAFLASH/NANDFlash in my board by using atmel SAM-BA tool with usb/serialport/jlink.
Here I describe the problem.
When I power up the board, boot strap is not jumping to U-boot location, in the normal boot sequence and board stuck with bootstrap.
But when I disconnect/connect the JTAG USB cable ( provided with SAM-BA ICE) , it's jumping to u-boot location and booting the board properly. I'm getting the same error in NAND FLASH also.
I have tried one more test case.I copied bootstrap binary at the flash location, [location which is specified for u-boot binary] instead of U-boot.bin (location: 0x8400 in dataflash), I got continous bootstrap debug messages in my console. [ So can I conclude SDRAM doesn't have any problem? ]
Bootstrap code or U-boot code ?
I installed OS11.4 on my old laptop, Compaq Armada E500., 512MB RAM, ATI Rage Mobility. During installation I chose "minimal server" and added some development packages, lxde and a little more. I chose to start in runlevel 3 which is full networking without X. Still, when computer is booted it tries to start Xorg which doesn't work because of some problem w driver. The start-up seems to stop there, it never loads completely - seems most things in runlevel 3 are not started (see below) I can manually login on laptop and fix it - but never permanently, same thing again after reboot.
I have checked /etc/inittab & yast - both states default runlevel is 3. I have checked services to be started both directly, browsing directory /etc/rc.d/rc3.d/, and with YaST, it is very clear X should not load during boot. But, as said, it does.. I don't really care about the driver problem right now, I can fix that later when I have more time. So how do I stop X from getting started automatically?
More info, if needed: The installation also stopped with message on tty1 "Starting YaST2" and tty8 showing errors with graphics driver (mach64). The system seemed to be installed though, so I simply rebooted (issuing "reboot" from tty2).
[Code]....
I'm not completely sure where it stops, network is configured but keyboard is wrong and mysql & everything after is not started, so somewhere between S02network and S06kbd. I'm going to use it as a server for testing purposes so no X is actually needed - however I do want to have X & lxde installed just in case, my Internet connection at home is terribly slow so I need most things I might need in the future installed today.
When I first boot up my machine and log in or close my laptop lid then open it, after about half a minute in gnome my entire desktop begins to lag. It lasts for a few minutes then it's completely gone and doesn't happen again until next boot or if I close then reopen my laptop. It's a really bad lag too, where the mouse is practically umovable and I can't click anything.
I have an hp g60-549dx with a duel core 64-bit pentium 4 and an intel gma 4500M.
My Kernel is 2.6.31.6-162.fc12.x86_64
Compiz is enabled and after that lag everything runs flawlessly.
So far I've tried making an xorg.conf and changing the AccelMethod as recommended here, [url], but it didn't work.
I've just updated to Fedora 14 from Fc10 via preupgrade ( going Fc10 - Fc11 - Fc12 -Fc14 ).The process has been pretty good except that now in Fc14 I have problems with NFS and have lost networking. A portion of the bootlog shows this:
Code:
Starting cups: Starting LSB: Mount and unmount network filesystems....
[ OK ]
[code]....
I just installed debian 8.0.0..I installed it without "desktop-environment" during tasksel, but instead installed it with "sudo apt-get install xorg gnome-core" atferwards.I want x-win to be present but I do not want it to start during boot.
Adding "GRUB_CMDLINE_LINUX_DEFAULT=text" to the grub config used to work but for this new debian it does not change anything. Yes, I did do update-grub2 after editing the grub file, and I also confirmed in /var/log/messages that "text" is present with the kernel command. "sudo update-rc.d gdm3 remove" also has no effect,what I do gnome starts at boot time.
I have an installation of F12 where I used VMM to create and run four virtual machines.
If I set the machines to start at boot in VMM, but set my host to not boot all the way into X, the VMs don't boot.
IS that suppoed to be that way? Does VMM's auto-boot of VMs depend on some X or GNOME stage?
If so, what's the best way to fire up the VMs such that it doesn't conflict with any subsequent use of startx? (Don't eant to end up with double the machines just because I had a need to fire up X on the host.)
I just upgrade to KDE 4.3 and it is great release, one problem I have found with it is that The Strigi Desktop File Indexer does not want to start. The error that I get is "Strigi service failed to initialize, most likely due to an installation problem.", does anyone here know if Strigi logs things like this and were? "We must plan for freedom, and not only for security, if for no other reason than only freedom can make security more secure."
View 9 Replies View RelatedI have decided to start using my SUSE 11.0 now and getting to know it a bit.... I have tried to install skype, I succeeded installing it BUT it's not starting up when I am trying to open the program. Absolutely nothing happens when i am clicking on the icon. Anyone who has any suggestions to what I can do in order to make it work?
View 9 Replies View RelatedSo after a series of uninstalling and reinstalling VirtualBox to get the updated version, I was able to get it installed and working but it seemed to be crashing my computer as everytime i walked away for 10 minutes and came back, it would be at the login screen. It never did it while I was on it though so I never saw any errors. Now after a couple days of that... Whenever I start it I get an error:
Failed to create VirtualBox COM object
The application will now terminate.
Could not load the settings file '/home/user/.VirtualBox/VirtualBox.xml'
[code]....
I just updated pidgin from 2.6 to 2.7.3 but when i start i get this entries
Stacktrace:
Native stacktrace:
/usr/lib/libmono.so.0(+0xa7162) [0xb5723162]
/usr/lib/libmono.so.0(+0xe3c04) [0xb575fc04]
[0xffffe40c]
/lib/libc.so.6(strcmp+0xa) [0xb6b4deea]
/usr/lib/libmono.so.0(mono_domain_assembly_open+0x58) [0xb5796838]
[Code]....
After an upgrade to 11.3 my openoffice will not start anymore.Starting with soffice in terminal gives:~> sofficeterminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
View 2 Replies View RelatedVLC is not starting in my debian lenny. I tried to uninstall vlc, then installed again. But nothing happened. Error appeared again. What i need to do?
View 3 Replies View RelatedI seem to have a problem with klipper on Kubuntu Lucid (amd64). used to start automatically on startup, but that stopped working. I then put it in autostart, but it still does not want to start automatically. However when I start it manually it works fine
View 3 Replies View RelatedI have a freshly installed 10.04 ubuntu, but brasero is not starting, what could be the reason? I started it with the option to show errors, but it didn't show any, it just didn't start.
View 3 Replies View RelatedI am trying to install spss 16 on an hp. I have activated the license and everything but when I run ./spss on the spss bin directory (this is the executable the install instrucyions tell me I should use) I get the following error after a little intro screen:
Code:
testu@Schwarzschild:~/SPSSIncb/SPSS16/bin$ sh ./spss
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x20656770, pid=2334, tid=2338302832
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
# Problematic frame:
[Code]...
Aborted As you can see, I created an user to test the install (also this user has compiz completely disabled) and installed spss on his home directory.
played around with Plymouth Manager yesterday, and today, my system would not start. I got some help from #ubuntu, and to my surprise, startx ran without problems. sudo service gdm start also worked perfectly. However, when I boot up my computer, I am always taken to the recovery screen. How can I stop this from happening, get my boot screen back, and make everything work as it should?I'm on Ubuntu 10.10 32-bit with an nVidia GeForce 8800 GT and version current on the nVidia restricted drivers.
View 9 Replies View RelatedHow can I start up my Ubuntu Linux in the shell? Then how could I make sure to also get back to gnome?
View 1 Replies View RelatedI've been running Ubuntu (10.10 - 32 bit) for about 3 months. Being curious about the very basics of Java programming I've just installed Netbeans 6.9 through the Ubuntu software centre and done the "Hello World" exercise within Netbeans. The file is in my Home folder but I'm not clear how now to try and run it.
Some Googling has raised some contradictory recommendations about adding the Sun/Oracle repository and the installing JDK6 as well. I'm now getting out of my depth so if someone can share knowledge on where to go from here I would be grateful. Have just registered so I hope this post is expressed correctly.
I have installed Debian 5.0.4 on a 600Mhz iMac G3. When booting the usual text scrolls down the screen and then the screen goes blank. Cont-Opt-F1 gives me a terminal window. X is apparently configured and running since 'startx' returns the usual something about -1 error message. I am newly returned to the terminal window after years of GUI slackitude and I am not able to get either GNOME or KDE to come up. Is there some file I should be editing (sudo nano /fixthisthing) I feel like I am swimming in the right ocean, I just haven't spotted the island yet. The learning curve on Linux is pretty steep but I have managed to make the password deal quit making me change passwords at every, single, solitary, login, so I am not a total feeb. Some hints on navigating the file system wouldn't hurt either.
View 3 Replies View RelatedHow do I execute xinit on a remote computer through ssh (preferrably)? ssh -X is NOT an option. I'm not looking for running a remote program on localhost. I want to run a program on the server displaying on the server's display. I can do that if X is running. But if for some reason I need to stop X, I can't restart it from the localhost and the program won't run. If I run xinit as root (through sudo) through ssh I get:
X: user not authorized to run the X server, aborting. giving up.
The user can do this if I run it directly on the server.