Knowledgebase
  • Welcome!
  • Threats
    • Software
      • Malware
      • Ransomware
      • Macros
    • Hardware
      • Flipper Zero
        • Firmware
          • 🐬flipperzero
            • Getting Started
          • 🐬flipper-xtreme
            • Wiki
              • Key Combos
              • Generic Guides
              • iButton key file format
              • SubGhz
              • How to add new SubGHz frequencies
              • Sub-GHz Remote
              • LF RFID key file format
              • NFC Flipper File Formats
              • Infrared Flipper File Formats
              • BadKB
              • Asset Packs
              • Unit tests
              • OTA Updates
              • How To Build
              • Hardware Targets
              • Flipper Build Tool
              • FAP (Flipper Application Package)
              • Flipper Application Manifests (.fam)
          • 🐬roguemaster
          • 🐬unleashed
    • Human
      • Advanced Persistent Threats (APTs)
      • Social engineering
      • Phishing
      • Typosquatting
    • Disinformation
      • Black Propaganda
      • White Propaganda
      • Grey Propaganda
      • Info Warfare
      • Political Warfare
      • Astroturfing
      • Greenwashing
      • Bluewashing
      • Whisper Campaigns
      • Push Polling
      • "Joe Jobs"
      • False Flags
      • Deep Fakes
  • About
    • Ports
      • 20
      • 21
      • 22
      • 23
      • 25
      • 587
      • 2323
      • 53
      • 80
      • 194
  • Tools
    • Radio Frequency & SubGHZ
      • gnuradio
      • hackrf
    • Digital Forensics
      • afflib
    • Reverse Engineering
      • binwalk
      • radare2
    • Hardware & Virtualization
      • qemu
      • freerdp2
      • util-linux
      • lvm2
    • VPN Providers
      • ProtonVPN
      • NordVPN
      • ExpressVPN
      • Surfshark
      • CyberGhost
      • Private Internet Access
    • Database, Cloud, & Firewalls
      • sqlmap
      • cewl
      • gobuster
      • fwbuilder
      • clamav
    • Enumeration & Lists
      • crunch
      • aflplusplus
      • ffuf
      • maltego
        • maltego-teeth
      • getallurls
    • Penetration Testing
      • beef-xss
      • wifite
      • burpsuite
      • metasploit-framework
    • Passwords & Auth
      • john
      • hashcat
      • hydra
      • cryptsetup
    • Surface Intelligence
      • theharvester
      • subfinder
      • dsniff
      • dnsrecon
      • dirb
      • nikto
      • legion
      • spiderfoot
    • Networks & Wireless
      • nmap
      • impacket-scripts
      • tcpdump
      • traceroute
      • wireshark
      • responder
      • aircrack-ng
      • netcat
      • kismet
      • ubertooth
      • routersploit
      • apache2
      • ettercap
      • bettercap
      • bettercap-ui
      • freeradius
      • bind9
      • samba
      • net-snmp
      • tcpreplay
    • Social Media
      • sherlock
    • Miscellaneous
      • git
      • libnfc
      • llvm-defaults
  • Operating Systems
    • Ubuntu
      • Installation
        • Switching
          • From Windows
          • From macOS
          • From a different Linux
        • Applications
        • Ubuntu PreInstalled
    • Linux Mint
      • Installation Guide
        • Verify your ISO image
        • Choose the right edition
        • Boot Linux Mint
        • Create the bootable media
        • Install Linux Mint
        • Hardware drivers
        • Language support
        • EFI
        • Multimedia codecs
        • System snapshots
        • Pre-installing Linux Mint (OEM Installation)
        • Where to find help
        • Boot options
        • Partitioning
        • Multi-boot
      • User Guide
        • Grub Boot Menu
        • Snap Store
        • Chromium
        • Bluetooth
        • Windows ISOs and multiboot USB
        • How to upgrade to Linux Mint 20
        • Edge ISO Images
        • Lost Password
        • Upgrades
        • Printers and Scanners
        • How to upgrade to Linux Mint 21
      • Troubleshooting Guide
        • Expectation
        • Responsibility
        • Change
        • Reproducibility
        • Observation
        • Environment
        • What
        • When
        • Why
        • Errors
        • Where
        • How
      • Translation Guide
        • Using Launchpad
        • Verify your translations
        • Localization
      • Developer Guide
        • Getting Started
          • Setup
          • Technology
        • Mint Tools
        • Cinnamon
        • XApps
        • Development
          • Daily Builds
          • Coding Guidelines
          • Optimizing JS with Cinnamon
          • Building
    • Kali Linux
      • Installation
        • Installing Kali Linux
        • Bare-bones Kali
        • Installing Kali on Mac Hardware
        • Dual Booting Kali with Linux
        • Making a Kali Bootable USB Drive
        • Dual Booting Kali with macOS/OS X
        • Dual Booting Kali with Windows
        • BTRFS Install (Kali Unkaputtbar)
        • Deploying Kali over Network PXE/iPXE Install
      • Virtualization
        • Running Kali Linux as a Virtual Machine in Windows
        • Installing VMware on Apple Silicon (M1/M2) Macs (Host)
        • Customizing a Kali Vagrant Vagrantfile
        • Kali inside Proxmox (Guest VM)
        • Installing VMware on Kali (Host)
        • Installing VirtualBox on Kali (Host)
        • Import Pre-Made Kali VMware VM
        • Kali inside Parallels (Guest VM)
        • Kali inside Vagrant (Guest VM)
        • Kali inside VMware (Guest VM)
        • Kali inside VirtualBox (Guest VM)
        • Import Pre-Made Kali VirtualBox VM
        • Kali inside Hyper-V (Guest VM)
        • Kali inside UTM (Guest VM)
        • Kali inside QEMU/LibVirt with virt-manager (Guest VM)
        • Improving Virtual Machine Performance for VMware
        • Installing VMware Tools (Guest Tools)
        • Installing VirtualBox Guest Addition (Guest Tools)
        • Installing Hyper-V Enhanced Session Mode (Guest Tools)
        • Converting VMX to an OVA
      • USB
        • Making a Kali Bootable USB Drive (Linux)
        • Making a Kali Bootable USB Drive (macOS/OS X)
        • Updating Kali Linux on USB
        • Making a Kali Bootable USB Drive on Windows
        • Standalone Kali Linux 2021.4 Installation on a USB Drive, Fully Encrypted
        • Adding Persistence to a Kali Linux Live USB Drive
        • Adding Encrypted Persistence to a Kali Linux Live USB Drive
        • USB Boot in VirtualBox
        • USB Boot in VMware
      • Kali On ARM
        • BeagleBone Black
        • Acer Tegra Chromebook 13" (Nyan)
        • ASUS Chromebook Flip (Veyron)
        • Banana Pro
        • Banana Pi
        • CubieBoard2
        • CuBox-i4Pro
        • CubieTruck (CubieBoard3)
        • Gateworks Newport
        • CuBox
        • Gateworks Ventana
        • NanoPi NEO Plus2
        • NanoPi2
        • Mini-X
        • NanoPC-T3
        • ODROID-C0/C1/C1+
        • ODROID-XU3
        • ODROID-U2/U3
        • ODROID-C2
        • Pinebook
      • Containers
        • Kali Linux LXC/LXD Images
        • Official Kali Linux Docker Images
        • Installing Docker on Kali Linux
        • Using Kali Linux Docker Images
        • Using Kali Linux Podman Images
      • WSL
        • Win-KeX SL
        • Win-KeX ESM
        • Preparing a system for WSL
        • Win-KeX
        • Win-KeX Win
      • Cloud
        • Digital Ocean
        • AWS
        • Azure
        • Linode
      • Kali NetHunter
        • Installing NetHunter On the OnePlus 7
        • Installing NetHunter On the Gemini PDA
        • Installing NetHunter
        • Installing NetHunter On the TicWatch Pro 3
        • Installing NetHunter On the TicWatch Pro
        • NetHunter Application - Terminal
        • NetHunter BadUSB Attack
        • NetHunter Bluetooth-Arsenal
        • NetHunter Chroot Manager
        • NetHunter Components
        • NetHunter Custom Commands
        • NetHunter Home Screen
        • NetHunter DuckHunter Attacks
        • NetHunter HID Keyboard Attacks
        • NetHunter Exploit Database SearchSploit
        • NetHunter Kali Services
        • NetHunter MAC Changer
        • NetHunter MANA Evil Access Point
        • NetHunter Man In The Middle Framework
        • NetHunter KeX Manager
      • Tools
        • Installing Tor Browser on Kali Linux
        • Kali Tools
        • Installing snapd on Kali Linux
        • Metasploit Framework
        • Installing Flatpak on Kali Linux
        • Submitting tools to Kali
        • Removed Tools From Kali
      • Troubleshooting
        • Discovering Problems With Download Speed
        • Common Cloud Based Setup Information
        • The Basics of Troubleshooting
        • Troubleshooting Installations Failures
        • Troubleshooting Wireless Drivers
        • Minimum Install Setup Information
      • Kali Development
        • Contributing run-time tests with autopkgtest
        • Custom CuBox Image
        • Custom Beaglebone Black Image
        • Custom EfikaMX Image
        • Custom Chromebook Image
        • Custom MK/SS808 Image
        • Custom Raspberry Pi Image
        • Custom ODROID X2 U2 Image
        • Setting up a system for packaging
        • Intermediate packaging step-by-step example
        • Introduction to packaging step-by-step example
        • Getting the best out of the Kali Bot
        • Advanced Packaging Step-By-Step Example (FinalRecon & Python-icmplib)
        • Generate an Updated Kali ISO
        • Creating A Custom Kali ISO
        • Building Custom Kali ISOs
        • Rebuilding a Source Package
        • Recompiling the Kali Linux Kernel
        • ARM Build Scripts
        • Preparing a Kali Linux ARM chroot
    • Arch Linux
      • Installation Guide
      • Frequently Asked Questions
      • General Recommendations
      • Applications
        • Office & Docs
        • Internet
        • Multimedia
        • Science
        • Security
        • Utilities
        • Others
      • Arch compared to other distributions
    • NetBSD
      • Calls and Errors
      • Libraries
      • Lua Modules
      • Devices and Drivers
  • Law, Policy, and Ethics
    • Fair Use
    • DMCA
      • 🗄️Notable Cases
        • MGM Studios Inc. v. Grokster, Ltd.
        • Viacom International, Inc v YouTube, Inc
        • Capitol Records, Inc. v. Thomas-Rasset
        • Perfect 10, Inc. v. Amazon.com
        • Recording Industry Association of America (RIAA) v. Diamond Multimedia Systems, Inc.
        • A&M Records, Inc. v. Napster, Inc.
        • BMG Music v. Gonzalez
        • Sony Computer Entertainment America (SCEA) v. Connectix Corp.
        • Columbia Pictures Industries, Inc. v. Fung
        • Warner Bros. Entertainment Inc. v. RDR Books
        • BMG Music v. John Doe
        • Universal Music Group v. Veoh Networks, Inc.
        • Universal Music Group v. MySpace, Inc.
        • UMG Recordings, Inc. v. MP3.com, Inc.
        • Cartoon Network LP v. CSC Holdings, Inc.
        • Metro-Goldwyn-Mayer Studios Inc. v. Grokster, Ltd.
        • Viacom International Inc. v. Google Inc.
        • Tiffany (NJ) Inc. v. eBay Inc.
        • Perfect 10, Inc. v. Visa International Service Association
        • Universal City Studios Productions LLLP v. Reimerdes
        • Recording Industry Association of America (RIAA) v. Lime Group LLC
        • Sony BMG Music Entertainment v. Tenenbaum
        • Viacom International Inc. v. Time Warner Cable Inc.
        • UMG Recordings, Inc. v. Shelter Capital Partners LLC
        • Sony Computer Entertainment America Inc. v. Bleem LLC
        • Universal City Studios, Inc. v. Corley
        • Ticketmaster Corp. v. Tickets.com, Inc.
        • Authors Guild, Inc. v. Google, Inc.
        • Perfect 10, Inc. v. Cybernet Ventures, Inc.
        • Tiffany (NJ) Inc. v. Ningbo Beyond Home Textile Co., Ltd.
        • Google Inc. v. American Blind & Wallpaper Factory, Inc.
        • Columbia Pictures Industries, Inc. v. Redd Horne, Inc.
