marafa Posted April 17, 2003 Report Share Posted April 17, 2003 hi when i do a uname -a i get Linux linux.net 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 unknown unknown GNU/Linux how do i set it up to get rid of the unknowns? thanks Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted April 17, 2003 Report Share Posted April 17, 2003 According to the man page for uname, use this: uname -snrvmo If this is too long, then simply add an alias to your .bash_profile alias uname="uname -snrvmo" Make sure there are no spaces around the equals sign or it won't work. Quote Link to comment Share on other sites More sharing options...
Guest ndeb Posted April 17, 2003 Report Share Posted April 17, 2003 uname --help shows Usage: uname [OPTION]... Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the following order: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version -m, --machine print the machine hardware name -p, --processor print the processor type -i, --hardware-platform print the hardware platform -o, --operating-system print the operating system --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. Obviously, the -a option covers all other options so the the alias with "uname -snrvmo" will not help. The reason behind the unknowns is that the -p and -i options do not have values set. If u want info about the processor, run cat /proc/cpuinfo . Quote Link to comment Share on other sites More sharing options...
aru Posted April 18, 2003 Report Share Posted April 18, 2003 what about this "alias"? arusabal@mandrakeusers ~$ function uname { ( /bin/uname -snrvmo && cat /proc/cpuinfo ) | awk '/^Linux/ {o = $NF; for (i=1;i<=NF-1;i++){ snrvm = snrvm$i" "}}; /vendor_id/ {FS=":"; id = $3}; /model name/ {FS=":"; p = $2}; END {print snrvm p" "id" "o}'; } arusabal@mandrakeusers ~$ uname Linux mandrakeusers.foo.org 2.4.19-32mdk #1 Tue Mar 25 20:45:38 MST 2003 i586 Pentium MMX GenuineIntel GNU/Linux arusabal@mandrakeusers ~$ :mrgreen: Quote Link to comment Share on other sites More sharing options...
marafa Posted April 18, 2003 Author Report Share Posted April 18, 2003 hi again it basically came down to this situation: when i used easysw.com' easy package manager (the makers of cups) it created rpms for me but it was like epm-3.0.6-2.4-intel-linux.rpm (yes i have an i686 rpm of epm) and when i checked uname -a i saw all those unknowns and figured epm was using uname to get the data to name the rpm. and so i wanna make rpms that are fully named everytime i make an rpm instead of me renaming it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.