Change splash screen on ubuntu 13.10

There are some plymouth themes available in Ubuntu Software Center by default. Search for and install what you want, seach for plymouth-theme.

 

Open terminal window (Control+Alt+T) and run:

sudo update-alternatives --config default.plymouth

Select which theme to install, then to apply it run:

sudo update-initramfs -u

Customize MailServer setting on NAS Synology

Synology NAS.

I have been looking to customize the MailServer SMTP Banner.(removing the Postfix name from the banner)

You can add or and customize as much as Postfix 2.x would accept it from this path:

	/var/packages/MailServer/target/etc/template/

 

I have edit the file main.template and add the following line:

	smtpd_banner = $myhostname ESMTP

 

Saved and restart the SMTP component from the NAS web interface.

Update:

For DSM 5.1-5022 Update 4; The main.cf is located to :

/var/packages/MailServer/target/etc/main.cf

If you need to reload Postfix; Run :

/var/packages/MailServer/target/sbin/syno_mailserverd reload

 

 

Massive upload files to SharePoint servers

I have been looking to make using some sort of script the way to make massive upload to a sharePoint server;
I have been finding many using Powershell and I came up with this type of script

param ([String]$spPath, [String]$localPath)

#################################################################################

## Load the SharePoint Snapin so the script can be executed from PowerShell editor
## INTERACTIVE OR AUTOMATIC MODE.

## FOR AUTOMATIC MODE. SET THE VARIABLE BELOW.OTHERWISE PROMPT WOULD REQUEST EACH.

## SET THE NUMBER OF TIME YOU WISH UPLOAD FOR EACH FILES
##$t = "10"

### SET THE REMOTE SHAREPOINT REMOTE LOCATION FOR THE SHARED DOCUMENT
### OR LET THE PROMPT
### EX: $spPath = "http://sharepoint/home/Shared%20Documents/"


#### SET LOCAL PATH OF FILES TO BE UPLOADED.
#### EX: $localPath = "e:\my_files"



##################################################################################


Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
# get the SharePoint path if not specified

$i = 1

if ($spPath -eq "")
{
    Write-Host
	$spPath = Read-Host -Prompt " Please enter the full path for the shared librairy?"
}

if ($t -eq "")
{
    Write-Host
	$t = Read-Host -Prompt " How Many times you wish to upload?"
}

# get the local path if not specified
if ($localPath -eq "")
{
    Write-Host
    $localPath = Read-Host -Prompt " Please enter the full path to the local directory that contains the documents to be uploaded"
}



do {Write-Host $i;$i++

## Define our library name and web url

$LibraryName = $spPath.Substring($spPath.LastIndexOf("/")+1)
$webUrl = $spPath.Substring(0,$spPath.LastIndexOf("/"))

## Define a function to return the destination file name

Function BuildFileName($filename)
{
    "$webUrl/$LibraryName/" + $(split-path -leaf $filename)
}
## Upload all the documents found in the specified location

Write-Host "Uploading all documents from $sourceDocs"
$webClient = New-Object System.Net.WebClient
$webClient.Credentials = [System.Net.CredentialCache]::DefaultCredentials
dir $localPath | % {
    Write-Host "Uploading file from "$localPath": $_" -nonewline
    $fName = BuildFileName $_
    $webClient.UploadFile($fName,"PUT", $_.FullName)
    Write-Host " done" -ForegroundColor Green
    }

}
until ($i -gt $t)

Error dependency problems prevent configuration of webmin on Ubuntu 11

Webmin error while attempting to install it on ubuntu@

dpkg –install webmin_1.620_all.deb
(Reading database … 83378 files and directories currently installed.)
Preparing to replace webmin 1.620 (using webmin_1.620_all.deb) …
Unpacking replacement webmin …
dpkg: dependency problems prevent configuration of webmin:
 webmin depends on libnet-ssleay-perl; however:
  Package libnet-ssleay-perl is not installed.
 webmin depends on libauthen-pam-perl; however:
  Package libauthen-pam-perl is not installed.
 webmin depends on libio-pty-perl; however:
  Package libio-pty-perl is not installed.
 webmin depends on apt-show-versions; however:
  Package apt-show-versions is not installed.
dpkg: error processing webmin (–install):
 dependency problems – leaving unconfigured
Processing triggers for ureadahead …
Errors were encountered while processing:
 webmin

The following webmin url helped to sort this error, by running the apt-get install command to manually install the dependencies missing.

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

Disable Automatic Windows 8 Activation

To avoid the automatic Windows 8 activation, you can disable with this registry keys

HKLM\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation
DWORD value named Manual to 1.

Make sure it is set to 1, your system will never automatically activate itself.

Change Webmin port

I have setup webmin on one vmware to deal with some services,

Change the webmin port.

through the interface:

Webmin / Wedmin configuration / Port and Addresses

Through command line:

Navigate to /etc/webmin/miniserv.conf

vi /etc/webmin/miniserv.conf

Modify the line:  port=1000