Application: Linux System Script


Recommended Posts

Awesome can you try this one

Little better, picked up the distro name this time correctly, although still showing both Ubuntu and Debian ASCII art. Note a new line of text from lsb_release above the two errors.

root@server7:~# ./stats.sh
No LSB modules are available.
./stats.sh: line 242: xdpyinfo: command not found
./stats.sh: line 313: mate-session: command not found


              ..''''''..
          .;::::::::::::::;.
       .;::::::::::::::'.':::;.
     .;::::::::;,'..';.   .::::;.
    .:::::::,.,.      ....:::::::.
   .:::::::.   :;::::,.   .:::::::.
   ;::::::   .::::::::::.   ::::::;
   :::.  .'  ::::::::::::...,::::::
   :::.  .'  ::::::::::::...,::::::
   ;::::::   .::::::::::.   ::::::;
   .:::::::.   :,;::;,.   .:::::::.
    .:::::::;.;.      ....:::::::.
      ;::::::::;,'..';.   .::::;
       .;::::::::::::::'.':::;.
          .,::::::::::::::,.
              ...''''...


              _,met$$$$$gg.
           ,g$$$$$$$$$$$$$$$P.
         ,g$$P$$       $$$Y$$.$.
        ,$$P`              `$$$.
       ,$$P       ,ggs.     `$$b:
       d$$`     ,$P$`   .    $$$
       $$P      d$`     ,    $$P
       $$:      $$.   -    ,d$$`
       $$;      Y$b._   _,d$P`
       Y$$.     .`$Y$$$$P$`
       `$$b      $-.__
        `Y$$b
         `Y$$.
           `$$b.
             `Y$$b.
               `$Y$b._
                   `$$$$


    OS: Ubuntu 12.04.1 LTS
    Hostname: server7
    CPU: Pentium III (Coppermine)
    RAM (used / total): 173 / 1001 Mb
    Desktop Enviroment: Not Found
    Logged in as: root
    Kernel: 3.2.0-35-generic-pae
    Resolution:  pixels
    Load Averages: 0.31, 0.14, 0.07
    Top Process (by memory use): /usr/sbin/mysqld

yeah the NO LSB modules is just because nothing is installed maybe due to X not being there but not sure

sorry to ask again but can you try this one

http://www.haggistech.co.uk/ubuntutest.tar.gz

yeah the NO LSB modules is just because nothing is installed maybe due to X not being there but not sure

sorry to ask again but can you try this one

Heh I'd suspect not too many people with server-only installs are going to worry about this sort of script anyway, I was just trying it out of curiosity. It's not a bother, not doing anything important today. I see you got the stray Debian logo out of it this time.

root@server7:~# ./stats.sh
No LSB modules are available.
./stats.sh: line 242: xdpyinfo: command not found
./stats.sh: line 313: mate-session: command not found


			  ..''''''..
		  .;::::::::::::::;.
	   .;::::::::::::::'.':::;.
	 .;::::::::;,'..';.   .::::;.
	.:::::::,.,.	  ....:::::::.
   .:::::::.   :;::::,.   .:::::::.
   ;::::::   .::::::::::.   ::::::;
   :::.  .'  ::::::::::::...,::::::
   :::.  .'  ::::::::::::...,::::::
   ;::::::   .::::::::::.   ::::::;
   .:::::::.   :,;::;,.   .:::::::.
	.:::::::;.;.	  ....:::::::.
	  ;::::::::;,'..';.   .::::;
	   .;::::::::::::::'.':::;.
		  .,::::::::::::::,.
			  ...''''...


	OS: Ubuntu 12.04.1 LTS
	Hostname: server7
	CPU: Pentium III (Coppermine)
	RAM (used / total): 173 / 1001 Mb
	Desktop Enviroment: Not Found
	Logged in as: root
	Kernel: 3.2.0-35-generic-pae
	Resolution:  pixels
	Load Averages: 0.20, 0.08, 0.06
	Top Process (by memory use): /usr/sbin/mysqld

echo $display

Non-existant.

root@server7:~# echo $DISPLAY

root@server7:~#

Edit Derp -- I'm going through SSH, no forwarding, so that won't exist I think. Enabled X forwarding in my client, new result. It's my day off, I left the brain at my other desk.

root@server7:~# echo $DISPLAY
localhost:10.0

with x forwarding are you still getting the same two errors?

Yes -- X is enabled in the client, but it's still not actually installed on the server, nor do I have the Mate desktop. Those two will always return errors for setups like mine. Same result in the script as in my previous post. For me I'm not terribly worried about it, just passed it along in case you're hate leaving loose ends like I do.. I'd guess not a whole lot of interest in something like this for a server install.. they make for boring screenshots. :D

http://www.neowin.ne...#entry595411898

hmmm i though i had fixed this lol

*buntus carry over the /etc/debian_version

this is why it picks up as debian

when did you download it?

download this one and try it maybe i forgot to update the file

http://www.haggistech.co.uk/ubuntutest.tar.gz

yeah as max says

open a terminal

