Ubuntu Servers :: How To Determine Hardware From Command Line
Apr 5, 2011
I have a headless server set up with no GUI on board.I know there is some way to display the installed hardware , I just can't remember how.What I'm looking for in particular is determine the type and speed of the PCI-e slots.
In Linux, I'd like to know how to find the file(s) if any which as using a particular sector on the hard drive (ext2/3). There is a similar question here regarding Windows, however I need a Linux command line solution (this is a headless system).
I'm looking for a way to automatically convert XLS and XLSX files to PDF when uploaded through a Web interface by users. I will probably use phplivedocx for DOC and DOCX files, but I haven't found any library for Excel files.I may use PHP to call a some printing command to make the conversion, but I've never tried that on a server (which obviously) doesn't have Open Office installed (meaning no PDF printer driver I guess)
I was just having some trouble getting an OpenPHP Key on Ubuntu Server. The link from Launchpad said, "go to applications..." but I'm not using a desktop environment, so I had to go to [URL] to learn how. Basically it boiled down to this:
I just got done installing Ubuntu Server 10.04 on a home server. Now what should I do? I was hoping to have 3 computers connected to it so that we can all share files wirelessly if that's possible.Does Ubuntu Server have a GUI or command line only?
I had some trouble before getting to install Webmin on my nas from the command line in Ubuntu Server So I wanted to temporary install a gui and used kde. Downloaded it via the browser.Now I got webmin running and tried to remove KDE again. Some things were removed but the inlog screen is still there, and now it looks more like a gnome interface when I logged on.How can I remove the GUI completely again?
Some time ago I installed LAMP in my server, but now I need to execute .php files from the command-line (in order to execute some manteinance scripts for mediawiki). Seems that the PHP files running in the server are run thru some kind of "module" in apache2. Can I tell apache2 to run a .php file in command-line mode using that php module? Or should I install a fresh copy of php-5? Won't that interfere with apache or mangle the system?
I have a php file that I need to execute via a cronjob. This file should be run by the www-data user as its a file in my /var/www/project folder. When I run this file under root (php -f cron.php) everything works perfectly, but I want it to run under the www-data to be safe. Before I run it vai crontab I tried it via command line as the www-data user and I receive errors:
Fatal Error: Allowed memory size of 8388608 bytes expired (tried to allocate 232 bytes).
But when I run it as the root user I get no errors and everything works correctly. The file cron.php is used to process automated tasks in my CRM. So I don't really want to have the root user running a crontab every few minutes for this.
Must the www-data user be given more permissions? I am using Ubuntu 6.06LTS PHP - 5.1.2 Apache - 2.0.55 MySQL - 5.0.22
I'm installing a 10.04 server remotely - it's basically an RSYNC host for backups. I've got one minor issue - it's really more of an annoyance, but I would like to have it solved.When sending e-mails, the messages come in addressed to three destinations - when it's only supposed to be sent to one. What's worse is that the two additional addresses are based on the hostname of the machine.Let me explain: I use this command:Code:mail -s Testing email@somedomain.comI then compose the e-mail and send it. The mail arrive a few seconds later but addresed to the following:Code:from@hostname.domain.com;email@somedomain.com;hostname@hostname.domain.comThe "from@hostname.domain.com" has the actual word "from" in the address. I've installed many, many servers like this in the past and this is the first time that anything wonky with email has happened that I couldn't fix or explain. The machine is running postfix and I installed the bsd-mailx package to get the command line "mail" command (I used to install "mailx", but this seems to work just like the old package).
Is it possible to complete a drupal installation and change the configuration from the comman line or a script. Id like to be able to automate the process of installing and configuring drupal. I should say that this is quite a bit beyond me. Ive not long started learning scripting.
setup a number of shared drives for accessing music, movies, photos and general files (documents, pdf files etc). now while a gui would be great, how to use the command line to setup these shared drives and also how to make the available in both windows and linux.
On Ubuntu Desktop editions, there is a GUI application which allows easily changing to a different server. It can even find out how one is the fastest update server.Is there a corresponding command line tool available to do this? Because I'm using the Server edition without GUI. I hate to manually edit /etc/apt/source.list.
I am playing around with the idea of being able to use a cloud or instance based service to install Ubuntu 9.10 Server. This will enable me to have remote access via SSH command line.So far, I've installed Ubuntu 9.10 Server + Ubuntu Desktop to a virtual machine. I can access this via SSH and locally via the desktop. However, in the real environment the only access I am going to have initially is via SSH.
I would like to be able to connect using Windows Remote Desktop or VNC (whichever is easier and most importantly - most secure) to the machine.. even though the desktop is on there, I need to somehow configure the remote access all from the command line.I've had a read of various forums and have been trawling support forums for days but can't find a working solution for 9.10 Server or that fits my situation above where I will not have any physical access to the desktop or machine to configure remote desktop. It all has to be done via SSH/command line.
I want to copy file from the Server cd drive and USB drive to the server root directory, but I haven't find any command of listing the cd drive or usb drive.
Is there a way to send an email from a batch script. I want to send the output from a script to an email address, possibly a couple of email addresses depending on the output.
When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
i'm trying to setup my server box.. it's being setup as a web server, file server, and setup for me to be able to access it remotely (aka i do pc repair for windows users and it'd be nice to just know where ALL of my software tools are and get to them from there)anyways.. these things are almost all setup right now.. but the one thing i'm having issues with.. is the fact that this box does have 2 hard drives in it and i want to use both of them.. now i'm running straight command line and i can't find the info i need to reformat the second HDD (which is currently NTFS formated) and use it in this system... i'm running 9.04 as a server.. NO GUI INSTALLED! i need this with straight command line...What do i need to look for to figure this out? i'm having trouble figuring this out and it's really getting annoying..
Is there any way to install a Ubuntu server and access the server remotely via a Ubuntu desktop environment instead of a SSH command line?
I will be installing a Ubuntu server in an office where the office manager will need to be able to do simple things like add/remove users, access filesystems, etc. She can handle these tasks in Ubuntu desktop/GUI, but it is impractical for her to have to learn how to use the CLI terminal to do this stuff.
Will I have to install desktop Ubuntu on the server to do this, or can I install Ubuntu server version and setup another computer Ubuntu desktop to remotely login graphically?
I am going to build a Linux VPN server(PPTP) for my friend but here is the problem: He don't know Linux and command line to manage users, monitor server, etc
I installed ubuntu 10.10 server from an usb stick. I do not have access to a wired connection and do not have a CD drive, so now I need to configure the wireless connection.for that I need to have wireless-tools which if i am not wrong are not installed by default so the question is: how can I install the wireless-tools package from an usb using only command line? note: I got internet access from another ubuntu-desktop PC so i can download any package needed, etc.
Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.
Bash acts weird in 10.04 server. Whenever I try to run .sh scripts, every empty line in the script results in "command not found". Then on even simple scripts I get syntax errors, but the same exact scripts work on my 9.10 desktop installation. There's also another problem, I'm not really sure if it's bash-related. After setting the proxy using
Firstly I would like to say that Linux is very cool, especially the CLI. I have been trying to learn how to do some things in Fedora after being told Fedora was a good distro to get my feet wet. I have run into some issues and cant seem to find any answers. What Linux utility can be configured to automatically save the current logs?
How does your Fedora get an IP number? What IP numbers has your Fedora been assigned since it was installed (based on the logs you have)? What command did you run to determine the IP numbers? What command would you run to determine the number of times a user successfully used "su"? What command would you run to determine the number of times a user unsuccessfully used "su"? Having some issues with the file system as your Fedora boots up.