Powered by GitBook
On this page
  • Installing Software
  • Performing Administrative Tasks
  • Command Line configuration (aliases and inputrc)
  • Music, Movies, DVD Playback and Java
  • Services, Chkconfig and Initscripts
  • Environment Variables
  • Moving to Ubuntu from openSUSE
  • Documentation

Was this helpful?

Edit on GitHub
  1. Operating Systems
  2. Ubuntu
  3. Installation
  4. Switching

From a different Linux

This page discusses practical differences between Ubuntu and other Linux distributions. See also the all-systems switching guide. If you are switching from Mac OS X, see switching from OS X.

Ubuntu is based on Debian, so many tasks are the same in Ubuntu as they are in Debian.

Installing Software

Like all Debian-based distributions, software is installed in Ubuntu with APT. This is similar to yum, which is used by RedHat-based distributions. If you prefer the command-line, you should install packages with apt-get. Alternatively, System > Administration > Synaptic Package Manager is a graphical interface to APT.

See Installing Software for information on installing packages.

Performing Administrative Tasks

In Ubuntu, you are recommended to run programs with sudo instead of logging in as root with su. Advantages of sudo include:

  • You can't do anything really bad to your system unless you use sudo each time.

  • You don't have to remember a root password - sudo only needs your own account's password.

  • sudo remembers for a limited time that you used your password, so you won't have to enter your password every time you use it.

