Tag Info

Hot answers tagged

78

~/.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 ...


23

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 ...


15

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 ...


14

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.


8

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

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


6

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 ...


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

~ 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 ...


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 ...


4

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 ...


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. ...


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

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

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. ...


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

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' ]; ...


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 ...


2

Why is there a html page in your sources? deb http://docs.openstack.org/havana/install-guide/install/apt/content/basics-packages.html This does not belong in sources.list since it is not of a normal format. Compare it to the other 2 and you will see the sources.list needs 4 sections and there are only 2 on this like. It is missing precise-updates/havana ...


2

In general, to find the files installed by a package, use dpkg -L <packagename>


2

Your command above is a little bit strange. Is it two commands or one? If one command, then source itself is a command. If you want to use it there, then you should give && (command after && will be executed next to before command) before source. If two commands, then your quotation marks probably incorrect. The correct form of your ...


2

Following Installing Metasploit Framework on Ubuntu 12.04 LTS to 14.04 LTS and Debian 7 documentation, the step that you are doing in the installation process is: Create and environment variable so it is loaded by Armitage and by msfconsole when running and load the variable in to your current shell: sudo sh -c "echo export ...


2

This sounds suspiciously like a homework assignment*, but here we go. Why would you source the ELABORATO.SH script? If you do and it has an exit statement or errors out, your TEST.SH does the same. I don't think that's what you want. I would just run the script: bash ELABORATO.SH param1 param2 Did you think about redirecting its input? bash ...



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