Tag Info

Hot answers tagged

69

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


21

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


13

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.


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


7

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


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


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

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

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

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

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


2

Please refrain from using downloads when the software you want can be installed with Ubuntu Software Center using a normal debian installer. This will install Stencyl 2.1.0 (and yes you can install the 12.04 version in 12.10) sudo add-apt-repository ppa:upubuntu-com/games sudo apt-get update sudo apt-get install stencyl This might be required as a post ...


2

Looks like a major breakage to me. There are meta-packages that don't work at all, some link to the old 3.2.0 kernel. For example, doing apt-get source linux-image-$(uname -r) will fail, as it tries to use linux-lts-quantal instead, and then fails as that package cannot be found. We've been trying around for two hours, before resorting to using their kernel ...


2

Just download it from sourceforge extract .zip using the following command line at terminal : unzip ~/Downloads/TubeMaster%2B%2B.2.5_Source.zip open eclipse (install it if already not installed: sudo apt-get install eclipse) go to eclipse menu: open project and select the directory ~/Downloads/TubeMaster++.2.5_Source Then build I hope that helps


2

This user's shell is /bin/sh. This is a smaller shell, which uses fewer resources than bash but offers fewer programming features and next to no interactive features. Run sudo chsh -s /bin/bash harry to change the user's login shell to bash. This changes the user entry in /etc/passwd (don't edit that file directly unless you know what you're doing). ...


2

Here are what seems to be the latest directions: mkdir ~/unity fetch Unity 8 source: sudo apt-get install bzr bzr branch lp:unity/8.0 ~/unity/unity8 cd ~/unity/unity8 The directions are from this page, which is relatively new. I just tried it and it produced the bazaar unity8 repo in the my ~/unity/unity8 directory, including the whole tree of source ...


2

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



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