Ubuntu Installation :: How To Set Vga Values
Feb 5, 2011Getting half of a screen with big fonts
View 2 RepliesGetting half of a screen with big fonts
View 2 RepliesI had installed ubuntu 10.10 long back but never really used it much due to academical commitments. I had installed ubuntu on a separate partition of 20 gb. I don't remember exactly what all values I had selected for various partition and I was very much confused while installation! I somehow managed to install it and this is what I got while booting my laptop! Apart from that my home and desktop size were very less.
I remembered myself giving 6 gb to swap (as I considered swap to be important). Here is what I get when I mount type in terminal!! I have downloaded the new ubuntu 11.04 and I want to start over again by totally formatting my 20 gb hard disk that I created!! Also I want to keep at least 30 gb for my new drive! What sizes exactly should I used for this installation for various file systems!
I started with a newly built system using an ASUS P8 H67-M LE Series MB, that has Intel's Sandy Bridge
The CPU is an i5
I installed the 64 bit Ubuntu, 11.04
In the Control Center, I go to the Monitor Preferences, and all the settings are grayed out.
Monitor in On is set.
Resolution, Refresh Rate and Rotation are disabled.
If I click the Apply button, I get a pop up window with the message:
The selected configuration for displays could not be applied required virtual size does not fit available size ....
The Detect Monitors button is enabled, but clicking has no effect. No monitors are identified.
How do I get the monitor settings working?
After resetting a pc running lenny I get iptables errors at boot ("resource temporarily unavailable", "bad rule" etc). "setting up firewall" (Guarddog) is not followed by any errors and the firewall apparently operates ok.How can I restore my iptables to the default installation values?
View 2 Replies View RelatedSo I am creating a LDAP server for my school's Linux lab, so users on our school network can log into the Linux machines.
I found a guide here url...Authentication
But during the install, I get the following error.
update-rc.d: warning: libnss-ldap start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (none)
Have dual boot winXP, FC6 computer. Clobbered something so FC6 does not boot. Am trying Ubuntu 9.10 CD; tried first to run from CD- but it asks for username and password, will not accept blanks nor my winxp values- keeps 'failing to authenticate'. So I did an install in new partition beyond linux fc6. It finally lets me log in, giving a small text window. How to get to desktop, and is there a way to get to my old home files in linux fc6 in native linux partition?
View 4 Replies View Relatedi'm trying to change the resolution on a small device i have been making.. it has the X86 and i have installed the lasted ubuntu 9.10..
the only problem is that the monitor i am going to use very soon supports 480x234 resolution or 320x240 resolution.. set this resolutions into my xorg so that i can finally see a clear images onto the new 7" monitor..
I get this:
0000000 1202 0 0 0 0 0 0 0
0000020 141 89 63 89 141 0 0 0
[code]....
How to go from decimal to numerical values?
I am looking for comprehensive documentation of the SMART values that are reported in Palimpsest.For example, I am getting the following result:
Attribute: Reallocated Sector Count
Assessment: Warning
Normalized: 100
Worst: 100
Threshold: 36
Value: 1 sector
I would like to find a very thorough description of the meaning of these values, how they relate to each other, and how to interpret them.
I've implemented a few custom system calls in my Ubuntu kernel, but I'm having some issues with the return values. Each function returns a variety of non-negative integers depending on which error is encountered. However, when I'm testing the system calls, the only negative value that gets returned to the user program is -1, regardless of what I have in the code.
Is there some special path I have to take to get the proper return values?
X programs specify parameter "-display dpy". I have failed with many guesses at dpy values. I find no definition in man pages and elsewhere. I know it is simple. I request examples.
View 5 Replies View RelatedI've been searching for the answer to my question for quite some time on google, no luck. Due to my searchings I've become very familiar with nice and renice.
I have a script I use for launching a game installed with wine. I cannot/wont run this game as root but I need to be able to use nice --7. As of now I can't I -- ofc -- get "permission denied"..
So how do I make the full range of niceness ( [-19;20] IIRC ) available for all users on my system -- or even just for 1 user?
My swap file is 5.8 gb and I have a swappiness of 60. Is there any reason to increase any of these values?
View 9 Replies View RelatedIs there an easy way to get a line from a text file into a variable in a bash script?
I have a file called outside_temp that has a single number, say, 63.2
I would like to make a variable in a BASH script have that value.
I know how to use the input redirection and reassignment of stdin using code...
I made some changes to the Nvidia Xserver settings and now I get no signal to my monitors. I also have grub configured to only display the main ubuntu kernel and windows so there are no recovery options. How do I restore Xserver to working or default values?
View 6 Replies View RelatedI have a script that runs lots and lots of root commands, copying files in /usr/...stuff like that, then i want to switch users back to the original user and run some gconf tweaks, I need to update a series of gconf values for a user after copying all the root files, but I noticed once your in root, any gconf values you change, change roots information, not the user who started the script useing sudo.
So i was wondering how you would run a script as root, then after your done with all the root commands, "un-root" to the current user who started the script and run the gconf edits:
I put together this so far. It a script that you run, it detects if it was started as root and if not it asks for root password and re-spawns its self exiting out the first instance, then the script runs, switches to the original user after all files are copyed over and starts to run the Military Time custom format update.
Code:
OUSER="`whoami`"
if [ "$(id -u)" != "0" ]; then
sudo -K
sudo bash $0
[Code]....
Is there a way to build a form so an admin can enter and add values to a database:
Example
Code:
use squid
insert into passwd values('testuser','test',1,'Test User','for testing purpose');
Is there a free software or an easy to configure script?
i am having two small issues with a function i have made.sorry if it is a mess, i am still learning bash.the first is calling the nonpersistssh function (second line) and assigning the return value to nonpersistdiag.the function returns 1, but nonpersistdiag seems to only contain 0. i am unsure on how to proceed.the second problem is the nested else clause on line 10. it is a syntactical error. how would i declare it correctly?
Code: function endsession(){
nonpersistdiag=$[nonpersistssh]# a function that returns an exit code
sudo /etc/init.d/ssh stop; sshdiag=$?
[code]....
Please check this:PS:
Code:
ps -C mysqld -o 'pcpu,pid,rss,vsize'
%CPU PID RSS VSZ
[code]....
I have been editing MP3 tags with Easytag and it has worked for nearly all files but I have some files that when I open them with Easytag, gtkpod Manager, or MusicBrainz Picard, they display the new tags. But when I open these files with Rhythmbox player and when I look at the file properties I see the original pre-editing tags. I know I can change the artist, album, etc. in Rhythmbox player but that just seems to be a local change and I was more concerned by the audio properties of the file showing the old value because I don't want to have to go back and edit the tags again.
View 2 Replies View Relatedhow to retrive every portion separately from following file name? DSA4020_frontcover_20346501_2011-05.doc
I want to retrieve informations as below;
name = DSA4020
type = frontcover
id = 20346501
date = 2011-05
is it possible to do with sed??
I can use hexedit to manually edit one or two hex values in a binary file, but if I want to change many of the, this is impractical. Is there any tool that will take parameters like Code: someTool filename byteNumber replacementByte ?
View 3 Replies View RelatedCode:
# ps
22355 pts/3 00:00:00 bash
#
# ps -l 22355
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 519 22355 22354 0 75 0 - 1338 wait4 pts/3 0:00 -bash
#
# ps -o pid,priority,command 22355
PID PRI COMMAND
22355 15 -bash
#
Why are the priority values of the process different? What is the difference? Is the value 15 the "nice" priority? Then, what is the value 75? Please, explain the difference of each result.
I couldn't really decide where this should be posted, but this is the most general of the forums. Anyway, I've been playing a wargame on intruded.net in which some of the challenges require me to pass hexvalues into the programs as character values. All is well with this, and usually I would use the shell to pass it in, but most of these programs use the gets() method to get my input.
Here comes the problem... The other day I was using my desktop which runs slackware 64 13.1 to do these challenges. My method was to use "echo -e 'xefxbexadxde'" to print them to the shell's standard output and then highlight and copy the resulting values to paste to the program. This works just fine on slackware, but when I repeated the same processes on Ubuntu 64 10.04 (which runs on my laptop) the 'xde' always turns up to be 'x00'. Then I tried some other levels with similar responses, not all the hex values convert to the correct ASCII characters.
Is there any way i can pass two / three values to grep. Basically i want to list the lines in the file with three different values. Currently I'm using three grep to get my work done.
EG: more Filename | grep text1 | grep text2 | grep text3
BRs
I have the following values in my log file:
...
2010-05-13 11:00:00 k_TRANSFER OK (11)
2010-05-13 11:30:01 m_TRANSFER OK (21)
2010-05-13 12:00:00 k_TRANSFER OK (12)
2010-05-13 12:30:00 m_TRANSFER OK (32)
2010-05-13 13:00:00 m_TRANSFER OK (13)
...
I want to replace every number with it's decrement. For example, the above values should be:
...
2010-05-13 11:00:00 k_TRANSFER OK (10)
2010-05-13 11:30:01 m_TRANSFER OK (20)
2010-05-13 12:00:00 k_TRANSFER OK (11)
2010-05-13 12:30:00 m_TRANSFER OK (31)
2010-05-13 13:00:00 m_TRANSFER OK (12)
I need to set ulimit values according to
I used
Code:
ulimit -c unlimited
ulimit -s unlimited
ulimit -u unlimited
But after I log again to my session values are set to default. Now can I set this values so they don't change after log out of after reboot?
The idea is to make a website to check the availability of domains and it works but its not pretty yet. Below is what i have till so far:
## this is the API from my domain registrar.
<?php $client = new SoapClient('http://api.sync.com/?wsdl');
## I have a search box that sends the request to this page
$var = $_GET ["s"];
## remove the most common subdomains from the request.
$var=eregi_replace("www.", "", $var);
$var=eregi_replace("mail.", "", $var);
$var=eregi_replace("ftp.", "", $var);
$var=eregi_replace("pop.", "", $var);
$var=eregi_replace("smtp.", "", $var);
## remove any TLD extension from the request.
$split = explode(".", $var);
$main = $split[0];
$arraysize = sizeof($split);
for ($x=1; $x<$arraysize; $x++) {
$tld .= "." . $split[$x];
}
## login to the API
$paramLogin = array('handle' => 'randall', 'password' => 'password');
## match the domain with any possible TLD
$varcom = $paramAvailDomain = array('sld' => $main, 'tld' => 'com');
$varnet = $paramAvailDomain = array('sld' => $main, 'tld' => 'net');
$varorg = $paramAvailDomain = array('sld' => $main, 'tld' => 'org');
$varbiz = $paramAvailDomain = array('sld' => $main, 'tld' => 'biz');
$varinfo = $paramAvailDomain = array('sld' => $main, 'tld' => 'info');
$vareu = $paramAvailDomain = array('sld' => $main, 'tld' => 'eu');
$varnl = $paramAvailDomain = array('sld' => $main, 'tld' => 'nl');
$varbe = $paramAvailDomain = array('sld' => $main, 'tld' => 'be');
$varde = $paramAvailDomain = array('sld' => $main, 'tld' => 'de');
$varcouk = $paramAvailDomain = array('sld' => $main, 'tld' => 'co.uk');
$varorguk = $paramAvailDomain = array('sld' => $main, 'tld' => 'org.uk');
$varname = $paramAvailDomain = array('sld' => $main, 'tld' => 'name');
$varmobi = $paramAvailDomain = array('sld' => $main, 'tld' => 'mobi');
$varin = $paramAvailDomain = array('sld' => $main, 'tld' => 'in');
$vartv = $paramAvailDomain = array('sld' => $main, 'tld' => 'tv');
$varcn = $paramAvailDomain = array('sld' => $main, 'tld' => 'cn');
$varws = $paramAvailDomain = array('sld' => $main, 'tld' => 'ws');
$varnu = $paramAvailDomain = array('sld' => $main, 'tld' => 'nu');
$varbz = $paramAvailDomain = array('sld' => $main, 'tld' => 'bz');
$varcc = $paramAvailDomain = array('sld' => $main, 'tld' => 'cc');
## this requests the domain.COM and domain.NET
$varcom;
$varnet;
?>
<div id="content">
## below prints the result
<?php
print "<html><body><pre>";
$result1 = $client->__soapCall('Login', $paramLogin);
echo "<b>Result Login:</b>
" . print_r($result1, true);
$result15 = $client->__soapCall('AvailabilityDomain', $varcom);
$resvarcom = var_dump($result15, true);
$result15 = $client->__soapCall('AvailabilityDomain', $varnet);
$resvarnet = var_dump($result15, true);
print "</pre></html>";
?>
<?php
## the returned array looks like this
Result Login:
Array
(
[code] => 200
[message] => Login succesful
)
array(3) {
["code"]=>
string(3) "200"
["message"]=>
string(20) "Domain not available"
["result"]=>
object(stdClass)#236 (1) {
["status"]=>
string(5) "TAKEN"
}
}
bool(true)
array(3) {
["code"]=>
string(3) "200"
["message"]=>
string(16) "Domain available"
["result"]=>
object(stdClass)#232 (1) {
["status"]=>
string(4) "FREE"
}
}
bool(true)
?>
## till so far it works
What I need to do is to make this ugly looking reply in to something more readable, basically if TAKEN print occupied and if free print its yours to grab. I have been struggling with the in_array function but i'm not getting anywhere close in getting it to work.
I have been reading the Wikibook on C Programming for quite some time and am up to the variable part. I did learn several new things, like that too many variables hog memory.
What I want to know is how to assign a variable to the keyboard (in the C/C++ family) as such that the user has to type it in.
I have the following snippet HTML code:
Quote:
<table id="profile">
<tr>...............</tr>
<tr>
<td width="40%">
[Code].....
How can pass values in args[0] and args[1] to Perl/CGI script?