Tag Archives: bash - Page 2

Get System Information Using the Terminal

Troubleshooting, upgrading, or just curious? Find out what’s in your system without opening the case. Using these Linux command line tools, you can get details about your hardware and distribution.

I’ve tested these commands in Ubuntu 7.10, but they should all work in other Linux distributions. Unless noted otherwise, all of this software is included by default with Ubuntu.

Graphics card:

– details about OpenGL, the Xserver, and your graphics card

– do you have direct 3d rendering?

– graphics card vendor

– specific graphics card model

– a simple 3d benchmark, prints frame rate to the terminal

– supported display resolutions

Audio:

– audio controller

– more audio device information

Software versions:

– current distribution and version

– packagename’s version and dependencies

– Linux kernel version

– all kernel details

Networking:

– Ethernet controllers

– networking interfaces, IP addresses, and more

Processor:

– all processors, clock speeds, flags, and more

– processor load average for the last 1, 5, and 15 minutes

– press C key to sort processes by CPU usage

Memory:

– amount of RAM and swap, and how much is being used for what

– total, used, and free memory shown in MB

– press M key to sort processes by memory usage

Hard disks:

– partitions, as well as their mount-points and usage in GB

– all partitions, their device names, and positions on disk

USB devices:

– USB buses and attached devices

Even more:

– monitor for hardware changes

– all PCI devices

(install from package hwinfo) – overview of all hardware, as well as more detailed info

– another program for listing hardware

– lists hardware with HTML output in the w3m web browser

– current time elapsed since last reboot, users, and load average

Install Nodoka (Fedora theme) on Ubuntu

1. Install build-essential and libgtk2.0-dev packages:

2. Download Nodoka GTK+ engine 0.6 from here.

3. Extract tarball package:

4. Now go to gtk-nodoka-engine-0.6 directory:

5. Configure:

6. Make:

7. Install:

Install theme

1. Get Nodoka theme 0.3.2 from here.
Then execute command in terminal:

2. Copy the Nodoka folder to themes folder:

Use theme
Click System -> Preferences -> Theme menu command. In Theme Preferences dialog, choose Nodoka item.

Screenshot:
Screenshot

Adding a startup script to be run at bootup

So you have a script of your own that you want to run at bootup, each time
you boot up. This will tell you how to do that.
Write a script. put it in the /etc/init.d/ directory.
Lets say you called it FOO. You then run

You also have to make the file you created, FOO, executable, using

You can check out man update-rc.d for more information. It is a Debian
utility to install scripts. The option defaults puts a link to start FOO in
run levels 2, 3, 4 and 5. (and puts a link to stop FOO into 0, 1 and 6.)

Also, to know which runlevel you are in, use the runlevel command.

If you want to remove the script, just run:

  • Page 2 of 2
  • <
  • 1
  • 2