At first, only the user you create during installation will have access to sudo. To allow additional users to use sudo, add them to the admin group.

Using Sudo

To run a command with root privileges, simply open a terminal and type:

sudo <command>

Replace <command> with the command you wish to use. Sudo will ask for your normal user password; enter it and press return to run the command.

Graphical equivalents to sudo include gksudo and kdesudo. When one of these programs runs, a dialog box will appear asking you to enter your normal user password. Enter your user password and click Continue or press the enter button on your keyboard.

To run a proper root shell you can do the following:

sudo -i

This will ask for your normal user password, enter it and you will be at the root prompt.

Command Line configuration (aliases and inputrc)

This section is written for Mandrake/Mandriva users, but probably applies generally.

Useful Shell aliases

Mandriva defines the following aliases in /etc/profile.d/alias.sh, which make the shell faster to use. They could also go in your ~/.bashrc:

alias ls='ls -F --color=auto'

# make ls coloured, and append characters to denote filetype ( eg trailing / on directory names)

alias l='ls'

# short for ls

alias l.='ls -d .*'

# show only hidden files

alias la='ls -a'

# list all files

alias ll='ls -l'

# long format listing

alias lsd='ls -d */'

# list only directories

alias lx='ls -X'

# list, order by extension

alias p='cd -'