go to the filder the script is in so for example

cd /home/haggis[/CODE]

do

[CODE]chmod +x stats.sh[/CODE]

then do

[CODE]./stats.sh[/CODE]

Thanks.

This might sound stupid but when I CD my directory, says it's "No such file or directory"

I am pretty sure it's correct. I have it in my Documents folder /home/bman/Documents

What am I doing wrong?

This might sound stupid but when I CD my directory, says it's "No such file or directory"

Is the capitalization correct when you're typing it? *Nix is case sensitive, throws me off all the time. "documents" and "Documents" are two different directories as far as Linux is concerned where out of the box Windows won't care either way, easy mistake to make if you bounce back and forth a lot. Most file managers have a "Open terminal here" sort of context menu too if it helps any, depends on which file manager you're using.. some aren't as flexible/convenient as others.

I have tried it both ways without luck.

And no option like that in my file manager. Default Ubuntu 12.04...

Best file manager? Any out there with tabs?

Nautilus - the default file manager in Ubuntu - is my favorite file manager, and it does have tabs. You can either go to "File->New Tab" to open a new tab or use the keyboard shortcut "Ctrl+T". You can also add an "Open in Terminal" option to the Nautilus context menu as described here.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Apple is expanding Private Cloud Compute beyond its own data centers by Pradeep Viswanathan At WWDC 2026, as part of the improved Apple Intelligence capabilities, Apple today announced that it is expanding Private Cloud Compute (PCC), its privacy-focused cloud infrastructure for Apple Intelligence, beyond its own data centers for the first time. Private Cloud Compute was designed to handle Apple Intelligence requests that are too complex to run fully on-device. The PCC system does not store user data and does not allow Apple or anyone else to access user requests. Last year, Apple also expanded its Security Bounty program with rewards of up to $1 million for researchers who could find serious vulnerabilities in PCC. Until now, Apple's PCC data centers were using Apple's own silicon. As part of the expansion, Apple is working with Google and NVIDIA to run new Apple Intelligence workloads on Google Cloud systems powered by NVIDIA GPUs. Apple will be using this new infrastructure to execute more demanding AI tasks while maintaining the same privacy and security guarantees of PCC. The new implementation uses NVIDIA Confidential Computing with NVIDIA GPUs, Intel CPUs with TDX, and Google’s Titan chip. Apple says it has worked with Google to build additional protections beyond a traditional confidential computing deployment. Despite the expansion to third-party data centers, Apple claims that its core PCC requirements remain unchanged, including stateless computation, no privileged runtime access, non-targetability, and verifiable transparency. The company highlighted that it will continue to control the PCC software stack, and Apple devices will only trust PCC software that has been cryptographically approved by Apple. To take security to the next level, Apple mentioned that it is maintaining an append-only ledger of Google Cloud hardware that is part of the PCC fleet. The company claims this will help reduce the risk of supply chain attacks. In addition to AI infrastructure, Apple also worked with Google to use technologies behind the Gemini family of models to build the next generation of Apple Foundation Models to power Apple Intelligence features across on-device and cloud workloads. As expected, for more demanding AI tasks like agentic tool use and complex reasoning, Apple will rely on the expanded PCC infrastructure running on Google Cloud. The expansion of PCC on Google Cloud will gradually ramp toward the full set of protections during the summer preview period. As before, Apple will also publish binaries for public inspection, provide research tooling, and give researchers access to live PCC nodes in research mode through the Apple Security Bounty Program.
    • my problem with outlook (new) is that it connects only to outlook.com. all connections to external providers goes through there. Got your mail server and want to use imap directly? no way... it adds a connector on outlook.com. last bug; if your email on an external provider if the same as principal email of your microsoft account, it doesn't work...
    • It's the only reason I finally have an iPhone (for work) and enjoy using it so much that I'm tempted to move from android next time I need to replace my own device
    • So is Russia, China, Iran, North Korea, just to mention a few. What's your point? Everyone is a threat from their enemies' perspective. I'd say that Israel is only a threat to their immediate enemies like Hamas, Hezbollah and the Iranian regime, not to anyone else.
    • The government is not the good guy either. You propose 99% of people require that the government overreach and govern their freedom of information and privacy, while ignoring the government is made up 100% of people, of which 99% are (as you described) brain dead. You can't have both. The reality is Signal is absolutely right and the government is doing what it has always done. Ignoring that we are their boss and grabbing all the power they possibly can to make sure we aren't. Your (societies) ###### parenting is not reason enough as to why I can't have a safe platform for my data/information. Thinking the government is helping is precisely what they are targeting psychologically to take suckers like you for a ride. "Think of the children" was, has, is, and will always be a mechanism of control. In the rare occasion it's actually essential the mass consensus has always been there and it doesn't become a debate.
  • Recent Achievements

    • Very Popular
      Captain_Eric earned a badge
      Very Popular
    • One Month Later
      amusc earned a badge
      One Month Later
    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      222
    3. 3
      ATLien_0
      92
    4. 4
      +Edouard
      86
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!