Debian :: How To Code A Directory
Jun 29, 2010How can i code a directory in ubununtu.
View 8 RepliesHow can i code a directory in ubununtu.
View 8 RepliesI do a lot of programming and I have to compile the code quite often. It's not convenient to move to the directory that contains the source code every time I want to compile it. So is there a way to compile a code from the my current directory (say /home example) without moving to the directory that contains the source. I remember being able to do this but forgotten how.
EDIT: I'm using makefiles to compile. Lets say I'm in the home directory and when I type
make -f /code/make_file
this doesn't seem to work
I want to modify the source of cd (the 'change directory' command) to do a little extra for me, but I can't seem to find the source code anywhere.. maybe I didn't look for it well enough, and googling "source code cd" and variants of that doesn't exactly help... I was wondering if anyone knew where I could find the src?
View 14 Replies View RelatedAwhile back, PabloTwo pointed me to zenity as a way to create bash scripts with changeable parameters. That thread is here, for anyone interested in reading about it: [URL] Anyway, my problem is that I'm trying to capture input that contains double-dashes ("--") but zenity (or maybe or it's bash???) complains with the following error message:
"This option is not available. for all possible usages.
bash: [/code]: No such file or directory"
Here's an example of what I'm doing:
Code:
# Select the time of day
Flytime=`zenity --list --text="Select the Time" --radiolist --height=300 --width=300 --hide-column=2 --column="Select" --column="Code" --column="Time of Day"
"" "--timeofday=real" "Local Time"
[code]....
What I want to accomplish is for the variable $Flytime to contain either "--timeofday=real" or "--timeofday=dawn" (without the quotes) depending upon which radio button is selected. I have tried escaping "--timeofday" (e.g. "--timeofday" and even "--timeofday") but that's not working.
I am a little optimistic now after my problem of wifi was solved by stoat that presisted for about a year, now i am trying to install my vpn client. he asks me to write the path of kernel source code directory : and i answer by:/lib/modules/2.6.26.8-57.fc8/build/
But he answers no such directory or file and i dont know why
The build is covered by a red box when displayed by a terminal so can any body tells me where i can find my kernel source directory or i should install them, how
c source code for scanning a shared directory of a host ?
View 3 Replies View RelatedI've tried a couple times to install from a tar.gz file and when i try to compile the source code in the terminal I get this error "tar: bash-4.2.tar.gz: Cannot open: No such file or directory" what am I doing wrong? Now when I download the files, I leave themin the down loads folder, do i need to make a new directory? If so how do I do that and how do i call it up when I compile the sopurce?
View 1 Replies View Relatedwhenever i am trying to compile a c++ program i am getting the following error sample.cpp:1: fatal error: iostream.h: No such file or directory compilation terminated
View 1 Replies View Relatedhow to install Dropbox for Debian Squeeze from source.Please read everything before you begin. I prepared it as I installed Dropbox for my own system. Please Note: I use sudo, you may have to use root or 'su' from the command line. If you don't know the difference between sudo and su, then you shouldn't try this until you know. At the time I did this, the lastest dropbox version was 0.6.7.
View 7 Replies View RelatedI am trying to install NachOS on fedora, i make a nachos directory and download the nachos source code and cross compiler, then i extract the zip files and patch the make files and everything is okay till now. but when it comes to compiling nachos, i followed these steps.
* ~/nachos> cd NachOS-4.0
* ~/nachos/NachOS-4.0> cd code/build.linux
* ~/nachos/NachOS-4.0/code/build.linux> make depend
[code]....
I have a raspberry running volumio which is based on debian jessie, I added it bluetooth support with pulseauadio which works fine.
Now I'd like automating the process a bit because having to connect to the pi to manage the connexion with bluetoothctl is not really convenient.
I would like to add a pin code to the pi to manage the connexion, It was possible with bluetooth-agent but the command seems to have disappeared on jessie and I didn't find any indication about pin code in bluetooth config files.
I am from Chinese, when I finished the install of the latest version of debian and use the default browser to access google, I put some Chinese into the google search, the horrible thing is it displayed in unreadable code. I know maybe the default language of debian is not UTF-8, how and where to change it into UTF-8.
View 2 Replies View RelatedI need to rewrite the selenium java code into its equivalent php code.
View 5 Replies View RelatedWhen trying to install php5 IÂ got the following result. Tried to apt-get clean, autoclean, remove --purge then reinstall the mentioned packages without any success.
dpkg --configure -a didn't get any better result.
Code: Select allsudo apt-get install php5
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances   Â
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
 libapache2-mod-php5 php5-cli php5-common
[Code] .....
After# apt-get -d source python-uno I get 550MB worth of files, it looks like source code for the entire openoffice package:# dir -alt
total 539412
drwxr-xr-x 2 nick nick 4096 2010-06-08 20:21 .
drwxrwxrwx 9 root root 4096 2010-06-08 20:21 ..
-rw-r--r-- 1 nick nick 105004167 2010-06-06 01:17 openoffice.org_3.2.0-11~bpo50+1.diff.gz
-rw-r--r-- 1 nick nick 10999 2010-06-06 01:17 openoffice.org_3.2.0-11~bpo50+1.dsc
-rw-r--r-- 1 nick nick 446777138 2010-03-25 10:47 openoffice.org_3.2.0.orig.tar.gz
# which unpack into a folder called openoffice.org-3.2.0 Maybe I have been horribly misled by this obsolete documentation and the following statement therein:To download a source package, you would use the following command:
$ apt-get source packagename
This will download three files: a .orig.tar.gz, a .dsc and a .diff.gz. In the case of packages made specifically for Debian, the last of these is not downloaded and the first usually won't have "orig" in the name. The .dsc file is used by dpkg-source for unpacking the source package into the directory packagename-version.
I want to compile geki2 from source. I tried apt-get source geki2but I getReading package lists... Done
Building dependency tree Reading state information... Done E: Unable to find a source package for geki2I assume that /etc/apt/sources.list needs some additional entry. I run lenny.
Apart from that could someone explain to me what is the importance of files *.dsc , *.tar.gz and *.diff.gz in every package ? I assume *.tar.gz is the source. Is this independent from Debian ? I assume also that *.diff.gz is some patch you have to apply after you expand *.tar.gz in order to get a Debian specific version but how do you apply the patch ?
I have installed two softwares manually, from the source code downloaded from their official websites: Stellarium, and the Linux Kernel. The version of these is not the same as the one found in the official repos. My question is: does aptitude have knowledge of the existance of these softwares? Can it do any damage to them, in case, for example, I run automatic aptitude tasks, such as autoclean and dist-upgrade?
View 2 Replies View RelatedI am developing a script to automate some database setup, but I have an issue I cannot figure out. I prompt for some input with whiptail and select a default if nothing is entered. However, if you do not enter anything, it normally returns 0, but this time it is returning an empty value.
Code: Select all # This one does work!
 # Set the source path
 TMPPATH=$(whiptail --backtitle "Linux Build Configuration"
  --title "Source-Code Path"
  --inputbox "Default: $SRCPATH" 0 60
  3>&2 2>&1 1>&3)
[Code] ....
So what is wrong with the second code?
I installed my new debain.(6.0) but its all code. (i looked it up, i need a a win X or GNOME). but since i dont know code based interfaces, how do i install it on the computer. (once Ive got my visual interface im generally fine till i hit advanced)
View 10 Replies View Relatedi followed a Tutorial about configuring apache to have HTTPS Protocole , but since i ask for a certificate , i can't input information such country code etc , i'm runing this configuration on Webmin , i'm using Debian of course so how can i input the code ?
View 1 Replies View RelatedToday I was trying to make a LiveUSB for Fedora 15 with UNetbootin and when I inserted my USB stick, it blinked and then this error appeared:
Error mounting: mount exited with exit code 1: helper failed with:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
The system is Debian Squeeze/Sid with apt.conf set to Squeeze as the default. Most packages are from Squeeze.
I ran apt-get upgrade and it returned an error-code.
It might be it is this bug: Bug#574153: python-pkg-resources: Missing file leaves it unconfigured
I tried aptitude install -f, to hold it and to remove the package python-pkg-resources, but i am getting told the package would be in a very bad stage, and i should re-install it. That doesn't work.
I was triyng to install Debian on a AMD K6-2. I use debootstrap, and installed Lenny, with a kernel linux-image-2.6.26-2-486.
After that apt-get update and apt-get upgrade and I get:
The following packages will be upgraded:
Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED feature is disabled in the running kernel.
Please upgrade your kernel before or while upgrading udev.
AT YOUR OWN RISK, you can force the installation of this version of udev WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file. There is always a safer way to upgrade, do not try this unless you 0understand what you are doing!
And similar messages appears trying to install xfce4...
How do I force recompilation of the kernel .deb packages. After a small change I make to the sources without having to clean the sources and recompile the whole kernel again?
Code: Select all$ fakeroot make -f debian/rules.gen setup_i386_none_686
$ fakeroot make -f debian/rules.gen binary-arch_i386_none_686 binary-indep
Calling the second command again does not recompile the modified code, just recreates the .deb packages.
If I use:
Code: Select all$ make -f debian/rules clean before the build command, then it will recompile everything which takes ages.
How can I force recompilation of the files/objects I changed (and dependencies)?
I use this guide: [URL] .... ('Building only a single kernel variant' section)
A tiny Linux kernel patch that makes the desktop incredibly more responsive: [URL]...
View 14 Replies View RelatedWhat is the complete process of integrating live chat software.
View 2 Replies View RelatedWhats the bash script for like, how synaptic package manager runs ..
When you run synaptic it ask for root password ..
How do I do this in bash script?
I've setuped apache2 with SSL on Debian Etch, but I'm getting this Error message in the browser:
Code:
This site does not exist!
I got a trouble about communicating between host application and HID device (with a button) in a embedded Debian Linux OS. The both of them are working fine on ubuntu. When I insert my HID device on my embedded debian linux Unit, following message show up:
# usb 1-1: new low speed USB device using ehci_marvell and address 3
usb 1-1: configuration #1 chosen from 1 choice
HID device not claimed by input or hiddev
and in /dev folder some usbdev files are generated:
usbdev1.3
usbdev1.3_ep00
usbdev1.3_ep02
usbdev1.3_ep81
usbdev1.3_ep83
When I run my host app, and press the button, no any data transferring happened (check with CATc captured data). I know the host app run fine on uBuntu, because I know how to open /dev/usb/hiddev0 in my code. I don't know how to open this kind of file in debian linux. I tried use each files above, the button still doesn't work. Can anyone help me to point out if it is HID driver issue or coding issue.
My system has stopped to boot at all...
Code: Select alldone.
Setting parameters of disc: (none).
Setting preliminary keymap...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2
[Code] ....
An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. ... failed!
The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).
Give root password for maintenance
(or type Control-D to continue): _
For now, I just don't know what I should to do next to my system has started to work again...