# previous directory

alias s='cd ..'

# short for cd ..

alias cd..='cd ..'

# allow omission of space in cd ..

alias rd='rmdir'

# Remove a directory

alias md='mkdir'

# Make a directory

The following make cp, rm, and mv interactive by default, so you don't overwrite a file by mistake. Most people think this is useful, but some think it makes one careless, as one might come to rely upon the implicit -i, on some other system which doesn't have it.

alias mv='mv -i'

alias rm='rm -i'

alias cp='cp -i'

Note that these aliases do not work when running a command as root using sudo. One workaround for this is to add alias sudo="sudo " to your .bashrc (note the extra space in the quotes). This will allow the first word after 'sudo' to be substituted if an alias exists.1

Tab Completion Enhancements

Mandriva defines the following in /etc/inputrc, which prints the list of options and then repeats the prompt where you were:

set show-all-if-ambiguous on

Putting this in /etc/inputrc or ~/.inputrc will add this function to Ubuntu.

Music, Movies, DVD Playback and Java

Getting file formats restricted by patents or copyright such as movies and music to play on your Ubuntu system is simple (although not as simple as it could be). See RestrictedFormats. Java is simple too.

Services, Chkconfig and Initscripts

Users of Red Hat and Mandriva will be used to configuring which services run by using chkconfig command. chkconfig is not available in Ubuntu, but you can install sysv-rc-conf instead.

