How do I change mirrors in Ubuntu Server from regional to main?


If you uninstall the desktop packages and install the server packages through tasksel, you should be prepared to do a LOT of reconfiguration, as this will remove your network settings, wireless card drivers, etc.

If all you need to do is get rid of the gui, follow steps 1-2 from the first answer. It's up to you whether or not to purge the GUI completely.

I also replaced the generic kernel with the server kernel as noted in the answer @warl0ck and commented out the lines in the lightdm.conf file.

After this, rather than tasksel to add/remove packages, I manually removed packages from the command line. Unless you're going to use the LibreOffice suite, Firefox, etc., you can remove all these packages. The easiest way to get a list of packages is to run:

sudo dpkg --get-selections | grep -v deinstall > ~/packages nano ~/packages

This will output a list of all installed packages to your home folder and open it.

When you uninstall a core package (such...

0 0


Mirroring is a way of scaling a download site, so the download load can be spread across many servers in many parts of the world. Mirrors host copies of the files and are managed by a mirror director. A mirror director is the center of any mirror system. It is responsible for directing traffic to the closest appropriate mirror so users can download more quickly.

Mirroring is a unique system with its own advantages and disadvantages. Unlike a DNS based system, mirroring is more much more flexible. There is no need to wait for DNS or even to trust the mirroring server (the mirror director can scan the mirror to check its validity and completeness). This is one reason many open source projects use mirrors to harness the generosity of ISPs and server owners to take the load off the open source project's own servers for downloads.

Unfortunately, a mirroring system will increase the overhead of any HTTP request, as the request must travel to the mirror...

0 0

When today traffic and casual internet speeds is measured in teens of Giga over an eye blink even for ordinary Internet clients, what’s the purpose of setting a local repository cache on LAN’s you may ask?

Setup Local Repositories in Ubuntu

One of the reasons is to reduce Internet bandwidth and high speed on pulling packages from local cache. But, also, another major reason should be privacy. Let’s imagine that clients from your organization are Internet restricted, but their Linux boxes need to regular system updates on software and security or just need new software packages. To go further picture, a server that runs on a private network, contains and serves secret sensitive information only for a restricted network segment, and should never be exposed to public Internet.

This are just a few reasons why you should build a local repository mirror on your LAN, delegate an edge server for this job and configure internal clients to pull out software form its...

0 0

I was discussing the creation and maintenance of an Ubuntu repository mirror in IRC today and realized that I haven’t blogged about how to do that. Its funny sometimes how topics pop up, and something I’ve been using for months never made it onto the blog. In any event, below I’ll outline how to create your own Ubuntu repository mirror–great for consolidating and saving bandwidth for multiple machines!

Creating the Mirror
To create an Ubuntu repository mirror we’ll use the apt-mirror tool. This can be installed by issuing the following command or clicking the link:

sudo aptitude install apt-mirror

Once this package is installed you’ll need to configure a few items:
1. Where will your mirror be stored?
2. How aggressive will you be about downloading?
3. What do you want to mirror?

To edit these values you’ll want to edit the /etc/apt/mirror.list file. I’ve displayed mine below, and broken it down into the three main...

0 0

Having a slow Debian mirror can be frustrating and thus it is always best to choose closest mirror to your geographical location as possible. Even your best guess may not always bring good results. Fortunately


command line tool is here to help you find the fastest mirror available.

Here is the basic idea:

As you can see on the above image 87.0 kB/s is rather disappointing. Let's try to change that using


faster mirror locator tool. Installation is simple:

# apt-get install netselect-apt

Next we are going to find a fastest mirror located in Australia


, we will compare results from 15 sites


if available, the architecture must be amd64


and the version we are looking for is testing:

# netselect-apt -c australia -t 15 -a amd64 -n testing Using distribution testing. Retrieving the list of mirrors from --2015-01-29 19:33:12--...
0 0
Sep 12, 2010

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.

Ubuntu Servers :: Does Server Have GUI Or Command Line Only? Ubuntu Servers :: 9.10 Server - How To Setup Remote Desktop / VNC Via SSH + Command Line Server :: Mysqldump Export Type Update / Command Line Or By A Simple PHP Code? General :: Change Command Line Based SUSE System Enterprise Server To Gnome? Ubuntu Servers :: Bash In 10.04 Server - Every Empty Line In The Script Results In "command Not Found" Ubuntu :: Change Hotkey In Command Line? Ubuntu :: Change The Things With Command Line? Ubuntu :: Change Time From Command Line? Ubuntu :: Change Log In Pref From Command Line Ubuntu :: Change Desktop Icon Via Command Line? Ubuntu...
0 0

Recently, I installed the new version of Ubuntu: 11.10 (Oneiric Ocelot) in my desktop to take its taste. But I am having some problems when updating the OS. Our local repository was not up to date. So, I started googling and found a list of repositories. Chose a up to date repository and update my OS from that mirror repository. Now I am sharing the process here.

First you will have to take the backup of current repository. Open the terminal and type the following command.

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

Then go to the link: and choose any up to date repository.

Suppose you chose the repository: and want to replace with the current one: Now, open the terminal and type . .

gksudo gedit /etc/apt/sources.list

Sources.list will be pop up. Now type Ctrl + h and fill up the Search for and Replace with. Click the Replace...

0 0

There's multitude of ways to achieve it. Depending on the complexity of what one tries to achieve with string replacement, and depending on tools with which user is familiar, some methods may be preferred more than others.

In this answer I am using simple input.txt file, which you can use to test all examples provided here. The file contents:

roses are red , violets are blue This is an input.txt and this doesn't rhyme


Bash isn't really meant for text processing, but simple substitutions can be done via parameter expansion , in particular here we can use simple structure ${parameter/old_string/new_string}.

#!/bin/bash while IFS= read -r line do case "$line" in *blue*) printf "%s\n" "${line/blue/azure}" ;; *) printf "%s\n" "$line" ;; esac done < input.txt

This small script doesn't do in-place replacement, meaning that you would have to save new text to new file, and get rid of the old file, or mv new.txt old.txt

Side note: if you're...

0 0
InformationWeek, serving the information needs of the Business Technology Community The Demo Lab at InteropITX 2018 was all about IoT and the traffic - legitimate and malicious - it adds to an enterprise network.By Curtis Franklin Jr. Senior Editor at Dark Reading, 5/7/2018Distributed denial-of-service attacks are getting bigger, badder, and 'blended.' What you can (and can't) do about that.By Kelly Jackson Higgins Executive Editor at Dark Reading, 5/7/2018The 30-plus year old job title "CIO" is opening up a number of new possibilities when it comes to defining the role.By Steve Kovsky Technology Journalist, 5/7/2018The ambiguities of the English language present hurdles for initiatives to utilize conversational AI in the corporate world.By Stanton Jones, Director and Principal Analyst, Information Services Group , 5/7/2018What skills will be needed in your data and analytics job in 5 or 10 years? A panel of experts tackled that question at Interop...
0 0
0 0

We’re excited to formally announce our return to Super Smash Con 2018 for our fourth year!

Chantilly, VA | Aug 9th-12th, 2018

For those of you who are unaware, Super Smash Con is one of the world’s largest competitive Smash-centric events. It features Smash Bros. tournaments, tons of vendors, panels, arcade games, performances, and more! And it all takes place inside the sprawling Dulles Expo Center in Chantilly, Virginia.

If you’ve been following us on Twitter you’ll know that you want to register by tonight at 11:59PM EST to grab that early bird discount!

We’re still hashing out details, but know that we will have an official Super Smash Flash 2 booth just like previous years with multiple setups for SSF2 friendlies. We’d love for you to stop by and say hi, so if you can make it then register as soon as you can!

Stay tuned for more information regarding SSF2 at the con throughout the coming...

0 0