How to restart X Window Server from command line?

1

How can I restart X Window Server from the command line?

I'd really like to be able to restart my GUI without having to do a full system reboot.

Other Tips. After Ubuntu 12.10 fresh install I'm sometimes seeing native Ubuntu notifications from the Google+ "Explore tab". This happens (as far as I know) only when I'm logged onto the G+ website. It seems they appear in the order just like they are posted in G+. (From top down) I don't know how to reproduce it. I have only noticed it 3-4 times. When they come they come one after another until "all" are shown... How to control it? (I would love to have that kind of notification for posts for me.) There are new »Webapps« in Ubuntu 12.10. Maybe you installed one of them? They can now send notifications and stuff directly to your desktop: http://www.omgubuntu.co.uk/2012/07/ubuntu-unveil-new-web-apps-feature-for-12-10 Or it's just a native notification (HTML 5 allows notifications, and I have a chrome extensions that...

0 0
2

The command shell is a software program that provides direct communication between the user and the operating system. The non-graphical, command shell user interface provides the environment in which you run character-based applications and utilities. The command shell executes programs and displays their output on the screen by using individual characters similar to the MS-DOS command interpreter, Command.com. The command shell in the Windows Server operating system uses the command interpreter, Cmd.exe. Cmd.exe loads applications, directs the flow of information between applications, and translates user input into a form that the operating system understands.

You can use the command shell to create and edit scripts to automate routine tasks. For example, you can create simple scripts in batch (.bat) files to automate the management of user accounts or nightly backups. You can also use the command-line version of Windows Script Host to run more sophisticated scripts in the...

0 0
3

We can start Terminal Services by running the command given below.

net start TermService

If the service is already running you will get the message ‘The requested service has already been started.‘
Sometimes you may get an error that the service could not be started.

C:\>net start termservice The Terminal Services service is starting. The Terminal Services service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534.

This happens when Terminal Services is disabled through registry hack. You can fix this by running the below registry change command.

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v TSEnabled /t REG_DWORD /d 1 /f

You need to reboot the computer for the changes to take effect. After reboot terminal services starts automatically or you can start the service using net start command as mentioned above.

How to stop Terminal Services?

Terminal...

0 0
4
I

f you getting tired of everytime having to clicking Start menu and then click on Turn Off Computer, and then still have to click on Turn Off or Restart or Log Off in order to log off, restart or shut down your computer, and feel that it’s time wasting, you can create a one-click shortcut that allows the user to shutdown or restart Windows, or go into standby or hibernate mode, with just a single click on the shortcut itself. Best of all, the shortcut can be put at any place – desktop, Quick Launch bar, or Start Menu, and can even launch the shutdown or restart process from command line or command prompt.

In order to shutdown or restart the Windows with just one click shortcut or from command prompt or command line, users can use shutdown command line utility/command that comes with Windows 2000 (with the Resource Kit installed), or natively in Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, all Windows Server and future versions of Windows. To...

0 0
5

The MySQL server can be started manually from the command line. This can be done on any version of Windows.

The MySQL Notifier GUI can also be used to start/stop/restart the MySQL server.

To start the mysqld server from the command line, you should start a console window (or “DOS window”) and enter this command:

C:\>

The path to mysqld may vary depending on the install location of MySQL on your system.

You can stop the MySQL server by executing this command:

C:\>

If the MySQL root user account has a password, you need to invoke mysqladmin with the -p option and supply the password when prompted.

This command invokes the MySQL administrative utility mysqladmin to connect to the server and tell it to shut down. The command connects as the MySQL root user, which is the default administrative account in the MySQL grant system.

Users in the...

0 0
6

Updated: February 26, 2016

Applies To: SQL Server 2016

This topic describes how to start, stop, pause, resume, or restart the SQL Server Database Engine, the SQL Server Agent, or the SQL Server Browser service by using SQL Server Configuration Manager, SQL Server Management Studio, net commands from a command prompt, Transact-SQL, or PowerShell.

Before you begin:

Instructions using:

What is the SQL Server Database Engine service, the SQL Server Agent service, and the SQL Server Browser service?

SQL Server components are executable programs that run as a Windows service. Programs that run as a Windows service can continue to operate without displaying any activity on the computer screen.

Database Engine service
The executable process that is the SQL Server Database Engine. The Database Engine can be the default instance (limit one per computer), or can be one of many named instances of the Database Engine. Use SQL Server...

0 0
7

Linux Command:

c:/> shutdown /r

Generally most of users used GUI access for accessing remote or local Windows systems. In some cases we don’t get system restart button in GUI but we still can restart remote server using command line. This article will help you for reboot remote Windows Server using command prompt.

Command to Restart Windows Server

Simply use /r switch with shutdown command to reboot windows server using command line. Here are various examples of shutdown command.

Restart local system

c:/> shutdown /r

Restart local system with forcefully close running applications using /f command line switch.

c:/> shutdown /r /f

Restart remote system by specifying system hostname with /m command line switch.

c:/> shutdown /r /f /m \REMOTE-PC

Add a comment as reason of rebooting system suing /c command line switch.

c:/> shutdown /r /f /m \REMOTE-PC /c "After Installing...
0 0
8

To restart, start or stop MySQL server from the command line, type the following at the shell prompt…

On Linux start/stop/restart from the command line:

/etc/init.d/mysqld start /etc/init.d/mysqld stop /etc/init.d/mysqld restart

Some Linux flavours offer the service command too

service mysqld start service mysqld stop service mysqld restart

or

service mysql start service mysql stop service mysql restart

On OS X to start/stop/restart MySQL pre 5.7 from the command line:

sudo /usr/local/mysql/support-files/mysql.server start sudo /usr/local/mysql/support-files/mysql.server stop sudo /usr/local/mysql/support-files/mysql.server restart

On OS X Yosemite/El Capitan to start/stop/restart MySQL post 5.7 from the command line:

sudo launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

...
0 0
9

Source Games

These command-line parameters will work with any Source engine games (Half-Life 2, Counter-strike: Source, etc.).

Command parameters are described inside the < and > characters.

Syntax: hl2.exe

Usage

These options can be used with:

Hammer editor Run Map dialog. Windows shortcuts pointing to hl2.exe directly. Windows shortcuts pointing to steam.exe with the proper -applaunch specified (see Steam section below). Command-line batch script files launching these applications.

Examples

steam.exe -applaunch 280 -dev -console -sw +sv_lan 1 +map MyMap hl2.exe -game cstrike -dev -console -fullscreen +sv_lan 1 +map de_dust

Command-line parameters

-autoconfig - Restores video and performance settings to default for the current hardware detected. Ignores settings inside any .cfg files until this parameter is removed. -32bit - Forces the engine to start in 32-bit mode. Only useful on 64-bit Operating...
0 0
10
Guy Thomas

Guy Thomas is a computer consultant and writer with attitude and a great sense of humor.

You can remotely reboot your Windows server with the built-in Shutdown.exe utility.

Built-in Shutdown.exe Command - The Basics

This shutdown utility is available at the command line in Windows Server 2008 and earlier operating systems going right back to XP. Start by typing cmd; remember to 'Run as Administrator'. Once the DOS box launches your first real decision is do you want to reboot (-r), or shutdown (-s) that server in another part of the network?

Note 1: The default with -r is the local machine! Thus introduce the -m switch if you want a remote restart.

Note 2: While your 'victim' is probably a Windows Server, you can launch the command from Windows 7 or earlier Microsoft clients.

Warning: Despite what anyone tells you, nobody gets to be an expert with Shutdown without accidentally downing the local machine instead of the target...

0 0
11
...
0 0
12
H

ow do I restart an Apache 2 Web Server under a Debian / Ubuntu Linux or UNIX-like operating systems?


Apache is primarily used to serve both static content and dynamic Web pages on the World Wide Web. Many web applications are designed expecting the environment and features that Apache provides.Apache can be started or restarted using any one of the following methods.

First, login to your web-server using ssh client, if server is not in your local data center:
ssh root@your.server.com
Once logged in type the following commands as per your Linux or Unix variant.

Debian/Ubuntu Linux Specific Commands

You can either use service or /etc/init.d/ command as follows

Restart Apache 2 web server, enter:

# /etc/init.d/apache2 restart
OR
$ sudo /etc/init.d/apache2 restart
OR
$ sudo service apache2 stop

To stop Apache 2 web server, enter:

# /etc/init.d/apache2 stop
OR
$ sudo...

0 0
13

A historical example of graphical user interface and applications common to the MIT X Consortium's distribution running under the

twm

window manager:

X Terminal

,

Xbiff

,

xload

and a graphical

manual page

browser

A modern example of a graphical user interface using X11 and

KDE

.

The X Window System (X11, or shortened to simply X, and sometimes informally X-Windows) is a windowing system for bitmap displays, common on UNIX-like computer operating systems.

X provides the basic framework for a GUI environment: drawing and moving windows on the display device and interacting with a mouse and keyboard. X does not mandate the user interface – this is handled by individual programs. As such, the visual styling of X-based environments varies greatly; different programs may present radically different interfaces.

X originated at the Massachusetts Institute of Technology (MIT) in 1984. The protocol has been version 11...

0 0
14
...
0 0
15
Shortcut Description Command-B Boldface the selected text, or turn boldfacing on or off. Command-I Italicize the selected text, or turn italics on or off. Command-U Underline the selected text, or turn underlining on or off. Command-T Show or hide the Fonts window. Command-D Select the Desktop folder from within an Open dialog or Save dialog. Control-Command-D Show or hide the definition of the selected word. Shift-Command-Colon (:) Display the Spelling and Grammar window. Command-Semicolon (;) Find misspelled words in the document. Option-Delete Delete the word to the left of the insertion point. Control-H Delete the character to the left of the insertion point. Or use Delete. Control-D Delete the character to the right of the insertion point. Or use Fn-Delete. Fn-Delete Forward delete on keyboards that don't have a Forward Delete key. Or use Control-D. Control-K Delete the text between the insertion point and the end of the line or paragraph. Command-Delete...
0 0
16

The forgotten art: DOS String Manipulation!

set mydate=%date:~10,4%_%date:~4,2%_%date:~7,2% echo %mydate%

Output will be YYYY_MM_DD.

Copy and paste this into a .bat file and be amazed! This is especially useful for creating backups, or any time/date series of directories and files.

An example:

@echo off :: Yes, this looks bad, but it works, it sets the file veriable mydate to YYYY_MM_DD. set mydate=%date:~10,4%_%date:~4,2%_%date:~7,2% echo Backing up DC1: :: start a new backup session, the /M switch is for the type of bakcup being performed, type ntbackup /? for more info start /wait ntbackup backup \\DC1\c$ /j "DC1 Backup" /f "C:\BAK\DC1\DC1_%mydate%.bkf" /M incremental echo DC1 is Done echo Backing up EXCH: start /wait ntbackup backup \\EXCH\c$ /j "EXCH Backup" /f "C:\BAK\EXCH\EXCH_%mydate%.bkf" /M incremental echo EXCH is Done echo Backing up FS1: start /wait ntbackup backup \\FS1\c$ /j "FS1 Backup" /f "C:\BAK\FS1\FS1_%mydate%.bkf" /M incremental echo...
0 0
17

I just found this question while on a quest to do the same thing.

After some experimenting I came across an answer that works the way the OQ would want and is simple as heck, but not very general purpose.

Create a shortcut on your desktop or elsewhere (you can use the create-shortcut helper from the right-click menu) Set it to point to "cmd" and run it then position it where you want your window to be.

Now open the "Properties" menu for that window and look at the layout tab.

Go to the shortcut you created and right-click and select the layout tab

Make the shortcut match the window's properties.

Now you have a shortcut that will work--better but still pretty lame--HOWEVER the windows START program can run shortcuts--this makes things a lot better. You can't programmatically reposition the windows, but at least it comes up where you want and you can launch it from a batch file or another program.

The part that really comes in handy is...

0 0
18

Recently someone asked me a question – “How do I shutdown the X server, so that I have a command line prompt on the console?”

Well answer is very simple use script located at /etc/init.d/ directory. If you are using KDE desktop type the command (make sure you save all the work as following command does not ask confirmation):

sudo /etc/init.d/kdm stop

Within few seconds you should be dropped to a command line prompt on the console. To start GUI type command:

sudo /etc/init.d/kdm start

If you are using GNOME:

sudo /etc/init.d/gdm stop

Again to start GNOME desktop:

sudo /etc/init.d/gdm start

Another way – You can change the current runlevel

From a command line, you can use the init command to go immediately into runlevel 1, which is also known as single user text mode. Open terminal and type the following command:

sudo init 1

Again get back to GUI with init 2 command:

sudo init...

0 0