netselect-aptcommand line tool is here to help you find the fastest mirror available.
netselect-aptfaster mirror locator tool. Installation is simple:
# apt-get install netselect-aptRead more...
/etc/apt/sources.listfile to include:
deb http://packages.linuxmint.com debian importUpdate system repositories:
# apt-get updateRead more...
$ wget http://media.steampowered.com/client/installer/steam.debOnce you have client downloaded install the
steam.debpackage. Please not the below command requires root privileges and will show errors due to the dependency problems which we will address next:
# dpkg -i steam.deb Selecting previously unselected package steam-launcher. (Reading database ... 82762 files and directories currently installed.) Preparing to unpack steam.deb ... Unpacking steam-launcher (126.96.36.199) ... dpkg: dependency problems prevent configuration of steam-launcher: steam-launcher depends on curl; however: Package curl is not installed. steam-launcher depends on zenity; however: Package zenity is not installed. dpkg: error processing package steam-launcher (--install): dependency problems - leaving unconfigured Processing triggers for mime-support (3.58) ... Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for man-db (188.8.131.52-5) ... Errors were encountered while processing: steam-launcherRead more...
/etc/apt/sources.list. Therefore, first change the content of your
/etc/apt/sources.listfile to include
deb http://ftp.au.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.au.debian.org/debian/ jessie main contrib non-freeNext, update your repositories:
# apt-get updateRead more...
wgetcommand to a single mirror URL,
jigdoallows for multiple mirrors where the main feature is to re-use a previously download ISO image of a lower version to use as base and thus only new packages not downloaded previously are downloaded.
jigdois often faster way of downloading debian ISO images. To start using you first need to install it on your system:
# apt-get install jigdo-fileOnce the
jigdo-filepackage is downloaded your can start using jigdo do download official Debian instillation images. All you need is the URL of the *.jigdo file of the image you intend to download. In the example below we download Debian Jessie KDE iso image. First start jigdo:
$ jigdo-lite Jigsaw Download "lite" Copyright (C) 2001-2005 | jigdo@ Richard Atterer | atterer.net Getting mirror information from /etc/apt/sources.list -----------------------------------------------------------------Read more...
OS: Ubuntu 14.04 LTS RAM: 8 GB CPU: 4 X Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz KERNEL: Linux ubuntu 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux SATA: IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller BENCHMARK UTILITY: gnome-disksRead more...
sfdiskcommands you will get a following warning:
Disk /dev/sda: 256.1 GB, 256060514304 bytes 255 heads, 63 sectors/track, 31130 cylinders, total 500118192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sda doesn't contain a valid partition table WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.Read more...
Falseif the number supplied is less than 2 and if the number is equally divisible with some other number different than 1 and itself. If none of the previous conditions apply the function will return
True. The below python script will let user to decide how many numbers needs to be check to see whether the number is prime number:
#!/usr/bin/env python prime_numbers = 0 def is_prime_number(x): if x >= 2: for y in range(2,x): if not ( x % y ): return False else: return False return True for i in range(int(raw_input("How many numbers you wish to check: "))): if is_prime_number(i): prime_numbers += 1 print i print "We found " + str(prime_numbers) + " prime numbers."Read more...
~/.vnc/passwdis the default location where the VNC password is stored. The password is stored at this location when the
vncserverstarts for a first time. To update or change your VNC password you should use
vncpasswdwill promt you two times to enter your new password:
$ vncpasswd Password: Verify:The
vncpasswdcommand also accepts a password input from STDIN which also allows to store password file into different location. The following example will change the VNC password to
MYVNCPASSWORDand store it to
~/.secret/vncpassgiven that the
$ echo MYVNCPASSWORD | vncpasswd -f > ~/.secret/passvnc $Read more...