To start and stop services, it's necessary to invoke the init.d script directly: /etc/init.d/ssh start rather than service sshd start. If you want to have the 'service' syntax back, add this to root's .bashrc:

function service (){ /etc/init.d/$@ ;}  

Ubuntu runs in runlevel 3 by default, whereas RedHat and Mandriva use runlevel 5 for graphics, and 3 for console. Ubuntu also has an extra rcX.d directory, /etc/rcS.d, which runs at boot-up. Packages like udev are started from rcS.d. There are some helpful README files in the /etc/rcX.d directories.

Environment Variables

See Environment Variables for a full guide to the use of environment variables in Ubuntu.

Moving to Ubuntu from openSUSE

This section documents a few surprises that long-term openSUSE users may encounter when moving to Ubuntu. It was inspired by a recent transition from openSUSE 11.2 to Ubuntu 10.10.

Shell Scripts

Some of your tried and tested shell scripts may break in a surprising manner if the first line is #!/bin/sh and you have used features specific to the bash shell. It is tempting to change the first line to #!/bin/bash to get things working, but you may not have realised that that Ubuntu uses the dash shell as the default shell. Should you wish to do things in the Ubuntu way, consider searching the web using the keyword bashisms to understand the differences, and fixing your scripts accordingly.

Editing Using vi

Experienced users, even those who normally use emacs or xemacs, find themselves using vi to configure things to suit their way of working during the first hour or two of a fresh installation. Ubuntu has a mechanism to choose a preferred editor, but it is frustrating during the first hours when all you want is a working version of vi that doesn't dump escape codes over your file when you use the arrow keys in insert mode, and when nano just looks weird.

The following code snippet, added to your .bashrc, should ease the transition until you figure out how Ubuntu does things.

# Voodoo for sudo.
alias rm='/bin/rm -i'
alias vi='/usr/bin/vim.tiny'
alias sudo='sudo '
alias visudo='EDITOR=/usr/bin/vim.tiny /usr/sbin/visudo'

Using sudo

Ubuntu is keen to encourage good practice regarding the preferred use of sudo. As always, it is dangerous to edit /etc/sudoers, even when using sudo visudo. Ubuntu would like you to make your changes in separate files inside the /etc/sudoers.d directory. This is fine, but it does not work out-of-the-box on Ubuntu 10.10 should you wish to use NOPASSWD. This is because the #includedir /etc/sudoers.d directive is found on the last-line-but-one of /etc/sudoers by default; moving it to the end makes NOPASSWD work as one expects.

Documentation

There are a few good resources you can turn to if you need further help with Ubuntu, these include:

PreviousFrom macOSNextApplications

Last updated 2 years ago

Was this helpful?

Since Intrepid, you can also install the following package: , which provides the service command.

- The main source of Ubuntu documentation

, and IRC (irc.freenode.net - #ubuntu)

sysvinit-utils
http://help.ubuntu.com
Forums
mailing lists