Hot answers tagged

106

~/.bash_profile is only sourced by bash when started in interactive login mode. That is typically only when you login at the console (Ctrl+Alt+F1..F6), or connecting via ssh. When you log in graphically, ~/.profile will be specifically sourced by the script that launches gnome-session (or whichever desktop environment you're using). So ~/.bash_profile is ...


31

You can check if your Bash shell is started as a login-shell by running: shopt login_shell If the reply is off you are not running a login shell. Read the Bash manual's invocation section on how Bash reads (or does not read) different configuration files. Excerpt from man bash: When bash is invoked as an interactive login shell, or as a ...


17

You really don't want to download the source code for all of Ubuntu. That's millions and millions of pages of text – literally. Instead, you'll get the source code for specific packages you're interested in, and that's very easy. Ubuntu is written in lots and lots of different languages. C, C++, Vala and Python are highly popular, but all kinds of languages ...


16

First, find out what package the df command comes from. This will turn out to be coreutils. Then run the command apt-get source coreutils to get the source code for the package containing the df command.


12

I think it is worth mentioning that you can change the default of gnome-terminal to use a login shell (ie. bash -l) by editing the profile preferences. go to Edit -> Profile Preferences -> Title and Command tab check the "Run command as a login shell" option


10

just looking at http://lists.boost.org/boost-users/2005/01/9444.php which says to delete /usr/local/lib/libboost* and /usr/local/include/boost


7

~ doesn't appear to be expanding properly. When I run your script with an intentionally fake path, the error doesn't say ~, but expands the path (i.e. /home/sparhawk/fakepath not ~/fakepath. You could try using $HOME instead of ~, or using the full path in the script instead. (I'm not sure why ~ doesn't work on your system, as your script works fine for ...


7

If you enable the source code repositories in "Software sources" application (software-properties-gtk), you can download the latest python source that is related to the package: apt-get source python You can do that for any ubuntu/debian package. You can always google your way to the source code: http://www.python.org/download/releases/


6

You don't need anything except the binaries. Those should already be copied to another location by make install. The rest can be removed. If you're unsure make a backup before removal. Remove, test if still working, if still working remove the backup. Note: As ændrük pointed out: Using checkinstall over make install has the virtue of enabling Ubuntu to ...


6

Because terminals don't usually run login shells by default. They also usually have options to run login shells, which do source .profile. To control the behaviour of login shells. Depends on the shell. For bash, see the set of startup files. Not in some sense (updating login records, for example). If you have a folder called bin in $HOME, the default ...


5

The kernel source code installed by the linux-source package is installed in the form of a compressed archive in the /usr/src directory. For example, if you are running Ubuntu 14.04 LTS, the kernel source archive will be at /usr/src/linux-source-3.13.0.tar.bz2. You can unpack the source code in your current directory wherever you like to view it with tar ...


5

Usually when you build software from source, it will be for one of several reasons: You want to help with the development of the software. Obviously if you're going to develop the software, you need a copy of the source, and a way to test your changes. You absolutely can't tolerate a certain problem with the latest stable version of the software. In this ...


5

If you open a terminal or run su the shell is not executed as a login shell but as a normal interactive shell. So it reads ~/.bashrc but not ~/.bash_profile. You can run su with the -l option to make it run your shell as a login shell. When you are working with a GUI the shell is usually never run as a login shell so it's usually fine to put all yout stuff ...


4

The packages and there source's are all available through launchpad - https://launchpad.net/ubuntu -


4

While Ubuntu is an operating system, it is actually comprised of several different aspects. One aspect is the kernel, the extreme back-end of the operating system. Another aspect is the desktop manager, window manager, etc. Then of course there's the programs. Generally speaking, the source for all of these aspects is all open, and freely available. ...


4

Most of the applets is provided by the packages gnome-panel and gnome-panel-data apt-get source gnome-panel-data The exception is applet 2. Panel 1: This is the Menu Bar (custom menu) - the code is in the folder gnome-panel-3.4.1/applets/wncklet Source files: window-menu* Panel 2: This is provided by the package indicator-applet-complete Panel 3: ...


4

When you install from source, there is nothing (like dpkg) that will track the newly installed files for you (what files and where they were placed). Unless you explicitly use a tool. How to know where the files were installed I use Git to track installations in my /usr/local. Here is how it looks: cd /usr/local git init git add . git commit -m "Starting ...


4

This line: if [[ ${NODE_ENV} = 'production' ]]; then is not valid in a POSIX-compliant shell, but does seem to be valid bash. I don't see the shell that upstart uses by default in script stanzas documented anywhere, but it's reasonable to assume that it uses /bin/sh, which is not bash on Debian/Ubuntu systems. Try: if [ "${NODE_ENV}" = 'production' ]; ...


4

There's a single method of doing copy and paste in an X window system environment (GNOME, KDE .etc), namely Ctrl+C and Ctrl+V. How this 'copy and paste' works? The whole scenario involves two parties: client applications and clipboard manager. their behavior is specified in the freedesktop standard: 1. ...


3

You have two options: compile from source (which is easy if you follow the instructions) or use a precompiled package for 12.04 with your 12.10 version. In both cases you will get aegisub 3.0.1. Install from precompiled package On this page someone provides precompiled packages of aegisub and wxWidgets (install both packages) for Ubuntu 12.04. Despite the ...


3

If the filename does not contain a /, the builtin command source may look up the name in the PATH only, depending on some shell options. So instead of source .bashrc, `source ./.bashrc` should do what you want. From man bash: . filename [arguments] source filename [arguments] Read and execute commands from filename in the ...


3

Either you need to install some libraries do not exist for Trusty or you have to take the road for which the libraries are not needed. To use make xconfig you have to install the QT3 libraries, and you could download and install the Precise packages. To do this, download libqt3-mt-dev and install with sudo dpkg -i. But you'll have to install many more ...


3

The Ubuntu One file synchronization daemon, ubuntuone-syncdaemon and the related commandline utility u1sdtool, are python programs and as such don't need “building” in the traditional sense (the parts of ubuntuone-client that need building are the nautilus extension—which you don't want—and the icons used by it). At runtime u1sdtool simply talks to ...


3

Well, I just missed CouchDB 1.1.1 The problem was buried within an incompatibility with SpiderMonkey 1.8.5. The release notes make that clear. The new version compiles just fine :)


3

Firstly, can you confirm that you are using the PPA at https://launchpad.net/~abogani/+archive/ppa ? Do you have both lines in your sources.list, the deb and the deb-src, ie (for 11.10): deb http://ppa.launchpad.net/abogani/ppa/ubuntu oneiric main deb-src http://ppa.launchpad.net/abogani/ppa/ubuntu oneiric main If so, that should work - and does, for ...


3

As you stated in your comment above: Fixed, you must uninstall the following package via the Synaptic Package Manager: ttf-mscorefonts-installer. The command line method is as follows: sudo apt-get remove ttf-mscorefonts-installer


3

To get linux-source 3.19 to Ubuntu 14.04 you need to run sudo apt-get install linux-source-lts-vivid But you do not need kernel source to install Nvidia drivers. Headers are enough.


2

From the FAQ: LFS stands for Linux From Scratch which is a project that aims to teach you about the inner workings of Linux by building a Linux system by downloading, building, and installing the packages yourself. Since you download, build and install the whole thing yourself, it's not based on Ubuntu.


2

Syntax: apt-get source command-name Example: apt-get source netstat If it cannot find: Add a Source URI to sources.lst cat /etc/apt/sources.list deb-src http://ftp.de.debian.org/debian lenny main apt-get update


2

I think you're talking about GNU/Debian commands. Linux does not have commands. Most Linux distributions use GNU utilities (that's why we should call them 'GNU/Linux') and their own commands (such as Debian's APT system). For example, in Ubuntu, commands such as cp, cd, mv are part of the GNU Core Utilities, which are part of the Ubuntu core (base) system. ...



Only top voted, non community-wiki answers of a minimum length are eligible