# Installing SMT without  X11

**URL:** <https://forums.suse.com/t/installing-smt-without-x11/22368>\
**Category:** SLES Updates\
**Created:** [March 16, 2012, 2:44pm UTC](https://forums.suse.com/t/installing-smt-without-x11/22368 "2012-03-16T14:44:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![louis\_munro](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@louis\_munro](https://forums.suse.com/u/louis_munro)\
**Post date:** [March 16, 2012, 2:44pm UTC](https://forums.suse.com/t/installing-smt-without-x11/22368/1 "2012-03-16T14:44:51Z")

</div>

Hi guys,  
Can anyone point me to some documentation explaining how to install SMT without X11 installed?

All I can seem to find are links to the documentation that expects me to have a full GUI installed on the server, which isn’t going to happen.

Has anyone managed to do it? It’s only a set of packages after all.

Thanks,  
Louis

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [March 22, 2012, 2:30pm UTC](https://forums.suse.com/t/installing-smt-without-x11/22368/2 "2012-03-22T14:30:24Z")

</div>

louis,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![louis\_munro](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@louis\_munro](https://forums.suse.com/u/louis_munro)\
**Post date:** [March 22, 2012, 7:35pm UTC](https://forums.suse.com/t/installing-smt-without-x11/22368/3 "2012-03-22T19:35:51Z")

</div>

Solved: I’ll post how I did it in case someone else is looking for the same information as I was.

- Make sure you have the SMT installation media or ISO and mount it. I\<ll assume you have it mounted on /media/cdrom

- Install the required packages:

```auto
   # zypper in mysql perl-DBD-mysql apache2 apache2-mod_perl 
```

- Install the SMT packages:

[CODE] # cd /media/cdrom/suse/x86\_64

# rpm -ivh perl-File-Basename-Object-0.01-1.22.x86\_64.rpm yum-metadata-parser-1.1.2-107.18.x86\_64.rpm perl-Text-ASCIITable-0.18-1.10.x86\_64.rpm perl-MIME-Lite-3.01-238.21.x86\_64.rpm perl-DBIx-Migration-Directories-0.08-1.10.x86\_64.rpm perl-DBIx-Transaction-1.002-2.15.x86\_64.rpm ../noarch/createrepo-0.4.11-9.12.1.noarch.rpm

# rpm -ivh --nodeps smt-1.1.16-0.1.1.x86\_64.rpm # dont bother installing htmldoc which requires graphical dependancies[/CODE]

- Install yast-support (ignore the icons depndencies) and the smt noarch packages

[CODE] # rpm -ivh --nodeps ../noarch/yast2-smt-2.17.21-0.1.2.noarch.rpm

# rpm -ivh ../noarch/sle-smt\_en-11.1-0.1.1.noarch.rpm

# rpm --nodeps -ivh sle-smt-release-11-1.3.x86\_64.rpm[/CODE]

You should now be able to launch yast from the console in ncurses mode.

`# yast smt-server`  
Give a password to the mysql root account and enter your NCCcredentials.

You may have to configure some options in /etc/smt.conf ( such as proxy settings ) which do not seem to be configurable through yast.

You should now be able to use smt through the commande line tools located in /usr/sbin:

`# ls /usr/sbin/smt*
/usr/sbin/smt /usr/sbin/smt-list-products /usr/sbin/smtp-sink /usr/sbin/smt-setup-custom-catalogs
/usr/sbin/smt-catalogs /usr/sbin/smt-list-registrations /usr/sbin/smtp-source /usr/sbin/smt-setup-custom-repos
/usr/sbin/smt-client /usr/sbin/smt-mirror /usr/sbin/smt-register /usr/sbin/smt-staging
/usr/sbin/smt-delete-registration /usr/sbin/smt-mirror-sle9 /usr/sbin/smt-report /usr/sbin/smt-support
/usr/sbin/smt-job /usr/sbin/smt-ncc-sync /usr/sbin/smt-repos`

Sync your SMT metadata with

```auto
 # /usr/sbin/smt-ncc-sync 
```

Add repositories (example only):

[CODE]# /usr/sbin/smt-repos -p sle-sdk,11.1

# /usr/sbin/smt-repos -o

.---------------------------------------------------------------------------------------------------------------------------------------------.  
| Mirror? | ID | Type | Name | Target | Description | Can be Mirrored | Staging |  
±--------±—±-----±---------------------------±--------------±---------------------------------------------±----------------±--------+  
| Yes | 1 | nu | SLE11-SDK-SP1-Pool | sle-11-x86\_64 | SLE11-SDK-SP1-Pool for sle-11-x86\_64 | Yes | No |  
| Yes | 2 | nu | SLE11-SDK-SP1-Updates | sle-11-x86\_64 | SLE11-SDK-SP1-Updates for sle-11-x86\_64 | Yes | No |  
| Yes | 3 | nu | SLES11-Extras | sle-11-x86\_64 | SLES11-Extras for sle-11-x86\_64 | Yes | No |  
| Yes | 4 | nu | SLES11-SP1-Pool | sle-11-x86\_64 | SLES11-SP1-Pool for sle-11-x86\_64 | Yes | No |  
| Yes | 5 | nu | SLES11-SP1-Updates | sle-11-x86\_64 | SLES11-SP1-Updates for sle-11-x86\_64 | Yes | No |  
| Yes | 6 | nu | SLES11-SP2-Core | sle-11-x86\_64 | SLES11-SP2-Core for sle-11-x86\_64 | Yes | No |  
| Yes | 7 | nu | SLES11-SP2-Extension-Store | sle-11-x86\_64 | SLES11-SP2-Extension-Store for sle-11-x86\_64 | Yes | No |  
| Yes | 8 | nu | SLES11-SP2-Updates | sle-11-x86\_64 | SLES11-SP2-Updates for sle-11-x86\_64 | Yes | No |  
‘---------±—±-----±---------------------------±--------------±---------------------------------------------±----------------±--------’  
[/CODE]

- start the mirroring :

```auto
# /usr/sbin/smt-mirror 
```

- You should now be able to register clients using the /usr/share/doc/packages/smt/clientSetup4SMT.sh script and update them from the SMT server after adding it to the list or repositories.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [March 22, 2012, 8:10pm UTC](https://forums.suse.com/t/installing-smt-without-x11/22368/4 "2012-03-22T20:10:46Z")

</div>

> [@louis munro](#):
>
> _Solved_: I’ll post how I did it in case someone else is looking for the  
> same information as I was.
> 
> - Make sure you have the SMT installation media or ISO and mount it.  
> I\<ll assume you have it mounted on /media/cdrom
> 
> - Install the required packages:
> 
> ## Code:
> 
> # zypper in mysql perl-DBD-mysql apache2 apache2-mod\_perl
> 
> * * *
> 
> - Install the SMT packages:
> 
> ## Code:
> 
> # cd /media/cdrom/suse/x86\_64
> 
> # rpm -ivh perl-File-Basename-Object-0.01-1.22.x86\_64.rpm
> 
> yum-metadata-parser-1.1.2-107.18.x86\_64.rpm  
> perl-Text-ASCIITable-0.18-1.10.x86\_64.rpm  
> perl-MIME-Lite-3.01-238.21.x86\_64.rpm  
> perl-DBIx-Migration-Directories-0.08-1.10.x86\_64.rpm  
> perl-DBIx-Transaction-1.002-2.15.x86\_64.rpm …/noarch/createrepo-0.4.11-9.12.1.noarch.rpm
> 
> # rpm -ivh --nodeps smt-1.1.16-0.1.1.x86\_64.rpm # dont bother
> 
> ## installing htmldoc which requires graphical dependancies
> 
> - Install yast-support (ignore the icons depndencies) and the smt  
> noarch packages
> 
> ## Code:
> 
> # rpm -ivh --nodeps …/noarch/yast2-smt-2.17.21-0.1.2.noarch.rpm
> 
> # rpm -ivh …/noarch/sle-smt\_en-11.1-0.1.1.noarch.rpm
> 
> # rpm --nodeps -ivh sle-smt-release-11-1.3.x86\_64.rpm
> 
> * * *
> 
> You should now be able to launch yast from the console in ncurses mode.
> 
> ## Code:
> 
> # yast smt-server
> 
> * * *
> 
> Give a password to the mysql root account and enter your  
> NCCcredentials.
> 
> You may have to configure some options in /etc/smt.conf ( such as proxy  
> settings ) which do not seem to be configurable through yast.
> 
> You should now be able to use smt through the commande line tools  
> located in /usr/sbin:
> 
> ## Code:
> 
> # ls /usr/sbin/smt\*
> 
> ## /usr/sbin/smt /usr/sbin/smt-list-products /usr/sbin/smtp-sink /usr/sbin/smt-setup-custom-catalogs /usr/sbin/smt-catalogs /usr/sbin/smt-list-registrations /usr/sbin/smtp-source /usr/sbin/smt-setup-custom-repos /usr/sbin/smt-client /usr/sbin/smt-mirror /usr/sbin/smt-register /usr/sbin/smt-staging /usr/sbin/smt-delete-registration /usr/sbin/smt-mirror-sle9 /usr/sbin/smt-report /usr/sbin/smt-support /usr/sbin/smt-job /usr/sbin/smt-ncc-sync /usr/sbin/smt-repos
> 
> Sync your SMT metadata with
> 
> ## Code:
> 
> # /usr/sbin/smt-ncc-sync
> 
> * * *
> 
> Add repositories (example only):
> 
> ## Code:
> 
> # /usr/sbin/smt-repos -p sle-sdk,11.1
> 
> # /usr/sbin/smt-repos -o
> 
> ## .---------------------------------------------------------------------------------------------------------------------------------------------. | Mirror? | ID | Type | Name | Target | Description | Can be Mirrored | Staging | ±--------±—±-----±---------------------------±--------------±---------------------------------------------±----------------±--------+ | Yes | 1 | nu | SLE11-SDK-SP1-Pool | sle-11-x86\_64 | SLE11-SDK-SP1-Pool for sle-11-x86\_64 | Yes | No | | Yes | 2 | nu | SLE11-SDK-SP1-Updates | sle-11-x86\_64 | SLE11-SDK-SP1-Updates for sle-11-x86\_64 | Yes | No | | Yes | 3 | nu | SLES11-Extras | sle-11-x86\_64 | SLES11-Extras for sle-11-x86\_64 | Yes | No | | Yes | 4 | nu | SLES11-SP1-Pool | sle-11-x86\_64 | SLES11-SP1-Pool for sle-11-x86\_64 | Yes | No | | Yes | 5 | nu | SLES11-SP1-Updates | sle-11-x86\_64 | SLES11-SP1-Updates for sle-11-x86\_64 | Yes | No | | Yes | 6 | nu | SLES11-SP2-Core | sle-11-x86\_64 | SLES11-SP2-Core for sle-11-x86\_64 | Yes | No | | Yes | 7 | nu | SLES11-SP2-Extension-Store | sle-11-x86\_64 | SLES11-SP2-Extension-Store for sle-11-x86\_64 | Yes | No | | Yes | 8 | nu | SLES11-SP2-Updates | sle-11-x86\_64 | SLES11-SP2-Updates for sle-11-x86\_64 | Yes | No | ‘---------±—±-----±---------------------------±--------------±---------------------------------------------±----------------±--------’
> 
> - start the mirroring :
> 
> ## Code:
> 
> # /usr/sbin/smt-mirror
> 
> * * *
> 
> - You should now be able to register clients using the  
> /usr/share/doc/packages/smt/clientSetup4SMT.sh script and update them  
> from the SMT server after adding it to the list or repositories.

Hi  
Missed this one… using nodeps is not a good idea either.

Normally you would use YaST (ncurses) add on products to add the  
iso image which will also create the update directories, then just run;

```auto
zypper in -t pattern SMT
```

Using add on products will add the relevant online/update repositories  
for smt as well.

Since smt is a service, you can check via the CLI, eg;

```auto
chkconfig smt
chkconfig smt on
rcsmt start
rcsmt status
```

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 11 (x86\_64) Kernel 3.0.13-0.27-default  
up 4:01, 3 users, load average: 0.00, 0.01, 0.05  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU
